The request tags makes it easy for an included page to
write the URI, URL or web app context path to its output stream. That way
you don't have to hardcode the URL's of pages that link back to themselves.
JSP pages containing either tabbed panes or trees usually link back to themselves.
The request tags gives you the following advantages:
| Tag | Tag Code | Tag Output |
| Request URI | <request:requestUri/> | /prizetagsdemo/request/requestTags.jsp |
| Request URL | <request:requestUrl/> | http://www.jenkov.com/prizetagsdemo/request/requestTags.jsp |
| Web App Context Path | <request:webAppContextPath/> | /prizetagsdemo/ |
| Parameter String | <request:parameterString/> | (suffix=false) ? (suffix=true) |
Try seeing the effect of the parameterString tag...
...with request parameters
...without request parameters