Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2 + interceptor

 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where you are getting null pointer exception exactly, be remember interceptors follow the order how you defined it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic