That's the way I do, BUT I've more than one servlet, which needs the
query-resulted data!
- So more servlets simultaneous share the same data objects
1. More servlets share same data
2. Data are holded in more than one object (?? synchronization ??)
Ecommerce:
1. Search data (servlet)
2. Navigate through data (servlet)
3. Show products in the shopping-basket (servlet)
Is that a resolveable situation?
Martin
John Kirby wrote:
> Setting up simultaneous queries shouldn't be a problem and shouldn't require
> synchronization. I have done something similar where I used JavaScript to
> send the query outputs to different windows/frames.
>
> To keep the two queries from stomping on each other, create your data access
> methods in a separate data class. That way each request get's it's own data
> class instance to execute the query. In the snippet below, each one of
> queries sends the servlet a different queryType ("query1" or "query2").
>
>
> 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