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

Reply via email to