Struts2 resource property and dynamic population of action in jsp file

2011-05-27 Thread Sachin Lale
Hi, I have two questions: 1. In Jsp while displaying text box and i want this to populate from ApplicationResource.properties file. I did this be adding getText() method like below. Is this the only way? s:textfield name=name label=%{getText('site.name')}/ 2. I want the 'action' property of

Re: Struts2 resource property and dynamic population of action in jsp file

2011-05-27 Thread Dave Newton
On Fri, May 27, 2011 at 10:40 AM, Sachin Lale wrote: 1. In Jsp while displaying text box and i want this to populate from ApplicationResource.properties file. I did this be adding getText() method like below. Is this the only way? s:textfield name=name label=%{getText('site.name')}/ Nope; you

Re: Struts2 resource property and dynamic population of action in jsp file

2011-05-27 Thread Sachin Lale
Thanks Dave. I am using Struts 2.2.3. For #2 question i have a common jsp which is used for both Add and Edit operation. So on the basis of whether it is add/edit i want to set appropriate action. Well one tweak just now came in my mind is to set the action name in request scope and use this