<logic:present role="user,admin,super"> <img src="../images/logged_in.gif"> </logic:present> <logic:notPresent role="user,admin,super"> <img src="../images/not_logged_in.gif"> </logic:notPresent>
with the role attribute in each case having the list of all roles you define in your application descriptor.
-- Jeff
Frank Schaare wrote:
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]