aspose file tools*
The moose likes Struts and the fly likes How to reload a JSP with request.getAttribute values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to reload a JSP with request.getAttribute values" Watch "How to reload a JSP with request.getAttribute values" New topic
Author

How to reload a JSP with request.getAttribute values

vishnuu soman
Greenhorn

Joined: Jan 01, 2012
Posts: 1

Hello All,
I have this application where i want to populate a text file on the basis of entries entered from user interface.
I chose Struts1 for this and i have been able to complete most of the functionalities.But the part of keeping on populating the
text file on the basis of user entries in my JSP is something i am struggling with. The following are the flow of pages on user interface

1.'Accept user entries' http://www.image-share.com/ijpg-1178-104.html
2.'Ask for scan data on the basis of entries in page1' http://www.image-share.com/ijpg-1178-105.html
3.'Submit after entering the scandata. ' http://www.image-share.com/ijpg-1178-106.html
(I have been able to straighten the null values in the images via session variables)
message is seen with null entries like this Post validation.
My questions are:
2. What should be used so that there is a scenario that the users enter the Scan Data on page 2 and can continue to enter
more scan data values by falling back on the same JSP . I was thinking on the lines of reloading the page using JavaScript
on the button click. Is it the right approach?

The relevant code for this is


>LoginAction.java - Action class for the first page


>TextWriterAction.java - Action class for the welcome.jsp




Would like to have your valuable suggestions

Thanks
Vishnu

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to reload a JSP with request.getAttribute values