Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP's  RSS feed

 
Santhosh, Avunuri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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.
 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • 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.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!