获取项目调度路径

获取项目部署路径?Action类中代码:??ActionContext context ActionContext.getContext() ? ? ?HttpServ

获取项目部署路径

?

Action类中代码:

?

?

ActionContext context = ActionContext.getContext(); ?

? ?HttpServletRequest request = (HttpServletRequest) context.get(ServletActionContext.HTTP_REQUEST); ?

? ?String path=request.getSession().getServletContext().getRealPath("");

?

?

?