Re: Possible to have default classes and taglib includes in JSPs?

2003-03-19 Thread Tim Funk
No - you have to explicitly import the classes and/or taglibs.

-Tim

Gavin, Rick wrote:
Hi all,
  Does anyone know if you can include classes and taglibs in all jsp pages
in a webapp by default, instead of having to import and reference them on
each page?  I didn't see it in the servlet or jsp spec.
Thanks for the help,
Rick
 


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


Re: Possible to have default classes and taglib includes in JSPs?

2003-03-19 Thread Jon Wingfield
You can do a static include of a page which has your default imports:

%@ include file=/a_load_of_imports.jsp %

Tim Funk wrote:
No - you have to explicitly import the classes and/or taglibs.

-Tim

Gavin, Rick wrote:

Hi all,
  Does anyone know if you can include classes and taglibs in all jsp 
pages
in a webapp by default, instead of having to import and reference them on
each page?  I didn't see it in the servlet or jsp spec.

Thanks for the help,
Rick
 


-
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]


RE: Possible to have default classes and taglib includes in JSPs?

2003-03-19 Thread Gavin, Rick
Thanks Tim and Jon

Rick

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 8:09 AM
To: Tomcat Users List
Subject: Re: Possible to have default classes and taglib includes in
JSPs?


You can do a static include of a page which has your default imports:

%@ include file=/a_load_of_imports.jsp %

Tim Funk wrote:
 No - you have to explicitly import the classes and/or taglibs.
 
 -Tim
 
 Gavin, Rick wrote:
 
 Hi all,
   Does anyone know if you can include classes and taglibs in all jsp 
 pages
 in a webapp by default, instead of having to import and reference them on
 each page?  I didn't see it in the servlet or jsp spec.

 Thanks for the help,
 Rick
  
 
 
 
 -
 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]



Re: Possible to have default classes and taglib includes in JSPs?

2003-03-19 Thread Craig R. McClanahan


On Wed, 19 Mar 2003, Gavin, Rick wrote:

 Date: Wed, 19 Mar 2003 07:20:55 -0800
 From: Gavin, Rick [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Possible to have default classes and taglib includes in JSPs?

 Hi all,
   Does anyone know if you can include classes and taglibs in all jsp pages
 in a webapp by default, instead of having to import and reference them on
 each page?  I didn't see it in the servlet or jsp spec.


In JSP 2.0 (i.e. Tomcat 5), you'll be able to declare a prelude file
that is attached to the front of every JSP page, which is real useful for
stuff like this.  For JSP 1.2 (i.e. Tomcat 4.1), the idea of a single file
included with the %@ include % directive is the easiest way to deal with
this kind of thing.

 Thanks for the help,
 Rick

Craig

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