I have a login page after validating the user and password I would like to pass the user to a welcome page to display
WELCOME +user
Here is my Struts-Config.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"
<struts-config>
<!-- ======== Form Bean Definitions =================================== -->
<form-beans>
<form-bean name="LoginForm" type="database.LoginForm"/>
</form-beans>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<!-- Say Hello! -->
<action path = "/Login"
type = "database.LoginAction"
name = "LoginForm"
scope = "request"
validate = "true"
input = "/jsp/Login.jsp" >
<forward name="LoggedIn" path="/jsp/Logged.jsp" />
</action>
</action-mappings>
<!-- ========== Message Resources Definitions =========================== -->
<message-resources parameter="database.ApplicationResources"/>
</struts-config>
Here is the action
with the Find Forward
(mapping.findForward("LoggedIn");
WELCOME +user
Here is my Struts-Config.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"
<struts-config>
<!-- ======== Form Bean Definitions =================================== -->
<form-beans>
<form-bean name="LoginForm" type="database.LoginForm"/>
</form-beans>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<!-- Say Hello! -->
<action path = "/Login"
type = "database.LoginAction"
name = "LoginForm"
scope = "request"
validate = "true"
input = "/jsp/Login.jsp" >
<forward name="LoggedIn" path="/jsp/Logged.jsp" />
</action>
</action-mappings>
<!-- ========== Message Resources Definitions =========================== -->
<message-resources parameter="database.ApplicationResources"/>
</struts-config>
Here is the action
with the Find Forward
(mapping.findForward("LoggedIn");