aspose file tools*
The moose likes Servlets and the fly likes servlets and jsp run Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets and jsp run" Watch "servlets and jsp run" New topic
Author

servlets and jsp run

jyothsna nandhamuri
Greenhorn

Joined: Jan 30, 2001
Posts: 7
hi,
please tell me how to run servlets and jsp programs using javawebserver2.0. my operating system is windows NT.
please help me anyone.
thank you & have a nice day
jyothsna.
Raukutam Sandeep
Ranch Hand

Joined: Nov 15, 2000
Posts: 61
hi jyothsna,

for u'r servlet: copy the servlet class file(for example hello.class) to servlets directory of JavaWebServer2.0
In the browser location bar, type
http://localhost:8080/servlet/hello.class
for JSP: copy u'r jsp page(for ex. hello.jsp) to public_html directory of JWS2.0
In the browser location bar, type
http://localhost:8080/hello.jsp
try this and get back..
good luck!!
regds,
Sandeep
jyothsna nandhamuri
Greenhorn

Joined: Jan 30, 2001
Posts: 7
Hi Raukutam Sandeep,
thank you for your reply. I did all things means copy to servlets directoy and public_html. And i given url http://localhost:8080/servlet/hello.class.but result is page cann't be displayed. my doubt is can i use servletrunner.exe or httpd.exe. and another is in place of "localhost" can i give any
another name like ipaddress. please clear all these doubts.
and also send me path settings for servlets and jsp.
thank you
jyothsna.
Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
You don't need to give .class extension when invoking a servlet.
http://localhost:8080/servlet/Hello is enough

Ajan
Raukutam Sandeep
Ranch Hand

Joined: Nov 15, 2000
Posts: 61
hi jyothsna,

yes, u can use either servletrunner.exe or httpd.exe for running the servlets.
With the latter, u actually start JavaWebServer.
Did u copy u'r .class file to servlets directory?
Pls, would u furnish u'r Servlet code, so that I can tell u where the error is?
U can mail me at rsandeep_1980@yahoo.com
In the place of localhost, u can give the ipaddress of u'r system(if it is standalone, u can give 127.0.0.1)
And localhost is the name of u'r machine. U have to give the name, which u have configured in the network(DNS) settings.
Send u'r servlet code, then I will tell where u got the problem.
regds,
Sandeep.
jyothsna nandhamuri
Greenhorn

Joined: Jan 30, 2001
Posts: 7
Hi Raukutam Sandeep,
Thank you very much sandeep. i got both servlets
and jsp. main problem is my java web server expires thats why
i can't run my programes. but i installed again. now i can do
both. again thanks.
Thank you & have a great day
jyothsna.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlets and jsp run