我有一个类似的网址http://localhost/webapp/wcs/stores/servlet/ProductDisplay?expDataType=CatalogEntryId&catalogId=10351&urlRequestType=Base&productId=14311&expDataUniqueID=14311&errorViewName=ProductDisplayErrorView&urlLangId=-1&langId=-1&storeId=11001
我将如何获得完整的网址?
我试过了request.getURL.toString(),request.getQueryString()和request.getAttribute("javax.servlet.forward.request_uri")。
但没有给出完整的路径。
任何人都可以帮忙吗?