(default), there will be one factory for each Struts module.
If false, there will be one common factory for all module. In this
later case, it is still needed to declare one plugin per module.
The factory will be initialized with parameters found in the first
initialized plugin (generally the one associated with the default
module).
true : One factory per module. (default)
false : one single shared factory for all modules
- definitions-parser-validate: (optional)
Specify if xml parser should validate the Tiles configuration file.
true : validate. DTD should be specified in file header (default)
false : no validation
Paths found in Tiles definitions are relative to the main context.
--
plug-in className=org.apache.struts.tiles.TilesPlugin
!-- Path to XML definition file --
set-property property=definitions-config
value=/WEB-INF/tiles-defs.xml /
!-- Set Module-awareness to true --
set-property property=moduleAware value=true /
/plug-in
!-- === Validator plugin --
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property
property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
/plug-in
/struts-config
AdminAction class is with in classes/shailesh
package shailesh;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import java.io.*;
import javax.servlet.ServletException;
class AdminAction extends org.apache.struts.action.Action {
String target=null;
public ActionForward execute(ActionMapping map,
ActionForm form,
HttpServletRequest req,
HttpServletResponse res)
throws IOException, ServletException{
target=x;
return(map.findForward(target));
}
}
Shailesh Agarwal
-
How much free photo storage do you get? Store your friends n family photos for
FREE with Yahoo! Photos.
http://in.photos.yahoo.com