472,121 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

JSP Server

553 512MB
Hi

My question is actually specifically about JSP.
I am looking for a wesite where i can put my JSP code and able to run it online.

I mean if i have no Tomcat or any server installed in my PC, can i use any online Tomcat server to practice my JSP code online ?


Thanks
Feb 17 '07 #1
5 1434
jhardman
3,406 Expert 2GB
Most operating systems include a simple scripting webserver. They are not necessarily very robust, but I was under the impression they could handle jsp. The trick would be figuring out what server you have, and making sure it is turned on.
Feb 17 '07 #2
questionit
553 512MB
Most operating systems include a simple scripting webserver. They are not necessarily very robust, but I was under the impression they could handle jsp. The trick would be figuring out what server you have, and making sure it is turned on.
how can i find which server is installed and how to switch it on.
Feb 17 '07 #3
jhardman
3,406 Expert 2GB
What os do you have? some servers install when the os is installed, some leave them on the install disk unless you choose custom installation.
Feb 17 '07 #4
questionit
553 512MB
What os do you have? some servers install when the os is installed, some leave them on the install disk unless you choose custom installation.
Windows XP (service pack 2)

i have already tried opening .jsp file with internet explorer, but it does not open.
Feb 17 '07 #5
jhardman
3,406 Expert 2GB
I believe xp uses a server called IIS (internet information server). Search for that in your programs or on your install disk (the other option is PWS, personal web server, but I don't think microsoft included that with XP). The program needs to be running, it needs to be told that thte folder where you have your scripts has scripts that need to be interpreted, and you also probably need to link to the page in question rather than just opening it.

IIS should create a folder called inetpub (or maybe wwwroot), you need to put a default HTML page on that folder which links to your page, and type the following into your address bar: http://localhost/default.html , then follow the link to your scripted page.

If you just try to open the scripted page, windows explorer bypasses the server and just opens the file, but if you get to the file from a hyperlink, internet explorer will contact the server (IIS) and ask for the page, IIS opens it, interprets the script and sends it to IE. You obviously don't need to worry about bypassing windows explorer if the page is hosted on a different computer.
Feb 17 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Nathan Sokalski | last post: by
9 posts views Thread by Grim Reaper | last post: by
14 posts views Thread by Developer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.