Hi David,

Thanks for your advice. I have sent a mail to struts users mailing list.

Here is sample of my struts-config.xml : 

- <struts-config>
- <data-sources>
- <data-source>
  <set-property property="driverClass" value="org.gjt.mm.mysql.Driver" /> 
  <set-property property="url" value="jdbc:mysql://localhost/employes" /> 
  <set-property property="maxCount" value="5" /> 
  <set-property property="minCount" value="1" /> 
  <set-property property="user" value="root" /> 
  <set-property property="password" value="root" /> 
  </data-source>
  </data-sources>
- <form-beans>
  <form-bean name="loginForm" type="com.eyrolles.LoginForm" /> 
  <form-bean name="employeForm" type="com.eyrolles.EmployeForm" /> 
  </form-beans>
- <global-forwards>
  <forward name="login" path="/login.jsp" /> 
  </global-forwards>
- <action-mappings>
- <action path="/Login" type="com.eyrolles.LoginAction" validate="true"
input="/login.jsp" name="loginForm" scope="request">
  <forward name="success" path="/EmployeListe.do" /> 
  </action>
- <action path="/EmployeListe" type="com.eyrolles.EmployeListeAction"
scope="request">
  <set-property property="loginRequired" value="true" /> 
  <forward name="success" path="/employeliste.jsp" /> 
  </action>
- <action path="/Add" type="com.eyrolles.AddEmployeAction"
name="employeForm" scope="request" input="/addemploye.jsp" validate="true">
  <set-property property="loginRequired" value="true" /> 
  <forward name="success" path="/EmployeListe.do" /> 
  <forward name="error" path="/addemploye.jsp" /> 
  </action>
[...]
  </action-mappings>
  <message-resources parameter="com.eyrolles.ApplicationResources" /> 
  </struts-config>

-----Message d'origine-----
De : David Smith [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 7 juin 2006 18:25
À : Tomcat Users List
Objet : Re: struts-config xml file throws a java exception

1. This might be better diagnosed on a struts user list.

2. Could you provide some context for the reference to loginRequired in 
your struts-config.xml?  I'm not familiar with any configuration 
elements or attributes in struts-config.xml named 'loginRequired'.

--David



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to