You don't have an Action mapped to the name "delete2"... Either change
your link or change your xwork.xml <action> element so they match.

> -----Original Message-----
> From: remigijus [mailto:[EMAIL PROTECTED] 
> Sent: Monday, December 15, 2003 11:02 AM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] xworks.xml actions mistery
> 
> 
> Ok I have added namespace with value "/admin/category" and 
> changed name of the package to "admin-category" but sitaution 
> is the same as before. edit action works as it has to but on 
> delete action I'm gettinfg exception
> 
> com.opensymphony.xwork.config.ConfigurationException: There 
> is no Action mapped for namespace /admin/category and action 
> name delete2
>       at 
> com.opensymphony.xwork.DefaultActionProxy.(DefaultActionProxy.java:73)
>       at 
> com.opensymphony.xwork.DefaultActionProxyFactory.createActionP
> roxy(DefaultAc
> tionProxyFactory.java:40)  Any other suggestions.
> 
> now my package looks as follows.
>     <package name="admin-category" extends="webwork-default" 
> namespace="/admin/category">
>         <action name="delete" 
> class="lt.akmila.admin.category.DeleteCategoryAction">
>             <result name="success" type="dispatcher">
>                 <param 
> name="location">/admin/category/index.jsp</param>
>             </result>
>             <result name="error" type="dispatcher">
>                 <param 
> name="location">/admin/category/delete.jsp</param>
>             </result>
> 
>             <interceptor-ref name="defaultStack"/>
>             <interceptor-ref name="validation"/>
>             <interceptor-ref name="workflow"/>
>         </action>
> 
>         <action name="add" 
> class="lt.akmila.admin.category.AddCategoryAction">
>             <result name="success" type="dispatcher">
>                 <param 
> name="location">/admin/category/index.jsp</param>
>             </result>
>             <result name="error" type="dispatcher">
>                 <param name="location">/admin/category/add.jsp</param>
>             </result>
> 
>             <interceptor-ref name="defaultStack"/>
>             <interceptor-ref name="validation"/>
>             <interceptor-ref name="workflow"/>
>         </action>
> 
>         <action name="edit" 
> class="lt.akmila.admin.category.EditCategoryAction">
>             <result name="success" type="dispatcher">
>                 <param 
> name="location">/admin/category/index.jsp</param>
>             </result>
>             <result name="error" type="dispatcher">
>                 <param 
> name="location">/admin/category/edit.jsp</param>
>             </result>
>             <result name="input" type="dispatcher">
>                 <param 
> name="location">/admin/category/edit.jsp</param>
>             </result>
> 
>             <interceptor-ref name="defaultStack"/>
>             <interceptor-ref name="validation"/>
>             <interceptor-ref name="workflow"/>
>         </action>
>     </package>
> 
> 
> ----- Original Message -----
> From: "Jonas Eriksson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 15, 2003 5:31 PM
> Subject: Re: [OS-webwork] (no subject)
> 
> 
> > I think the name of a package is just a "name", with no 
> other meaning 
> > outside the xwork.xml. You need to set the 
> namespace="/admin/category" 
> > if you want to use an action like /admin/category/foo.action
> >
> > Have you tried that?
> >
> > Jonas
> >
> > remigijus wrote:
> > > Hi
> > >
> > > I have some strange problems related with action 
> packages. I'm trying to
> > > use a package lik this     <package name="admin/category"
> > > extends="webwork-default"> and having some strange problems. Some 
> > > actions from the package works as expected, but on some I 
> getting a
> message
> > >
> > >
> > > com.opensymphony.xwork.config.ConfigurationException: There is no 
> > > Action
> mapped for namespace /admin/category and action name delete
> > > at
> com.opensymphony.xwork.DefaultActionProxy.(DefaultActionProxy.java:73)
> > >
> > >
> > > Maybe I do somthing wrong. Does anybody can give some 
> sugesstions or 
> > > a link to some docs related with xwork.xml file for packages.
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program. Does 
> > SourceForge.net help you be more productive?  Does it help 
> you create 
> > better code?  SHARE THE LOVE, and help us help YOU!  Click Here: 
> > http://sourceforge.net/donate/ 
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program. 
> Does SourceForge.net help you be more productive?  Does it 
> help you create better code?  SHARE THE LOVE, and help us 
> help YOU!  Click Here: http://sourceforge.net/donate/ 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to