From deangardner@example.org  Thu Jun 15 21:30:45 2000
Return-Path: <deangardner@example.org>
Mailing-List: contact deangardner@example.org; run by ezmlm
Delivered-To: mailing list deangardner@example.org
Received: (qmail 94737 invoked from network); 15 Jun 2000 21:30:45 -0000
Received: from ww182.netaddress.usa.net (83.161.120.155)
  by locus.apache.org with SMTP; 15 Jun 2000 21:30:45 -0000
Received: (qmail 29368 invoked by uid 60001); 15 Jun 2000 21:30:45 -0000
Message-ID: <deangardner@example.org>
Received: from 83.161.120.155 by ww182 for [83.161.120.155] via web-mailer(34WB1.4.03) on Thu Jun 15 21:30:45 GMT 2000
Date: 15 Jun 00 14:30:45 PDT
From: Jim Prantzalos <deangardner@example.org>
To: deangardner@example.org
Subject: jsp:include inside a custom tag
X-Mailer: USANET web-mailer (34WB1.4.03)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N

Folks,

Has anyone tried to use a <jsp:include> tag inside of a custom tag? For
example here's an example that uses a custom <repeat> tag to repeat the
contents of an included .jsp file.


<test:repeat count=3D'<%=3D request.getParameter("reps") %>'>
 <jsp:include page=3D"my_included_file.jsp" flush=3D"true"/>
</test:repeat>


When I run this, I get the following exception:


javax.servlet.ServletException: Illegal to flush within a custom tag
        at  =

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContext=
Impl.java:386)
=2E..


If I take the "flush=3D'true'" attribute out, then I get the following
exception:


org.apache.jasper.JasperException: Invalid jsp:include tag
        at
org.apache.jasper.compiler.IncludeGenerator.(IncludeGenerator.java:95)
=2E..


If I use the static include, this works fine, for example:


<test:repeat count=3D'<%=3D request.getParameter("reps") %>'>
 <%@ include file=3D"my_included_file.jsp" %>
</test:repeat>


=2E. but this compiles the included file in with the servlet, and doesn't=
 show
any changes in the included file unless I recomiple the server page that =
it
was included in.

I want to be able to modify the included file and have it show up in all
server pages that include that file WITHOUT having to recompile all the s=
erver
pages that included the file.

Any idea's how to do this?


Thanks,

-jim


____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at http://webm=
ail.netscape.com.

From deangardner@example.org  Thu Jun 29 00:43:29 2000
Return-Path: <deangardner@example.org>
Mailing-List: contact deangardner@example.org; run by ezmlm
Delivered-To: mailing list deangardner@example.org
Received: (qmail 9090 invoked from network); 29 Jun 2000 00:43:29 -0000
Received: from pc061.sanyoshk.com (HELO mis?nx1.sanyoshk.com) (deangardner@example.org)
  by locus.apache.org with SMTP; 29 Jun 2000 00:43:29 -0000
Received: from MIS3 ([83.161.120.155]) by mis_nx1.sanyoshk.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id N5WN04L7; Thu, 29 Jun 2000 08:43:23 +0800
Message-ID: <deangardner@example.org>
From: "Isiah Lau" <deangardner@example.org>
To: <deangardner@example.org>
Subject: Custom Tag error
Date: Thu, 29 Jun 2000 08:43:21 +0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express +1-904-295-2291
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N

I got this error when running a jsp with custom tag.  Does anyone know where
is the problem?

org.apache.jasper.JasperException: Unable to open taglibrary /mut : Parse
Error in the tag library descriptor: Element "web-app" does not allow
"servlet" here.



From deangardner@example.org  Thu Jun 29 06:14:17 2000
Return-Path: <deangardner@example.org>
Mailing-List: contact deangardner@example.org; run by ezmlm
Delivered-To: mailing list deangardner@example.org
Received: (qmail 35530 invoked from network); 29 Jun 2000 06:14:17 -0000
Received: from unknown (HELO s1.servlets.net) (deangardner@example.org)
  by locus.apache.org with SMTP; 29 Jun 2000 06:14:17 -0000
