dcsimg
Picking form data from a form in a JSP page without submitting the form, and making that data available to a child window.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, August 11, 2003 07:26 AM

I have a jsp page which contains a form. It has a navigation bar on its top and left. The navigation bars and the actual form body is included in the main jsp. Tiles option in Struts is used. Now there is a link "View printer friendly page" on the form. The form may be empty, or shall contain some data if the user has edited it. Now, if i click the link "View printer friendly page", i should get a printer friendly page which displays the form with data and without the navigation bars. It shall be a plain text page (displaying only the body part excluding the navigation bars). Iam using Struts framewo   More>>


I have a jsp page which contains a form. It has a

navigation bar on its top and left. The navigation

bars and the actual form body is included in the main

jsp. Tiles option in Struts is used. Now there is a

link "View printer friendly page" on the form. The form

may be empty, or shall contain some data if the user

has edited it. Now, if i click the link "View printer

friendly page", i should get a printer friendly page

which displays the form with data and without the

navigation bars. It shall be a plain text page

(displaying only the body part excluding the navigation

bars). Iam using Struts framework and have FormBean.

Can anyone help me out with this. Can i use

Javascript ? How can i capture form data while

activating a link on the form ??

   <<Less

Re: Picking form data from a form in a JSP page without submitting the form, and making that data available to a child window.

Posted By:   Anonymous  
Posted On:   Tuesday, August 12, 2003 12:42 AM

Hi,

You have to use JavaScript in order to pass form data to another page.


Recovering form data from a JavaScript is quite simple as is shown in the following example.