Thread: Re: [Webwork-user] redirect action
Brought to you by:
baldree,
rickardoberg
From: <ma...@sm...> - 2002-06-18 14:53:14
|
I'll take a look and add an example. I'm out of pocket for next couple of days so it will be later this week. -Matt On Tue, 18 June 2002, "Taavi Tiirik" wrote > > What has happened to redirect.action? It does not seem to work with > latest CVS. > > I have following in my views.properties: > > redirect.action=webwork.action.standard.Redirect > > index.action=Index > index.success=redirect.action?url=index2.action > index.error=/view/error.jsp > > index2.action=Index2 > index2.success=/view/index2.jsp > > > index2.action works just fine but index.action displays an empty page > and gives a following message: > > [ (ServletDispatcher)] Could not instantiate > action:redirect.action?url=index2 > java.lang.IllegalArgumentException: Action 'redirect.action?url=index2' not > found > > > This used to work before... Do you have any idea of what is causing this? > Redirect.java itself has not been changed lately. > > And there is no example of redirect.action usage. It would be great to have > one. > > best regards, > Taavi > > > > ---------------------------------------------------------------------------- > Bringing you mounds of caffeinated joy > >>> http://thinkgeek.com/sf <<< > > _______________________________________________ > Webwork-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webwork-user |
From: <ma...@sm...> - 2002-06-22 20:29:28
|
This is fixed and I will commit it sometime tomorrow. I also added a couple of test pages to test this functionality. -Matt On Sat, 22 June 2002, "Taavi Tiirik" wrote > > > I am in kind of a hurry with getting redirect.action or > it's equivalent to work with latest cvs. If there is an easy > way then could you please point me in the right direction. > > Would it be nice if anybody who adds some new > functionality to webwork writes an example. Then it > would be easier to avoid breaking any existing > features. > > with best wishes, > Taavi > > > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Webwork-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webwork-user |
From: Matt B. <ma...@sm...> - 2002-06-24 00:07:49
|
I committed this fix and fixed URLTag to allow you to override the request params with children param tags. -Matt ----- Original Message ----- From: <ma...@sm...> To: <taa...@ib...> Cc: <web...@li...> Sent: Saturday, June 22, 2002 3:29 PM Subject: Re: [Webwork-user] redirect action > This is fixed and I will commit it sometime tomorrow. I > also added a couple of test pages to test this > functionality. > > -Matt > > On Sat, 22 June 2002, "Taavi Tiirik" wrote > > > > > > > I am in kind of a hurry with getting redirect.action > or > > it's equivalent to work with latest cvs. If there is > an easy > > way then could you please point me in the right > direction. > > > > Would it be nice if anybody who adds some new > > functionality to webwork writes an example. Then it > > would be easier to avoid breaking any existing > > features. > > > > with best wishes, > > Taavi > > > > > > > > > > > ------------------------------------------------------- > > Sponsored by: > > ThinkGeek at http://www.ThinkGeek.com/ > > _______________________________________________ > > Webwork-user mailing list > > Web...@li... > > > https://lists.sourceforge.net/lists/listinfo/webwork-user > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Webwork-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webwork-user > > |
From: Taavi T. <ta...@ib...> - 2002-06-25 09:44:02
|
Matt, The only issue left with redirect action is when somebody uses it as a result view of another action. I used to have in my views.properties file: someaction.action=SomeAction someaction.success=redirect.action?url=anotheraction.action This does not work after introducing action chaining but it can be made to work by making sure that view definition does not end with '.action' or whatever ones "webwork.action.extension" is set to. So, I have modified my success views to something like this: someaction.success=redirect.action?url=anotheraction.action&a ... and it works again. thanks, with best wishes, Taavi |
From: <ma...@sm...> - 2002-06-25 15:08:45
|
Ok. Thanks for the debug. I'll get this fixed. -Matt On Tue, 25 June 2002, "Taavi Tiirik" wrote > > Matt, > > The only issue left with redirect action is when somebody > uses it as a result view of another action. > > I used to have in my views.properties file: > > someaction.action=SomeAction > someaction.success=redirect.action?url=anotheraction.action > > This does not work after introducing action chaining but it can > be made to work by making sure that view definition does not > end with '.action' or whatever ones "webwork.action.extension" > is set to. > > So, I have modified my success views to something like this: > > someaction.success=redirect.action?url=anotheraction.action&a > > ... and it works again. > > thanks, > > with best wishes, > Taavi > > > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Webwork-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webwork-user |
From: Marco P. <mp...@ci...> - 2002-07-31 10:17:27
|
Hi there, does this bug reappeared in latest CVS update ? Marco ma...@sm... wrote: > Ok. Thanks for the debug. I'll get this fixed. > > -Matt > > On Tue, 25 June 2002, "Taavi Tiirik" wrote > > >>Matt, >> >>The only issue left with redirect action is when > > somebody > >>uses it as a result view of another action. >> >>I used to have in my views.properties file: >> >> someaction.action=SomeAction >> > > someaction.success=redirect.action?url=anotheraction.action > >>This does not work after introducing action chaining > > but it can > >>be made to work by making sure that view definition > > does not > >>end with '.action' or whatever ones > > "webwork.action.extension" > >>is set to. >> >>So, I have modified my success views to something > > like this: > >> > > someaction.success=redirect.action?url=anotheraction.action&a > >>... and it works again. >> >>thanks, >> >>with best wishes, >>Taavi >> >> >> >> >> > > ------------------------------------------------------- > >>Sponsored by: >>ThinkGeek at http://www.ThinkGeek.com/ >>_______________________________________________ >>Webwork-user mailing list >>Web...@li... >> > > https://lists.sourceforge.net/lists/listinfo/webwork-user > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Webwork-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webwork-user -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Marco Papini - Cinetica e-mail: mp...@ci... tel: 0549-970848 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
From: Taavi T. <ta...@ib...> - 2002-06-20 09:09:08
|
> > What has happened to redirect.action? It does not > > seem to work with latest CVS. > I'll take a look and add an example. I'm out of pocket > for next couple of days so it will be later this week. Thanks Matt, It seems that one of the reasons why redirect.action does not work as it used to is because of current action chaining code. If my action has a following success view: index.action=Index index.success=redirect.action?url=another.action then isAction() finds that next action in chain is 'redirect.action?url=another'. isAction() merely removes '.action' from the end. Another reason seems to be that redirect action itselt (ie. action without a view) does not execute. getView() always throws ServletException if it does not find a view for a given action. with best wishes, Taavi |
From: Taavi T. <ta...@ib...> - 2002-06-22 08:46:11
|
I am in kind of a hurry with getting redirect.action or it's equivalent to work with latest cvs. If there is an easy way then could you please point me in the right direction. Would it be nice if anybody who adds some new functionality to webwork writes an example. Then it would be easier to avoid breaking any existing features. with best wishes, Taavi |