You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Frank Nestel <do...@bigfoot.com> on 2000/07/02 20:42:38 UTC

Feature suggestion: Default Action Class

This is not important at all, but should be a very easy add-on to 
the Action Servlet.

The ActionServlet now manages a default ActionForward-Class
and a default Action-Class. Couldn't it also manage a default
Action-Class? Actually not all actions are so different and 
especially together with the self validating form beans it 
might happen one reuses an Action?!

E.g. I wrote myself a trivial Action which does nothing but forwards 
the request to a mapping named "page" (Attached as NoopAction.java),
this allows me to enter sections like

    <action    path="/userhome"
actionClass="de.dorisfrank.gameapp.NoopAction">
        <forward name="page" path="/userhome.jsp"/>
    </action>

In my action.xml, this would simply look shorter if it where

    <action path="/userhome"><forward name="page"
path="/userhome.jsp"/></action>

As you see I'm still working on the goal to hide the entire internal
structure of the application from my users and while gaining complete
control over the application just by editing the action.xml...

-- 
---------------------------------ooO---"---Ooo--------------
Spiele von Doris und Frank, Dr. Frank Sven Nestel,
Wolfsstaudenring 32, D-91056 Erlangen-Kriegenbrunn, GERMANY. 
dorisnfrank@bigfoot.com                 "I hate this game,
http://www.bigfoot.com/~dorisnfrank      lets play it again"
SOON moving to: http://doris-frank.de
AND ALSO on   : http://duf.damud.com