• 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

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use a link?
 
reply
    Bookmark Topic Watch Topic
  • New Topic