permaculture playing cards*
The moose likes JSP and the fly likes Javascript Encoder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Javascript Encoder" Watch "Javascript Encoder" New topic

Javascript Encoder

ram nagab

Joined: Dec 02, 2003
Posts: 25
Hi all

I want to encode javascript code which is coming in two forms

1 - embeded directly in JSP files.

2 - sparated in JS files but called from JSP files
could you please tell me if there is any encoder (either commercial or free) allows me to encode javascript code which is called from JSP file . I tried MS Encoder but it does not work out with JSP files.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
Javascript does not have to be encoded - you can either embed it in the generated HTML page or include it from a separate file. Javascript is not "called" in a JSP, the JSP builds the Javascript into an HTML page.
jQuery in Action, 2nd edition
subject: Javascript Encoder
Similar Threads
Hash symbol # problem in URL
Problem -- getOutputStream() has already been called for this response
URL problem with Hash symbol
how to encode to avoid javascript error
How to call a generic method when I only have an Object