protect JSP code [message #114536] |
Wed, 29 June 2005 14:49  |
Eclipse User |
|
|
|
Originally posted by: noemail.nospam.com
Hi,
is there a way how to protect JSP code from user's eyes ?
i will sell my application to several customers and i didn't find such
thing in JSP for now.
Does eclipse Web tools allow such possibility ?
thanks a lot,
Maileen
|
|
|
Re: protect JSP code [message #114885 is a reply to message #114536] |
Fri, 01 July 2005 02:32  |
Eclipse User |
|
|
|
On Wed, 29 Jun 2005 14:49:37 -0400, Maileen <noemail@nospam.com> wrote:
> Hi,
>
> is there a way how to protect JSP code from user's eyes ?
> i will sell my application to several customers and i didn't find such
> thing in JSP for now.
>
> Does eclipse Web tools allow such possibility ?
>
> thanks a lot,
> Maileen
>
I can think of two types of protection you are looking for
1. obfuscation of complete pre-compiled JSP files so even if
someone decompile the class file they could not tell much.
And the answer to that is no, we don't offer anything (in fact,
I've never even heard of anyone wanting to do that ... so if that
is what you want to do, I'be be interested in you confirming you
have such a requirement.
2. What I have heard of ... people want to "hide" things from what is
served to the browser, so if they "veiw source" in the browser, they would
not see anything sensitive. You can not completely hide .. after all, the JSP,
running as a servet, produces HTML and that HTML goes to the browser, so they
could always see that HTML. Of course, the user won't be able to see your Java
code .... that's just executing back on server producing HTML.
And ... the one hopefully constructive thing I have been building up to ....
if you use JSP Comments in the JSP file <%!-- --@> instead of regular HTML
comments <!-- --> those JSP comments are NOT sent to the clients browser, so
that would be the place to put anything sensitive, e.g. <%!-- this function is for xyz customer --%>
Hope this helps a little.
|
|
|
Powered by
FUDForum. Page generated in 0.03583 seconds