userService 用户 会员 系统设计 v2 q224 .doc
1. Admin login
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() {
2. 普通用户注册登录
<!-- 会员注册使用 -->
<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>
2.1. <!-- 会员退出登录 -->
<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:1466519819@qq.com
转载请注明来源: http://blog.csdn.net/attilax
2.2. <!-- 进入会员首页 -->
<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>
2.3. <!-- 进入会员信息 -->
<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>
2.4. <!-- 修改会员密码 -->
<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>
3. 参考
/atiPlatf_bet/WEB-INF/web.xml