K
Kelly Gallagher
Hello all,
I have searched numerous groups via Google newsgroups
but either have not searched on the correct criteria or
I am missing something
My colleague's situation is this: She has one login jsp
which directs control to a single servlet. If the
servlet processes the login data correctly, she needs
to both a) close the original login browser window, and
b) bring up a static html document (which is actually
a winzip file) within a new browser window.
If the servlet processes the login info and gets an error,
she needs to preserve the login window (and of course
the login and password information) and display the
error message without opening up the html document.
She is using struts and can bring up the needed html
document with no problem upon success,
but is having problems closing the original login
jsp after (or before) re-directing the user to the static
html help document (which makes sense given the re-direct
logic). We've tried a few things which
did not work out, so I am wondering; is there a way
to create a thread within the action servlet in which one thread
would re-direct the user to the static html help page,
and another thread could send a request attribute to the previous
login page that could be resolved within the original login page to
force
it to close via javascript.
I've asked her if she can put some
javascript onto her static help html page but she said
the powers that be say no.
I am no expert at java so my questions may cause humor, but
I can take a few ribbings If anyone has any ideas I would
be most thankful. I dont' have her code on hand but could
get it if needed. TIA very much for any assistance. If my
question is not clear enough please feel free to post questions
and I will get clarification from my friend.
Thanks again all,
Kelly Gallagher
(e-mail address removed)
I have searched numerous groups via Google newsgroups
but either have not searched on the correct criteria or
I am missing something
My colleague's situation is this: She has one login jsp
which directs control to a single servlet. If the
servlet processes the login data correctly, she needs
to both a) close the original login browser window, and
b) bring up a static html document (which is actually
a winzip file) within a new browser window.
If the servlet processes the login info and gets an error,
she needs to preserve the login window (and of course
the login and password information) and display the
error message without opening up the html document.
She is using struts and can bring up the needed html
document with no problem upon success,
but is having problems closing the original login
jsp after (or before) re-directing the user to the static
html help document (which makes sense given the re-direct
logic). We've tried a few things which
did not work out, so I am wondering; is there a way
to create a thread within the action servlet in which one thread
would re-direct the user to the static html help page,
and another thread could send a request attribute to the previous
login page that could be resolved within the original login page to
force
it to close via javascript.
I've asked her if she can put some
javascript onto her static help html page but she said
the powers that be say no.
I am no expert at java so my questions may cause humor, but
I can take a few ribbings If anyone has any ideas I would
be most thankful. I dont' have her code on hand but could
get it if needed. TIA very much for any assistance. If my
question is not clear enough please feel free to post questions
and I will get clarification from my friend.
Thanks again all,
Kelly Gallagher
(e-mail address removed)