| Author |
Hyeprlinks inside servlet
|
Jatin Dhingra
Greenhorn
Joined: Jun 28, 2010
Posts: 29
|
|
Hi all
I am new to J2EE and created servlet. Now this servlet needs to display below hyperlink inside out.println()
as I insert this HTML code into servlet, it takes "//" as comment entry. Please help.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56173
|
|
|
You can't just stick HTML into a servlet. Is that what you are doing? Please show us the entire servlet code (please UseCodeTags).
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Jatin Dhingra
Greenhorn
Joined: Jun 28, 2010
Posts: 29
|
|
Thanks for your reply !
As requested, I am putting piece of code. It is a small code so not following MVC.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56173
|
|
|
This is basic Java. Quotes inside a string literal must be escaped.
|
 |
Jatin Dhingra
Greenhorn
Joined: Jun 28, 2010
Posts: 29
|
|
Thanks a ton !!!
Sometimes we are so involved in complexities that we miss out basics .
|
 |
Elchin Asgarli
Ranch Hand
Joined: Mar 08, 2010
Posts: 222
|
|
|
and try using any modern IDE with syntax highlight, that will make you life a lot easier
|
Personal page, SCJP 6 with 91%, SCWCD 5 with 84%, OCMJD
|
 |
 |
|
|
subject: Hyeprlinks inside servlet
|
|
|