服务器相对路径是???
写文件下载的时候代码写到这儿:
public class ExcelServelt extends HttpServlet{
        @Override
     protected void doPost(HttpServletRequest req, HttpServletResponse resp)
             throws 
ServletException, 
IOException {
//        服务器相对路径
         String path=req.getParameter("xxxx");
//      服务器绝对路径
         path=getServletContext().getRealPath("/")+path;
相对路径那儿getParameter()里面应该写什么?请求的url吗?如果是具体是指什么??如果不是也请指出来。。。
------解决方案--------------------哪个jsp文件提交到这里的,把JSP问题,左键鼠标拖进来~~就可以得到路径了- -!
../上一级的意思  ../../?.jsp
------解决方案--------------------req.getParameter(“XXXX”)这里的XXXX你URL里面的参数
如:
http://localhost:8080/test.do?action=abc
要取action的值的话那就可以用req.getParameter(“action”)了
------解决方案--------------------你看jsp页面里面传得什么参数  
可能是<hidden name="xxx" value=""/>
也可能是action.do?xxx=value  你把xxx替换了就是你要的名字了