You don't need the ajax theme for that., docs need to be fixed. As for the
value, use "%{'pVal'}" instead of "pVal"
musachy
On 6/7/07, yitzle <[EMAIL PROTECTED]> wrote:
Thanks for your reply!
I now have:
<s:url id="url" action="<%=action%>">
<s:param name="pName" value="pVal" />
</s:url>
<s:a href="%{#url}">
<jsp:doBody />
</s:a>
where <%=action%> is passed into the tag file with:
<%@ attribute name="action" %>
This generates the desired <a href>, except that the param values
don't show up in the URL (ie ?pName=pVal).
Also, the documentation on <s:a> mentions I need <s:head theme="ajax">.
Is it true, or does <s:a> work with other themes?
<s:head theme="ajax"> includes a bunch of .js files that aren't there.
Where do I get the js files from, and do I really need them?
On 6/7/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
> s:url just builds a url string an pushes it into the stack, to generate
an
> anchor, use the s:a tag:
>
> <s:url id="myurl" value="google.com" />
> <s:a href="%{#myurl}">Goolgle</s:a>
>
> musachy
>
> On 6/7/07, yitzle <[EMAIL PROTECTED]> wrote:
> >
> > The URL tag isn't working right for me. I have:
> > <s:url value="http://www.site.com" />
> > The generated HTML is:
> > http://www.site.com
> > No <a href>'s. What am I doing wrong?
> >
> > P.S. This code is being ran via a tagfile <jsp:doBody>, but I doubt
> > that affects anything.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
"Hey you! Would you help me to carry the stone?" Pink Floyd