02-19-2009 08:53 AM
02-19-2009 09:39 AM
<config evaluator="string-compare" condition="Command Servlet">
<command-servlet>
<command-processor name="custom" class="….CustomCommandProcessor" />
</command-servlet>
</config>
public class CustomCommandProcessor implements CommandProcessor {
static {
// add our commands to the command registry
CommandFactory.getInstance().registerCommand("createwebpage", CreateWebPageCommand.class);
}
public void outputStatus(PrintWriter out) {
// don't do anything
}
public void process(ServiceRegistry serviceRegistry, HttpServletRequest request, String command) {
// don't do anything
}
public boolean validateArguments(ServletContext sc, String command, Map<String, String> args, String[] urlElements) {
return false;
}
}
<!– THIS DOES NOT WORK, THIS IS HOW I WOULD LIKE IT TO WORK, SO I CAN AVOID THE ABOVE CONFIGURATION AND IMPLEMENTATION –>
<config evaluator="string-compare" condition="Command">
<command-servlet>
<command-processor name="createwebpage" class="….CreateWebPageCommand" />
</command-servlet>
</config>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.