Re: [Actionframework-users] Proposals for 0.94
Status: Inactive
Brought to you by:
ptoman
From: Petr T. <Pet...@pi...> - 2002-07-07 15:26:32
|
> Just checking, will I be able to use pre-condition to handle GET and > POST separately. My preferred option is a separate action but if > pre-condition will allow me to choose the action depending on > GET/POST and HTTP/HTTP then that is OK. Action selection based on GET/POST really requires what you have suggested: <action name="Login" type="GET" method="login(String userName, String password)"> because with <pre-condition> it would look like: <action name="Login" method="login(String userName, String password)"> <pre-condition if="$REQUEST.getMethod() == "GET""> <invoke component="Authenticator" method="login(String userName, String password)"/> <on-return value="void" show-template="LoginOK.wm"> </invoke> </pre-condition> <action> which is not too much straightforward :) Ok, two more todo-s for 0.94: [ ] type="GET/POST" attribute for <action> [ ] <type-handler> element nested in <input-variable> of <action> (to allow explicit selection of type handler) -Petr -- >>> http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 <<< |