一个低级问题
图片在这里http://photo.sina.com.cn/u/1244587134
应该一看就懂 用struts写的登陆 
第一张登陆页面的地址是http://localhost:8080/app/Reg.jsp
一点提交后成了 http://localhost:8080/regReg.jsp的代码:<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><html>
  <head>
    <title>My JSP 'Reg.jsp' starting page</title>
  </head>
  <body>
     <form action="/reg" method="post">
     用户名<input type="text" name="username"><br>
     密码<input type="password" name="password1"><br>
     密码2<input type="password" name="password2"><br>
     <input type="submit" value="dijiao"><br>
     </form>
  </body>
</html>struts-config.xml代码:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config>
  <data-sources />
  <form-beans>
  <form-bean name="RegisterForm" type="app.RegisterForm"></form-bean>
  </form-beans>
  <global-exceptions />
  <global-forwards />
  <action-mappings >
  <action
      attribute="RegisterForm"
      input="/Reg.jsp"
      name="RegisterForm"
      path="/reg"
      scope="request"
      type="app.RegisterAction"
      validate="false">
      <forward name="success" path="/success.jsp" />
      <forward name="failure" path="/failure.jsp" />
    </action>
  
  </action-mappings>
  <message-resources parameter="com.yourcompany.struts.ApplicationResources" />
</struts-config>