Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hello world problem

Status
Not open for further replies.

webscripter

Programmer
Jul 29, 2002
266
US
Hi everyone,

I have a server that supports jsp, so they say, but this simple little hello world jsp file doesn't load the dukebanner.html file.

It requires no class files.

I've paid for jsp server support for a year and haven't been able to run one single jsp file on my website.

I asked the support group one question and they replied with "I'm sorry but we don't have tek support for jsp".

I need to find another hosting service.

If there is something wrong with this file directly from


placed on my server at:

(I took out the reference to dukewaving.gif and insert text hello you all)
It requires no class files.

If I have set it up wrong please let me know.

This is all the support my web server gives me:

Java Servlet Manager


Java Servlets are currently enabled on websiteprogrammin.com. To disable Java Servlets, please click here:

NOTE: The directory that contains your servlets, /home/websiteprogrammin- will not be removed.
--------------------------------------------------------------------------------

To use Java Servlets with your domain, simply copy the compiled Java Servlet code (the file with the .class extension) into your /servlets directory.




NOTE: the example above assumes your compiled servlet is named YourServlet.class. When you access your servlet via the web, however, it is important not to include the .class extension.

Thanks
Tricia
yorkeylady@earthlink.net
 
It works fine from where I am sitting, that is, it shows 'Hello World' in H1 sized text.
 
Agreed, but when I "View Source", I see JSP page and include directives, which makes me wonder if yorkeylady/Tricia's ISP really does support JSPs.
 
I just found this on their site. I guess I should have taken time to browse their site. Next time I know better.
----------------------------------------------
Java Servlet Manager
Before using Java Servlets you must have enabled the Java Servlet Manager in your Control Panel.


When you first enter this page, click the "Enable Java Servlets" button and wait 10 minutes for the server to run the install scripts. If you ever need to disable the Java Servlets, click on the "Disable Java Servlets" button.

To use Java Servlets on your site, copy the compiled Java Servlet code (the file with the .class extension) into your /servlets directory.


.


---------------------------------------------------------
Java Servlets FAQ
Do you support JDBC?

At this time we do not support JDBC.

Do you support JSP?

JSP is not supported on our systems.

Can the CLASSPATH variable be changed?

This is a global setting that affects all sites on a server and cannot be altered.

What version of the JDK do you use?

We are using version 1.1.5.

What kind of support do you offer for using servlets?

We can only ensure that the servlet zone is set up properly. If your servlet is not working properly you will need to debug it to find the problem in the code.

------------------------------------------------------

Does anyone know of a good, but not too costly host.

Thanks
Tricia
yorkeylady@earthlink.net
 
As I may see your jsp was not placed to servlet zone.
Depending on the url requested (path, extension or pattern) front-end http server (normally Apache) either returns the requested resource directly or transmits it to some helper application (in your case to servlet engine). So, if you place the file into the wrong place, it's treated as a plain text file (the rule is based on path rather than extension). Placing it to the right location will solve your problem Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top