Shame that Glassfish can't sneak in the path that the Login Form will be redircting to in a session variable or something.
Then the login.jsp could see what the destination would be and then make the proper presentation.
Wouldn't be portable, but...as long as that's known up front, no real harm in it.
[Message sent by forum member 'whartung' (whartung)]
http://forums.java.net/jive/thread.jspa?messageID=299679