Meaningless Drivel is fun!*
The moose likes General Computing and the fly likes How to make java/servlet code write protected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "How to make java/servlet code write protected" Watch "How to make java/servlet code write protected" New topic
Author

How to make java/servlet code write protected

sanuji pillai
Greenhorn

Joined: Jul 05, 2010
Posts: 24
Hi All,

I have one common question related to Java/Servlet.
I have done one some functionality in my application , i want to make java/servlet code write protected or accessibility hidden or cannot alter by someone.
Any option in java to impletement this functionality.

Regards,
Sanuji Pillai T G.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The source code or the compiled class?

At any rate you can make any file in your computer read-only, or whatever, by asking your operating system to apply those permissions to it. Why do you ask how to do that in Java?
sanuji pillai
Greenhorn

Joined: Jul 05, 2010
Posts: 24
Hi,
What i mean is that java file/compiled class. Once class file is generated , there are several tools to revert bact to *.java.
Thats how the authenticity is broken.
I dont need to alter the content, that is the requirement.

Regards,
Sanuji Pillai
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Make sure that the .class files are not available except to trusted logins.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

With servlets, everything you put in the WEB-INF folder will not be accessible from browsers. That means that all classes in the WEB-INF/classes folder are only visible to anyone who has access to the server either directly, or through FTP, Windows shares, NFS etc - in other words, when it's possible to see the file system itself.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37952
    
  22
Too difficult a question for “beginning”. Moving discussion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make java/servlet code write protected
 
Similar Threads
When using MVC, to what degree should a model be tailored to a view?
servlets in jar
non-http servlets
getting Error in retrieving CGI variables
Why does GenericServlet implement ServletConfig