Can Obfuscated java classes be fully supported by JSP?

Posted on 2005-04-17
Last Modified: 2010-03-31

If I've obfuscated my java classes into .JAR file, Can the JSP still be able to communicate easily with the Java classes/Beans?

Which user friendly Obuscator software would you recommend?
Question by:rospcc
    LVL 92

    Expert Comment

    Any names used by your jsp will need to be marked as not to be obfuscated.
    LVL 92

    Accepted Solution

    LVL 15

    Assisted Solution

    I was never a fan of obfuscation
    but you can read that thread for some tips and obfuscators
    Another know one is:
    Also, You can precompile your jsp files and then obfuscate them together with your code.

    Author Comment

    Thanks for the reply, will look through all our suggestions.
    objects, are you saying that those classes that will be used by JSP, cannot be obfuscated?
    LVL 92

    Expert Comment

    No, I'm saying any class/method names used by your jsp pages need to be excluded from the obfuscation process.

    eg. if you had:


       MyClass c = new MyClass();

    then MyClass and doSomething would need to be left as is.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now