Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Escape character

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
i need an HTML help

if i have to put this :
between " " in a href ... how will i do it?
what is the escape character i'll have to use \" or ""





Thanks
 
Sheriff
Posts: 24594
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question doesn't make sense, because you're supposed to put a URL into the "href" attribute. That string isn't anything like a URL.
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm guessing that the OP is using a custom tag library in a JSP page.

In which case from memory (which is a little rusty) the web application server will look for the defined tag and replace it with the output from the custom tag library.

Therefore to answer the OP's original question, no escaping is required assuming the output from the custom tag library is valid as an href attribute.

i.e.



The application server will replace the bit between the <tttt: and /> with the output from the tag library giving you:



Rufus.
 
Mary Chellapa
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rufus
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!