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 Amin Lalji <am...@globalenviro.com> on 2003/11/03 17:57:40 UTC

Portlet Forwarding

Hello,

I have a portlet that is used to do some data entry...
When the user has successfully entered data (passes validation)
I would like to replace the contents of the current portlet with
a portlet indicating success... (preserving the other tabs,etc.)

I have deployed the "Success" velocity template as a portlet in the
registry (name= "AddInfoSuccess").

I have tried setting up the forward service to forward after successful
data entry, but it does not work...it requires the portlet id... I only
know the portlet name...


portlets.xreg

<portlet-entry name="AddInfoSuccess" hidden="false" type="ref"
parent="Velocity" application="false">
		<meta-info>
			<title>Successfully added Information</title>
			<description>Add Information Success
Message</description>
		</meta-info>
		<parameter name="template" value="add-info-success"
hidden="true"/>
 		<media-type ref="html"/>
	</portlet-entry>

forwards.xml:
<forward name='AddInfoSuccess'>
        <page name='default'/>
        <portlet id='myPortlet' action='controls.Maximize'/>
    </forward>

<portlet-forward portlet='AddInfoForward' forward='AddSInfoSuccess'
target='Success'/>

Java Code in Action:

ForwardService fs =
(ForwardService)ServiceUtil.getServiceByName(ForwardService.SERVICE_NAME
);
			
fs.forward(data, "AddInfoForward","Success");

Any ideas?

Thanks

Amin



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


Tag class not getting loaded

Posted by Krish Chandra <kr...@ERC.MsState.Edu>.
I am getting the following error when trying to load a jsp page with a
JetspeedPortletTag
jsp/checklogin.jsp(45,9) Unable to load class
org.apache.jetspeed.services.jsp.tags.JetspeedPortletTag
any ideas why this may be happening?
thanks
-Krish


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


Re: Portlet Forwarding

Posted by Sloan Bowman <sm...@nashlinux.com>.
Have you tried using the setTemplate method to change the template. I  
use this in almost all of my Velocity template based portlets. Let me  
know if you need an example.

--Sloan


On Nov 3, 2003, at 10:57 AM, Amin Lalji wrote:

> Hello,
>
> I have a portlet that is used to do some data entry...
> When the user has successfully entered data (passes validation)
> I would like to replace the contents of the current portlet with
> a portlet indicating success... (preserving the other tabs,etc.)
>
> I have deployed the "Success" velocity template as a portlet in the
> registry (name= "AddInfoSuccess").
>
> I have tried setting up the forward service to forward after successful
> data entry, but it does not work...it requires the portlet id... I only
> know the portlet name...
>
>
> portlets.xreg
>
> <portlet-entry name="AddInfoSuccess" hidden="false" type="ref"
> parent="Velocity" application="false">
> 		<meta-info>
> 			<title>Successfully added Information</title>
> 			<description>Add Information Success
> Message</description>
> 		</meta-info>
> 		<parameter name="template" value="add-info-success"
> hidden="true"/>
>  		<media-type ref="html"/>
> 	</portlet-entry>
>
> forwards.xml:
> <forward name='AddInfoSuccess'>
>         <page name='default'/>
>         <portlet id='myPortlet' action='controls.Maximize'/>
>     </forward>
>
> <portlet-forward portlet='AddInfoForward' forward='AddSInfoSuccess'
> target='Success'/>
>
> Java Code in Action:
>
> ForwardService fs =
> (ForwardService)ServiceUtil.getServiceByName(ForwardService.SERVICE_NAM 
> E
> );
> 			
> fs.forward(data, "AddInfoForward","Success");
>
> Any ideas?
>
> Thanks
>
> Amin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
---------------------------
Sloan Bowman
www.nashlinux.com
www.q3networks.com
www.aboutgoodlettsville.com
www.spudibby.com
---------------------------
Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit  
patch to an 8 bit operating system originally coded for a 4 bit  
microprocessor, written by a 2 bit company that can't stand 1 bit of  
competition.


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