|
| Hi there,
<p>I wonder if anyone runs into issues to pass an url parameter to the consumer portlet through the html:link tag, such as in the following example:<br>
</p>
<p><html:form action="/contactIdAction.do"><br>
<table><tr><td> Office Id </td><td><br>
<html:text property="officeId"></html:text><br>
</td></tr><br>
<tr><td><html:submit property="Save" ></html:submit><br>
</td><td><br>
<html:reset property="Cancel" ></html:reset><br>
</td></tr></table><br>
</html:form> </p>
<p><%<br>
java.util.HashMap urlParams=new java.util.HashMap();<br>
urlParams.put("officeId", "1");<br>
pageContext.setAttribute("urlParams",urlParams);<br>
%> </p>
<p>Another way to pass a office id:<br>
<html:link page="/contactIdAction.do" name="urlParams">Pass office id</html:link> </p>
<p>It seems that I can pass the parameter just fine if I use form submit. But the same scheme will not work if I pass through a url link.</p>
<p>Thanks in advance.</p>
<p>Howard</p>
|
|