Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding drop down

 
nick jhon
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have one jsp page,here i have some triggers like w1,w2,w3,w4.These are hyperlinks.If i click any one trigger one more jsp will appear.In that i have one field like countrycode.It is drop down box,here am getting the values from database.If i selected any one countrycode from dropdown box,this countrycode name is automatically forwarding to other triggers also.FOr all triggers only one common jsp page.I mean for w1 trigger if i selected country code something like x,then I came back and i click on w2 trigger then in this scrren country code appeared as x only.I have to show here default only.But it's showing previous triggers country code.How i debug this problem
 
Scheepers de Bruin
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I think I understand what's going wrong:

When you click on a trigger, your page that displays the country code selectbox has the previously selected value automatically selected, even if you've clicked on a different trigger?

If that's the case, it might be because of "smart" browsers that remember field values.

Does your page that displays the country codes get requested with the same URL for all the triggers?

If so one way to get around that is to add some random number parameter to the urls you use.

e.g.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic