You can use JavaBeans in jspInit. But <jsp:anything> requires a pageContext to operate on. A pageContext doesn't exist (isn't avialble) during jspInit().

If you wish to set properties, you'll need to use the servletConfig object. From there, you can access the ServletContext(all via java code - no tags)

-Tim

Jerry Miernik wrote:

Tim, thanks. Then, is it possible to use <jsp:...> tags inside jspInit()?
I am asking because it seems possible to use a JavaBean inside jspInit(). However, usage of a JavaBean has to be declared with
<jsp:useBean ...>, and executed with, for example, <jsp:setProperty ...>. Is there a syntax, I am missing, that
enables usage of a JavaBean inside jspInit()?
Thanks,
Jerry.




-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 7:08 AM
To: Tomcat Users List
Subject: Re: RequestDispatcher in jspInit() ?


No
-Tim

Jerry Miernik wrote:

Is it possible to use RequestDispatcher's include method
inside a jspInit(), to execute another JSP script while
this JSP script is in its jspInit() method? Thanks,
Jerry.

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to