betweenGo

Getting the request parameter

by on Apr.10, 2009, under JSTL, Page Development

I always forget how to do this so I thought I should write it down.

In JSP:

<%=request.getParameter("foo")%>
<img src="<%=request.getParameter("foo")%>">

In JSTL:

<c:out value="${param.foo}"/>

In DSP:

<dspel:valueof param="foo"/>


Share

Related posts:

  1. Comparison of DSP and DSPEL
  2. Accessing RepositoryItems with JSTL
  3. Display formatted HTML text
  4. ATG ForEach Output with Separators Between Items
  5. Size of collection in a JSP/DSP page

:, ,

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!