Form populate var first_name=document.CandidateForm.first_name.value; u have to get the value of the form from jsp like this only.... -----Original Message----- From: Namasivayam, Sudhakar (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 6:04 PM To: [EMAIL PROTECTED] Subject: Form populate
Hi all, This may have been discussed earlier.. but i couldnt find any useful way to solve the problem... here it goes.. I have a form with text fields which i am populating in the constructor and in the jsp it works fine.. just printing the default values. But in the action class of the form i try to change these values using the "setter" methodsd but the new values are not updated in the jsp.. All i want to do is to change the values of form of the JSP from the action class i was trying //-> change the values of the form if ("request".equals(mapping.getScope())) { request.setAttribute(mapping.getAttribute(), regform); // -> how to send this form to the jsp.... It is taking the default values. } Hope i am clear here!! Thanks & regards, N Sudhakar