360你财富小定宝:在bean中如何获得webroot路径
来源:百度文库 编辑:查人人中国名人网 时间:2024/05/09 14:00:55
在bean中如何获得webroot路径
很急啊!
很急啊!
private String serverRootPath;
public void setServerRootPath(String serverRootPath){
this.serverRootPath = serverRootPath;
}
JSP中取得WebRoot路径是request.getContextPath();