I have multiple user types in my application and for each such user type I intend to keep one specific struts-config.xml file.
In my web.xml, I have declared them as ... <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-default.xml</param-value> </init-param> <init-param> <param-name>config/agents</param-name> <param-value>/WEB-INF/struts-agents.xml</param-value> </init-param> My application starts with the default struts file that’s the first one. In the given start up page, there is a login panel where the username and password is accepted. The users are unique and based on the user type if it is of "agent" type, the agents module take up. My struts-default.xml file looks as below ... <struts-config> <data-sources/> <form-beans> <form-bean name="PortalHomeForm" type="com.osl.forms.staticcontent.PortalHomeForm" /> </form-beans> <global-exceptions/> <global-forwards/> <action-mappings> <action path="/PortalHome" type="com.osl.action.staticcontent.PortalHome" name="PortalHomeForm" scope="request" validate="false"> <forward name="default" path="/application/staticcontent/index.jsp"></forward> <forward name="failure" path="/application/staticcontent/index.jsp"></forward> <forward name="agentlogin" path="/agents/AgentHome.do"></forward> </action> </action-mappings> <message-resources parameter="com.osl.resources.ApplicationResources"/> <controller/> </struts-config> Based on this I am able to move to the agent module and display the relevant pages. I have a logout button, clicking which the user should be taken back to the start up page with login panel after completing the necessary tasks. My struts-agents.xml looks as below ... <struts-config> <data-sources/> <form-beans> <form-bean name="AgentHomeForm" type="com.osl.forms.agentcontent.AgentHomeForm" /> </form-beans> <global-exceptions/> <global-forwards/> <action-mappings> <action path="/AgentHome" type="com.osl.action.agentcontent.AgentHome" name="AgentHomeForm" scope="request" validate="false"> <forward name="default" path="/config/PortalHome.do"></forward> <forward name="agenthome" path="/../application/agentcontent/index.jsp"></forward> </action> </action-mappings> <message-resources parameter="com.osl.resources.ApplicationResources"/> <controller/> </struts-config> But this logout thing is not working in the sense that I am unable to get back to the start up page and even before the server is started fully it is showing the message --- The content of element type "struts-config" must match "(display-name?,description?,data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)". Pls treat this as SOS. Additional info: I am using JBoss server and struts 1.2 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org