Difference between revisions of "Request Object"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:request Object}} | {{DISPLAYTITLE:request Object}} | ||
To obtain the identifiers from the <tt>request</tt> object: | To obtain the identifiers from the <tt>request</tt> object: | ||
:<syntaxhighlight lang="java" enclose="div"> | :<syntaxhighlight lang="java" enclose="div"> |
Revision as of 02:15, 18 February 2012
To obtain the identifiers from the request object:
- <syntaxhighlight lang="java" enclose="div">
<%
String object_id = request.getParameter("object_id"); String record_id = request.getParameter("record_id");
%> </syntaxhighlight>
To list all of the parameters available in the request object and display their values:
- <syntaxhighlight lang="java" enclose="div">
<%
String[] params = request.getParameterValues(); for (int i=0; i<params.length; i++) { String paramName = params[i]; String paramValue = request.getParameter( paramName ); }
%> </syntaxhighlight>