if you want to hide javascript, one way is to keep the javascript in an
external file and refer to it in your page:

<SCRIPT SRC="http://www.someserver.com/myJS/fileName.js"></SCRIPT>

of course if your servlet generates JS on the fly you can't do this so
easily - unless you write the SRC as a file and then include the reference
as above.

HTH

peter




maurice munoz <[EMAIL PROTECTED]>@JAVA.SUN.COM> on 05/25/99 09:36:51
PM

Please respond to "A mailing list for discussion about Sun Microsystem's
      Java Servlet API Technology." <[EMAIL PROTECTED]>

Sent by:  "A mailing list for discussion about Sun Microsystem's Java
      Servlet API Technology." <[EMAIL PROTECTED]>


To:   [EMAIL PROTECTED]
cc:
Subject:  Newbie Question



I would like to know, how to hide some  code(preferably some scripts in a
servlet) from the  viewing public if they wanted to view the source code in
their web browser.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to