![]() |
|
Version: 0.27 - Last update: 2004-05-30 | Home Page - SourceForge Project Page - Contact |
Jodd Overview News Download License References Development Using Jodd Javadoc JUnit report Community Contribute Report a bug More reading Milestone 0.30 ![]() ![]() |
More framework detailsHere are some more details about Jodd mvc2 framework.Action ParametersConfiguration WEB-INF/actions.xml file also may specify one or more parameters for each Action. Parameters are specified inaction tag:
Above action definition specifies action that has one parameter. For example, such parameter as in above example may specify that for this request user must be login, however, parameters may be used in many different ways. Inside of ActionServlet obtaing action parameters is easy:
Action not foundJodd framework reserves the following global forward name:jodd.servlet.ActionController.actionNotFound .
It is suggested to create global forward that points to a page or
other action that will be invoked when not existing action is requested:
This name is public static so it canbe changed if needed. Action dataOnce inside ofActionServlet action handler, it is possible to get various data:
Parameters for forward stringsActionServlet may returns a forward string that has parameters, as for the URL:
If "ok" forward string is mapped to the path "/mvc2/world.jsp" , then
the following URL will be used for forwarding (or redirection):
This is helpful when forwarding is required to another action and not a view. More, ActionServlet recognizes situation when there are already existing parameters in the mapped path.
Invoking external actionsFrom oneActionServlet action handler it is possible to invoke any other one, by using
invokeExternalAction() method.
|