Re: tiles ForwardAction
Janne Mattila wrote: Hmmm, I thought that you could use Struts just fine even if you did not use Tiles at all? Of course you can. You can also use Tiles without Struts. Nothing to see here. Just move along. LOL Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles ForwardAction
Hmmm, I thought that you could use Struts just fine even if you did not use Tiles at all? From: Michael McGrady <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: tiles ForwardAction Date: Thu, 09 Sep 2004 00:01:26 -0700 McGuire you are a hoot! I did not mean the only way to forward was to forward to a Tiles definition. That would be really stupid and really wrong. Notice I said that this is "the only way you can get to a page"? Building a response is not getting to a page at all so that hardly counts. I know you can build a response. That was not the issue. I am NOT going to let your "Wrong" be right! LOL Michael [EMAIL PROTECTED] wrote: Sorry I made a mistake. I should have written this way: --- Wrong, you can ALSO (besides a Tiles definition) forward to a JSP page or to a servlet (used in StrutsCX) or to another action or to nothing at all (e.g. if you build the HttpServletResponse manually). --- That is, you can build the response without forwarding to another servlet/JSP/etc. Notice that the HttoServletResponse is passed through a parameter in the "execute" method of Action. Sorry again Ciao Antonio Petrelli Michael McGrady wrote: [EMAIL PROTECTED] wrote: Hello, is ther any way I can forward to a tile-definition? That is the only way you can ever get to a page at all in Struts, so the answer has to be "Yes". Wrong, you can forward to a JSP page or to a servlet (used in StrutsCX) or to another action or to nothing at all (e.g. if you build the HttpRequest manually). Ciao Antonio Petrelli I do suspect that, when you build the HttpServletRequest manually, you are not doing so with Struts. Can you please tell me how building an HttpServletRequest manually is doing it "in Struts"? Ciao3! Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles ForwardAction
McGuire you are a hoot! I did not mean the only way to forward was to forward to a Tiles definition. That would be really stupid and really wrong. Notice I said that this is "the only way you can get to a page"? Building a response is not getting to a page at all so that hardly counts. I know you can build a response. That was not the issue. I am NOT going to let your "Wrong" be right! LOL Michael [EMAIL PROTECTED] wrote: Sorry I made a mistake. I should have written this way: --- Wrong, you can ALSO (besides a Tiles definition) forward to a JSP page or to a servlet (used in StrutsCX) or to another action or to nothing at all (e.g. if you build the HttpServletResponse manually). --- That is, you can build the response without forwarding to another servlet/JSP/etc. Notice that the HttoServletResponse is passed through a parameter in the "execute" method of Action. Sorry again Ciao Antonio Petrelli Michael McGrady wrote: [EMAIL PROTECTED] wrote: Hello, is ther any way I can forward to a tile-definition? That is the only way you can ever get to a page at all in Struts, so the answer has to be "Yes". Wrong, you can forward to a JSP page or to a servlet (used in StrutsCX) or to another action or to nothing at all (e.g. if you build the HttpRequest manually). Ciao Antonio Petrelli I do suspect that, when you build the HttpServletRequest manually, you are not doing so with Struts. Can you please tell me how building an HttpServletRequest manually is doing it "in Struts"? Ciao3! Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles ForwardAction
Sorry I made a mistake. I should have written this way: --- Wrong, you can ALSO (besides a Tiles definition) forward to a JSP page or to a servlet (used in StrutsCX) or to another action or to nothing at all (e.g. if you build the HttpServletResponse manually). --- That is, you can build the response without forwarding to another servlet/JSP/etc. Notice that the HttoServletResponse is passed through a parameter in the "execute" method of Action. Sorry again Ciao Antonio Petrelli Michael McGrady wrote: > [EMAIL PROTECTED] wrote: > > Hello, > > is ther any way I can forward to a tile-definition? > > >>> >>> That is the only way you can ever get to a page at all in Struts, so the >>> >> >> answer has to be "Yes". >> >> Wrong, you can forward to a JSP page or to a servlet (used in StrutsCX) or >> to another action or to nothing at all (e.g. if you build the HttpRequest >> manually). >> Ciao >> Antonio Petrelli >> > > I do suspect that, when you build the HttpServletRequest manually, you are not doing so with Struts. Can you please tell me how building an HttpServletRequest manually is doing it "in Struts"? Ciao3! > > Michael > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles ForwardAction
[EMAIL PROTECTED] wrote: Hello, is ther any way I can forward to a tile-definition? That is the only way you can ever get to a page at all in Struts, so the answer has to be "Yes". Wrong, you can forward to a JSP page or to a servlet (used in StrutsCX) or to another action or to nothing at all (e.g. if you build the HttpRequest manually). Ciao Antonio Petrelli I do suspect that, when you build the HttpServletRequest manually, you are not doing so with Struts. Can you please tell me how building an HttpServletRequest manually is doing it "in Struts"? Ciao3! Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles ForwardAction
[EMAIL PROTECTED] wrote: Hello, is ther any way I can forward to a tile-definition? That is the only way you can ever get to a page at all in Struts, so the answer has to be "Yes". Wrong, you can forward to a JSP page or to a servlet (used in StrutsCX) or to another action or to nothing at all (e.g. if you build the HttpRequest manually). Ciao Antonio Petrelli You mean that you build the HttpServletRequest manually on the client as a hack? Please give an example, for example. Ciao2! Michael McGrady - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles ForwardAction
One note about tiles is that you cannot redirect to a tiles-definition since it's not a valid URI. The usual way to get around that is to create an ActionMapping that uses a ForwardAction and pass the tiles definition as your parameter. -Yves-. On Wed, 8 Sep 2004 08:28:21 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>> Hello, > >>> > >>> is ther any way I can forward to a tile-definition? > >>> > > > > > > That is the only way you can ever get to a page at all in Struts, so the > answer has to be "Yes". > > Wrong, you can forward to a JSP page or to a servlet (used in StrutsCX) or > to another action or to nothing at all (e.g. if you build the HttpRequest > manually). > Ciao > Antonio Petrelli > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- For me to poop on! http://www.formetopoopon.com http://www.nbc.com/nbc/Late_Night_with_Conan_O'Brien/video/triumph.shtml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles ForwardAction
>>> Hello, >>> >>> is ther any way I can forward to a tile-definition? >>> > > > That is the only way you can ever get to a page at all in Struts, so the answer has to be "Yes". Wrong, you can forward to a JSP page or to a servlet (used in StrutsCX) or to another action or to nothing at all (e.g. if you build the HttpRequest manually). Ciao Antonio Petrelli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles ForwardAction
[EMAIL PROTECTED] wrote: Sure you can, but you have to satisfy some requirements: 1) Use the Tiles controller instead of standard Struts controller, i.e. in your struts-config.xml you must specify: processorClass="org.apache.struts.tiles.TilesRequestProcessor"/> but I think you already did it because you are using Tiles :-P When you use the Tiles plugin, you get this automagically. 2) Have a elements in your struts-config.xml, either global or local to the action mapping that has as a path the needed Tiles definition. 3) Do an "actionMapping.findforward" to the forward specified in point 2. I use it a lot in my projects. Ciao Antonio Michael Kastner wrote: Hello, is ther any way I can forward to a tile-definition? That is the only way you can ever get to a page at all in Struts, so the answer has to be "Yes". Greetings Michael Kastner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles ForwardAction
Sure you can, but you have to satisfy some requirements: 1) Use the Tiles controller instead of standard Struts controller, i.e. in your struts-config.xml you must specify: but I think you already did it because you are using Tiles :-P 2) Have a elements in your struts-config.xml, either global or local to the action mapping that has as a path the needed Tiles definition. 3) Do an "actionMapping.findforward" to the forward specified in point 2. I use it a lot in my projects. Ciao Antonio Michael Kastner wrote: > Hello, > > is ther any way I can forward to a tile-definition? > > Greetings > > Michael Kastner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tiles ForwardAction
Hello, is ther any way I can forward to a tile-definition? Greetings Michael Kastner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]