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 Santiago Urrizola <ch...@yahoo.com.ar> on 2005/06/21 20:11:18 UTC
Portlet Retain previous Contents - J2-M3
Hi all,
i hace a lot of aplications runnin as StrutsPorlets in J2, they works fine,
but have a serious problem, than i couldnt fix yet.
I have a link in the left panel to a psml call list.psml
This psml contains a portlet call mt-usuarios::ListClient
<fragment id="cuenta.datos.1.1" type="portlet"
name="mt-usuarios::ListClient">
This portlet is defined as a struts porlet like this
<porlet id="ListClient">
.....
<ViewPage>
<value>/client.do?accion=list</value>
where client.do is a dispatch struts action that contains two methods
list -> lis all the clients in the system, and forward to
list.jsp
view -> view one selected client and forward to view.jjsp
remove -> remove one selected client. and forward to
operation-ok.jsp
The firt time you click the link in the left menu, the application works
fine, show me the list.jsp page, then i select one cliet, and show me the
view.jsp. This is ok. There ir back to the home, or click another link in
the menu, when i click again in the client link in the left menu, they show
my the view.jsp (and execute the view methor in the action), this is the
previous context of the portlet,
It posible to reset this, i whant when j1 load a psml, call always the view
page of the portlet, not show the initial contexto.
Please i need help with these, i spend a lot of time solving this.
Santiago
___________________________________
A tu celular ¿no le falta algo?
Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular.
Más información en http://movil.yahoo.com.ar
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
AW: J2 + Struts + Tiles
Posted by Sven Thiergen <s....@itcampus.de>.
> Jetspeed2 suports Struts + Tiles based apps?
>
> I'm trying to use, but I've got this error:
>
> 21/06/2005 12:32:03 org.apache.portals.bridges.struts.StrutsPortlet
> processRequest
> WARNING: Warning: Using the original action URL for render URL:
> /searchGeneric.do?oid=people&localDn=&customerRdn=o%3DIntelinet.
> A redirect should have been issued.
> 21/06/2005 12:32:03 org.apache.portals.bridges.struts.StrutsPortlet
> processRequest
You need to build your Struts application in a MVC proper manner. In
portlets you have "Action" request (changing inner state of app; i.e.
removing a user or changing his attributes) and "Render" requests
(displaying the current state of the app; i.e. showing the list of user
after removing one). Struts is based on Servlets, but since you are in a
Portlet environment you need to reflect (a bit) the workflows defined in the
Portlet spec.
Struts actions that are rendered using the <link ...> tag of the
Struts-Portlet TLD with the attribute "actionURL='true'" shall not do
immediately forward to a JSP. Same, when you POST a form (and use the "form"
tag of this TLD). Both make your request being an "Action" request and are
supposed to change the inner state of the App.
You should have another Struts Action your forward to from your
"Action"-like struts action. This one is the "Render"-like action. Finally,
you should have the attribute "redirect='true'" included in your forward to
the finally called "Render"-like action.
When you develop Struts applications in Jetspeed2 you *really* should read
http://portals.apache.org/jetspeed-2/multiproject/portals-bridges-struts/fea
tures.html
Saves you a lot of headaches (and gives you a lot in the first place, but
this cannot be avoided, anyway ;-))
> SEVERE: Include exception
> org.apache.jasper.JasperException
> at
> org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:372)
Don't know where this comes from. But maybe if you fix the problem above,
this one will disappear too.
Sven.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
J2 + Struts + Tiles
Posted by Anderson Araujo <aa...@intelinet.com.br>.
Hello All,
Jetspeed2 suports Struts + Tiles based apps?
I'm trying to use, but I've got this error:
21/06/2005 12:32:03 org.apache.portals.bridges.struts.StrutsPortlet
processRequest
WARNING: Warning: Using the original action URL for render URL:
/searchGeneric.do?oid=people&localDn=&customerRdn=o%3DIntelinet.
A redirect should have been issued.
21/06/2005 12:32:03 org.apache.portals.bridges.struts.StrutsPortlet
processRequest
SEVERE: Include exception
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
What means this message??
tks a lot,
Anderson Araújo
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org