| Author |
email hyperlink
|
Chris Pat
Ranch Hand
Joined: Aug 27, 2005
Posts: 156
|
|
Hello I am trying to construct within a servlet an email with a hyperlink made up of the components. What I cant seem to do is escape successfully and have the resulting string include the "" I want to appear in the message bode <a href="serverNameAndURI">clickMe</a> I have tried building it with StringBuffer but still cant get the " correct. Can someone help with the proper technique and syntax.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56545
|
|
|
In Java, quote characters within string literals are escaped with the backslash character (\).
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Rahul Shilpakar
Ranch Hand
Joined: Aug 29, 2006
Posts: 132
|
|
you can write it as : <blockquote>code: <pre name="code" class="core"> <a href="\"serverNameAndURI\"">clickMe</a> </pre> </blockquote>
|
Perform for today. Adapt for tomorrow.
|
 |
 |
|
|
subject: email hyperlink
|
|
|