Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSP
Escape HTML
saumil baxi
Ranch Hand
Posts: 58
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Following is the
jsp
code
<c:set var="temp1" value="example1 & example2"/> <c:set var="temp" value="http://example.com?a&temp=${temp1}"/> <a href="${temp}"> link </a>
The problem that I am getting is. It does not convert
&
into Escape HTML form..
Is there any taglib or other method available to convert special character into HTML escape character.
Thanks,
Saumil
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<c:out>
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
And for doing it in a place where tags cannot be used:
${fn:escapeXml(value)}
Read the JSTL Spec for more information.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
saumil baxi
Ranch Hand
Posts: 58
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i tried <c:out > it didnt work.. [
]
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
"it didn't work" is the most useless phrase you could post here.
What
did
happen? What did you expect to happen? What do you want to happen?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
[JSTL] how can I convert values (string to int) in JSTL
problem with tag files
Cookie problem
Doubt in c:set tag
Getting id with javascript !
More...