View Full Version : Java servelets, loading txt into <div>?

12-27-2005, 04:09 PM
Hallo and happy holidays.

Im trying to figure out if if is possible to load a *.txt dokument into at div, using java servlets? can this be done?

The reason for wanting this is to be able to edit and upload only the text. and not the Html/css with which the text/div is presentet.

Any help directing me to a solution is greatly appreaciatet.

Happy new year


(please excuse my spelling)

12-27-2005, 05:06 PM
If you've got PHP on your server, just do an include:

<div><?php include("file.txt"); ?></div>

Otherwise, I'm sure there are alternatives for whatever server-side languages you have.

12-27-2005, 05:42 PM
thank you....In a server-side language...
i'll try php, my server got it.

happy new year,