[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: ${variable.member} does not work!

c-e do-not-reply at jboss.com
Mon Oct 2 14:54:22 EDT 2006

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();

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


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

More information about the jboss-user mailing list