191 Posted Topics
Re: 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 | |
Re: just check it once by placing <a href="#">View Products</a> instead of View Products and let me know the status | |
Re: 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 | |
Re: 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 | |
Re: 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 … | |
![]() | |
Re: 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) | |
Re: 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 | |
Re: 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 … | |
Re: **tutorialspoint.com** is also one of the best site for learners try once | |
Re: this link may help you a lot http://gaps-blog.blogspot.in/2008/12/controlling-tabindex-in-java-swing.html check it once | |
Re: 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 | |
Re: can you post error details what you are getting so far while running this function? so that we try to slove your problem | |
Re: 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 … | |
Re: 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() ) | |
Re: 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/ | |
Re: 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 | |
Re: 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() { … | |
Re: <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> ![]() | |
Re: 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 … | |
Re: can you place your html code here? (if no one object in this forum) so that i will answer your question very soon. | |
Re: 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 … | |
Re: **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 … | |
![]() | Re: use **onmouseout** instead of **onfocusout** it may works for you ![]() |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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 … | |
Re: 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>** … | |
Re: 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 | |
Re: 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** | |
Re: 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"); . . . … | |
Re: DecimalFormat is another class to format your data as you like | |
Re: 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 … | |
Re: 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 | |
Re: 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 = … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. … |
The End.