struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jotpe <>
Subject dynamic url parameters in struts tags
Date Mon, 13 Jan 2014 09:30:24 GMT

how can i achieve building a dynamic url with dynamic parameters with
struts tags in a jsp?
My try looks like this:
I iterate over a list of available operations. Every operation has a
hashtable "params" which contains its http parameters, such as id=4 or
detail=true, etc.

<s:iterator value="availableOperations" status="status">
    <s:url action="%{targetAction}" id="url">
        <s:iterator value="params" status="status2">
            <s:param name="%{key}" value="%{value}" />
    <s:a href="%{url}"><s:property value="shortName" escapeHtml="false"

The link gets generated with the targetAction but without any parameters...
Can anyone help me?

Regards Johannes

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message