• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts taglib Help

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic