tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: RequestDispatcher in jspInit() ?
Date Tue, 01 Jun 2004 14:06:43 GMT
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:funkman@joedog.org] 
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message