You cant call a maverick command from a jsp:include, I
altered the code to allow for this but I was wondering if
you might want to do this to the code base. Allowing for
a command from a jsp:inlclude is a nice way of
componetizing your app without the tediousnous of
creating custom JSP tags for everthing. Two places I
altered for this were in extractCommandId in Dispatcher,
here you have to check something similar to this
if (request.getAttribute
("javax.servlet.include.request_uri")!=null) {
String result = (String)
request.getAttribute
("javax.servlet.include.path_info");
if (result == null)
result = (String)
request.getAttribute
("javax.servlet.include.servlet_path");
if ((result == null) || (result.equals("")))
result = "/";
uri = result;
}
also altered ViewDocument go() as follows
if (request.getAttribute
("javax.servlet.include.request_uri")!=null) {
disp.include(request, response);
}else{
disp.forward(request, response);
}
if you are interested and would like the codebase please
let me know.