I want to extract a value from a bean property so that it can be a variable xxxxxx inside sql:query. Can I do that?
<sql:query var="resultSet" dataSource="jdbc/erptest"> SELECT first_name, middle_name, last_name, chi_name FROM user_profile WHERE usernm = xxxxxxx </sql:query> On Apr 5, 2005 11:46 PM, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > <bean:define id="variable_name" type="..."><bean:write name="beanname" > property="propertyname"/></bean:define> > > Do you mean this kind of assignment? > > Regards > Leon > > > -----Ursprüngliche Nachricht----- > > Von: PC Leung [mailto:[EMAIL PROTECTED] > > Gesendet: Dienstag, 5. April 2005 17:43 > > An: user@struts.apache.org > > Betreff: How to assign value to variable from property? > > > > Hello all, > > > > The following can print a value in jsp file. > > <bean:write name="loginForm" property="username"/> > > > > How to assign the value to a variable in jsp from a property? > > > > Thanks > > PC Leung > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]