Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mapping value in html page

 
jenny wang
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic