GeneValgene
Diamond Member
argh...this is so annoying. i'm a java newbie, and i'm trying to output html using java. i want to make a character bold, so i using this code
throw new ComFailException("Sorry, We are currently out of stock of <B>" + ProdQuant.productDescription + "</B>. Please try again later.");
the problem is, when i use the <B> </B> tags in java, when it is outputted to html source code, it translates it to "& l t ; / b & g t" (i added spaces since when i type it in here it translates it again!)
basically, it keeps it from becoming an html tag, which is exactly i don't want. anyone know how i can make java not translate it when converting to html?
thanks in advance!
throw new ComFailException("Sorry, We are currently out of stock of <B>" + ProdQuant.productDescription + "</B>. Please try again later.");
the problem is, when i use the <B> </B> tags in java, when it is outputted to html source code, it translates it to "& l t ; / b & g t" (i added spaces since when i type it in here it translates it again!)
basically, it keeps it from becoming an html tag, which is exactly i don't want. anyone know how i can make java not translate it when converting to html?
thanks in advance!