• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JSP's

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
we have developed a product using JSPs. But now we are selling that product to few customers. The problem is when we install the product at their site, then they get all the JSP source code. We don't want to let them see the source code. How is it possible to get this done/
Please anyone help me,
Tx,
San.
 
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the application was designed properly, the JSPs should only handle the presentation part of the job and leave processing to either tags or beans. Then you don't have to worry about code being seeing since JSP look just like HTML page.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a way to get a JSP to be 'pre-compiled' by the server. I believe the latest Tomcat can be set to do this, and I'm pretty sure many of the commercial products do this as well.

But this still means you need to give it (and thus, the customer who owns it) a JSP to precompile.

Unless the JSP/Servlet spec disallows it, you might be able to find a JSP-precompiler (for tomcat it's jikes?) that will turn your JSP's into class files, and then you can distribute the class files.

The other alternative, which may not fit either your application or your business model, is to host the application, either by a third party or yourself. This way you retain the JSP's but your customers still get their application.
 
Die Fledermaus does not fear such a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic