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
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