FileDocCategorySizeDatePackage
LoggedInTag.javaAPI DocExample699Wed Jun 16 14:50:24 BST 2004com.darwinsys.jsptags

LoggedInTag

public class LoggedInTag extends javax.servlet.jsp.tagext.BodyTagSupport
LoggedInUser - include body content if the user is logged in as "user".
version
$Id: LoggedInTag.java,v 1.2 2004/06/16 18:50:24 ian Exp $

Fields Summary
private String
userName
Constructors Summary
Methods Summary
public intdoStartTag()
Invoked at the tag start boundary; does the work

		String myLabel = null;

		HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
		return request.getRemoteUser().equals(null) ? 
				SKIP_BODY :
				EVAL_BODY_INCLUDE  ;