191 Posted Topics

Member Avatar for RaeesIqbal

in the main post at line 21 (test.php) if ($newpassword = $confirmnewpassword) { are you assignning the vallues or for comparing the values of ($newpassword and confirmnewpassword) let me clarify once pls

Member Avatar for simplypixie
0
252
Member Avatar for b.shafabakhsh

just check it once by placing <a href="#">View Products</a> instead of View Products and let me know the status

Member Avatar for radhakrishna.p
0
94
Member Avatar for navneet patel

it is posible by using **load** mysql command (which imports csv file data into database) you will get the description of **load** command From the follwing url http://dev.mysql.com/doc/refman/5.1/en/load-data.html http://support.modwest.com/content/6/253/en/how-do-i-import-delimited-data-into-mysql.html

Member Avatar for jkon
0
292
Member Avatar for newbiecoder

check the following url and then go for live demo of this example (it may give a solution for your problem) http://www.9lessons.info/2011/03/live-table-edit-with-jquery-and-ajax.html

Member Avatar for radhakrishna.p
0
1K
Member Avatar for doha786

declare a array with a name "**$my_global**" reading individual values of those 3 arrays and make a new array as follows $my_array = array("name"=> $array_1[$i],"profession"=>$array_2[$i],"SL"=>$array_3[$i]); (in your case ,loop this for 3 times) and combine the **$my_array** to **$my_global** by doing this way i think you will get your actual …

Member Avatar for sanket044
0
180
Member Avatar for love1969
Member Avatar for jwenting
0
104
Member Avatar for myadav

check list for your problem 1. did you put any package statements in your java file? 2. are compiling and running on the same directory ? please check those two conditions (these two are the basic cause of your problem)

Member Avatar for NP-complete
0
341
Member Avatar for Resentful

we can achieve this by using **"contenteditable"** property and the following java script code <div contenteditable="true" onclick="document.execCommand('selectAll',false,null)"> Place your text here </div> you can add your styles to this div as usual let me know if you have any problem

Member Avatar for Resentful
0
111
Member Avatar for amith_ami

hai amiyar there is no mistake in your code but you are appending the product_id to varia ble j thats it after the first line of while loop look at once there $j .= $rs['prod_id']; thats the reason you are getting 526527 instead of 526 and 527. i think you …

Member Avatar for amith_ami
0
154
Member Avatar for runlevel3nut
Member Avatar for wolfgangcs
0
283
Member Avatar for NidhishKrishnan

this link may help you a lot http://gaps-blog.blogspot.in/2008/12/controlling-tabindex-in-java-swing.html check it once

Member Avatar for radhakrishna.p
0
823
Member Avatar for mathieu89

remove line 6 and place echo "<td colspan=2>".$row['name'].",".$row['price']."</td>" instead of what you have written at line 5 check it once by making those changes let me know the status and make this thread solved if you get the exact answer

Member Avatar for mathieu89
0
187
Member Avatar for padton

can you post error details what you are getting so far while running this function? so that we try to slove your problem

Member Avatar for padton
0
282
Member Avatar for chira.laura.9

providing values to drop down list use like as follows <? // php code that gets data for drop down list ?> <option value= "<? dropdown data?> "> <? dropdown data?> </option> <? // remaining code ?> instead of print("<option value=\"$idCat\">$cat</option>"); and check your answer by replacing this way and …

Member Avatar for broj1
0
347
Member Avatar for zlloyd1

to be clearly (like the above post), importing actionListner class into your class that doesn't a matter your class should be implemented ActionListner class too and the remainng error is as above post said ( replace exit() instead of Exit() )

Member Avatar for JamesCherrill
0
929
Member Avatar for xxmp

can you explain clearly what the actual requirement is? use the following url for sending mails (if that is your requirement is) http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/ http://viralpatel.net/blogs/sending-emails-in-java-using-gmail-id/

Member Avatar for radhakrishna.p
0
79
Member Avatar for mousa.khaleel13

are you asking for storing the file to a new path or its original path? i am getiing little bit confusion on your question pls clarify me so that i will help you soon

Member Avatar for AleMonteiro
0
4K
Member Avatar for Zubenna

i have done some moduifucations to your code here is the your modified code public class SampleGUI extends javax.swing.JFrame { private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JCheckBox jCheckBox1; private javax.swing.JCheckBox jCheckBox2; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JTextField jTextField1; private javax.swing.JTextField jTextField2; public SampleGUI() { …

Member Avatar for Zubenna
0
877
Member Avatar for hwoarang69

<textarea> tag does not have **value** attribute if you want to place atext inside test area then you have to plcae your code as follows <textarea> <? // plcae your data here ?> </textarea>

Member Avatar for diafol
0
251
Member Avatar for arcticman452

i think you have to implement one more listner for your class that is **ItemListner** to read events from JComboBoxes instead of adding **ActionListioner** to those components check it once by implementing ItemListner to those components and keep line no 205 to 293 with in **ItemListener** related methods this is …

Member Avatar for radhakrishna.p
0
162
Member Avatar for venkyb47

can you place your html code here? (if no one object in this forum) so that i will answer your question very soon.

Member Avatar for venkyb47
0
145
Member Avatar for angelali2013

use **window.open() **concept instead of using **iframe** concept i think **iframe** concept does not work to your actual requiremnt because iframe never tranfer any data to its parent(i mean the page which holds the iframe) but in **window.open()** that thing is possible every element is visible to opened window so …

Member Avatar for radhakrishna.p
0
152
Member Avatar for nickcolb

**at line 15 **you have taken the support of some class **myFunctions m;** you haven't instantiated this variable anywhere in your code but you called some methods by using that reference somewhere like line no 331, 344, 357 thats causing the exception check that once create an object for that …

Member Avatar for radhakrishna.p
0
225
Member Avatar for arcticM
Member Avatar for arcticM
0
781
Member Avatar for iamjin04

1.add **width : 85% **to the table css and add **margin-left:250px** at line: 12 2.provide breaks for displaying data in the <td> tags 3.for 3rd <tr> tag in the first table add colspan=3 attribute 4.there is no body tag in your code and you are not closing the <img> tags …

Member Avatar for iamjin04
0
208
Member Avatar for Farhad.idrees

i think you have to refresh your data grid after the delete operation but i think you haven't done like that (as of my knowledge) check it once and let me know the status

Member Avatar for lambing
0
388
Member Avatar for asrsmunna

replace your code with the following code at lineno:14 **<a href="#" onclick="getDescription('$row[id]')">$row[by]</a> </li>** and write a javascript function which internally coded ajax concept for getting data of a particular id (as said by pritaeas) and place ajax result data to the target div i think you got the concept now …

Member Avatar for radhakrishna.p
0
941
Member Avatar for sunnykeerthi

you never combine the code of jsp with html componets html component never communicate with jsp tags jsp tags can't read html component values but you are asking these two combination. i think you got the point

Member Avatar for subramanya.vl
0
786
Member Avatar for mukulbimm

some guidelines for developing your actual requirement 1. create a table with all your required columns + (1 column for checking login successful or not status) 2. create 3 jsp pages like **login.jsp, user_home.jsp, log_fail.jsp** 3. create 1 servlet file for processing your logic like **loginServlet.java** in orderto fullfill your …

Member Avatar for subramanya.vl
0
199
Member Avatar for UNDER-18 FG

otherwise modify your class as follows public class Payroll { public double grossPay; public double stateTax; public double federalTax; public double calculateNetPay() { return grossPay - (stateTax + federalTax); } public void printOutput(double yo2) { System.out.println(" Net Pay is: " + y02); } } and call printOutput() method by passing …

Member Avatar for subramanya.vl
0
679
Member Avatar for sunnykeerthi

the main problemm of your jsp is you are repeating form tag for all record in the database.but a jsp page support forms with unique name only what i mean is if have 5 records in database according to your code creates same **<form name='abc' >..some jsp code here ....</form>** …

Member Avatar for radhakrishna.p
0
168
Member Avatar for arcticman452

i think **getSelectedItem()** mothos not available in the **ItemEvent** Class if you can replace **getItem()** method instead of that i think that error can be removed try it once........ i don't know whether that is your actual requirement or not please check it once

Member Avatar for mKorbel
0
131
Member Avatar for kirill226

use <link> tag for adding css to your web page i think there is no specific configuration to the css in web.xml **because web.xml always talks about server components like servlets and jsps, not anything related to any design issues**

Member Avatar for jalpesh_007
0
77
Member Avatar for muhammed.anas.7583

move the selected column names and table to another page where you want to display the details and there you have to format these two things as the actual sql-query for example : anotherPage.jsp <% String tab_name = request.getParameter("table_name"); String col_name1 = request.getParameter("column_name1"); String col_name2 = request.getParameter("column_name2"); . . . …

Member Avatar for radhakrishna.p
0
193
Member Avatar for akosivivas
Member Avatar for cezar84

mostly this exception will also comes with if you are passing empty string to **Double.parseDouble("")** method ( i mean while caliculating the result) for finding this place s.o.p statements(to know what values are stored in those variables i mean num1.getText() & num2.getText()) before you are caliculating the results try once …

Member Avatar for radhakrishna.p
0
146
Member Avatar for SHINICHI

try with this code it gives the above pattern (in java) public void displayPattern(int n){ for (int i = 1; i <= n; i++) { for (int j = i; j > 0; j--) { System.out.print("\t"+j); } System.out.println(""); } } all the best, radha krishna .peram

Member Avatar for jalpesh_007
0
134
Member Avatar for Linsley

code is perfect with some logical errors i have done some modifications to your code here is your modified code import java.awt.*; import java.awt.event.*; import javax.swing.*; public class JavaCalculator extends JFrame { private JButton jbtNum1,jbtNum2,jbtNum3,jbtNum4,jbtNum5; private JButton jbtNum6,jbtNum7,jbtNum8,jbtNum9,jbtNum0; private JButton jbtEqual,jbtAdd,jbtSubtract,jbtMultiply,jbtDivide,jbtSolve,jbtClear; private double TEMP,SolveTEMP; private JTextField jtfResult; Boolean addBool = …

Member Avatar for radhakrishna.p
0
404
Member Avatar for DEAD TERMINATOR

i got the solution and here is the modified code of your code : public static void main(String[] args) { try { ArrayList<Integer> idNumbers = new ArrayList<Integer>(); ArrayList<Double> annualIncome = new ArrayList<Double>(); ArrayList<Integer> numPeopleInHousehold = new ArrayList<Integer>(); System.out.println("Reading values:"); Scanner scan = new Scanner(new FileReader("c://survey.txt")); while (scan.hasNext()) { String temp …

Member Avatar for radhakrishna.p
0
214
Member Avatar for kwesiaryee

use **addItem()** method of **JCombobox** class for adding data to your combobox which is placed on your GUI.i d'not know exactly how to use JPA in java but the following code will help you see it if you know how to read data using and for example (if your data …

Member Avatar for radhakrishna.p
0
336
Member Avatar for junweixiong

this is method description of next() in Scanner class : **String next()** Finds and returns the next complete token from this scanner and returns it as a string; a token is usually ended by whitespace such as a blank or line break. If not token exists, **NoSuchElementException ** is thrown. …

Member Avatar for junweixiong
0
4K

The End.