This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 parameters is coming null in action class when using Interceptors Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts2 parameters is coming null in action class when using Interceptors" Watch "Struts2 parameters is coming null in action class when using Interceptors" New topic
Author

Struts2 parameters is coming null in action class when using Interceptors

Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 55
Hi,

When I am using Interceptors, the values on Action class coming as null. I have removed the Interceptors, the values coming perfect from the JSP page.

Login.jsp



LoginAction.java

web.xml


struts.xml (working version)



struts.xml (Notworking version )


AuthenticationInterceptor.java


Logs statements (both cases)



Any suggestions?
Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 55
Fixed this issue by including default Interceptors.



struts.xml


Hope this helps, you all.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 parameters is coming null in action class when using Interceptors
 
Similar Threads
Http Server 404
Issue configuring global results
http 404 error in uploading the file
Struts2 parameters is coming null in action class
Interceptor messes up action class in Struts2