Search code examples
javajspparametersjsr168

JSR168 portlet request cuts param value after # symbol


One of parameters for action link looks like:

itemUrl=feedLink.html#xtor=RSS-3208

when I execute next code in backend in processAction():

String itemUrl = (String) request.getParameter("itemUrl");

,that I get next value: feedLink.html

e.g. request cuts itemUrl value after # symbol

escapeXml="true" in .jsp file doesn't help.


Solution

  • You have to URI encode the parameter names and values - your link should be itemUrl=feedLink.html%23xtor=RSS-3208.