tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dima Gutzeit" <d...@mailvision.net>
Subject Re: Putting value ot a variable
Date Thu, 09 Oct 2003 09:38:38 GMT
or ...

<sql:query var="getLeaveRecord">
select * from emp_leaves where leave_id=?
    <sql:param value="${param.name}"/>
</sql:query>


----- Original Message ----- 
From: "Martin van Dijken" <mvdijken@madocke.nl>
To: "Tag Libraries Users List" <taglibs-user@jakarta.apache.org>
Sent: Thursday, October 09, 2003 11:38 AM
Subject: RE: Putting value ot a variable


Hey Rajendra,

Try:

<sql:query var="getLeaveRecord">
select * from emp_leaves where leave_id=<c:out value='${param["name"]}'/>
</sql:query>

Martin

> -----Original Message-----
> From: rajendra.x.yadav@verizon.com 
> [mailto:rajendra.x.yadav@verizon.com]
> Sent: donderdag 9 oktober 2003 11:36
> To: Tag Libraries Users List
> Subject: Re: Putting value ot a variable
> 
> 
> 
> Thanks Dima.
> I am stuck with another problem now.
> 
> I have a variable in Java which i get from request.
> String s1 = request.getParamter("name");
> 
> I want to pass s1 into a SQL query which is like this:
> 
> 
> How do i put s1 into the tags?
> 
> 
> thanks
> -raj
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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




---------------------------------------------------------------------
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