userService 用户 会员 系统设计 v2 q224 .doc
1. Admin login1
2. 普通用户注册登录2
2.1. <!-- 会员退出登录 -->2
2.2. <!-- 进入会员首页 -->3
2.3. <!-- 进入会员信息 -->3
2.4. <!-- 修改会员密码 -->3
3. 参考4
http://localhost/login!userLogin.ct
http://localhost/login!userLogin.ct
/wxb_site/src/struts.xml
<package name="llj" extends="default">
<!-- 用户登录使用 -->
<action name="login" class="com.csmy.my.center.action.LoginAction" method="userLogin">
<result name="index" type="redirect">/admin</result>
<result name="login">admin/login/login.jsp</result>
<result name="slogin" type="redirect">/admin</result>
<result name="gindex">index.htm</result>
<result name="system">admin/show_system.jsp</result>
</action>
/**
* 用户登录
*
* @return
* @throws G4Exception
*/
public String userLogin() {
<!-- 会员注册使用 -->
<servlet>
<servlet-name>register</servlet-name>
<servlet-class>com.csmy.my.center.util.servlet.UserRegisterServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>register</servlet-name>
<url-pattern>/user/register/*</url-pattern>
</servlet-mapping>
wxb/mregister.jsp
<!-- 会员登录使用 -->
<servlet>
<servlet-name>userlogin</servlet-name>
<servlet-class>com.csmy.my.center.util.servlet.UserLoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>userlogin</servlet-name>
<url-pattern>/user/login</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>loginout</servlet-name>
<servlet-class>com.csmy.my.center.util.servlet.LoginOutServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>loginout</servlet-name>
<url-pattern>/user/logout</url-pattern>
</servlet-mapping>
作者:: 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 ) 汉字名:艾龙, EMAIL:[email protected]
转载请注明来源: http://www.cnblogs.com/attilax/
<servlet>
<servlet-name>userindex</servlet-name>
<servlet-class>com.csmy.my.center.util.servlet.HomeIndex</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>userindex</servlet-name>
<url-pattern>/user/index</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>usersetting</servlet-name>
<servlet-class>com.csmy.my.center.util.servlet.UserSettingServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>usersetting</servlet-name>
<url-pattern>/user/setting</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>changepwd</servlet-name>
<servlet-class>com.csmy.my.center.util.servlet.ChangePwdServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>changepwd</servlet-name>
<url-pattern>/user/reset</url-pattern>
</servlet-mapping>
/atiPlatf_bet/WEB-INF/web.xml