dcsimg
jsp using bean-objects
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Patrick_Goovaerts
Posted On:   Tuesday, September 18, 2001 06:38 AM

I created JSP which uses a JavaBean to display info. In the bean I have an object which has its own fields with getters/setters methods. How can I retrieve info from this object ? hierarchy: BEAN ==> DATA ==> getField1() ==> getField2() ==> getField...() ==> setField1() ==> setField2() ==> setField...() I tried to use the following in my jsp: <%= beanID.data.getField1() %>"> But this doesn't do the job...    More>>

I created JSP which uses a JavaBean to display info.

In the bean I have an object which has its own fields
with getters/setters methods.

How can I retrieve info from this object ?
hierarchy:
BEAN
==> DATA
==> getField1()
==> getField2()
==> getField...()
==> setField1()
==> setField2()
==> setField...()

I tried to use the following in my jsp:
<%= beanID.data.getField1() %>">

But this doesn't do the job...

   <<Less
About | Sitemap | Contact