WebSphere Portal Server - Re: Fire Action of Portlet on other page

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > June 2004 > Re: Fire Action of Portlet on other page





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Fire Action of Portlet on other page
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...

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com