Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: S2 - Error when I use include in struts.xml

Don Brown

2007-01-31

Replies:

Sounds right. Package "B" could be put in file-C.xml, as long as it
is file-A.xml that is importing it.

Don

On 1/29/07, Alexandre Mendonça Lima <alexandre.lima@(protected):
> Hello,
>
> In the struts2-showcase application, I see the includes in struts.xml
> working very well. Then, I gone to hack the source code to try understand
> how this works.
> My conclusions are:
> 1) If a package 'A' extends 'struts-default', then it can be put in a
> file-A.xml ;
> 2) If a package 'B' extends 'A', then it only can be put in file-A.xml (if I
> put in file-B.xml, I'll catch a error);
> 3) If a package 'B' extends 'struts-default', then it can be put in a
> file-B.xml .
>
> I would like to know if my conclusions are right. Anyone else?
>
> Thanks,
>
> Alexandre Lima
>
> ----- Original Message -----
> From: "Alexandre Mendonça Lima" <alexandre.lima@(protected)>
> To: "Struts Users Mailing List" <user@(protected)>
> Sent: Friday, January 26, 2007 4:18 PM
> Subject: S2 - Error when I use include in struts.xml
>
>
> > Hello,
> >
> > When I use tag include in my struts.xml, I get a error on startup of my
> > application.
> >
> > My struts.xml file is:
> > <struts>
> > <package name="jsime-default" extends="struts-default">
> >   <!-- ommited -->
> > </package>
> > <include file="struts-controleAcesso.xml"/>
> > </struts>
> >
> > My struts-controleAcesso.xml is:
> > <struts>
> > <package name="jsime-controleAcesso" extends="jsime-default">
> >   <action name="Usuario_*"
> > class="embasa.jsime.view.action.controleAcesso.UsuarioAction"
> > method="{1}">
> >     <result
> > name="success">/pages/ControleAcessoUsuarioListagem.jsp</result>
> >     <result
> > name="input">/pages/ControleAcessoUsuarioCadastro.jsp</result>
> >   </action>
> > </package>
> > </struts>
> >
> > The error that I catched in console is:
> > SEVERE: Exception starting filter struts2
> > Error building results for action Usuario_* in namespace - action -
> > file:/F:/Alexandre/Sistemas/eclipseworkspace/JSIME/WEB-INF/classes/struts-controleAcesso.xml:8:99
> >
> > Anyone know what is, please?
> >
> > Thanks,
> >
> > Alexandre Lima
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.