You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caroline Jen <ji...@yahoo.com> on 2004/06/17 20:35:43 UTC

Action Mapping in the struts-config.xml When There Is No Form

I often have to call a servlet which extends Action;
but, I do not have a form submitted.

The action mapping in the struts-config.xml gives me
problem when I leave out the 'name' attribute; for
example:

    <action
        roles="administrator,contributor"
        path="/article/Edit"
       
parameter="org.MyOrg.MyProj.article.FindByArticle"
        name="articleForm"  // if this is left out
        scope="request">
       <forward
            name="success"
            path=".article.Form"/>
    </action>

I really do not have a form for this action.  What
should I do?


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

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


Re: Action Mapping in the struts-config.xml When There Is No Form

Posted by Bill Siggelkow <bi...@bellsouth.net>.
Hmmm -- you seem to be missing the "type" attribute that specifies the 
action class.

Caroline Jen wrote:

> I often have to call a servlet which extends Action;
> but, I do not have a form submitted.
> 
> The action mapping in the struts-config.xml gives me
> problem when I leave out the 'name' attribute; for
> example:
> 
>     <action
>         roles="administrator,contributor"
>         path="/article/Edit"
>        
> parameter="org.MyOrg.MyProj.article.FindByArticle"
>         name="articleForm"  // if this is left out
>         scope="request">
>        <forward
>             name="success"
>             path=".article.Form"/>
>     </action>
> 
> I really do not have a form for this action.  What
> should I do?
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail


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