Lines 31-36
Link Here
|
31 |
import javax.servlet.http.HttpServletResponseWrapper; |
31 |
import javax.servlet.http.HttpServletResponseWrapper; |
32 |
import javax.servlet.jsp.JspException; |
32 |
import javax.servlet.jsp.JspException; |
33 |
import javax.servlet.jsp.JspTagException; |
33 |
import javax.servlet.jsp.JspTagException; |
|
|
34 |
import javax.servlet.jsp.JspWriter; |
34 |
import javax.servlet.jsp.PageContext; |
35 |
import javax.servlet.jsp.PageContext; |
35 |
|
36 |
|
36 |
import org.apache.jasper.Constants; |
37 |
import org.apache.jasper.Constants; |
Lines 163-168
Link Here
|
163 |
return u.toString(); |
164 |
return u.toString(); |
164 |
} |
165 |
} |
165 |
|
166 |
|
|
|
167 |
public static void out(JspWriter out, String value, String defaultValue, boolean escapeXml) throws IOException { |
168 |
String v = value != null ? value : defaultValue; |
169 |
if (v != null) { |
170 |
if(escapeXml){ |
171 |
v = org.apache.jasper.tagplugins.jstl.Util.escapeXml(v); |
172 |
} |
173 |
out.write(v); |
174 |
} |
175 |
} |
166 |
|
176 |
|
167 |
/** |
177 |
/** |
168 |
* Performs the following substring replacements |
178 |
* Performs the following substring replacements |