Jakarta Taglibs appears to have such a thing: http://jakarta.apache.org/taglibs/doc/request-doc/intro.html http://jakarta.apache.org/taglibs/doc/request-doc/request-1.0/index.html#request
So you should be able to do what you want, i.e.... <req:request id="req"/> <logic:Empty name='req' property='remoteUser'> <img src='/pics/notLogedIn.gif'/> </logic:Empty> <logic:NotEmpty name='req' property='remoteUser'> <img src='/pics/LogedIn.gif'/> </logic:NotEmpty> Niall ----- Original Message ----- From: "Frank Schaare" <[EMAIL PROTECTED]> Sent: Thursday, February 03, 2005 9:53 PM > > >> Hi, > > > Do you mean that you want to display one image if the user is logged in > > and a different image if the user is not logged in? > > Exactly. <%=request.getRemoteUser()%> is null when the user ist not > loged in. If so <%=request.getRemoteUser()%> gives me the string of the > username. > > IÂm looking for something like this: > <logic:Empty name='request' property='remoteUser'> //does not work ! > <img src='/pics/notLogedIn.gif'/> > </logic:Empty> > <logic:NotEmpty name='request' property='remoteUser'> //does not work ! > <img src='/pics/LogedIn.gif'/> > </logic:NotEmpty> > > JSPÂs have easy access to the implicit objects like the request. There > must be a counterpart in struts taglibs or am i wrong ??? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]