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.
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
posted
0
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
posted
0
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
posted
0
You can use JSWDK, but you'd better not. It is obsolete now.