tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Agrawal, Anuj (Anuj)** CTR **" <agra...@lucent.com>
Subject RE: can output of dbtags query be used to fill javabean propertie s ?
Date Tue, 12 Mar 2002 02:09:36 GMT
> Subject: Re: can output of dbtags query be used to fill javabean
> properties ?

This is a similar question i had wanted to ask.

> Once again you can use the sql tags available in the Standard 
> You can populate a bean like this:
>   <c:forEach var="row" items="${resultSet.rowsByIndex}">
>     <jsp:useBean id="mybean" class="mybean" scope="request"/>
>        <jsp:setProperty name="mybean" property="nameId"
> value="<%=row[0]%>"/>
>        <jsp:setProperty name="mybean" property="name" 
> value="<%=row[1]%>"/>
>   </c:forEach>

This violates one of the core suggestions made by the documentation (and
Shawn) - we should try not to mix scriptlets with the JSTL tags.  I'd like
to stick to that "rule".  So the question is - how do we achieve the above
without using scriptlets?

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


Mime
View raw message