wood burning stoves 2.0*
The moose likes JSP and the fly likes Compilation of JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Compilation of JSP " Watch "Compilation of JSP " New topic
Author

Compilation of JSP

Sharath Kumar
Greenhorn

Joined: Aug 15, 2006
Posts: 7
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

Joined: Sep 16, 2004
Posts: 3636
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 ]

My blood is tested +ve for Java.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61760
    
  67

Of what possible utilty would counting these lines be?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compilation of JSP