request.getRealPath()已过时
public ActionForward addMer(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
...............
/**存放文件的文件夹*/
String dir = request.getRealPath("/picture");
.................
}
问题:
request.getRealPath()方法现在已过时,用什么方法来替代它?尽可能详细说明下...
积分奖励