hi,
In my
struts Applicaiotn,i am using two bean classes,one is for existing user another for new user.its for assumption only,i am not using any database. When existing user try to login it forward one result page(EmpAdmin.jsp) there,i am getting his name from "loginForm" bean.
if user try to login using new user registration,i am getting registration details from another bean,after its success,i am forwarding to same result page(EmpAdmin.jsp).
here the problem is when i try to login using existing user, other bean values are getting null,also its displaying null values in result jsp.So
how to hide from existing user. i have attatched code snippet for
struts-config.xml
<action path="/gotoEmpAdmin"
type="com.emp.AdminUserAction"
name="loginForm">
<forward name="home" path="/index.jsp"/>
<forward name="success" path="/jsp/EmpAdmin.jsp"/>
</action>
<action path="/goNewUser"
type="com.emp.NewUserAction">
<forward name="success" path="/jsp/NewUserFormData.jsp"/>
</action>
<action path="/processNewUser"
type="com.emp.ProcessNewUserAction"
name="newuserForm">
<forward name="success" path="/jsp/EmpAdmin.jsp"/>
<forward name="failure" path="/jsp/NewUserFormData.jsp"/>
</action>