String variables in HTML/JSP

Hello,
Is is possiblt to have a variable in a HTML/JSP tag instead of a hard coded value.

For example (This is a Servlet snippet)

out.println ("<p><font size=\"3\" color=\"red\"> <b> Hello <br /> </font></b> </p>"  );

Is there a way for me to make the ' Hello' into a variable? so I could change and display the message
according to my requirement?



prainAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

radarshCommented:
Hi prain,

I don't know if you are looking after such a simple solution!

<html>
<body>
<%
    String msg = "Hello";
%>
<p><font size="3" color="red"><b><%=msg%><br/></font></b></p>
</body>
</html>

________
radarsh
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
prainAuthor Commented:
radarsh,

Opps. Thanks radarsh. Sorry, you have to excuse me for asking that question. You know sometimes licensed drivers also do mistakes. :-) . To say the truth, I am totally new to this HTML/JSP business and about 2 weeks ago only I started serious programming on these. So until I get a good handle on the wheel, I would do traffic violations.

Thanks any ways for all your help, including the previous answers. That helps me a lot.
Crusing well and learning well.

Thanks
prain.
0
radarshCommented:
prain,

Good Luck in your adventure! :)

________
radarsh
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.