Hi!

About Q2 is possible a verification at client side (before hitting the
submit button)
using JavaScript. A solution would be to send with the page information
about fields.
Something like this
<script lang....>

var minvalues=new array[10];
var maxvalues=new array[10];



minvalues[0]=12;
minvalues[1]=5;
...
minvalues[0]=50;
minvalues[1]=14;
...

function verify(i){
if(i==0) {
            if( eval(document.forms[0].field1.value)<minvalues[0]
                  || document.forms[0].field1.value>maxvalues[0] ){

alert("Wrong value");

document.forms[0].field1.value=minvalue[0];

      }

            }

if(i==1){

           ...
            }


}


</script>


....
...

<input type="text" name="field1" onChange()="verify(0)">

.....
<input type="text" name="field2" onChange()="verify(1)">

.....
....



This example is to give You an idea, it is not a working one.

I think verification at client side it is possible only with JavaScript (and
Applets).
But You should be careful because JavaScript can be disabled in browsers and
than will NOT work.

Best wishes,
                    Andras









----- Original Message -----
From: Annu Singh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 09, 1999 3:11 PM
Subject: Reports.


> Hi All,
>     We have an application that we are planning to "Browser enable".
>
>      This application generates huge reports with thousands of records.
>       Q1) Which is the best way to generate these reports (on the
browser)?
>         Is there any Framework available for generating such reports ?
(Let
> me concentrate
>         on other important issues, than spend my time on formatting
> reports).
>
>         Q2) We also need to do field level verification as and when the
user
> is inputting data (even before the user submits the form. For example the
> verification is to be done when there is a change of focus). For
> verification we have to go back to  the database (The input data is
> validated against some existing records in the database).
> In the prototype we had build we had used Java applets and in it we were
> calling ASP scripts to access the Database but it is extremly slow.  Is
> there any other way/architecture  to increase the speed (using Servlets,
etc
> ...).
>
>         Any kind of help or an idea is welcome.
>
>
>         Thanks in advance.
>
> Regards,
> Annu Singh
> [EMAIL PROTECTED]
>
>
___________________________________________________________________________
> 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