tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Winkler" <michael.wink...@liwest.at>
Subject Addressing variables with jstl
Date Thu, 13 Oct 2005 20:28:16 GMT
Hi,

 

I've . g. two classes:

 

public class A {

private int i;

...

}

 

and

 

public class B {

private A a;

...

}

 

further in my JSP:

 

<jsp:useBean id="B" class="../B"/>

 

Now my question: is it possible to address the variable i in Class A with the jstl?

 

<jsp:getProperty name="B" property="a"/>

<c:out value="${a.i}"/> 

prints the memory address ...

 

<c:out value="${B.a.i}"/>

won't work - i is not public ...

 

Of curse it works with:

<% out.println(B.getA().getI()); %>

but with jstl?

 

I've no idea. Thanks for your Support,

 

    Michael

 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message