File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts2 + interceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 + interceptor" Watch "struts2 + interceptor" New topic
Author

struts2 + interceptor

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi all,
i am using struts2.1.8, JDK 6 and tomcat7
i am getting exception like

my struts.xml is


if i remove the interceptor then everthing works fine, any help would be appreciated.
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi all,
problem is solved partially, it is the order for which i was getting exception, it should be like


but if i use

then its woking fine but when i use

i am getting null pointer exception while updating any record
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

where you are getting null pointer exception exactly, be remember interceptors follow the order how you defined it.


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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts2 + interceptor