Go here and you can search the forum for past conversations concerning
"redirect"

http://www.mail-archive.com/webwork-user@lists.sourceforge.net/

-Matt

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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 : [EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webwork-user
>
>



_______________________________________________________________

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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to