The id attribute gives page-scope bean of type java.lang.Object.  Your options are 

 * specify the 'type' attribute with the fully
   qualified class name
 * Cast your call in the scriptlet to the appropriate
   type

Sri

-----Original Message-----
From: rajiv ahuja [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 20, 2003 2:58 PM
To: [EMAIL PROTECTED]
Subject: getter doesn't work in scriplet


Hi

I am using getter in jsp but it throws no such method found exception, but 
the same property gets displayed when I use <bean:write.. tag.

So

<logic iterate id="field" name="fields" >
  <bean:write name="field" property="name"/>
</logic:iterate>

works

but

<logic iterate id="field" name="fields" >
  <% String name = field.getName(); %>
</logic:iterate>

doesn't.  Any ideas

Thanks
Rajiv








_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to