PDA

View Full Version : out.print


avaloncm
08-16-2004, 03:17 PM
Hopefully simple - In jsp, I have declared a variable "myVar".

I am creating a webpage by printing out the html, so how do I reference my variable in HTML by using out.print?

This doesn't work

out.print("Variable:&nbsp; (<%=myVar%>)");

Thanks in advance for the help!!

ucm
08-16-2004, 05:33 PM
ummm

don't know jsp but try this:


out.print("Variable: ("+myVar+")");