July 29, 2003

SecureStrutsLinkTool is a substitute for StrutsLinkTool intended for those who use the SSL Extensions with Struts 1.1. Simply switch class names in toolbox.xml and you're set.

More info on Struts SSL Extensions

Any comments are welcome on the Velocity Developer's List <velocity-dev@jakarta.apache.org>.

Marinó A. Jónsson


{ { { 

package org.apache.velocity.tools.struts;

import javax.servlet.*;
import javax.servlet.http.*;

import org.apache.velocity.app.Velocity;
import org.apache.velocity.tools.view.tools.LinkTool;
import org.apache.velocity.tools.struts.StrutsUtils;

import org.apache.struts.config.ForwardConfig;
import org.apache.struts.config.ModuleConfig;
import org.apache.struts.action.SecurePlugIn;
import org.apache.struts.config.SecureActionConfig;
import org.apache.struts.Globals;

/**
{{{ * <p>Title: SecureStrutsLinkTool</p> 
 * <p>Description: Tool to be able to use Struts SSL Extensions with Velocity</p> 
 * <p>It has the same interface as StrutsLinkTool and can function as a substitute if Struts 1.1 and SSL Ext are installed. </p> 
 * @author Marinó A. Jónsson 
 * @version 1.0 
 */ 

public class SecureStrutsLinkTool {{{ extends LinkTool {

}

{{{ } } }

SecureStrutsLinkTool (last edited 2009-09-20 23:32:13 by localhost)