2017年10月24日

java request获取路径

摘要: 从Request对象中可以获取各种路径信息,以下例子: 假设请求的页面是index.jsp,项目是WebDemo,则在index.jsp中获取有关request对象的各种路径信息如下 String path = request.getContextPath(); String basePath = 阅读全文

posted @ 2017-10-24 17:54 落叶月 阅读(629) 评论(0) 推荐(1) 编辑

导航