⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usermanagepasswordedittag.java

📁 本代码是一个权限管理系统源代码
💻 JAVA
字号:
/**
 * 
 */
package com.seavision.PermissionManage.tag.unitManage;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

import com.seavision.PermissionManage.common.BaseTag;
import com.seavision.PermissionManage.vo.UserVO;

/**
 * @author qiao rong
 * @date 2007-05-15
 * @param String userId
 * @function  用户编辑密码tag
 *     得到userId,打印userID
 *       
 */
public class UserManagePassWordEditTag extends BaseTag{

	public int doStartTag() throws JspException {
		this.initializeTag("UserManagePassWordEditTag"); // 初始化类

		try {
			this.appendMessage("<root>");

			UserVO loguser = (UserVO) this.getAttribute("loginUserBean"); // 得到登陆用户的信息
			String message = (String) this.getAttribute("message"); // 得到request中的message对象
	

			this.removeAttribute("message"); // 删除session中message的信息

			if (this.check(loguser)) { // 判断用户登陆信息是否存在

				message = "您还没有登录或您离开系统时间太久,请重新登录";
				String ResultMsg = "登陆失败";
				// --系统提示信息--
				this.appendMessage("<system>");
				this.appendMessage("<appMessage>");
				this.appendMessage("<message>" + message + "</message>");
				this.appendMessage("<ResultMsg>" + ResultMsg + "</ResultMsg>");
				this.appendMessage("</appMessage>");
				this.appendMessage("</system>");
			} // end if
			else {
				
				String userId = this.getParameter("userId");
				this.appendMessage("<userId>" + userId + "</userId>"); //
				
				
				
			}//end	else
			this.appendMessage("</root>");

			this.outputMessage();
		} catch (Exception ex) {
			this.outputStandardErrorMessage();
			 ex.printStackTrace();
			print("userlistTag出现异常");

		} // end catch

		return TagSupport.EVAL_BODY_INCLUDE; // 继续计算BODY体
	}	// end doStartTag method

	public int doEndTag() throws JspException {
		return EVAL_PAGE;
	}// doEndTag method
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -