struts:基础问题!!!HTTP Status 503 -
index.jsp
----------------
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:forward page="/Welcome.do" />
---------------------------------
struts-config.xml
-------------------------
<struts-config>
<data-sources />
<form-beans />
<global-exceptions />
<global-forwards >
<forward name="welcome" path="/Welcome.do">
</forward>
</global-forwards>
<action-mappings >
<action type="com.hdtq.login.LoginActionForward" path="/welcome" input="index.jsp" >
<forward name="success" path="/login.jsp"/>
</action>
</action-mappings>
<message-resources parameter="com.hdtq.struts.ApplicationResources" />
</struts-config>
-----------------------------------------------------
LoginActionForward.java
-------------------------------------
package com.hdtq.login;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;
public final class LoginActionForward extends ActionForward {
private static final long serialVersionUID = 5758198285723809770L;
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse res
){
ActionForward forward= new ActionForward();
forward=mapping.findForward("success");
return forward;
}
}
-------------------------------------------
我只想做 当浏览 index.jsp的时候 直接转到 login.jsp
却报503错误,各位大侠帮我看看怎么回事
----------------------------------
HTTP Status 503 - Servlet action is currently unavailable
--------------------------------------------------------------------------------
type Status report
message Servlet action is currently unavailable
description The requested service (Servlet action is currently unavailable) is not currently available.
--------------------------------------------------------------------------------
Apache Tomcat/5.0.28
-------------------------------------