HTTP Status 400 - Invalid path /Admin/Admin/login was requested--------------------------------------------------------------------------------type Status reportmessage Invalid path /Admin/Admin/login was requesteddescription The request sent by the client was syntactically incorrect (Invalid path /Admin/Admin/login was requested).
--------------------------------------------------------------------------------Apache Tomcat/6.0.30
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"><struts-config>
  <data-sources />
  
  <form-beans >
   <form-bean name="LoginForm" type="com.jar.user.form.LoginForm"></form-bean>
  </form-beans>
  
  <global-exceptions />
  
  <global-forwards>
  
  </global-forwards>
  
  <action-mappings>
   <action name="LoginForm" 
   path="/login" 
   scope="request" 
   input="Admin/Admin/login.jsp" 
   type="com.jar.user.action.LoginAction">
   <forward name="success" path="Admin/Admin/success.jsp"></forward>
   <forward name="error" path="Admin/Admin/error.jsp"></forward>
   </action>
  </action-mappings>
  
  <message-resources parameter="com.yourcompany.struts.ApplicationResources" />
</struts-config>
<FORM name="form" action="login.do" method="POST">

解决方案 »

  1.   

    /Admin/Admin/login这路径一看就诡异 是不是写多了Admin
      

  2.   

    页面路径写的有问题吧,路径写成${pageContext.request.contextPath}/应用名/login.do试试
      

  3.   

    <FORM name="form" action="/login" method="POST">
      

  4.   

    <FORM name="form" action="/login.do" method="POST">
      

  5.   

    地址栏的路径:http://192.168.1.117:8080/persistence/Admin/Admin/login.jsp
      

  6.   

    Admin/Admin/login.jsp你这个文件位置没搞错吧?干嘛搞两个Admin?
      

  7.   

    rqeuest.getContextPath()/路径名/xxx.jsp
      

  8.   

    input="Admin/Admin/login.jsp"  是不是这个错了??
      

  9.   

     input="Admin/Admin/login.jsp"