Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display result in the same jsp page

 
Abebe Belew
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in struts application I have a jsp page where I have dropdown list. a query against a db is done according to the selection. My question is I want to display the result of the query in the same page where the dropdwon list is and i want the selected value (from the list) to apper in the dropdown box when the result page is displayed. how do I do this? thanks
 
John Smith
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not quite sure what you're trying to say here but if you have your list box and drop-down box with seperate properties assigned to them in your form-bean can't you just reload that jsp after you've done your query and set the values into the drop-down box property?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic