Re: [Webwork-user] what is the proper way to redirect within an action?
Brought to you by:
baldree,
rickardoberg
From: Matt B. <ma...@sm...> - 2002-05-31 00:43:36
|
Go here and you can search the forum for past conversations concerning "redirect" http://www.mail-archive.com/web...@li.../ -Matt ----- Original Message ----- From: <wa...@mw...> To: <web...@li...> Sent: Wednesday, May 29, 2002 4:04 PM Subject: [Webwork-user] what is the proper way to redirect within an action? > I am try to forward to another action. If I set the views.properties > to the appropriate action, it does work, however the url in the > browser is the original url, so if the user refreshes they will re- > execute the previous command, and not just refresh this action. > > I tried calling redirect from doExecute like the following : > > Redirect redirect = (Redirect)ActionFactory.getAction("Redirect"); > redirect.setUrl("CompanyNotesAction.action?companySeqNo="+getCompanySe > qNo()); > return redirect.execute(); > > but then I get the following exception : > java.lang.IllegalStateException: Cannot forward after response has > been committed > > this is in 3 different versions of tomcat...so I guess it could be a > tomcat issue, or I am just doing something totally wrong. > > Any help would be appreciated. > > Thanks, > > Walt > > ***************************************************** > Walter Szewelanczyk > IS Director > M.W. Sewall & CO. email : wa...@mw... > 259 Front St. Phone : (207) 442-7994 x 128 > Bath, ME 04530 Fax : (207) 443-6284 > ***************************************************** > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Webwork-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webwork-user > > |