File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes regarding drop down Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "regarding drop down" Watch "regarding drop down" New topic

regarding drop down

nick jhon

Joined: Oct 07, 2006
Posts: 1
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

Joined: Jul 19, 2005
Posts: 99
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.


We're doomed!!<br />Yay!!!<br />No that's bad Girr!!<br />Yay!!!
I agree. Here's the link:
subject: regarding drop down
It's not a secret anymore!