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 Anderson Araujo <aa...@intelinet.com.br> on 2005/06/21 17:43:58 UTC

J2 + Struts + Tiles

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


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