Struts 2 Select tag

Posted by nathj07 on Stack Overflow See other posts from Stack Overflow or by nathj07
Published on 2009-09-18T07:45:23Z Indexed on 2010/06/10 23:02 UTC
Read the original article Hit count: 277

Filed under:
|
|
|

I'm pretty new to the jsp and struts way of doing things and so far I like what I see.

My current question is with the use of the struts select tag.

I have a page that displays a number of dropdown boxes using struts select currently the options are hard coded in the jsp. I would like to populate them based on a properties file. However I have no idea where to start.

I assume I need to take the contents of a properties file into an Array (of some sort) and assign that to the select tag. My questions are:

  1. Where does the code t build the array go?
  2. How do I connect that array to the select tag?

© Stack Overflow or respective owner

Related posts about java

Related posts about jsp