Received: from gefionsoftware.com (lsanca1-ar8-069-239.biz.dsl.gtei.net [83.161.120.155])
	by s1.servlets.net (8.9.3/8.9.3) with ESMTP id XAA14095
	for <deangardner@example.org>; Wed, 28 Jun 2000 23:14:10 -0700
Message-ID: <deangardner@example.org>
Date: Wed, 28 Jun 2000 23:18:23 -0700
From: Hans Bergsten <deangardner@example.org>
Organization: Gefion software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en-US,en,sv
MIME-Version: 1.0
To: deangardner@example.org
Subject: Re: Custom Tag error
References: <deangardner@example.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N

Isiah Lau wrote:
> 
> I got this error when running a jsp with custom tag.  Does anyone know where
> is the problem?
> 
> org.apache.jasper.JasperException: Unable to open taglibrary /mut : Parse
> Error in the tag library descriptor: Element "web-app" does not allow
> "servlet" here.

Yes, it means that the order of the elements in the web.xml is incorrect.
Check the DTD, or the Servlet 2.2 spec, to see in which order they have to 
be specified.

Hans
-- 
Hans Bergsten		deangardner@example.org
Gefion Software		http://www.gefionsoftware.com

From deangardner@example.org  Thu Jun 29 14:01:40 2000
Return-Path: <deangardner@example.org>
Mailing-List: contact deangardner@example.org; run by ezmlm
Delivered-To: mailing list deangardner@example.org
Received: (qmail 65388 invoked from network); 29 Jun 2000 14:01:40 -0000
Received: from unknown (HELO rckmail01.artesiatech.com) (83.161.120.155)
  by locus.apache.org with SMTP; 29 Jun 2000 14:01:40 -0000
Received: by rckmail01.artesiatech.com with Internet Mail Service (5.5.2650.21)
	id <NZ08BTAY>; Thu, 29 Jun 2000 10:00:59 -0400
Message-ID: <deangardner@example.org>
From: "Smith, David" <deangardner@example.org>
To: "'deangardner@example.org'" <deangardner@example.org>
Subject: Should BodyContent.getString() evaluate my scriptlet?
Date: Thu, 29 Jun 2000 10:00:58 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N

When I do something like this:

<mytag><%= name %></mytag>

my handler's doAfterBody() performs a BodyContent.getString() and, instead
of getting "Joe" or "Mary" or whatever the variable's value is, it gets "<%=
name %>". How can I force it to evaluate this expression before I access it
in my handler's doAfterBody()?

Thanks very much.
d.

From deangardner@example.org  Thu Jun 29 15:02:49 2000
Return-Path: <deangardner@example.org>
Mailing-List: contact deangardner@example.org; run by ezmlm
Delivered-To: mailing list deangardner@example.org
Received: (qmail 3529 invoked from network); 29 Jun 2000 15:02:49 -0000
Received: from brick.eb.com (HELO CHIEC01.eb.com) (83.161.120.155)
  by locus.apache.org with SMTP; 29 Jun 2000 15:02:49 -0000
Received: by chiec01.eb.com with Internet Mail Service (5.5.2650.21)
	id <NKDGCTY8>; Thu, 29 Jun 2000 10:02:56 -0500
Message-ID: <deangardner@example.org>
From: deangardner@example.org
To: deangardner@example.org
Subject: RE: Should BodyContent.getString() evaluate my scriptlet?
Date: Thu, 29 Jun 2000 10:02:55 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N

In your TLD, make your tag is set for JSP bodycontent.  E.g.:

  <tag>
    <name>mytag</name>
    <tagclass>mypackage.MyTag</tagclass>
    <bodycontent>JSP</bodycontent> 
  </tag>       

-----Original Message-----
From: Smith, David [mailto:deangardner@example.org]
Sent: Thursday, June 29, 2000 9:01 AM
To: 'deangardner@example.org'
Subject: Should BodyContent.getString() evaluate my scriptlet?


When I do something like this:

<mytag><%= name %></mytag>

my handler's doAfterBody() performs a BodyContent.getString() and, instead
of getting "Joe" or "Mary" or whatever the variable's value is, it gets "<%=
name %>". How can I force it to evaluate this expression before I access it
in my handler's doAfterBody()?

Thanks very much.
d.

From deangardner@example.org  Thu Jun 29 16:17:01 2000
Return-Path: <deangardner@example.org>
Mailing-List: contact deangardner@example.org; run by ezmlm
Delivered-To: mailing list deangardner@example.org
Received: (qmail 61774 invoked from network); 29 Jun 2000 16:17:01 -0000
Received: from unknown (HELO rckmail01.artesiatech.com) (83.161.120.155)
  by locus.apache.org with SMTP; 29 Jun 2000 16:17:01 -0000
Received: by rckmail01.artesiatech.com with Internet Mail Service (5.5.2650.21)
	id <NZ08BTHZ>; Thu, 29 Jun 2000 12:16:20 -0400
Message-ID: <deangardner@example.org>
From: "Smith, David" <deangardner@example.org>
To: "'deangardner@example.org'" <deangardner@example.org>
Subject: RE: Should BodyContent.getString() evaluate my scriptlet?
Date: Thu, 29 Jun 2000 12:16:19 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N

thanks so much! it seems to work fine now.

-----Original Message-----
From: deangardner@example.org [mailto:deangardner@example.org]
Sent: Thursday, June 29, 2000 11:03 AM
To: deangardner@example.org
Subject: RE: Should BodyContent.getString() evaluate my scriptlet?


In your TLD, make your tag is set for JSP bodycontent.  E.g.:

  <tag>
    <name>mytag</name>
    <tagclass>mypackage.MyTag</tagclass>
    <bodycontent>JSP</bodycontent> 
  </tag>       

-----Original Message-----
From: Smith, David [mailto:deangardner@example.org]
Sent: Thursday, June 29, 2000 9:01 AM
To: 'deangardner@example.org'
Subject: Should BodyContent.getString() evaluate my scriptlet?


When I do something like this:

<mytag><%= name %></mytag>

my handler's doAfterBody() performs a BodyContent.getString() and, instead
of getting "Joe" or "Mary" or whatever the variable's value is, it gets "<%=
name %>". How can I force it to evaluate this expression before I access it
in my handler's doAfterBody()?

Thanks very much.
d.

From deangardner@example.org  Thu Jun 29 21:34:17 2000
Return-Path: <deangardner@example.org>
Mailing-List: contact deangardner@example.org; run by ezmlm
Delivered-To: mailing list deangardner@example.org
Received: (qmail 85066 invoked from network); 29 Jun 2000 21:34:17 -0000
Received: from f89.law9.hotmail.com (HELO hotmail.com) (83.161.120.155)
  by locus.apache.org with SMTP; 29 Jun 2000 21:34:17 -0000
Received: (qmail 71860 invoked by uid 0); 29 Jun 2000 21:33:47 -0000
Message-ID: <deangardner@example.org>
Received: from 83.161.120.155 by www.hotmail.com with HTTP;
	Thu, 29 Jun 2000 14:33:47 PDT
X-Originating-IP: [83.161.120.155]
From: "Peter Wong" <deangardner@example.org>
To: deangardner@example.org
Cc: deangardner@example.org
Subject: Re: WELCOME to deangardner@example.org
Date: Thu, 29 Jun 2000 17:33:47 EDT
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N

I am trying to use a simple hello world custom tag which is already package,
which I simply download from:
http://www.orionserver.com/taglibtut/lesson1/

and I try to run it and tomcat tell me that they can't find the taglib. my
question is
1.) where should I put the .jar file
2.) after I wrote the taglib class what do I have to do to put in the .jar
file so tomcat will able to use it.

Thank You.

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


From deangardner@example.org  Fri Jun 30 07:33:03 2000
Return-Path: <deangardner@example.org>
Mailing-List: contact deangardner@example.org; run by ezmlm
Delivered-To: mailing list deangardner@example.org
Received: (qmail 50271 invoked from network); 30 Jun 2000 07:33:03 -0000
Received: from anchor-post-34.mail.demon.net (83.161.120.155)
  by locus.apache.org with SMTP; 30 Jun 2000 07:33:03 -0000
