You wrote: > Andy:
Hello! Thanks for responding. > What "scope" do you use in the usebean tag in your jsp? I was using request, but I changed it to session based on your suggestion. Also, in my servlet I added some code that checked to see if the bean was found, and if not, I created a new and set it as a request attribute (also as you suggested). That seemed to fix it! > If, for example, you set the values for your bean and save it in your > session, then you should setthe scope within the usebean tag > as "session". Right -- I had it set as request because I didn't want the value set in the bean to be around throughout the entire session, just long enough to be in there for the length of the request. But, I can go back and reset the value in the servlet so that it is reset after the user logs in. To clear things up a bit, I am relatively new to servlets/JSP, and I am working on a authentication scheme where the user enters their username/password on a JSP, and then that information is passed to a servlet. The servlet (which will eventually be connected to an LDAP server, but is just checking string values for now) determines if my hard-coded username/password values are correct. If not, then I set a "Username invalid!" flag (and also a "Password invalid!" flag if necessary), and then forward back to the login screen so that the error message(s) may be displayed. I am storing those messages in the bean, although I suppose they could just as easily be stored in as session variables. Either way, I just want to be able to tell the user what the problem was with their login. Any suggestions for improvements you have for this approach would be welcome. Thanks again for sharing those ideas and helping me get this working! I appreciate your help. Andy ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html