| gpinkham 2004-06-20, 10:19 pm |
| this is what I ended doing in my JSP of the receiving portlet (the sender is still the same!).. (This works but does not allow you to send messages in the Action since it's in View Phase)
<logic:present parameter="<%= PositionDetailConstants.INPUTPARAMACCOUNTKEY %>">
<logic:notPresent name="<%= PositionDetailConstants.DONTRUNAGAIN %>">
<logic:forward name="begin"/>
</logic:notPresent>
</logic:present>
The DONTRUNAGAIN Attribute is added in the action assigned to "begin"... That way it only runs once per request...
So basically what happens the 1st time is the action runs receives the INPUTPARAMACCOUNTKEY parameter.. Does it's thing and adds the DONTRUNAGAIN attribute....
On a refresh or link to page (without request param) the JSP runs as normal as the request param is NOT present...
On a link to the page that does contain the request param will forward to the action as the request param IS present and the attribute is NOT present... The action will run add the attribute and the jsp will run as normal because the attribute IS presen
t...
|