You could have the hrefs to these external links point back to the search
servlet with a parameter set indicating the redirect address
(i.e.href="myservlet?redirect=http://othersite.com/wherever.htm";), and
handle these requests by removing the vector, then issuing a redirect.

HTH,
Chris

> -----Original Message-----
> From: Jake Brain [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 04, 2001 10:50 AM
> To:   [EMAIL PROTECTED]
> Subject:      remove a large object from session - when?
>
> Hi, there are certain queries a user may make that return many results
> (e.g all employees)
>
> My way to handle this was to put all results( large vector) in session,
> then allow the user to scroll thru results(next, previous buttons). So
> this means there is only one query rather than many.
>
> Now people r worried when to know to take it out of session to free
> memory,  in an elegant way design wise. In other words if the user clicked
> on anything else on that page(links to other servlets) other than the next
> , previous buttons, we can assume there is no longer a need to have that
> large vector in session. But what is the elegant way to remove the vector
> in the other servlets? Just simply check for this object and remove it?
> Has anyone else had to design something like this? Thanks.
>
> __________________________________________________________________________
> _
> 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