File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 + interceptor" Watch "struts2 + interceptor" New topic

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:
subject: struts2 + interceptor
It's not a secret anymore!