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" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to