Le 4 mai 04, à 13:12, Oscar Ruiz a écrit :
Hi all,
I've got a problem while calling a JSP action from a JSP template.
I've got a JSP Portlet identified by: Action: portlet.MyJSPAction Template: test.jsp
Another JSP Porlet identified by: Action: none Template: hello.jsp
In fact what I want to do (do not know if possible) is execute hello.jsp,
from there invoke MyJSPAction and return test.jsp as a result of the
invocation.
That's to complete a JSP flow.
View Controller
Hello.jsp -> MyJSPAction Test.jsp <-
Is that possible?, shall I use the same JSP with different action method
calls?
You should probably only define 1 portlet:
Name: MyJSPPortlet Action: portlets.MyJSpAction Template: hello.jsp ResultTemplate: test.jsp
In your Action processing code, set manually the template you want to display
based on your portlet state using setTemplate(). Jetspeed does not automate
anything in flow processing so your controller code needs to explicitely set the
next template to use based on its current state.
-- Raphaël Luta - [EMAIL PROTECTED] Apache Jetspeed - Enterprise Portal in Java http://portals.apache.org/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]