Link to home
Create AccountLog in
Avatar of prain
prainFlag for United States of America

asked on

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?



ASKER CERTIFIED SOLUTION
Avatar of radarsh
radarsh

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of prain

ASKER

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.
Avatar of radarsh
radarsh

prain,

Good Luck in your adventure! :)

________
radarsh