hello,

i have a basic question.

i have a user object with getter and setter. on my jsp page i just want to
allow the web-developer to get values. setting value should not be allowed
on the jsp page!

to realize it, i write an interface IUser which only includes the getter.

without jstl i can write s.th. like

<jsp:useBean id="user" class="User" type="IUser"/>
<% user.setName( "newname" ); %>

this will result in an compilation error, indicating that the setName method
is not known!

with jstl i still can set a new value:

<c:set target="${user}" property="name" value="newname"/>

why?! is this a bug?!

it seems as if the EL does not care about which interface i defined. he
always work on the real object type.

any help?!

thanks in advance, leif


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

Reply via email to