Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Compiling JSP file  RSS feed

 
hasan wasif2k1
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to compile JSP code same as class file in Java such that compiled JSP code is not viewed by other person
 
matt hooker
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the jsp code will not be viewed by anyone accessing that jsp via the web. The browser receives the processed jsp from the server and only has to parse (and display) the HTML output from the JSP.
 
Roopa Bagur
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jsps by default get compiled to servlets i.e .java & .class files.
Originally posted by hasan wasif2k1:
How to compile JSP code same as class file in Java such that compiled JSP code is not viewed by other person

 
hasan wasif2k1
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes its true that web will not see the code via web but what if i give my application to a client(person who asked me to write code for him) he can see my code and can sell it further by his name. I want to compile my JSP code in same way as we compile .java file into .class file and then give only that compiled code to client.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!