You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rafael Barrera Oro <bo...@gmail.com> on 2011/09/09 21:31:07 UTC

weird problem with url param

Hello!

I have a weird situation going on with the parameter of a url tag. The
problem is that i have the following code

<s:if test="%{object.foto != null && object.foto.id > 0}">

<s:url value="servlets/fileServlet" id="image">

<s:param name="fileId" value="object.file.id"/>

</s:url>
<td align="right"><b><s:text name="propiedad.imagen"/>:</b></td>
<td width="10">&nbsp;</td>
<td><img src="<s:property value="#image"/>" height="128px" width="128px"
/></td>

</s:if>
<s:else>

<td align="right"><b><s:text name="propiedad.imagen" />:</b></td>
<td width="10">&nbsp;</td>
<td><s:file name="imagen"/></td>

</s:else>

And  no matter what i do the name of the parameter is always "objectId"
instead of whatever i put in the name field of the param tag. I find this
extremely confusing, does anyone had a similar problem?

thanks in advance!

Rafael