All the browser sees is the generated HTML - you JSP code is never shown.
Only client-side scripts are visible. If you want to hide them also
completely, do the following:
Put the page into some frames. This prevents it from being saved.
Next, create an method to catch a right mouse click on the page. I believe
it's called onRightMouseClick i JavaScript (maybe somebody else know it, if
it's wrong). This method could do this: alert("You cannot view source");
That should do the trick.
Jacob
----- Original Message -----
From: Garg Sanjay <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 03, 1999 12:31 AM
Subject: How to hide scriptlet code in 'view source'
> Hi,
>
> I am looking for a way to hide my java scriptlets in my JSP from
> the browser's 'view source'. Can it be done. I remember reading
> somewhere that it cannot be done for JavaScript code, but since
> scriptlet is something that runs on server side I am hoping to
> make it invisible to the world.
>
> I would appreciate any help.
> Thanks,
> Sanjay
>
> -----
> Sent using MailStart.com ( http://MailStart.Com/welcome.html )
> The FREE way to access your mailbox via any web browser, anywhere!
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html