"Mr. Email" wrote:
>
> 1) Do we have any supplement to ActieX controls in Servlets and if so could
> you suggest me a simple way to implement the calendar control. I have a
> idea that JDK 1.2 has a class named Calendar.class but I would to have a
> control with all the functunality.
> Can you suggest me some of the sites or code snippets that can be used to
> build such a control.
>
> 2) Can Java Script  be integrated with Servlet and if so how do we do it?

Generally, a servlet sends an HTML page to a browser. Anything you can do in an
HTML page, you can do with servlets. The servlet gives you the capability to
dynamically create the HTML page. Have the servlet place the tags for whatever
control you want into the page that it sends back to the browser. Building a
control is outside of the scope or charter for this list. Check the MS site for
ActiveX.

> 3) Is it necessary to only have FORM ACTION for invoking a servlet and if
> not what could be the ways to invoke a servlet ?

The generic servlet is intended to provide any kind of server side processing.
This means it runs inside a server. You would invoke the servlet using whatever
socket and protocol the server accepts for client-server interaction.

In the case of HttpServlets, which are designed specifically to interact with
HTTP requests from browsers, the easiest way is to use a form or link from an
HTML page. However, there is nothing special about this. If you know how to
connect to a web server, you could bypass the browser, open a socket connection
directly to port 80, and send all the information needed by the servlet by
following the HTTP protocol.

> 4) Can we call a simple HTML file when an FORM ACTION is invoked along with
> a servlet. i.e as we do have in JavaScript when we open an HTML file the
> first thing invoked is the OnLoad() in the same manner can we call a
> servlet on the load of an HTML file.

Sure. See above for the answer to #1 and #2.

KM

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to