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 Resetting dropdown boxes with their default values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Resetting dropdown boxes with their default values" Watch "Resetting dropdown boxes with their default values" New topic
Author

Resetting dropdown boxes with their default values

Krish Yeruva
Ranch Hand

Joined: Sep 17, 2008
Posts: 58
Hi,
I have two dropdown boxes in my JSP page with their default values(I am setting the default values from FormBean class). And the values for these dropdown boxes are coming from back end in the form of map(key,value). My Problem here is, If I changed the value from default to other value then click on CLEAR button, I need to restore those dropdown boxes with their default values. Can any one give me suggestion for on this?

Thanks in advance.


Regards,
Krishna.


Thanks & Regards
KITTU
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Sounds like something that you would need to do with JavaScript.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resetting dropdown boxes with their default values
 
Similar Threads
Question on RELOAD of JSP page AFTER facesMessage fixed
How to create a h:selectOneMenu with a default value?
jsp + dropdown + automatically populate the vales from the db in the Text box
Client-Side computations
Selected values