D
david wolf
I need to put some html code in my java bean or taglib. What I did is
that I first get these html code by designing it in front page. Since I
need to put these html code in a loop(say I want to generate a table
dynamically) in my java bean or taglib, I copied thes html code in my
java bean. And then put these in a stringbuffer.
My question is that it is so tedious to do these. I need to put
msg.append for every line of html code and also use \ to modify every
double quote inside the html.
Is there a tool to help me to this, I mean putting html code inside my
string buffer, automatically without my manually doing this?
--------------------------------------------------------
StringBuffer msg = new StringBuffer();
msg.append("<td>
msg.append("<style type="text/css">
msg.append("<!--
.....
....
that I first get these html code by designing it in front page. Since I
need to put these html code in a loop(say I want to generate a table
dynamically) in my java bean or taglib, I copied thes html code in my
java bean. And then put these in a stringbuffer.
My question is that it is so tedious to do these. I need to put
msg.append for every line of html code and also use \ to modify every
double quote inside the html.
Is there a tool to help me to this, I mean putting html code inside my
string buffer, automatically without my manually doing this?
--------------------------------------------------------
StringBuffer msg = new StringBuffer();
msg.append("<td>
msg.append("<style type="text/css">
msg.append("<!--
.....
....