You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lim Hock-Chai <Li...@usamobility.com> on 2005/10/20 19:44:18 UTC
dynamic property
I have an application that I need to dynamically create fields/properties in the html. Does anybody know of any article that describe the best approach to do this in struts?
Note: Number of fields/properties will be control by a database. There is no way to determine how many, however, it probably would be more than 20 of them. Eventually, the data entered on the form will need to somehow get into the DTO.
sharing message resources with jstl
Posted by michael michael <lm...@hotmail.com>.
I have three message resources defined in struts-config.xml:
<message-resources parameter="ErrorMessageResources" key="errors"/>
<message-resources parameter="ApplicationMessageResources"/>
<message-resources parameter="InfoMessageResources" key="info"/>
In web.xml, I define a context parameter as follows,
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>ApplicationMessageResources</param-value>
</context-param>
Questions:
(1). Can I define more than message resources in context param?
(2). In jsp, how do I access these three message resources?
I am using JBoss 4.1 and Struts 1.2.4.
Levy Johnson
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org