File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

regarding drop down

nick jhon
Greenhorn

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.

e.g.


We're doomed!!<br />Yay!!!<br />No that's bad Girr!!<br />Yay!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding drop down
 
Similar Threads
coding HTML/JS Form with multiple selections?
Auto generate drop down list
select values for second drop down
Find shortest string with all the words in any order
adding Strings to a list using Insertion sort