My example I gave you was for 2.0. For 1.3, a similar thing needs to be done, it should be very trivial.
-Pat ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 20, 2003 5:47 AM Subject: Re: [OS-webwork] a question about actions > hi patrick, > i use webworks 1.3, and i dont see any ActionInvocation class in the javadoc? > is that from webworks 2.0? > > how do i call my own action in 1.3? > > sincerely > morten wilken > >-- Original Message -- > >From: "Patrick Lightbody" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Subject: Re: [OS-webwork] a question about actions > >Reply-To: [EMAIL PROTECTED] > >Date: Tue, 18 Feb 2003 09:34:36 -0800 > > > > > >I agree, this is a pretty unique situation that doesn't fit the paradigm > >that ServletDispatcher follows. It doesn't follow the one used by > >FilterDispatcher either. Your best bet is to write yourself a Filter that > >works like so: > > > >1) parses the HTTP request location and matches it against the regex > >2) pulls out the information from the regexp (the 123 from "123.action") > >3) puts that 123 in to the parameters map > >4) creates a new ActionInvocation object with the correct action name > >5) calls actionInvocation.invoke() > > > >-Pat > > > >----- Original Message ----- > >From: "Jason Carreira" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Tuesday, February 18, 2003 7:57 AM > >Subject: RE: [OS-webwork] a question about actions > > > > > >> Actually, it might be easier / better to use a Filter here which ran > the > >> correct action instead of trying to shoehorn this into the regular > >> Webwork ServletDispatcher. Don't know if Patrick's FilterDispatcher > >> would work for this or not. > >> > >> > -----Original Message----- > >> > From: Jason Carreira > >> > Sent: Tuesday, February 18, 2003 10:54 AM > >> > To: [EMAIL PROTECTED] > >> > Subject: RE: [OS-webwork] a question about actions > >> > > >> > > >> > As opposed to > >> > > >> > http://localhost/cms/document.action?id=12124 > >> > > >> > ? > >> > > >> > Maybe it's possible... We'd have to use regex or somesuch > >> > when looking up action configs... Could be a lot of overhead > >> > (as opposed to a quick map lookup). > >> > > >> > > -----Original Message----- > >> > > From: Joseph Ottinger [mailto:[EMAIL PROTECTED]] > >> > > Sent: Tuesday, February 18, 2003 10:43 AM > >> > > To: [EMAIL PROTECTED] > >> > > Subject: RE: [OS-webwork] a question about actions > >> > > > >> > > > >> > > Actually, when I saw this, a huge light went off in my head. > >> > > This would be PERFECT for a CMS-type system: imagine an action like: > >> > > > >> > > http://localhost/cms/12124.action > >> > > > >> > > ... where "12124" was actually a document key! > >> > > > >> > > On Tue, 18 Feb 2003, Jason Carreira wrote: > >> > > > >> > > > Not currently. What's the case where you'd want to do this? > >> > > > > >> > > > > -----Original Message----- > >> > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > >> > > > > Sent: Tuesday, February 18, 2003 10:40 AM > >> > > > > To: [EMAIL PROTECTED] > >> > > > > Subject: [OS-webwork] a question about actions > >> > > > > > >> > > > > > >> > > > > hi all, > >> > > > > is it possible to use wildcards or something to map actions? > >> > > > > > >> > > > > like > >> > > > > > >> > > > > [0-9].action=DoSomething > >> > > > > > >> > > > > > >> > > > > sincerely > >> > > > > morten wilken > >> > > > > > >> > > > > > >> > > > > > >> > > > > ------------------------------------------------------- > >> > > > > This sf.net email is sponsored by:ThinkGeek > >> > > > > Welcome to geek heaven. > >> > > > > http://thinkgeek.com/sf > >> > > > > _______________________________________________ > >> > > > > Opensymphony-webwork mailing list > >> > > > > [EMAIL PROTECTED] > >> > > > > > >> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webw > >> ork > >> > > > > >> > > > >> > > > >> > > ------------------------------------------------------- > >> > > This sf.net email is sponsored by:ThinkGeek > >> > > Welcome to geek heaven. > >> > > http://thinkgeek.com/sf > >> > > _______________________________________________ > >> > > Opensymphony-webwork mailing list > >> > > [EMAIL PROTECTED] > >> > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > >> > > > >> > > >> > --------------------------------------------------------- > >> > Joseph B. Ottinger [EMAIL PROTECTED] > >> > http://enigmastation.com IT Consultant > >> > > >> > > >> > > >> > ------------------------------------------------------- > >> > This sf.net email is sponsored by:ThinkGeek > >> > Welcome to geek heaven. > >> > http://thinkgeek.com/sf > >> > _______________________________________________ > >> > Opensymphony-webwork mailing list > >> > [EMAIL PROTECTED] > >> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > >> > > >> > >> > >> ------------------------------------------------------- > >> This sf.net email is sponsored by:ThinkGeek > >> Welcome to geek heaven. > >> http://thinkgeek.com/sf > >> _______________________________________________ > >> Opensymphony-webwork mailing list > >> [EMAIL PROTECTED] > >> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > >> > >> > >> ------------------------------------------------------- > >> This sf.net email is sponsored by:ThinkGeek > >> Welcome to geek heaven. > >> http://thinkgeek.com/sf > >> _______________________________________________ > >> Opensymphony-webwork mailing list > >> [EMAIL PROTECTED] > >> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by:ThinkGeek > >Welcome to geek heaven. > >http://thinkgeek.com/sf > >_______________________________________________ > >Opensymphony-webwork mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork