• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

The requested resource (/login.do) is not available.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 - /login.do

--------------------------------------------------------------------------------

type Status report

message /login.do

description The requested resource (/login.do) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.32

The form information in the login page is here:

<form name="ctl00" method="post" action="../login.do" 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>
</action>

web.xml: <filter>
<filter-name>ActionFilter</filter-name>
<filter-class>com.super4.dang.action.ActionFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ActionFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

Thank you so much if any suggestions!
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>.
 
frank yue
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic