Hi, I found the riddle's solution:

But could anybody tell how to access _jspService's objects via 
${object.member}? Is it possible, at all? (Although, I don't think it's 
necessary.)

Thanks, Christian


<%! public class Test {
                private int number;
                public int getNumber() { return number; }
                protected void setNumber(int number) { this.number = number; }
        }
        
%>

<% 
        Test local = new Test();
        local.setNumber(3);

        pageContext.setAttribute("local", local);
        application.setAttribute("global", local);
%>

        ${local.number} 
        ${global.number} 


Problem A)
- it seems, that ${object.member} can't access the objects in the _jspService() 
method
- but it searches the pageContext object

Problem B)
- class must be public
(the error message -- it just says "public", nothing specific)



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975581#3975581

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975581
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to