This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compilation of JSP

 
Sharath Kumar
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a set of jsp files. I need to check how many lines of java code is written in it using a tool called javancss. we know that jsp conatins both java and html content.when we compile jsp we get java file so that we can use the tool to check how many line of java code is there in java file.

So my question is how to compile all the jsp files and get java files?.
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sharath Kumar:
I have a set of jsp files. I need to check how many lines of java code is written in it using a tool called javancss. we know that jsp conatins both java and html content.when we compile jsp we get java file so that we can use the tool to check how many line of java code is there in java file.


I am not sure how will you derive your required statistics using above logic/method.

Originally posted by Sharath Kumar:
So my question is how to compile all the jsp files and get java files?.


There are two ways to compile all JSP pages, first is by accessing each and every page, second and what actually you are looking for is precompilation of JSP.How to precompile JSP is depends upon Server. Which Server are you using?
[ October 05, 2006: Message edited by: Chetan Parekh ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of what possible utilty would counting these lines be?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
Of what possible utilty would counting these lines be?


I'm a little curious myself.
What is driving this requirement?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic