You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Robert Taylor <rt...@mulework.com> on 2003/05/06 16:25:55 UTC
RE: "include" Attribute of action tag
It sounds like you want the type of presenation functionality offered
by "portal" type applications.
I think you will need to use Tiles for this (I could be wrong).
It allows you to build a view using both static content and
content generated as a result of some process (Servlet, Action, etc...).
You can find more information about Tiles here:
http://www.lifl.fr/~dumoulin/tiles/
HTH,
robert
> -----Original Message-----
> From: Niket Anand [mailto:niket@noida.manystreams.com]
> Sent: Tuesday, May 06, 2003 7:27 PM
> To: Struts Users Mailing List
> Subject: "include" Attribute of action tag
>
>
> Hello All,
> I want to know how can I use or in which scenario can I use "include"
> attribute in action tag..
> Lets take a case.
> I request for a URL http://localhost/struts-examples/test and I
> want final
> output in testResult.jsp but before that I need to include a
> TestSevlet(that
> would generate some kind of presentation) that should be configured in
> struts-config.xml.
> In struts-config.xml, I have
> <action-mappings>
> <action path="/test"
> type="com.foo.testAction"
> name="TestForm"
> scope="request"
> validate="false">
> <forward name="success" path="/testServlet"/>
> </action>
>
> <action path="/testServlet" include="/TestServlet.fo">//mapping os
> servlet can be done in web.xml
>
> //NOW HOW TO GO TO testResult.jsp with action tag as
> <action path="/testResult"
> type="com.foo.testFinalAction"
> name="TestForm"
> scope="request"
> validate="false">
> <forward name="success" path="/testResult.jsp"/>
> </action>
>
> </action-mappings>
>
> Please help me, I am waiting for your suggestions.
>
> Thanks,
> Niket
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: "include" Attribute of action tag
Posted by Niket Anand <ni...@noida.manystreams.com>.
Thanks Robert
----- Original Message -----
From: "Robert Taylor" <rt...@mulework.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, May 06, 2003 10:25 AM
Subject: RE: "include" Attribute of action tag
> It sounds like you want the type of presenation functionality offered
> by "portal" type applications.
>
> I think you will need to use Tiles for this (I could be wrong).
> It allows you to build a view using both static content and
> content generated as a result of some process (Servlet, Action, etc...).
>
> You can find more information about Tiles here:
> http://www.lifl.fr/~dumoulin/tiles/
>
>
> HTH,
>
> robert
>
>
>
> > -----Original Message-----
> > From: Niket Anand [mailto:niket@noida.manystreams.com]
> > Sent: Tuesday, May 06, 2003 7:27 PM
> > To: Struts Users Mailing List
> > Subject: "include" Attribute of action tag
> >
> >
> > Hello All,
> > I want to know how can I use or in which scenario can I use "include"
> > attribute in action tag..
> > Lets take a case.
> > I request for a URL http://localhost/struts-examples/test and I
> > want final
> > output in testResult.jsp but before that I need to include a
> > TestSevlet(that
> > would generate some kind of presentation) that should be configured in
> > struts-config.xml.
> > In struts-config.xml, I have
> > <action-mappings>
> > <action path="/test"
> > type="com.foo.testAction"
> > name="TestForm"
> > scope="request"
> > validate="false">
> > <forward name="success" path="/testServlet"/>
> > </action>
> >
> > <action path="/testServlet" include="/TestServlet.fo">//mapping os
> > servlet can be done in web.xml
> >
> > //NOW HOW TO GO TO testResult.jsp with action tag as
> > <action path="/testResult"
> > type="com.foo.testFinalAction"
> > name="TestForm"
> > scope="request"
> > validate="false">
> > <forward name="success" path="/testResult.jsp"/>
> > </action>
> >
> > </action-mappings>
> >
> > Please help me, I am waiting for your suggestions.
> >
> > Thanks,
> > Niket
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org