One thing you could do is retrieve MyBean in the TagHandler. It would look something like this: MyBean = (MyBean) pageContext.findAttribute("MyBean");
-----Original Message----- From: Bernd Prager [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 9:28 PM To: 'Tomcat Users List' Subject: help: how do I get a Java variable inside a body tag? Hi everybody, I have a JSP body tag that needs a Java variable as an argument. So I wrote a BodyTag and it looks like: <% String myVariable= MyBean.getVariable(); %> <myTag:Test><%=myVariable%></myTag:Test> For whatever reasons the body contents gets not evaluated. I read the simple string '<%=myVariable%>' inside the tag handler and not the expected variable. Any ideas what I'm missing here? Thanks a lot, -- Bernd -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>