dcsimg
Javascript in JSP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Joseph_Rayappan
Posted On:   Wednesday, September 17, 2003 10:08 AM

I have a JSP, called Main.jsp,it's form name is 'frmMain'. This is JSP includes 2 more JSP's Namely First.jsp and Second.jsp, form names of these 2 JSPs respectively 'frmFirst' and 'frmSecond'. These 2 JSPs are included out of the 'frmMain' of Main.jsp, Ex: In Main.jsp like this.. Here, i need to get form values of frmFirst and frmSecond and set into 'hidValues' variable of Main.jsp, onClick of Submit Button in Main.jsp... How can i get it..    More>>


I have a JSP, called Main.jsp,it's form name is 'frmMain'. This is JSP includes 2 more JSP's Namely First.jsp and Second.jsp, form names of these 2 JSPs respectively 'frmFirst' and 'frmSecond'.



These 2 JSPs are included out of the 'frmMain' of Main.jsp,

Ex: In Main.jsp















like this..


Here, i need to get form values of frmFirst and frmSecond and set into 'hidValues' variable of Main.jsp, onClick of Submit Button in Main.jsp...

How can i get it..

   <<Less

Re: Javascript in JSP

Posted By:   rajdeep_paul  
Posted On:   Thursday, September 18, 2003 11:25 PM

try 'document.forms[i]' this will return all the forms in the jsp. in ur case there are 3 forms. so now from this array, retrieve any of the form object, and then do what ever u want to.


hope this helps u


Rajdeep

About | Sitemap | Contact