各位高手,我在jsp中用String path=getServletContext().getRealPath("/");获取了网站的物理路径:"D:\web\”。现在问题是在其他函数中调用path时出错,提示不能用“\”。我需要把“\”转换为“\\”或者“/”,请问该怎么转换?