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 and cons of such a
process.
As for compatibility, most likely some things will stop working or
will work differently.

Best greetings,
Paweł Wielgus.


2010/6/16 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.
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Factoring out URL and link generation

2010-06-15 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-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  wrote:
> 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
>
>    
>      
>    
>    
>
> This is ok but it does get repetitive if links to persons occur in many
> JSPs, and if you want to change the format of these links (e.g. include
> the lastname), you have to search and update all these repetitions.
>
> Therefore, is it possible to factor out URL and link generation?
>
> I suppose I could write a taglib with my own person element but that
> seems a bit over the top to me.
>
> Best regards, Jan
> --
>  +- Jan T. Kim ---+
>  |             email: j@uea.ac.uk                                 |
>  |             WWW:   http://www.cmp.uea.ac.uk/people/jtk             |
>  *-=<  hierarchical systems are for files, not for humans  >=-*
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Cimballi
JAVA J2EE Freelance
http://javajeeleader.elance.com/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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


  



This is ok but it does get repetitive if links to persons occur in many
JSPs, and if you want to change the format of these links (e.g. include
the lastname), you have to search and update all these repetitions.

Therefore, is it possible to factor out URL and link generation?

I suppose I could write a taglib with my own person element but that
seems a bit over the top to me.

Best regards, Jan
-- 
 +- Jan T. Kim ---+
 | email: j@uea.ac.uk |
 | WWW:   http://www.cmp.uea.ac.uk/people/jtk |
 *-=<  hierarchical systems are for files, not for humans  >=-*

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org