• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing information based on a query from a user

 
Nicolás Muñoz
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of Struts are you using?
 
Nicolás Muñoz
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic