The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
[Originally posted by lbroome]

Hi Tony,

I am developing an application on Domino that incorporates the use of
servlets. The servlets perform the task they are supposed to do but during
testing I discovered that if I change the parameter in the URL then the
servlet will happily serve up another user's data. What I need to do is
redirect the current user if they attempt to reconfigure the URL.

I've tried enabling CORBA and capturing the .getRemoteUser() but this returns
the Domino server id. How does the file relate to CORBA
access? Do I have to list every user in it?

Any advice you could provide for this problem will be greatly appreciated.
These have been my first servlets and I'm sure I'm missing something simple
but even though I've purchased a few books on servlets and your own "Domino
Development with Java" I haven't been able to find out how to tackle this
particular problem.

Larry Broome