Ted Husted wrote:
On Nov 2, 2007 1:52 AM, Jeromy Evans <[EMAIL PROTECTED]> wrote:
My case can be replicated in the MailReader however by adding a no-op
IndexAction in root namespace and removing the default-action-ref.

The use-case for the default-action-ref is localization. By using a
default-action-ref, it's easy to provide a package.properties file
that the actions can share.
Isn't package.properties is shared even if there isn't a default action?

On the topic of properties and localization, I'd like to figure out a method for handling this stuff without actions but still associating it with the action or xwork-package.

The alternative is to set

 <constant name="struts.custom.i18n.resources" value="actions.package" />

I'm just not sure which is the best practice :(
Hmmmm, I would say it would be better to localize everything, support URLs with no action-classes and all the other cases where you need text.

After making this change:

http://localhost:8080/index shows the index
http://localhost:8080/an/arbitary/url also shows the root index

One reason for this is that SmartURLs might be hooking into the
unknown Action feature, and so any "unknown" action is reverting to
the index for the document root.
SmartURLs has an unknown handler, but if there isn't an action defined, it just returns null, which should generate an exception in the ActionProxy.

-bp

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to