users@glassfish.java.net

Re: How to: use Form based auth via JDBCRealm:oracle in Glassfish 3.0

From: <glassfish_at_javadesktop.org>
Date: Sat, 16 Jan 2010 14:26:11 PST

And by changing my servelt to include;
      
      String res = request.getParameter("command");
      String referer = request.getHeader("referer");
// System.err.println("\nwonderland:dopost: referer=" + referer);
      if(res.equals("logout")){
        request.getSession().invalidate();
      }
      if (referer != null && !referer.contains("loginPage")){
        response.sendRedirect(referer);
      }else {
        response.sendRedirect("/WonderLand");
      }

I now get the desired behavior.

Hopefully this ends the issue for good. If glassfish is going to be this difficult to work with regularly i might as well sell my soul and start doing C#.

Really though the issue was probably my using clear text passwords without realizing it. A more descriptive error message would have been helpful though, could the system not have noticed that the passwords coming from the database were not encoded? I'll try encoding them later.
[Message sent by forum member 'cal41' (calgach_at_yahoo.ca)]

http://forums.java.net/jive/thread.jspa?messageID=381376