DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    satish Guest

    running the servlets (pls answer this question )




    I wrote a simple servlet which prints a message on to the screen, and when
    I give the url http://localhost:8080/servlet1.class, it runs perfectly and
    prints the message, but when i link the same servlet to a html file in the
    action tag specifying the url "http://localhost:8080/servlet1.class"( i put
    a submit button in the form, on action it calls the servlet1.class which
    has to print the message...) but is says..filenot found HTTP405 error..actually
    when a servlet is found the webserver has to print a message on the console
    saying that the servlet is found.in either case that is when the servlet1.class
    is run idependanly without link to html, though it runs I am not getting
    this message why? second thing is when it is runnning independanly why is
    it not running when i link it to a HTML..pls explain if anyone of you undersood
    the problem,,,thanks in advance...

    i thought the disscussion group would be of some help to me while practising
    but many of my questions are being left unanswered , Pls someone take the
    initiative and help me..

    satish

    satish

  2. #2
    Richard S Hendershot Guest

    Re: running the servlets (pls answer this question )

    try http://localhost:8080/servlet1
    or http://localhost:8080/servlet/servlet1

    -rsh


    "satish" <satish141@england.com> wrote in message news:399a7a07$1@news.devx.com...
    >
    >
    >
    > I wrote a simple servlet which prints a message on to the screen, and when
    > I give the url http://localhost:8080/servlet1.class, it runs perfectly and
    > prints the message, but when i link the same servlet to a html file in the
    > action tag specifying the url "http://localhost:8080/servlet1.class"( i put
    > a submit button in the form, on action it calls the servlet1.class which
    > has to print the message...) but is says..filenot found HTTP405 error..actually
    > when a servlet is found the webserver has to print a message on the console
    > saying that the servlet is found.in either case that is when the servlet1.class
    > is run idependanly without link to html, though it runs I am not getting
    > this message why? second thing is when it is runnning independanly why is
    > it not running when i link it to a HTML..pls explain if anyone of you undersood
    > the problem,,,thanks in advance...
    >
    > i thought the disscussion group would be of some help to me while practising
    > but many of my questions are being left unanswered , Pls someone take the
    > initiative and help me..
    >
    > satish
    >
    > satish




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links