File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes mapping value in html page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "mapping value in html page" Watch "mapping value in html page" New topic
Author

mapping value in html page

jenny wang
Greenhorn

Joined: Feb 23, 2001
Posts: 27
I am trying to change a perl script file to java servlet file.
I got data from quote.html file and I want to put these data in the out.html file. Since the out.html is designed already and I can't change anything inside this file.
in Perl you can map the values using:
open(FILE, "out.html");
while(<FILE> ){
s/VALUE1/$value_1/;
}
But in JAVA servlet, do we have some efficient way to map my data to out.html file instead of putting html tag by using a lot of
out.println("<html><title>");
...........
statements?
Thanks so much!

Jenny
james_deshpande
Greenhorn

Joined: Feb 13, 2001
Posts: 23
dear Bhidu(i mean Friend) ,
u gotta use jsp if u wanna avert out.println("<html>");
Jsp is much simpler also .Refer to Caroline Jen's q in the same forum
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mapping value in html page