File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sami pradh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Dawn Charangat
Ranch Hand
Posts: 249
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a link?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic