venerdì 29 febbraio 2008

Struts: passare parametri con html:link

<bean:define id="queueType" name="WorkFlowForm" property="queueType" />
<bean:define id="taskId" name="queues" property="taskId" />
<bean:define id="queueName" name="queues" property="queueName" />

<%
java.util.HashMap params = new java.util.HashMap();
params.put("queueName", queueName);
params.put("pageMode", queueType);
params.put("taskId", taskId);
pageContext.setAttribute("parameters", params);
%>

<html:link name="parameters" scope="page" page="<%=path%>">
 Anchor
</html:link>

(v. TheServerSide.com)

Nessun commento: