This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
HELP! picking words from a file and copying it into a new file
file upload from servlet
javax.naming.NamingException: Could not dereference object
Generate non-applet imagemap on the fly
Fileupload using Servlet