How can I set a default-user ? There is no setUserPrincipal or some like that.
I have a webapp with 2 sections. One for all and one secure area. In the secure area users with role guest should be able to see the websites too but not all content. What I dont want is that a guest has to enter login and password. For that a default-user should be set. If he wants to see all content he has to register and login. -----Ursprungliche Nachricht----- Von: David Winterfeldt [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 27. November 2001 18:19 An: Struts Users Mailing List Betreff: Re: JDBCRealm To retrieve the user name once they are logged in. request.getUserPrincipal().getName(); David --- Scott Edwards <[EMAIL PROTECTED]> wrote: > My understanding of the Tomcat 4 JDBC Realm is that > you don't get to > access it from within your application. Only Tomcat > gets to access it. > However, the servlet 2.3 spec provides APIs whereby > you can get the > username that the user logged in under and then use > that to find any > information you need about that user. > > Not sure what you are trying to accomplish, but I > hope that might help a > little. > > -Scott > > storck wrote: > > >Hi, > > > >does someone know how i get acces to the > (JDBC)Realm within struts ? > > > > > >-- > >To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

