P
pluto
Hello,
I have a login as follow:
1)my index.jsp link to a login page with 2 text fields for Id and Password
and a submit button
2)when the user click the submit button he back to the index.jsp but lost
all images file
Anyone could tell me why?
TIA
1)<action
path="/viewsignin"
parameter="/security/signin.jsp"
type="org.apache.struts.actions.ForwardAction"
scope="request"
name="loginForm"
validate="false"
input="/index.jsp">
</action>
2)<action
path="/signin"
type="com.mycompany.struts.mydemo.security.LoginAction"
scope="request"
name="loginForm"
validate="true"
input="/security/signin.jsp">
<forward name="Success" path="/action/home"/>
<forward name="Failure" path="/security/signin.jsp" redirect="true"/>
</action>
I have a login as follow:
1)my index.jsp link to a login page with 2 text fields for Id and Password
and a submit button
2)when the user click the submit button he back to the index.jsp but lost
all images file
Anyone could tell me why?
TIA
1)<action
path="/viewsignin"
parameter="/security/signin.jsp"
type="org.apache.struts.actions.ForwardAction"
scope="request"
name="loginForm"
validate="false"
input="/index.jsp">
</action>
2)<action
path="/signin"
type="com.mycompany.struts.mydemo.security.LoginAction"
scope="request"
name="loginForm"
validate="true"
input="/security/signin.jsp">
<forward name="Success" path="/action/home"/>
<forward name="Failure" path="/security/signin.jsp" redirect="true"/>
</action>