| java.lang.Object org.netbeans.modules.web.jspparser.FastOpenInfoParser
FastOpenInfoParser | public class FastOpenInfoParser (Code) | | JSP 'open info' parser allowing to fastly determine encoding for JSPs in standart syntax
with DD NOT specifying JSPs encodinf or syntax (at least 95% af all JSPs)
How the encoding is currently detected:
1) find deplyment descriptor from given webmodule
2) if found, parse it and find following elements
||
3) if any of the nested elements found, give it up and return null (and let jasper parser to determine the encoding)
4) if the DD is not found or it doesn't contain the elements from #2 test if the file is JSP document (according to the extension)
5) if the file is a XML document give it up (so far - we can easily implement a simple enc. parser for XMLs as well)
6) the page is standard syntax - parse first 8kB of text and...
7) if <%@page encoding="xxx"%> is found return the encoding value
8) if <%@page encoding="xxx"%> is NOT found find <%@page contentType="mimetype; char-set=xxx"%>
9) if CT found return encoding from it
author: Marek Fukala |
JSP_PROPERTY_GROUP | final static String JSP_PROPERTY_GROUP(Code) | | |
|
|