I have created an html form for updating different text fields in my database but I would like to send simple HTML formating commands in my text fields and store them in my database. How do I go about doing this and retrieving the results.
Right now when I put a <br /> into my database, and I go to my results jsp page I see the text. It doesn't translate into code. Please tell me what I need to do to make this work. Thanks.
It is fairly common, in fact highly recommended, to escape data emitted to a page in this manner -- especially if the data was entered by a user. It prevents unintended page breakages when a user enters data such as"</table>" (just think of what that would do to the formatting of your page), or even malicious exploits.
So it is possible that this escaping is a deliberate act.
Most systems that allow "fomratting markup" do not do so with HTML tags. Look at this very site -- formatting is performed via "UBB tags" which use the square bracket characters rather than HTML markup.