You could use form-based authentication and "remember me" functionality:
http://tinyurl.com/6du0 To see real code: LoginServlet.java (http://tinyurl.com/6jn4) BreadCrumbFilter.java (http://tinyurl.com/6jn8) HTH, Matt > -----Original Message----- > From: Julie Steiner [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 8:16 AM > To: < > Subject: Automatic Basic Authentication Question > > > Hello all, and thanks in advance for the help! :) > > From my Struts Action, I am trying to forward to a new URL that uses > basic authentication. I have already Authenticated the user, > and would > like to pass the user credentials to the webserver so that the > Authentication form will not 'pop up' . I have attempted to > put in the > username:password in the authorization header, but this does > not seem to > work as of yet. > > This is what I have done so far: > > BASE64Encoder encoder = new BASE64Encoder(); > > String header = "username" + ":" + "password"; > String encodedHeader = encoder.encode(header.getBytes()); > response.addHeader("Authorization", "Basic " + encodedHeader); > > return (new ActionForward("my secured site", false)); > > > Thanks Again! > > Jules > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

