File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes The requested resource (/ is not available. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "The requested resource (/ is not available." Watch "The requested resource (/ is not available." New topic

The requested resource (/ is not available.

frank yue

Joined: Sep 21, 2013
Posts: 1
Struts1.I have spent half day on it, I searched every solution on the internet, however I still can not solve this problem. The problem is like this:

HTTP Status 404 - /


type Status report

message /

description The requested resource (/ is not available.


Apache Tomcat/6.0.32

The form information in the login page is here:

<form name="ctl00" method="post" action="../" id="ctl00">

Action mapping information:

<action path="/login" type="com.super4.dang.action.LoginAction" name="loginForm">
<forward name="success" path="/WEB-INF/jsp/authorize/login_ok.jsp" contextRelative="true" ></forward>
<forward name="fail" path="/WEB-INF/jsp/authorize/login_form.jsp" contextRelative="true" ></forward>
<forward name="validateCode" path="/WEB-INF/jsp/authorize/register_two.jsp"></forward>

web.xml: <filter>

Thank you so much if any suggestions!
Emanuel Borsoi

Joined: Mar 27, 2012
Posts: 15
The "action" of the form must be the "name" of your action in struts.xml, not the path. Furthermore, you schuld use <s:form> not <form>.
I agree. Here's the link:
subject: The requested resource (/ is not available.
Similar Threads
Newbie : First sample integrating Struts with JSP based project config question.
Getting null pointer Exception
SwitchAction in struts?????
Servlet action is currently unavailable Error When Run My Struts Application