Hello Dave.
my comments follow:
Dave Newton wrote:
--- 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.
That means there's something strange in my environment..
I also use tiles (I'm learning that, too.. so I may well be using
it wrong).. should I post my struts.xml and tiles.xml here?
<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}).
Very interesting.. in what scope will S2 put the variable listUrl?
I also find it hard to understand
- what scope is the stack's in
- how accessing the stack works in general
- looking at the tags ref, the examples, and your code above I see
things like #myvar, and %{myvar}.. what's the difference?
I'm sorry I have so many questions (I have many many others
unexpressed!) but as I already said, I'm finding it hard to
understand the S2 principles and getting productive with it
I would be very grateful if somebody could try to shed some light
on the above for me. Thank you.
Best regards.
--
Robi.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]