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

 

Reply via email to