Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [S2] Namespaces and SlashesInActionNames issue?

Dave Newton

2007-03-07

Replies:

--- Aram Mkhitaryan wrote:
> you do something wrong,

That much I had kinda figured out.

> There is another constant which enables "select full
> namespace" which means everything before the last
> slash will be considered as namespace.
>
> Maybe you have specified that constant?

The error occurs no matter what it's set to.

Here are the relevant (maybe) portions of my
struts.xml:

<struts>
<constant name="struts.enable.SlashesInActionNames"
       value="true" />
<constant
name="struts.mapper.alwaysSelectFullNamespace"
       value="false"/>

<package name="default"
      extends="struts-default" namespace="/">
  <action name="admin/content/list"
       class="ywi.admin.content.ContentAction"
       method="list">
   <result name="success"
        type="tiles">
    admin/content/list.page
   </result>
  </action>
</...>

On a whim I tried prepending a "/" to the action name,
but that didn't help. alwaysSelectFullNamespace can be
true or false; same behavior.

I know it's something stupid, because it used to work.

d.




____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.