Hi koen, I dont know much about how it is handled in struts...but in jsp u can use respone.sendRedirect("/foo/bar.jsp") Thanks Prashanth
koen boutsen <[EMAIL PROTECTED]> wrote: Hi If the session is invalid, I want to send the user to the logon page. This works fine when I go through an action. In some cases, I don't go through an action, I want to redirect the user. I tried it like this : (sessionIsValid is a attribute in the session. If this attribute is null, it means that my session does no longer exist). This is the error I get : ava.lang.IllegalStateException [9/10/03 15:44:01:242 CEST] 498b26a6 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppDispatcherResponse.sendRedirect(WebAppDispatcherResponse.java:87) [9/10/03 15:44:01:242 CEST] 498b26a6 SystemErr R at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:306) [9/10/03 15:44:01:242 CEST] 498b26a6 SystemErr R Any reply will be appreciated, because I'm completely stuck Thanks Koen ____________________________________________________________ Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search