Using JSTL to get current request URI and Query string

Using JSTL to get current request URI and Query string in Oracle ATG

 

request

To get the URI from request on the JSP, use:

           ${pageContext.request.requestURI}

To get the queryString from request, use:

           ${pageContext.request.requestURI}

To achieve the same using DSP tags use the bean OriginatingRequest(Note:OriginatingRequest implements HttpServletRequest.)

<%@ taglib prefix="dsp" uri="/dspTaglib"%>
<dsp:valueof bean="/OriginatingRequest.requestURI" />

To achieve the same using DSPEL tags use the bean OriginatingRequest(Note:OriginatingRequest implements HttpServletRequest.)

<%@ taglib uri="/dspELTaglib" prefix="dspel"%>
<dspel:form method="post" name="testForm" action="${originatingRequest.requestURI}" formid="testForm"/>

img src: greatlakescomputer

You may also like this

seperator

About TechnoStixs.com

Personalization related tables in Oracle ATG

ORACLE ATG ENDECA & JAVA TECHNOLOGY XCHANGE SYSTEM. TechnoStixs.com is a dedicated weblog for Oracle ATG, Oracle Endeca, Java/J2EE and web developers. We take pride in our work. Every publication is carefully analyzed, written and tested to ease the understanding of the topic or subject.

We cover Oracle ATG, Oracle Endeca, Java Core Technologies, eCommerce, J2EE Frameworks, Web Service, Build Tools, Unit Test Frameworks and Others.

2,742 total views, 6 views today

Add comment