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 Vijay Shrivastava <VS...@dtrac.com> on 2004/01/09 18:20:41 UTC

Jetspeed with JSP

I need to use JSP as templating engine for an application hosted within Jetspeed. I have few questions in this regard any suggestion is appreciated?

1. When using JSP is it possible to attach multiple Action classes to one portlet?
2. Is there any guidelines how many pages should map to one portlet?
3. Is there any way via configuration file that I can provide mappings of output page (result) based on different values. I would like to define something lie
	onsuccess="search.jsp" 
	onerror="index.jsp" 
	onfail="error.jsp"
and have this information to be available to my Action class(es).
4. Other consideration when using JSP within Jetspped?

Thanks,
Vijay

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


RE: Jetspeed with JSP

Posted by Jeremy Ford <ca...@hotmail.com>.
If you need to use JSP as your template, I would suggest using the
GenericMVCPortlet with the viewtype set to JSP.  You kind find an example of
a GenericMVCPortlet in the demo-portlets.xreg (PortletSearch).  In this
case, the template is velocity.

In answer to your questions:

1)  There can be only 1 action associated with a portlet.  However, you can
use action events to provide methods that are distinct in nature. Look at
the RegistryUpdateAction as an example.

2)  If by page, you mean psml, multiple psmls can contain references to the
same portlet.  Also, the same portlet can appear multiple times in the same
psml.

3)  It is possible to change the current template of the portlet by calling
the setTemplate method.  As an example, the doMyaction method could set the
next template that is displayed based on success or failure of the method.

4)  Nothing that I can think of.

Jeremy Ford
jford@apache.org


-----Original Message-----
From: Vijay Shrivastava [mailto:VShrivastava@dtrac.com] 
Sent: Friday, January 09, 2004 11:21 AM
To: Jetspeed Users List
Subject: Jetspeed with JSP

I need to use JSP as templating engine for an application hosted within
Jetspeed. I have few questions in this regard any suggestion is appreciated?

1. When using JSP is it possible to attach multiple Action classes to one
portlet?
2. Is there any guidelines how many pages should map to one portlet?
3. Is there any way via configuration file that I can provide mappings of
output page (result) based on different values. I would like to define
something lie
	onsuccess="search.jsp" 
	onerror="index.jsp" 
	onfail="error.jsp"
and have this information to be available to my Action class(es).
4. Other consideration when using JSP within Jetspped?

Thanks,
Vijay

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org