<jsp:useBean id="upd" class="UserDBProp" scope="session"/> <jsp:setProperty name="upd" property="dir" value="c:/tmp"/> <HTML> <HEAD><TITLE>Home Page</TITLE> </HEAD> <BODY BGCOLOR=cornsilk> <P>Welcome! <% if (upd.getProperty("name","@").equals("@")) { %> unregistered user. <% } else { %> <%= upd.getProperty("name","") %> <BR> <A HREF=updlogout.jsp>Log out</A> <% } %> </BODY> </HTML>

Java@Work | Who Are You, Anyway? (Web Techniques, Feb 2001)
One hallmark of a great restaurant is that the staff knows your name and remembers you when you visit. How many movies have you seen where someone orders "the usual" and the waiter or bartender knows what to do? Personally, I've only been to a few places that offer that level of servicemaybe times have changed, or maybe it's just me.Related Reading
More Insights
INFO-LINK
![]() |
To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. |