The only GUI interaction for servlets is through web pages so the button
would have to belong to a form or an applet.

If you decide to use a form you could download all the data into the user's
browser, store the data in hidden form fields and then use Java script to
browse through one record at a time. The setup with an applet would be
similar except that you might want to store the data in the params of the
applet rather than hidden form fields.

The above is a simple alternative which minimizes the calls to the server
and the database.

Hope this helps.

Nasir Khan
[EMAIL PROTECTED]
----- Original Message -----
From: dstankovic <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 13, 1999 2:16 PM
Subject: servlet button


> Hi !
>
> Is it possible to add a button to a servlet.
> I am trying to make a connection to a database and retrieve some data, but
> since there is the whole set of records I need something to browse thru
> them. I was thinking to add a next button which would show next record.
> Could you please e-mail me if possible to do so.
> Thanx
>
> Darko
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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