IntelliJ Java IDE
The moose likes Servlets and the fly likes How to compile *.jsp file? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How to compile *.jsp file?" Watch "How to compile *.jsp file?" New topic
Author

How to compile *.jsp file?

Jimi Rock
Ranch Hand

Joined: Feb 19, 2001
Posts: 134
If I have a *.jsp file , how can I compile and run it ?
Note that I have downloaded the following software:
JDK 1.3 , JSWDK 1.0.1 , Tomcat 3.1
I would be grateful if some one could tell me how to instal and configure them in order to be ready to be used for JSP .
Note also that I am using windows 98 OS .
Thanks for all,
Jimi.
ken chou
Ranch Hand

Joined: Feb 08, 2001
Posts: 68

Just go to the following link:
http://webappcabaret.com/javachina/tomcathowto.htm
Tomcat will compile the .jsp page to Servlet and run it
for you.
Saran Vel
Ranch Hand

Joined: Nov 03, 2000
Posts: 111
Install JDK1.3 and install JSWDK.. I guess JSWDK is enough for u to learn JSP..
Set class paths properlly.. by reading the documentation provided..
Regd JSP u need to write jsp files and put it in the respective folder, which will be mentioned in the document..
Start the webserver and invoke the jsp from a browser..
the webserver will create corresponding servlet file for u'r jsp and compile it and execute it..
All the Best
Saran

Saran<BR>Sun Certified Java2 Programmer
hemang patel
Greenhorn

Joined: Mar 06, 2001
Posts: 8
You don't have to compile a .jsp file.
If you have a file with .jsp extension, then tomcat (or JSWDK or whatever) will compile it automatically when the jsp file is loaded/called for the first time. So, you just write a jsp file in text editor, start the server and call the jsp file from browser ... thats it, if there are errors, they will crop up on the browser ..
Travis Gibson
Ranch Hand

Joined: Oct 17, 2000
Posts: 100
Fellow Ranchers,
You don't compile JSP. The Java App Server actually converts the the JSP to a Servlet and executes it everytime a request is made to the JSP. It's all dynamic and behind the scenes. That's the cool thing about JSPs, the ability to easily control the look and feel of pages with the power of Servlets.
Regards,
TMG.com


Regards,<BR>Travis M. Gibson, SCJP<BR>Java Developer<BR>www.travismgibson.com<BR>travis@travismgibson.com
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1952
You can use JSWDK, but you'd better not. It is obsolete now.
 
IntelliJ Java IDE
 
subject: How to compile *.jsp file?
 
Threads others viewed
how to compile and run JSP
JSP
how to run it on live server to make, a live webserver to a particular port
Precompile JSP in Weblogic 5.1
JSP
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture