struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Ruan <danielr...@gmail.com>
Subject S2: Using Outbound Rules with UrlRewriter
Date Fri, 13 Mar 2009 03:34:22 GMT
Has anyone used the UrlRewriter outbound rules with Struts 2?
UrlRewriter requires that the urls go through response.encodeURL().
In JSP and JSTL examples:

<a href="<%= response.encodeURL("/world.jsp?country=usa&amp;city=nyc")
%>">nyc</a>

<a href="<c:url value="/world.jsp?country=${country}&amp;city=${city}"
/>">nyc</a>

What is the Struts2 equivalent way?  (s:url encode="true" does not work).

Thanks,

Daniel

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


Mime
View raw message