wood burning stoves 2.0
The moose likes Struts and the fly likes Struts Without Form Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Without Form Bean" Watch "Struts Without Form Bean" New topic

Struts Without Form Bean

murali kankanala
Ranch Hand

Joined: Nov 15, 2004
Posts: 110
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.

Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105

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.


I use netbeans IDE6.7.1

Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
subject: Struts Without Form Bean