Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating hyperlink

Status
Not open for further replies.
Joined
Nov 28, 2002
Messages
121
Location
US
I have an object I created that returns a String of data.
Within the data I tried to create a link.
However, when the object is returned into my JSP page to be displayed, " the address appears, but not as a hyperlink.
How do I handle that in my object rather than handling it in my JSP page?

Thanks
 
values_StringBuffer.append("<a href='" + sLink + "' title='Drawing' target='_blank'>Drawing</a>" + " \n");


Above is a stringbuffer I use to append my link.
sLink is a variable that holds an address.
"
However, something is wrong when I output the entire string onto a JSP page.
 
Hi

Try some thing like this

Code:
values_StringBuffer.append("<a href=\""+ sLink +"\" title=\"Drawing\" target=\"_blank\">Drawing</a>");

Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top