Actually, there is something like that... This came from Rickard's original requests back in January. I haven't worked on it for a while, so it might not be up to par with ServletDispatcher... but check out FilterDispatcher. It basically lets a request for index.vm take place, but rather than just letting the request go through it finds the _first_ action with a result pointing to index.vm and executes it.
-Pat ----- Original Message ----- From: "John Patterson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 20, 2003 12:53 AM Subject: Re: [OS-webwork] default action for template > You would normally have to type http://blah.com/index.action and add an > entry in XWork.xml to map 'index' to com.blah.actions.MyAction. > > However, if what I have proposed for simplifying the config step is > implemented you would be able to avoid the config step altogether and just > name your action 'IndexAction'. The mapping would then be made by default. > You could even make all .vm requests get sent to WW2 by specifying it in > your web.xml which would give you the behaviour you want. > > So the answer would be no. > > ----- Original Message ----- > From: "Andrew Hawkes" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, August 20, 2003 7:56 AM > Subject: [OS-webwork] default action for template > > > > As I understand it, a simple GET to somepage.vm does not create an > > Action and therefore dynamic data for that page is not populated. Is > > there a way I can change this behavior, to make an Action be created by > > default when a user simply requests the template file? > > > > My purpose is so that someone can type http://blah.com/index.vm in > > their browser and get a dynamically generated page -- not one with > > holes in the template because there was no Action to query for data. > > > > Thanks, > > Andy > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by Dice.com. > > Did you know that Dice has over 25,000 tech jobs available today? From > > careers in IT to Engineering to Tech Sales, Dice has tech jobs from the > > best hiring companies. http://www.dice.com/index.epl?rel_code=104 > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > ------------------------------------------------------- > This SF.net email is sponsored by Dice.com. > Did you know that Dice has over 25,000 tech jobs available today? From > careers in IT to Engineering to Tech Sales, Dice has tech jobs from the > best hiring companies. http://www.dice.com/index.epl?rel_code=104 > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs from the best hiring companies. http://www.dice.com/index.epl?rel_code=104 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork