How do I invoke a servlet from HTML or ASP page?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How do I invoke a servlet from HTML or ASP page?

  1. #1
    Manika Guest

    How do I invoke a servlet from HTML or ASP page?


    Hi,

    I'm new to servlet programming. I need the syntax to invoke a servlet from
    HTML or ASP page. I'm taking
    an input on the page like Name. And I want to pass this as a parameter to
    the servlet and the servlet
    verifies whether there was some name written or not. Accordingly it says
    Hello + user name or displays a
    message "You did not enter anything"

    Thanks in advance

    Manika

  2. #2
    Paul Clapham Guest

    Re: How do I invoke a servlet from HTML or ASP page?

    It's just a URL, as if you were asking the Web server to send a page. It's
    usually something like http://www.infogain.com/servlet/HelloThere but look
    in the documentation for the Web server that's hosting the servlets for
    details.

    Manika <manikab@infogain.com> wrote in message
    news:394ebb36$1@news.devx.com...
    >
    > Hi,
    >
    > I'm new to servlet programming. I need the syntax to invoke a servlet from
    > HTML or ASP page. I'm taking
    > an input on the page like Name. And I want to pass this as a parameter to
    > the servlet and the servlet
    > verifies whether there was some name written or not. Accordingly it says
    > Hello + user name or displays a
    > message "You did not enter anything"
    >
    > Thanks in advance
    >
    > Manika




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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center