tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Einfeldt <ralph.einfe...@uptime-isc.de>
Subject AW: Accessing Beans; was: aaargh..
Date Wed, 15 Nov 2000 16:32:11 GMT
You are mixing to different things.

<jsp:setProperty/> works on beans.
In JSP beans have to be declared and created
with the <jsp:useBean/> tag.

So your p is not a bean to JSP. To change
this you have to use the <jsp:useBean/> tag.
Otherwise the only way to access it, is to 
use it in expressions <%= p.someMethod() %> or 
scriptlets <% p.anotherMethod(); %>

> -----Urspr√ľngliche Nachricht-----
> Von: Alexander ten Bruggencate [mailto:a.ten.bruggencate@home.nl]
> Gesendet: Mittwoch, 15. November 2000 16:58
> An: tomcat-user
> Betreff: aaargh..
<snip/>
> the only problem is that <jsp:setProperty ..../> and <jsp:getProperty
> ..../> won't work.
<snip/>
> part of the jsp file:
> <%
> nl.step.stepdb.person.interfaces.Person p;
> p = pbrowse.createUser();
> %>
<snip/>

Mime
View raw message