hyperlink in jsp using the data from DB2 table
I need to display an email address - test@testing.com in my page which needs to be stored in DB2 table. Also I need to proved a link when the user click on - Click here. how should i store the data in DB2 sothat it can be 开发者_C百科displayed correctly ? I'm getting all the data from this DB2 table in List. I'm doing <logic:iterate>
. since other data are just plain text. it displays correctly. But email id and tthe link doesnt. please help.
You must add the attribute escape=false to the tags that print out the text. However, make sure you sanitize that data in input phase, or you will open the door to XSS security vulnerabilities.
精彩评论