- /**
- * File Name:BaseAction.java * Version: * Date:2010-1-27 * Copyright Belongs To Musoon Corporation 2010
- */
- package com.action;
- import java.util.Map;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import org.apache.struts2.ServletActionContext;
- import com.opensymphony.xwork2.ActionContext;
- import com.opensymphony.xwork2.ActionSupport;
- /**
- * Project Name:ZhiMing ** Class Name:BaseAction
- * Author:Musoon ** Created Time:2010-1-27 下午06:45:35
- * Changed By:Musoon ** Changed Time:2010-1-27 下午06:45:35
- * Changed Memo:
- * @version
- * Class Description:
- */
- public class BaseAction extends ActionSupport {
- private static final long serialVersionUID = 7620009925942346125L;
- ActionContext context = ActionContext.getContext();
- HttpServletRequest request = (HttpServletRequest) context.get(ServletActionContext.HTTP_REQUEST);
- HttpServletResponse response = (HttpServletResponse) context.get(ServletActionContext.HTTP_RESPONSE);
- Map session = context.getSession();
- //SessionMap session = (SessionMap) context.get(ActionContext.SESSION);
- }
2012年6月11日月曜日
struts2 actionの中、パラメター設定
2012年6月8日金曜日
java.lang.NoClassDefFoundError: javax/annotation/security/RunAs の問題
解決方法としては、
run Configurations-> Classpath -> Add External JARs
org\apache\tomcat\annotations-api\6.0.13\annotations-api-6.0.13.jar を追加
jar ファイルがなけらば、download annotations-api.jar
run Configurations-> Classpath -> Add External JARs
org\apache\tomcat\annotations-api\6.0.13\annotations-api-6.0.13.jar を追加
jar ファイルがなけらば、download annotations-api.jar
ClassNotFoundException: org.objectweb.asm.ClassVisitorの問題
run Configurations-> Classpath -> Add External JARs
asm/asm/3.3.1/asm-3.3.1.jar を追加
asm/asm/3.3.1/asm-3.3.1.jar を追加
登録:
投稿 (Atom)