On Behalf Of david chan
> Sent: Wednesday, June 07, 2000 2:42 PM
> To: [EMAIL PROTECTED]
> Subject: HTMLEncode in JSP
>
>
> Hi,
> Does any HTMLEncode function call in JSP or servlet that is similar to th
I don't think there is a function you can call to convert
'<' into < '>' into > and '&' into & I assume that
is what you are looking for.
I ended up writing a small function that loops thru a
StringBuffer and calls replace() to do the above
translation.
Good Luck
]Monty Shaw[
===code below
Just as you do in HTML, however, to pass parameters, just use the <%= JSP
code %> inside the ( ) of a javascript function.
For example, I call my javascript function in the onload="" call of the
tag with specific request information:
I am not sure..but I think its ok to use ' ' instead of "
and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:(bcc: Kher Tamanna-SWD-ITIL-UB/Itilmail)
Subject: Re: HTMLEncode in JSP
hi !
how can i call the javascript function in my jsp file. i want to
pass t
hi !
how can i call the javascript function in my jsp file. i want to
pass the parameters also .
advance thanks,
subu
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
==
-
From: "david chan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 07, 2000 1:42 PM
Subject: HTMLEncode in JSP
> Hi,
> Does any HTMLEncode function call in JSP or servlet that is s
Hi,
Does any HTMLEncode function call in JSP or servlet that is similar to the
function in ASP ?
Thanks.
David
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com