You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Khalid K." <gr...@maikada.com> on 2002/12/06 01:14:38 UTC

Re: Forwarding to dynamic action

If you want to use mapping.findForwrad("actionName"),

you have to put the following entry in your struts-config.xml file:

<action-mappings>
    <action                    path="/actionName"
                                    type="packgename.actionNameAction"
                                    scope="request">
      <forward                name="actionName"
path="/etc/actionName.jsp" />
   </action>
</action-mappings>

Good Luck

Khalid


----- Original Message -----
From: "Markus Pedratscher (WebBS)" <ma...@webbs.tv>
To: <st...@jakarta.apache.org>
Sent: Thursday, December 05, 2002 11:15 PM
Subject: Forwarding to dynamic action


> Hi,
> I am struggling with an action forward problem.
>
> My application has a baseAction which is the parent of some of my actions.
> It checks if a user is logged in. If the user is logged it the child
action
> is executed.
>
> If the user is not logged in it takes the user to the login form. For now
I
> store the originally requested action, i.e. I store
request.getServletPath()
> + "?" + request.getQueryString() in a session variable (not good I know)
and
> if the login is successfull I want to take the user back to the originally
> requestd action. I don't want to use forwards to do this as I would have
to
> list all my secure pages in struts-config (global or action forwards).
>
> What I want to do it to 'redirect' the user from one Action to another
> Action by using something like
'mapping.findForward("/myAction.do?x=y&u-r")
> from within my loginAction.
>
> Any ideas on how to do that with struts or a workaround?
>
> Thanks for your help.
> Markus
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Xdoclet and Struts

Posted by "Jack R." <ra...@hotmail.com>.
Thanks for your feedback. If we use xdoclet and struts, is it possible for
me NOT to edit/create the struts-config file for both struts 1.0 and 1.1? It
kind of beat the purpose of using xdoclet if we need to manually add/change
the struts-cofig file after it is generated by xdoclet.

Thank you.


----- Original Message -----
From: "Emil Korladinov" <ve...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, December 06, 2002 3:33 AM
Subject: Re: Xdoclet and Struts


> --- "Jack R." <ra...@hotmail.com> wrote:
> > Is it a good practice to use xdoclet to generate
> > Struts config file? Or it
> > is not a good idea at all?
> >
> > I know there are GUI tool to edit struts config
> > file. But I would think it
> > will be easier to have the struts config file auto
> > generate by xdoclet tag
> > in my struts Form, Action files.
> >
> > Thanks for any suggestion.
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Xdoclet and Struts

Posted by Emil Korladinov <ve...@yahoo.com>.
--- "Jack R." <ra...@hotmail.com> wrote:
> Is it a good practice to use xdoclet to generate
> Struts config file? Or it
> is not a good idea at all?
> 
> I know there are GUI tool to edit struts config
> file. But I would think it
> will be easier to have the struts config file auto
> generate by xdoclet tag
> in my struts Form, Action files.
> 
> Thanks for any suggestion.
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Xdoclet and Struts

Posted by Slava_L <lo...@esstu.ru>.
well is seems that u generate xml from another xml
i thinl xDoclet very usefull for EJB code generation
----- Original Message -----
From: "tek1" <te...@pobox.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Monday, December 09, 2002 7:38 PM
Subject: Re: Xdoclet and Struts


> no.
>
> check out xdoclet at:
>
> http://xdoclet.sourceforge.net/
> http://sourceforge.net/projects/xdoclet
>
>
>
> At 17:00 02/12/09 +0800, you wrote:
> >Could u plz describe wut exactly u generate
> >Do u have to manualy edit somethin' after generation ? coz' if u do, then
it
> >is worthless
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Xdoclet and Struts

Posted by tek1 <te...@pobox.com>.
no.

check out xdoclet at:

http://xdoclet.sourceforge.net/
http://sourceforge.net/projects/xdoclet



At 17:00 02/12/09 +0800, you wrote:
>Could u plz describe wut exactly u generate
>Do u have to manualy edit somethin' after generation ? coz' if u do, then it
>is worthless


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Xdoclet and Struts

Posted by Slava_L <lo...@esstu.ru>.
Could u plz describe wut exactly u generate
Do u have to manualy edit somethin' after generation ? coz' if u do, then it
is worthless

----- Original Message -----
From: "Emil Korladinov" <ve...@yahoo.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, December 06, 2002 5:36 PM
Subject: Re: Xdoclet and Struts


> --- "Jack R." <ra...@hotmail.com> wrote:
> > Is it a good practice to use xdoclet to generate
> > Struts config file? Or it
> > is not a good idea at all?
> >
> > I know there are GUI tool to edit struts config
> > file. But I would think it
> > will be easier to have the struts config file auto
> > generate by xdoclet tag
> > in my struts Form, Action files.
> >
> > Thanks for any suggestion.
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> Hello,
>
> IHMO it is very good idea to use xdoclet for
> generation of struts config file. I'm using a slightly
> modified version of xdoclet 1.1 for this purpose and
> it works fine.
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Xdoclet and Struts

Posted by Emil Korladinov <ve...@yahoo.com>.
--- "Jack R." <ra...@hotmail.com> wrote:
> Is it a good practice to use xdoclet to generate
> Struts config file? Or it
> is not a good idea at all?
> 
> I know there are GUI tool to edit struts config
> file. But I would think it
> will be easier to have the struts config file auto
> generate by xdoclet tag
> in my struts Form, Action files.
> 
> Thanks for any suggestion.
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
Hello,

IHMO it is very good idea to use xdoclet for
generation of struts config file. I'm using a slightly
modified version of xdoclet 1.1 for this purpose and
it works fine.



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Xdoclet and Struts

Posted by "Jack R." <ra...@hotmail.com>.
Is it a good practice to use xdoclet to generate Struts config file? Or it
is not a good idea at all?

I know there are GUI tool to edit struts config file. But I would think it
will be easier to have the struts config file auto generate by xdoclet tag
in my struts Form, Action files.

Thanks for any suggestion.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>