tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaël Oberson <gober...@swissonline.ch>
Subject RE: include a file in a servlet
Date Tue, 17 Apr 2001 16:13:36 GMT
try this:

request.getRequestDispatcher("/examples/web/test.jsp").include(request,
response);



-----Message d'origine-----
De : Georges Boutros [mailto:GBoutros@interstarinc.com]
Envoyé : mardi, 17. avril 2001 17:41
À : 'tomcat-user@jakarta.apache.org'
Objet : RE: include a file in a servlet




-----Original Message-----
From: Georges Boutros [mailto:GBoutros@interstarinc.com]
Sent: Tuesday, April 17, 2001 10:11 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: include a file in a servlet


hi,
i wanna know how can i include a jsp or html file in a servlet
thanks

Georges
********************************************************************
hi again,
the error i get seems like the file is not found

here's how i do it:
request.getRequestDispatcher("/examples/jsp/web/test.jsp").include(request,
response);

my jsp files are under /webapps/examples/jsp/web/

thanks again


Mime
View raw message