• 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 Without Form Bean

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

Could you please suggest me what to do when i dont want a formbean in an action class,
<action path="/LoginExceptionTest" scope="session" type="com.training.struts.day4.LoginExceptionTestAction" name="ExceptionTestBean">

If i dont give something like name="ExceptionTestBean" in <action... then its giving me form bean is null.


appreciate your help.


thanks,
Krishna>
 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Jsp page must have form bean and action class ( struts projects). I am not sure about this.

So i want to share one example to you.

i create simple login project.

I use three files are login.jsp , LoginSuccess.jsp and LoginFaliure.jsp.
If successfully login then go to LoginSuccess.jsp. Otherwise LoginFaliure.jsp.

Just validate the username and password in LoginAction.do file.

Here i write code for config.xml file. I think its useful for you.


struts-config.xml


I use netbeans IDE6.7.1


 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic