• 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

Struts2 parameters is coming null in action class

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

Action class


struts.xml



And JSP Page (Login.jsp)


web.xml




username & password is always coming null on Action class... Could anyone tell me, what am I missing?

But, the execute() has been executed properly. I am deploying this application on JBoss 5.1.0 and struts2-core-2.3.4.jar has been used


 
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try the following snippet.
 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Mohana.

But, it didn't work. Even, I tried introducing Beans. In that case, beans coming as null.

Even, I tried to give alert before form submit. Javascript Alert came good.



But, still null in Action class.
 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Removing Interceptors from Application worked. Does anyone tell me, what's wrong with my Interceptors configuration?

struts.xml



 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As I found this is a problem with Interceptors, closing this thread.

Please follow below thread....

Struts2 parameters is coming null in action class when using Interceptors
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic