You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bhaarat Sharma <bh...@gmail.com> on 2009/05/12 17:15:13 UTC

default class to forward requests

Is there a default class that we can use in struts.xml that can be used for
just forward request to a new html page.
Basically user clicking a link and going to a new page.  I dont want to make
an execute method that just returns SUCCESS.  Rather there must be some
default class that does that.  I read about it in a struts2 book, however,
dont have that book with me right now for reference.

Does someone know what the class is called?

Re: default class to forward requests

Posted by Suneel <su...@gmail.com>.
You can just leave the class attribute blank. Read this:
http://struts.apache.org/2.1.6/docs/action-configuration.html


On Tue, May 12, 2009 at 10:20 AM, Jim Kiley <jh...@summa-tech.com> wrote:
> It is ActionSupport.
> When you don't have access to a book you may find that you get faster
> results from Google[1] or the introductory documentation[2] than the mailing
> list.
>
> jk
> [1]
> http://www.google.com/search?rlz=1C1GGLS_enUS291US303&sourceid=chrome&ie=UTF-8&q=struts+2+action+class+execute+success+default
> [2]http://struts.apache.org/2.1.6/docs/hello-world.html
>
> On Tue, May 12, 2009 at 11:15 AM, Bhaarat Sharma <bh...@gmail.com>wrote:
>
>> Is there a default class that we can use in struts.xml that can be used for
>> just forward request to a new html page.
>> Basically user clicking a link and going to a new page.  I dont want to
>> make
>> an execute method that just returns SUCCESS.  Rather there must be some
>> default class that does that.  I read about it in a struts2 book, however,
>> dont have that book with me right now for reference.
>>
>> Does someone know what the class is called?
>>
>
>
>
> --
> Jim Kiley
> Senior Technical Consultant | Summa
> [p] 412.258.3346
> http://www.summa-tech.com
>



-- 
Thanks
Suneel

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


Re: default class to forward requests

Posted by Jim Kiley <jh...@summa-tech.com>.
It is ActionSupport.
When you don't have access to a book you may find that you get faster
results from Google[1] or the introductory documentation[2] than the mailing
list.

jk
[1]
http://www.google.com/search?rlz=1C1GGLS_enUS291US303&sourceid=chrome&ie=UTF-8&q=struts+2+action+class+execute+success+default
[2]http://struts.apache.org/2.1.6/docs/hello-world.html

On Tue, May 12, 2009 at 11:15 AM, Bhaarat Sharma <bh...@gmail.com>wrote:

> Is there a default class that we can use in struts.xml that can be used for
> just forward request to a new html page.
> Basically user clicking a link and going to a new page.  I dont want to
> make
> an execute method that just returns SUCCESS.  Rather there must be some
> default class that does that.  I read about it in a struts2 book, however,
> dont have that book with me right now for reference.
>
> Does someone know what the class is called?
>



-- 
Jim Kiley
Senior Technical Consultant | Summa
[p] 412.258.3346
http://www.summa-tech.com