You can define a Map collection in struts form, with constant as key and value as literals.
Then you can use logic:iterate or html : optionCollections to retrieve the value.
Joined: Jan 03, 2005
Thanks for your reply. But my requirement is bit different.
i don't want it to be displayed in "select" box. User selects some value at the front end and i populate the form bean appropriately. In JSP, i will be displaying the values in form bean in a tabular format where it needs to be replaced with the value in the constants file.
Joined: May 24, 2003
How many values you expect to be displayed in the JSP page? Anyway once user selects a value you need to populate the hashmap with int,string values and in the final jsp page you can use logic:iterate tag to iterate and display in any format you want. Take a look at logic iterate taglib