• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hyeprlinks inside servlet

 
Jatin Dhingra
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't just stick HTML into a servlet. Is that what you are doing? Please show us the entire servlet code (please UseCodeTags).
 
Jatin Dhingra
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is basic Java. Quotes inside a string literal must be escaped.
 
Jatin Dhingra
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a ton !!!

Sometimes we are so involved in complexities that we miss out basics .
 
Elchin Asgarli
Ranch Hand
Posts: 222
Chrome Eclipse IDE Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and try using any modern IDE with syntax highlight, that will make you life a lot easier
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic