This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP and drop-down boxes  RSS feed

 
kevin schmidt
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have three drop-down boxes on a web page. When you choose information from these boxes, you press submit and the page refreshes with new information. How do I keep what was selected in the drop-down box after the page was refreshed? TIA.
Kevin
 
GregKrup
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using a parameter buffer
parameterBuffer.setName("GeneralInfoForm");
parameterBuffer.setParameterValue("aliasName", (site.getAliasName());
String aliasName = parameterBuffer.getParameter("aliasName");
<input name="aliasName" type="input" value="<%= aliasName %>"
hope that helps
 
kevin schmidt
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a parameterBuffer? Never heard of it before. Is this a name for a StringBuffer? Please help explain a little more.
 
kevin schmidt
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out, and it was a little easier than I thought... thanks for the help!!
kevin
 
GregKrup
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am glad I could help, sorry I couldn't respond earlier, crazy deadlines around here.
Greg
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!