• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to compile *.jsp file?

 
Jimi Rock
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
hemang patel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use JSWDK, but you'd better not. It is obsolete now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic