You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by hm...@ualr.edu on 2003/05/01 17:00:59 UTC
Re: Jetspeed JSP forwarding problem
Hi,
I am trying to use test1.jsp to submit the request to test2.jsp. I am using JSPPortlet to display test1.jsp and similarly test2.jsp is displayed by another JSPPortlet.
For TestOnePortlet, class-name is JSPPortlet and template is test1.jsp in portlets.xreg
For testTwoPortlet , class-name is JSPPortlet and template test2.jsp
Both test1.jsp and test2.jsp are in folder WEB-INF\templates\jsp\portlets\html
The submit event of test1.jsp should have which URL to submit to, so that test2.jsp can be shown?
Thanks,
Hemant Joshi
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Jetspeed JSP forwarding problem
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Thursday, May 1, 2003, at 08:00 AM, hmjoshi@ualr.edu wrote:
> Hi,
> I am trying to use test1.jsp to submit the request to
> test2.jsp. I am using JSPPortlet to display test1.jsp and similarly
> test2.jsp is displayed by another JSPPortlet.
> For TestOnePortlet, class-name is JSPPortlet and template is test1.jsp
> in portlets.xreg
> For testTwoPortlet , class-name is JSPPortlet and template test2.jsp
> Both test1.jsp and test2.jsp are in folder
> WEB-INF\templates\jsp\portlets\html
> The submit event of test1.jsp should have which URL to submit to, so
> that test2.jsp can be shown?
>
........................................................................
........................................................................
......................^
When you say 'shown', I assume you mean maximized?
There are a few solutions. Here is a solution with the new forward
feature in 1.4b4:
In your action event, after processing, you can forward to
testTwoPortlet in a maximized state using forwards in your Java code
See http://jakarta.apache.org/jetspeed/site/forwards.html
if (everything went ok)
fs.forward(rundata, "TestOne", "SUCCESS");
else
fs.forward(rundata, "TestOne", "FAILURE");
and then define a forward definition:
<forward name='TestTwoMaximized'>
<portlet id='myPortlet' action='controls.Customize'/>
</forward>
<portlet-forward portlet='TestOne' forward='TestTwoMaximized'
target='SUCCESS'>
</portlet-forward>
I prefer the above solution, but a simpler solution is:
if (everything went ok)
fs.forward(rundata, "TestTwoMaximized");
else
fs.forward(rundata, "ErrorDisplay");
--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
+01 707 773-4646
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org