--- Roberto Nunnari wrote:
> > <img src="<s:url value="/Image"><s:param
> name="storyId"
> > value="%{id}"/></s:url>"/>
> >
> > I would expect the generate HTML to be something
> like:
> >
> > <img
> src="/iopinion_hibernate00/Image?storyId=11"/>
> >
> > but instead I get:
> > <img src="/iopinion_hibernate00/Image?id=11"/>
> >
> > do I miss anything?
I can't duplicate that; the following code (for me)
generates what I would expect, a parameter named
'commentId' in the URL. Doing it inline as in your
example also works.
<s:url action="listComments" id="listUrl">
<s:param name="commentId" value="id"/>
</s:url>
<a href="<s:property value='#listUrl'/>">
<s:property value="comment" />
</a>
> > also, jstl let me do something like:
> >
> > <c:url var="imgURL" value="/Image">
> > <c:param name="storyId" value="${story.id}"/>
> > </c:url>
> > <img src="${imgURL}"/>
> >
> > is there anything similar in S2?
See the above; you can also use JSP 2.0 EL to access
the URL variable (so in my example you'd use
${listUrl}).
d.
____________________________________________________________________________________
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]