Since the code is server side, the client never gets to see it anyway. All
the client receives is whatever you send to the output stream (which is
standard HTML).
If you are able to view server side code on your client then you have
misconfigured something - any code you can see on the client has *not* been
executed by the server.
On the issue of JavaScript code hiding, you shouldn't have *anything*
included in your output stream (including but not limited to JavaScript and
HTML) which you don't want users to be able to see. There is no way to hide
code from clients as the browser has to be able to download it in order to
display it. From that point on, the user can do whatever they want with the
downloaded information, including viewing its source.
So, if you have JavaScript code which contains sensitive information, like
authentication routines etc, get rid of it. Rewrite your app so that
anything like that is done on the SERVER side.
Then use SSL just to be safe :)
-----Original Message-----
From: Garg Sanjay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 03, 1999 10:31 AM
To: [EMAIL PROTECTED]
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