File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes having someone else access my servlet.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "having someone else access my servlet.." Watch "having someone else access my servlet.." New topic
Author

having someone else access my servlet..

Brian Snyder
Ranch Hand

Joined: Feb 03, 2001
Posts: 142
I have a web site(a very basic one) and have been practicing with servlets.
http://snydb2001.freeservers.com/
When the user clicks on "Try out my first servlet", it works, but when they go to click enter after typing in their name, my browser states that the web site can not be found. When I have the web site set to http:/localhost:8080/... that works. My problem is how do I allow OTHERS to access it since not everyone can go to http:/localhost:8080 as this would be the URL for their own machine....no???
Maky Chopra
Ranch Hand

Joined: Apr 11, 2001
Posts: 149
cool.. you are getting there..
one way for others to get to your page (on your machine) would be if you had a DSL line to the internet and a static ip. Otherwise, it would be next to impossible.
Now you have to graduate to hosting your site on a webserver that is permanently hooked up to the internet.. Check out www.mycgiserver.com and www.webappcabaret.com These are two of the good servers out there supporting jsp/servlets
Get yourself an account and then if you need help uploading/configuring your account, post back here.
Before you ask, you will have to ftp your files (*.html, jsp, .class) to mycgiserver and copy them there using a browser based file manager to webappcabaret
[This message has been edited by Mak Bhandari (edited April 26, 2001).]
Brian Snyder
Ranch Hand

Joined: Feb 03, 2001
Posts: 142
Thanks Mak....
That answers another big question of mine. I'll try it out and then get back to you.
Many thanks!!!
Brian Snyder
Ranch Hand

Joined: Feb 03, 2001
Posts: 142
Hey Mak!!!
I got it working now.
Many thanks!!! http://www.webappcabaret.com/snydb/introductions.htm
Maky Chopra
Ranch Hand

Joined: Apr 11, 2001
Posts: 149
you are most welcome :-) I remember the feeling of running my first servlet !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: having someone else access my servlet..