You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Piero Sartini <li...@pierosartini.de> on 2007/02/14 19:04:28 UTC

[s2] s:url with JSPX?

--- code ---
<li><a href="<s:url action="Register"/>">Register</a></li>
--- code ---

This is form the doc of the s:url tag. With jspx this does not work (malformed 
xml). How do I use it? 

I need it for the css in the header, so s:a does not help me.

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


Re: [s2] s:url with JSPX?

Posted by Laurie Harper <la...@holoweb.net>.
Piero Sartini wrote:
> --- code ---
> <li><a href="<s:url action="Register"/>">Register</a></li>
> --- code ---
> 
> This is form the doc of the s:url tag. With jspx this does not work (malformed 
> xml). How do I use it? 
> 
> I need it for the css in the header, so s:a does not help me.

<s:url id="myURl" action="Register"/>
<a href="${myURL}">Register</a>

would be one way.

L.


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