Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Resolved: (WW-770) Validation should be aware of namespacethat action lives in

    0 answers - 1713 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    [ ]
    tm_jee resolved WW-770:
    Resolution: Won't Fix
    Validation should be aware of namespace that action lives in
    Key: WW-770
    URL:
    Project: Struts Action 2
    Type: Improvement
    Components: Actions, Misc
    Versions: WW 2.1.7
    Reporter: Alex Shneyderman
    Assignee: tm_jee
    Priority: Trivial
    Fix For: Future
    Currently validation forum is unaware of the namespace that the action lives in. It is extremly useful to enable this awarnese, whne actions are being reused and are named exactly the same way in different namespaces. Say we have an application that is editing a few different entityes. We write one generic Save action. We configure pacakges like so:
    <package name="com.mycompany.entity1" namespace="/section/entity1">
    <action name="save" class="com.mycompany.actions.Save" />
    </package>
    <package name="com.mycompany.entity2" namespace="/section/entity2">
    <action name="save" class="com.mycompany.actions.Save" />
    </package>
    to access the actions from the web one would submit the URL / or / to save entity1 or entity2. Validation however is different for
    each of the entities and there is no way to specify validation file that will differentiate
    between the two saves. Note also that changing the name of the save action is not desitrable,
    since if you have some kind of automation script to generate the URL you want the config to
    be as uniform as possible.
    what would be useful is if we could specify validation files for save like so:
    Save-%section%entity1-validation.xml
    and
    Save-%section%entity1-validation.xml
    here is a releveant discussion of the forum:

Re: Resolved: (WW-770) Validation should be aware of namespacethat action lives in


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
QUESTION ON "Java"

EMSDN.COM