aspose file tools*
The moose likes Struts and the fly likes Struts2 parameters is coming null in action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 parameters is coming null in action class" Watch "Struts2 parameters is coming null in action class" New topic
Author

Struts2 parameters is coming null in action class

Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 57

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


Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Try the following snippet.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 57
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

Joined: Apr 15, 2008
Posts: 57
Removing Interceptors from Application worked. Does anyone tell me, what's wrong with my Interceptors configuration?

struts.xml



Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 57
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 parameters is coming null in action class