Solved

hide my JSP and JavaBean source code

Posted on 2003-11-17
10
527 Views
Last Modified: 2010-04-01
Hi, i wonder can i do this?
Hiding my JSP and JavaBean source code from other peoples to access.

I search Yahoo search enginee. Its seems nothing relevant...

can you help? to suggest any method or way to protect my hard-work from modified by peoples?

Thank You.
0
Comment
Question by:superman19
10 Comments
 
LVL 4

Expert Comment

by:vk33
ID: 9762355
Hi!

1. You can supply your JavaBeans without source code, just classes. They do not contain source code (though they can be decompiled).

2. You can use Servlets instead of JSP-pages. They are classes too thus no need to worry about the source code.

3. Your JSP code is only visible for server side. It means that none of the clients will see it. But server needs to see the code to be able to interpret it.

4. Use jspc utility if you want to compile your JSP to Servlet. It's available in Tomcat.

Regards!
0
 
LVL 3

Expert Comment

by:applekanna
ID: 9767537
If I understand your qustion correctly ->

your JSP and javabeans are always there on the server and can never been seen by the clint in the browser, all he can see is only HTML

Hope this helps
Cheers!
0
 

Author Comment

by:superman19
ID: 9768006
dear all, like what you've said, they can always decomplie back from the .class file. In fact i did that all the time when i need to change the contain of the .war file if i have to.
Don't think this is the ideal way...

Applekanna, correct. It's in the server, that's why i need to protect from accessing by any local peoples. This is beacasue i am going to deliver a project to one of my client and i afraid he will abuse my code by resell it to another party......

Thank You.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Accepted Solution

by:
applekanna earned 250 total points
ID: 9768042
hmmm...
see if this helps

CREMA is java obfuscator
http://www.javaworld.com/javaworld/javatips/jw-javatip22.html

Jobfus
http://www-106.ibm.com/developerworks/java/library/j-obfus/

acm paper on obfuscators
http://www.acm.org/crossroads/xrds4-3/codeob.html

but this thread in EE says it is not possible to do what u are asking for
http://beta.experts-exchange.com/Programming/Programming_Languages/Java/Q_20684696.html

Hope this helps
Cheers!
0
 
LVL 3

Expert Comment

by:applekanna
ID: 9768044
Also i thought a client owns the source code ;) of any project
0
 
LVL 15

Expert Comment

by:dualsoul
ID: 9769066
> Applekanna, correct. It's in the server, that's why i need to protect from accessing by any > local peoples.

as vk33 said: don't install JavaBean sources - only classes
and what about:    .jsp - just compile them, and the same, don't install sources :)

to avoid decompilation use obfuscator
0
 

Author Comment

by:superman19
ID: 9769601
applekanna... ha... i agree with you.. but i code them different price with this special terms and condition...
source code is MINE.. ha...

:-)

Thank you for your URL link..

0
 

Author Comment

by:superman19
ID: 9770210
applekanna, i still didn't get you.
all the URL stated above is seems only telling you the concepts and the tricks behind it.

I wonder, any program (other that complie into .exe file) can perform this "hiding" or protecting stuffs??
0
 
LVL 3

Expert Comment

by:applekanna
ID: 9771942
here is one but it is an evaluatiob version same obfuscator

http://www.e-t.com/jshrink.html
0
 
LVL 3

Expert Comment

by:applekanna
ID: 9789723
Thx for the points  :)
superman,was just curious to know what u eventually used.
Thank you
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
There's a lot of hype surrounding blockchain technology. Here's how it works and some of the novel ways it' s now being used - including for data protection.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question