Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Debugging Struts.

 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I was looking into an issue with my application, one of my filters was not working, which was rendering the 500.jsp with no logs. So to turn on debugging, I added the devMode to true in one of the struts, but after that my who application stopped working. By stopped working i mean that, the struts forwards are not working anymore. Could you please let me know if there are any additional config that I need to do?



My application is a mix for struts 1.1 and struts 2.0, by the way.
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, what it's doing when it should forward and put the logger level in debug mode and identify the problem.
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rather than going to the details.. I must first start by saying, that the main issue is with the servlet context.

/xxx/xxx/URL works and eventually forwards to /xxx/URL.

Directly hitting the /xxx/URL does not.
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it's problem with namespace, you have to specify the same space. If my consideration is correct you should get action not found error. NameSpace Configuration.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic