File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 13027
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.
I agree. Here's the link:
subject: Javascript Encoder
jQuery in Action, 3rd edition