add JspSupportServlet <servlet> <servlet-name>JspSupportServlet</servlet-name> <servlet-class>org.apache.struts2.views.JspSupportServlet</servlet-class> <load-on-startup>1</load-on-startup> </servletto use a macro lang like velocity or freemarker to construct then use OGNL or some other mechanism to resolve the actual URL
http://struts.apache.org/2.0.11.2/docs/freemarker-tags.html ? Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Tue, 16 Sep 2008 16:50:01 -0700 > From: [EMAIL PROTECTED] > Subject: Re: [S2] URL management > To: user@struts.apache.org > > --- On Tue, 9/16/08, esemba wrote: > > Well, yes, but I just thought, that checking for disabled > > cookies and appending jsessionid, is container's job, not > > mine, so i tried to figure out, how to accomplish it. But > > i'm afraid, i'll end up doing it manually. > > Your particular case is different: you're creating the URLs outside of both > the container and the framework. It is, however, two-three lines of code to > implement a session-id appendation, so no biggie. > > What you're basically asking for is a double-evaluation of a JSP page: > evaluate it and get your string containing <s:url...> tags, then evaluate it > again to interpret your <s:url...> tags. It doesn't really work like that by > default. > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/