HI ALL,
In my application i am using
struts module concept..
In the Home page I am having two links
1.<html:link forward="Guest" styleClass="linksorangebold">Emergency login</html:link>
2.<html:link forward="NewPatient" styleClass="linksorangebold">Patient registration</html:link>
---------------------
here is my web.xml
------------------
<
servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/pd</param-name>
<param-value>/WEB-INF/struts-pd-config.xml</param-value>
</init-param>
</servlet>
my struts-config.xml
------------------------
<global-forwards>
<forward
name="NewPatient"
path="/switch.do?page=/npregistration.do&prefix=/pd"/>
<forward
name="Guest"
path="emergencylogin.do"/>
</global-forwards>
<action-mappings>
<action
path="/emergencylogin"
parameter="/guestlogin.jsp"
type="org.apache.struts.actions.ForwardAction"/>
<action
path="/switch"
type="org.apache.struts.actions.SwitchAction"/>
</ation-mappings>
-----------------
struts-pd-config.xml
------------------------
<global-forwards>
<forward
name="NewPatient"
path="/patientregistration.jsp"/>
<forward
name="Home"
path="/switch.do?page=/home.do&prefix="/>
</global-forwards>
<action-mappings>
<action
path="/npregistration"
parameter="/patientregistration.jsp"
type="org.apache.struts.actions.ForwardAction"/>
<action
path="/switch"
type="org.apache.struts.actions.SwitchAction"/>
</action-mappings>
-----------------------------------
In home page when i click on emergency login ,emergency login is displayed,and same with the new Patient link.
In the New patient page i v link called
<html:link forward="Home" styleClass="linksorangebold">Home</html:link>
now when i click on Home from the new Patient page,Home page is displayed.
My problem is here,now when i am in home page and again click on emergency login link,following error is showing.
type Status report
message Invalid path /emergencylogin was requested
description The requested resource (Invalid path /emergencylogin was requested) is not available.
url showing in ths way...
http://localhost:8080/mystruts/pd/emergencylogin.do instead of..
http://localhost:8080/mystruts/emergencylogin.do where the misktake is?
All pages are directly benath WEB-INF
Help me out...
Regards
Sreenivas