aspose file tools*
The moose likes Servlets and the fly likes Hyeprlinks inside servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Hyeprlinks inside servlet" Watch "Hyeprlinks inside servlet" New topic
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: 61010
    
  65

You can't just stick HTML into a servlet. Is that what you are doing? Please show us the entire servlet code (please UseCodeTags).


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61010
    
  65

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hyeprlinks inside servlet