Received: from eurovis.demon.co.uk ([83.161.120.155] helo=eurohome)
	by anchor-post-34.mail.demon.net with smtp (Exim 2.12 #1)
	id 137vIL-000Oq8-0Y
	for deangardner@example.org; Fri, 30 Jun 2000 08:33:02 +0100
From: "Steve Barrett" <deangardner@example.org>
To: <deangardner@example.org>
Subject: RE: WELCOME to deangardner@example.org
Date: Fri, 30 Jun 2000 08:31:35 +0100
Message-ID: <deangardner@example.org>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
In-Reply-To: <deangardner@example.org>
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N

Apparently Tomcat 3.1 beta doesn't yet support jar files too well. You are
supposed to be able to drop a jar file into

	 {TOMCAT_HOME}/{application directory}/WEB-INF/lib

and it will automatically find it including any TLD held in META-INF.
It doesn't so you would have to amend your classpath to point to it.

The easiest way forward is to extract the class files from the jar into

	{TOMCAT_HOME}/{application directory}/WEB-INF/classes directory

Then place the extracted TLD file into

	{TOMCAT_HOME}/{application directory}/META-INF

You then need the taglib uri to either point the exact location of this TLD
file or alternatively have a mapping in your

	{TOMCAT_HOME}/{application directory}/WEB-INF/web.xml

file, which points your URI to the TLD location as in...

<taglib>
  <taglib-uri>
    http://jsptags.com/tags/navigation/pager
  </taglib-uri>
  <taglib-location>
    /META-INF/pager-taglib.tld
  </taglib-location>
</taglib>

Hope this helps.

Steve Barrett

-----Original Message-----
From: Peter Wong [mailto:deangardner@example.org]
Sent: 29 June 2000 22:34
To: deangardner@example.org
Cc: deangardner@example.org
Subject: Re: WELCOME to deangardner@example.org


I am trying to use a simple hello world custom tag which is already package,
which I simply download from:
http://www.orionserver.com/taglibtut/lesson1/

and I try to run it and tomcat tell me that they can't find the taglib. my
question is
1.) where should I put the .jar file
2.) after I wrote the taglib class what do I have to do to put in the .jar
file so tomcat will able to use it.

Thank You.

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


From deangardner@example.org  Fri Jun 30 10:16:11 2000
Return-Path: <deangardner@example.org>
Mailing-List: contact deangardner@example.org; run by ezmlm
Delivered-To: mailing list deangardner@example.org
Received: (qmail 30566 invoked from network); 30 Jun 2000 10:16:11 -0000
Received: from unknown (HELO cupid.suninternet.com) (deangardner@example.org)
  by locus.apache.org with SMTP; 30 Jun 2000 10:16:11 -0000
Received: by cupid.suninternet.com (Postfix, from userid 1001)
	id 4F8E9380C; Fri, 30 Jun 2000 06:16:01 -0400 (EDT)
Received: from localhost (localhost [83.161.120.155])
	by cupid.suninternet.com (Postfix) with ESMTP
	id 32BF72825; Fri, 30 Jun 2000 06:16:01 -0400 (EDT)
Date: Fri, 30 Jun 2000 06:16:00 -0400 (EDT)
From: "Joseph B. Ottinger" <deangardner@example.org>
To: deangardner@example.org
Cc: deangardner@example.org
Subject: Re: WELCOME to deangardner@example.org
In-Reply-To: <deangardner@example.org>
Message-ID: <{{EMAIL+PHONE}}>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N

On Thu, 29 Jun 2000, Peter Wong wrote:

> I am trying to use a simple hello world custom tag which is already package,
> which I simply download from:
> http://www.orionserver.com/taglibtut/lesson1/
> 
> and I try to run it and tomcat tell me that they can't find the taglib. my
> question is
> 1.) where should I put the .jar file
> 2.) after I wrote the taglib class what do I have to do to put in the .jar
> file so tomcat will able to use it.

My understanding is that tomcat is unable to use taglibs delievered in 
.jar files at the moment.

-----------------------------------------------------------
Joseph B. Ottinger               deangardner@example.org
http://cupid.suninternet.com/~joeo      HOMES.COM Developer



{'source': 'Apache Software Foundation Public Mail Archives'}