Hi

We are building a web based application for our client. The user has a
number of options. For each selected option, a servlet is invoked. The
options can be "Detail Correction", "mass correction", "status" etc etc.
The business  requirement is that when the user chooses the option of say
'Detail Correction', he should be able to invoke this option again but he
can invoke other options.

At any given time, the user should have only one "Detail Correction"
session open.  He can initiate another session after this session timesout.

I have thought of some strategy. I would like Ur feedback on it.

When the user clicks on the option for the first time, we put a flag in the
session object. Subsequently, when the user chooses this option, the
servlet would check for the presence of this flag. If the flag is present,
it would not execute.

In another scenario, if he selects this link from another machine, he will
have a different session object. Using the SessionContext() methods we may
get the session ids and check for the flag. But I have heard that these
methods would be deprecated in Servlet2.2 for security reasons.

In case, he closes the browser, he has to wait till session timeout, so
that he can call this servlet again.

Anyway feedback on the strtaegy, the mentioned issues and workarounds would
be highly welcome.

Regards
Shivashis Bose

___________________________________________________________________________
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