my dog learned polymorphism*
The moose likes Struts and the fly likes  (with out using form bean can i enter action class) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " (with out using form bean can i enter action class)" Watch " (with out using form bean can i enter action class)" New topic
Author

(with out using form bean can i enter action class)

sami pradh
Greenhorn

Joined: May 28, 2009
Posts: 2
hi
i am new to struts . in my application i faced a problem . i have login page .For this i have corresponding action class & action form .after successfully it shows the desired output. in my result scrren there is one logout button where i am calling Logout Action class without any actin form .after deploying it shows error saying form bean return null value. why this??? can any one explain . in struts config for logout class i am not mentiong any form bean name

Thanks in advance
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Hi Sami, welcome to javaranch.

Can you please post the related source of the struts-config.xml file so that we can see what's going wrong as what you want can definitely be done...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
In your jsp page, if you have a <html:form>, then, even if you haven't mentioned formbean name in action class declaration, struts will still expect a form bean. If you are sure you will not be using a form bean, then remove the <html:form>...</html:form> stuff from your jsp, and things will work alright
sami pradh
Greenhorn

Joined: May 28, 2009
Posts: 2
ya right Dawn Charangat

but i want to enter to another action class . so how can i do this without using <html:form>...</html:form>
please tell me
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Use a link?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: (with out using form bean can i enter action class)
 
Similar Threads
Defining form bean in 1 struts-config and action in another struts-config..
Putting my head into Strurts....
Defining form bean in 1 struts-config and action in another struts-config..
Each Time The Server Restarts, The Browser Does Not Display The Welcome Page
Exception creating bean of class