On Jan 10, 2004, at 3:38 PM, Bear Giles wrote:


A couple quick questions that I'm pretty sure I've seen on your blog over the past few months... maybe you know the right search keyword off the top of your head since my feeble attempts (admittedly while juggling a dozen eggs) haven't paid off. (Or maybe this is the start of an FAQ?...)

1) duplicate login required

This happens when someone bookmarks the login.jsp page. Since I use a LoginServlet instead of j_security_check, it suppresses the "invalid direct reference to login page" error. This is really only a problem on Tomcat 4 since it does a redirect to the login page, and the user sees the URL. On Tomcat 5 and Resin, the user sees .../mainMenu.do in the address bar (it does a forward instead of a redirect). I tried last week to programmatically fix this with no luck. One solution that might work is to use JavaScript's location.replace() to replace the login page's URL with the mainMenu's URL (I haven't tried this). On a previous project, I just put a message on the login page to NOT bookmark it.



2) 404 error on j_security_check if person logs in, navigates back to login page and tries to log in again before logging out. I think this is because my boss has a weird desire to invoke login.jsp directly, but it shouldn't lock them out of the application in error messages.



Might be solved with above location.replace() solution. j_security_check is only available (as far as I know) when a person has not logged in. As soon as they login, it goes away. This might help:


http://www.mail-archive.com/[EMAIL PROTECTED]/ msg106041.html

3) On Mozilla, I see masthead in space that was blank in appfuse, then gray bar (link to main menu, search form), then title. On MSIE, the gray bar is hidden behind the masthead image. I thought I had correctly adjusted the positioning and margins to reflect the size of the graphic. Or more precisely, I *know* it works under Mozilla, and haven't changed any of your MSIE hacks. Could it be a MSIE 6 problem?


This is probably a CSS issue between the two browsers. You might try validating your CSS at http://jigsaw.w3.org/css-validator/.


HTH,

Matt



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Struts-apps mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-apps

Reply via email to