tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Schnack <feli...@ritterdosreis.br>
Subject Re: repost: jspc webinc.xml
Date Tue, 18 Feb 2003 14:11:28 GMT
  I'll try that.
  But how could I merge files using ant? I'm actually using it.

On Tue, 2003-02-18 at 10:43, Kris Schneider wrote:
> You can try treating the generated fragment as an external entity. Assuming the
> fragment is in a file called webinc.xml (colocated with web.xml), try the
> following in your web.xml:
> 
> <?xml version="1.0"?>
> 
> <!DOCTYPE web-app
>   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>   "http://java.sun.com/dtd/web-app_2_3.dtd"
>   [<!ENTITY webinc SYSTEM "webinc.xml">]
> >
> 
> <web-app>
> 
>   &webinc;
> 
> <web-app>
> 
> I've had problems with this on some app servers (I think TC was okay though).
> You could also perform some sort of merge during your build process (probably
> Ant based).
> 
> Quoting Felipe Schnack <felipes@ritterdosreis.br>:
> 
> >   I'm unable to undertstand a JSPC concept...
> >   If I generate my JSP's java sources and binaries, I can include the
> > -webinc parameter to make jsp generate a file with servlet declarations
> > for all my web pages...
> >   That's ok, but how I include this to my web.xml?
> > -- 
> > 
> > Felipe Schnack
> > Analista de Sistemas
> > felipes@ritterdosreis.br
> > Cel.: (51)91287530
> > Linux Counter #281893
> > 
> > Centro Universitário Ritter dos Reis
> > http://www.ritterdosreis.br
> > ritter@ritterdosreis.br
> > Fone/Fax.: (51)32303341
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > 
> 
> 
> -- 
> Kris Schneider <mailto:kris@dotech.com>
> D.O.Tech       <http://www.dotech.com/>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
-- 

Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
ritter@ritterdosreis.br
Fone/Fax.: (51)32303341


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