File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display multiple selection options

 
Alexey Gor
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Here is what I am trying to do:

There are 3 types of variables (DATABASE, USER_INPUT, CALCULATED). We have to display them to the user. there is a drop-down of types, selecting one of the options brings up variables that belong to that category. I am trying to do this in a nice clean way, but it's not coming out right. I would appreciate any help or a link.

Another small question... I am displaying a set of drop-down uptions using a Collection from ActionForm. I want there to be a blank row, the value automatically selected when the page first comes up. Do I have to put an empty string into the Collection? Thanks!

Thank You.
 
Vikas
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To display an empty string displayed by default, all you need to do is to set the value in the reset method of your FormBean class as follows:-

public void reset(ActionMapping mapping, HttpServletRequest request) {

yourselectpropertyname = "";
}

Thank you
Vikas Sharda
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic