tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Schwartz ...@arrayone.com>
Subject Re: Dynamic Evaluation
Date Thu, 28 Apr 2005 18:51:22 GMT
Sorry, I'll try to clarify...

A request attribute is set from a servlet via request.setAttribute.
The attribute is a ResultSet.
On the JSP page I want to loop through all request attributes. When I find one
that contains the ResultSet I want to output the query results.

Is it possible using JSTL to determine if a request attribute is a ResultSet?

Quoting Martin Cooper <mfncooper@gmail.com>:

>> Maybe you could back up a bit and tell us exactly what is stored
>> where, and under what names. In your first message, you referred to "a
>> request parameter whose value is a ResultSet", which is just not
>> possible, since request parameters are, by definition, strings. Once
>> we know what is stored where, I'm sure we can give you a simple
>> solution. ;-)
>>
>> --
>> Martin Cooper
>>
>>
>> On 4/28/05, David Schwartz <ds@arrayone.com> wrote:
>> > >>param[myQuery]
>> >
>> > The var is set in a servlet so it's available via requestScope.
>> > Is the syntax the same as param[myQuery]?
>> >
>> > Quoting Rahul P Akolkar <akolkar@us.ibm.com>:
>> >
>> > >> On 4/28/05, David Schwartz <ds@arrayone.com> wrote:
>> > >> > The myQuery param is actually a variable.
>> > >> > It would look like...
>> > >> > <c:set var = "myQuery" value = "${paramList}_Query" />
>> > >> >
>> > >> > If the request param has a "_Query" suffix then i want to display
the
>> > >> rows.
>> > >> >
>> > >> <snip/>
>> > >>
>> > >> Fun :-) Then access value of the param whose name is contained in the
>> > >> variable myQuery using the [ ] operator, like so:
>> > >>
>> > >> param[myQuery]
>> > >>
>> > >> -Rahul
>> > >>
>> >
>> > David Schwartz
>> > Array Software Inc.
>> > http://www.arrayone.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>>
>>


David Schwartz
Array Software Inc.
http://www.arrayone.com

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message