Re: Factoring out URL and link generation

2010-06-16 Thread Amol Ghotankar
Dear user list, How difficult and risky it is to shift my project from struts 2.0.x to 2.1.8.x. I have a very huge erp project done 80% in struts 2.0.x, will you recommend to use new struts or complete the project without any major change.

Re: Factoring out URL and link generation

2010-06-16 Thread Paweł Wielgus
Hi Amol, if You have tests for it i would go for the upgrade, so that You will instantly find if anything is broken. Also if it's not finished You should ask your customer if he wish to spend money/time to do it, in the end he is paying so he have the right to decide, simply present him with pros

Factoring out URL and link generation

2010-06-15 Thread Jan T. Kim
Hi All, the basic way to produce a link using struts seems to be to use the s:url and s:a tags, e.g. to produce a link to a person you might use something like s:url var=personurl action=showperson s:param name=personId value=%{id}/ /s:url s:a href=%{personurl}s:property

Re: Factoring out URL and link generation

2010-06-15 Thread Cimballi
Hi Jan, One solution could be to externalize the URL generation in a JSP fragment and set a variable containing the resulting URL. Then, in your JSP you call the variable to output the URL. Cimballi On Tue, Jun 15, 2010 at 1:05 PM, Jan T. Kim j@uea.ac.uk wrote: Hi All, the basic way to