You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2003/01/09 22:50:16 UTC
Help in using beanutils to display data in jsp
Hi,
Can any one provide with a code in using
beanutil.(from apache jakarta commons, as i am using
struts1.1.b)
suppose i have the following case
1 - I have a bean defined in jsp like below
<jsp:useBean id="result"
class="com.test.planning.PL1817B"
scope="page"></jsp:useBean>
and then in the jsp i have code
ResultSet rsData = result.getChangeData(connection,
code);
which gets me the data required to populate on my jsp
now i want to define a beanutil to populate the data
and then use
<html:text ..> tag to display data,
2 - If i have a drop down box with value "1" and "2",
and if the value in database is "2" it must show "2"
in drop down box,
Please provide code
=====
A$HI$H
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>