Are struts plugins aware of Struts modules?

Hi all, in a Struts application we are working on we have a number of struts modules, configured in the form:

struts org.apache.struts.action.ActionServlet config/modulename /WEB-INF/cfg/struts-config-modulename.xml ]]>

are the current Struts plugins (especially Struts assistant) aware of this? I mean: in the struts-config-modulename.xml I get a number of false "cannot resolve xxx.jsp" warnings for pages in the form /xxx.jsp because the plugins do not seem to try and get those jsps in the /modulename directory.

0

IIRC the location of JSPs has nothing to do with Struts Modules. Can you point me to the documentation about this?

0
Avatar
Permanently deleted user

IIRC the location of JSPs has nothing to do with
Struts Modules. Can you point me to the documentation
about this?



The doc apparently does not make any mention about this, but the code (the app is built on Struts 1.1)...

RequestProcessor.processForwardConfig:439

// paths not starting with / should be passed through without any processing
// (ie. they're absolute)
if (forwardPath.startsWith("/")) {
uri = RequestUtils.forwardURL(request, forward); // get module relative uri
} else {
uri = forwardPath;
}

RequestUtils.forwardURL:1532

// Calculate a context relative path for this ForwardConfig
ModuleConfig moduleConfig = (ModuleConfig) request.getAttribute(Globals.MODULE_KEY);
String forwardPattern = moduleConfig.getControllerConfig().getForwardPattern();
if (forwardPattern == null) {
// Performance optimization for previous default behavior
sb.append(moduleConfig.getPrefix());
// smoothly insert a '/' if needed
if (!path.startsWith("/")) {
sb.append("/");
}
sb.append(path);
} else {

0

Thanks, I'll investigate on this..

0

请先登录再写评论。