aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
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: 56
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: 56
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 404 error in uploading the file
Interceptor messes up action class in Struts2
Http Server 404
Issue configuring global results
Struts2 parameters is coming null in action class