jsp怎么获得页面的完整地址
包括参数
String path = request.getContextPath(); String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/"; 一般都用path 和basepath来获取当前页面的url 这没有一个方法直接出来的,是几个方法的组合。 request.getServletPath(); request.getQueryString(); 楼上的再加这两个方法那得到的就是全部了。引用 这没有一个方法直接出来的,是几个方法的组合。 request.getServletPath(); request.getQueryString(); 楼上的再加这两个方法那得到的就是全部了。 我现在的地址一个action后面加参数,你的好像得不到action名字 额,我知道了action是取不到的。。。 恩,呵呵,支持下 学习了 鼎,路过 。。学习。
相关问答:
type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jas ......
我JSP的页面是: <%@ page language="java" contentType="text/html; charset=gb2312" %> <script> function Save(){ xmlHttp=GetXmlHttpObject() if(xmlHttp==nul ......
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 52 in the jsp file: /vip_info.jsp ÕË cannot be resolved 49: <table border="1& ......
最近一个项目中遇到一个问题:在原有的一套系统中(php开发)添加一些小功能(jsp开发),原来用户系统都是php开发的,我如何在jsp开发的功能中做到用户信息session同步呢? 有人是否有做过类以项目,想听听大家的看法 ......
table怎么绑定数据库,并且用JavaScript实现翻页。。。。。。。。。。JavaScript能向JSP页面传递参数吗 你说的问题有点那个。。,不好回答。。。。 jsp中table是需要html代码与页面端获取数据库查询后的信息进行 ......