• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compiling JSP page  RSS feed

 
Atul Prabhu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How do i compile a jsp page manually through a command line tool...
I dont want to use jspc of ant.

Is it possible ??

---

Atul
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how would you compile a java file manually without using javac.

javac for java files
jspc for jsp files

you have the other option just put your jsps inside tomcat /web-inf/ directory. it will compile for you.

and i think ANT is a command line tool. isn't it.
[ September 15, 2004: Message edited by: adeel ansari ]
 
Kalai Selvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi adeel,


you have the other option just put your jsps inside tomcat /web-inf/ directory. it will compile for you.


I guess Mr. Atul's question is about converting the jsp files to java and then compiling before deploying jsp to the web server or app server. so that response generation should not take extra time even for the first request.....

Kalai Selvan T.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok you will save the time. but what about further java to class. you will use something to compile java files.

so just put the jsps in tomcat web-inf directory. it will take time for the first time but the first user would be the developer probably not the client.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For security reasons, some folks like to Disable JSP compilation in their Servlet containers.

How do i compile a jsp page manually through a command line tool...
I dont want to use jspc of ant.


Take a look at the "Web Application Compilation" section of "The Tomcat 4 Servlet/JSP Container" documentation.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks dirk. your mentioned links are really worth reading.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!