aspose file tools*
The moose likes Struts and the fly likes Printing information based on a query from a user Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Printing information based on a query from a user" Watch "Printing information based on a query from a user" New topic
Author

Printing information based on a query from a user

Nicolás Muñoz
Greenhorn

Joined: Nov 11, 2009
Posts: 17
Hello. I have a jsp page which has a text box. The user should type something in the text box, like an ID, and submits this ID. Control is passed to the Action Controller, which takes the info from the form and compares the ID with data from a database. This ID has some info related to it, and if there's a match, I would like to forward the user to another page in which he or she can see this information, depending on the ID they submitted. I have no idea how to, from an Action Controller, send this information to a JSP page to display it. Any help?
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
Which version of Struts are you using?


OCJP 6 (93%)
Nicolás Muñoz
Greenhorn

Joined: Nov 11, 2009
Posts: 17
1.3.8. Well, I found a way to do it using write:beans associated with an Action Form. Is there any other way to do this or is it the only option?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing information based on a query from a user