p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Servlets (http://p2p.wrox.com/forumdisplay.php?f=111)
-   -   How Can I call a HTML file from a servlet? (http://p2p.wrox.com/showthread.php?t=22418)

alf.guzman December 10th, 2004 05:49 PM

How Can I call a HTML file from a servlet?
 
Hi my question is how can I call a HTML file (index.html) from a servlet? I know that I can write html source in the servlet, but I don´t want to write the html code into the servlet, I want a html file separated.

Other Cuestion is how can I modify a HTML file from a servlet?

Thanks I hope you could help me is really important I just want a example or explication.

Bye


srinivasmaduri December 13th, 2004 10:17 AM

hi
  why dont you try using RequestDispatcher ..

regards
srinivas



alf.guzman December 13th, 2004 11:36 AM

thanks for answer me, but could you be more specific, is just that I´m not an expert with servlets, I´m learning and I don´t know how can I call a html file or modificate some one that exist right now.

Thanks


cash January 24th, 2005 04:51 AM

RequestDispatcher rd = request.getRequestDispatcher("/my.html");
rd.include(request, response);



All times are GMT -4. The time now is 09:52 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.