Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript Encoder

 
ram nagab
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic