my dog learned polymorphism
The moose likes Struts and the fly likes JSP unable to find Struts2 action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSP unable to find Struts2 action" Watch "JSP unable to find Struts2 action" New topic

JSP unable to find Struts2 action

Abhilash Chander
Ranch Hand

Joined: Oct 18, 2009
Posts: 39
Hi All,

I use resin 3.0.25 web server for my application. Earlier application's context path was "/myApp". But now I have deployed it as ROOT, So I changed the context path to "". I have an index.jsp which is the welcome page of the application and it does nothing except for redirecting to my struts 2 action. When the context path was "myApp" everything was fine but now that I have changed it to "", index.jsp page gets called but redirection fails as application is unable to find struts 2 action and throws an HTTP 404 not found error. Please help

David Newton

Joined: Sep 29, 2008
Posts: 12617

But... how can we help without seeing the code that's doing the redirect?
I agree. Here's the link:
subject: JSP unable to find Struts2 action
It's not a secret anymore!