MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » 求大神解答servlet转写jsp解决方法

求大神解答servlet转写jsp解决方法

www.MyException.Cn  网友分享于:2013-02-01  浏览:30次
求大神解答servlet转写jsp
[code=Java]
import   java.io.*;
import   java.net.*;

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

import   java.util.*;

public   class   Exercise34_12   extends   HttpServlet   {
        boolean   stringToken   =   false;
       
        //   Array   of   all   Java   keywords   +   true   +   false   +   null
        final   static   String[]   keywordString   =   { "abstract ",   "assert ",   "boolean ",
                                "break ",   "byte ",   "case ",   "catch ",   "char ",   "class ",   "const ",
                                "continue ",   "default ",   "do ",   "double ",   "else ",   "enum ",
                                "extends ",   "for ",   "final ",   "finally ",   "float ",   "goto ",   "if ",
                                "implements ",   "import ",   "instanceof ",   "int ",   "interface ",
                                "long ",   "native ",   "new ",   "package ",   "private ",   "protected ",
                                "public ",   "return ",   "short ",   "static ",   "strictfp ",   "super ",
                                "switch ",   "synchronized ",   "this ",   "throw ",   "throws ",
                                "transient ",   "try ",   "void ",   "volatile ",   "while ",
                                "true ",   "false ",   "null "};
                               
        final   static   Set   keywordSet   =   new   HashSet(Arrays.asList(keywordString));
                               
        protected   void   doPost(HttpServletRequest   request,   HttpServletResponse   response)
                throws   ServletException,   IOException   {

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有