mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
WW-5334 Clean up VelocityStrutsUtil
This commit is contained in:
+7
-9
@@ -18,12 +18,7 @@
|
||||
*/
|
||||
package org.apache.struts2.views.velocity;
|
||||
|
||||
import java.io.CharArrayWriter;
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.opensymphony.xwork2.util.ValueStack;
|
||||
import org.apache.struts2.util.StrutsUtil;
|
||||
import org.apache.velocity.app.VelocityEngine;
|
||||
import org.apache.velocity.context.Context;
|
||||
@@ -31,7 +26,10 @@ import org.apache.velocity.exception.MethodInvocationException;
|
||||
import org.apache.velocity.exception.ParseErrorException;
|
||||
import org.apache.velocity.exception.ResourceNotFoundException;
|
||||
|
||||
import com.opensymphony.xwork2.util.ValueStack;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.CharArrayWriter;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Struts velocity related util.
|
||||
@@ -39,8 +37,8 @@ import com.opensymphony.xwork2.util.ValueStack;
|
||||
*/
|
||||
public class VelocityStrutsUtil extends StrutsUtil {
|
||||
|
||||
private Context ctx;
|
||||
private VelocityEngine velocityEngine;
|
||||
private final Context ctx;
|
||||
private final VelocityEngine velocityEngine;
|
||||
|
||||
public VelocityStrutsUtil(VelocityEngine engine, Context ctx, ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
|
||||
super(stack, request, response);
|
||||
|
||||
Reference in New Issue
Block a user