FileDocCategorySizeDatePackage
DigestingValuePlugin.javaAPI DocExample937Wed Aug 25 22:47:06 BST 2004com.oreilly.strutsckbk.ch10

DigestingValuePlugin

public class DigestingValuePlugin extends org.apache.struts.plugins.DigestingPlugIn

Fields Summary
private static Log
log
Constructors Summary
Methods Summary
protected voidstoreGeneratedObject(java.lang.Object obj)


        
        URL sourceUrl =  null;
        URL rulesUrl =  null;
        try {
            sourceUrl = getConfigURL(configPath, configSource);
            rulesUrl = getConfigURL(digesterPath, digesterSource);
            DigestedValue digestedValue = new DigestedValue(obj, sourceUrl, rulesUrl );
            servlet.getServletContext().setAttribute(key, digestedValue);
        } catch (IOException e) {
            log.error("Unable to create URL.", e);
        }