⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _showcity__jsp.java

📁 天气预报的wap网页
💻 JAVA
字号:
/*
 * JSP generated by Resin 2.0.0 (built Fri Jun  8 12:04:24 PDT 2001)
 */

import java.io.*;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.http.*;
import java.util.*;

public class _showcity__jsp extends com.caucho.jsp.JavaPage{
  private boolean isDead;
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, null, true, 8192, true);
    javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    javax.servlet.http.HttpSession session = pageContext.getSession();
    javax.servlet.ServletContext application = pageContext.getServletContext();
    response.setContentType("text/html; charset=GB2312");
    request.setCharacterEncoding("GB2312");
    try {
      //@ page contentType="text/vnd.wap.wml;charset=gb2312"
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      wapserver.Weather Weather;
      synchronized (session) {
        Weather = (wapserver.Weather) session.getValue("Weather");
        if (Weather == null) {
          Weather = new wapserver.Weather();
          session.putValue("Weather", Weather);
        }
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      wapserver.sta Sta1;
      synchronized (session) {
        Sta1 = (wapserver.sta) session.getValue("Sta1");
        if (Sta1 == null) {
          Sta1 = new wapserver.sta();
          session.putValue("Sta1", Sta1);
        }
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      	wapserver.sta Sta = new wapserver.sta();	String province = request.getParameter("cityName");	//byte[] s = province.getBytes("UTF-8");	//province = new String (s,"GB2312");	//out.println(province);	//String path = request.getRealPath("/");	//out.println(path);	//Vector v = Weather.findCity(province,path+"jsp/db/");	Vector v = Sta.GetCityByProvinceNum(province);	//out.println(v);
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      	for(int i = 0 ;i<v.size();i++){
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      out.print(((String)((Vector)v.get(i)).get(0)));
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      out.print(((String)((Vector)v.get(i)).get(1)));
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      }
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }
  }

  private com.caucho.java.LineMap _caucho_line_map;
  private java.util.ArrayList _caucho_depends = new java.util.ArrayList();

  public boolean _caucho_isModified()
  {
    if (isDead)
      return true;
    if (com.caucho.util.CauchoSystem.getVersionId() != 2058989997)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.vfs.Depend depend;
      depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public com.caucho.java.LineMap _caucho_getLineMap()
  {
    return _caucho_line_map;
  }

  public void destroy()
  {
      isDead = true;
      super.destroy();
  }

  public void init(com.caucho.java.LineMap lineMap,
                   com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);
    mergePath.addMergePath(resinHome);
    mergePath.addClassPath(getClass().getClassLoader());
    _caucho_line_map = new com.caucho.java.LineMap("_showcity__jsp.java", "/showcity.jsp");
    _caucho_line_map.add(1, 1);
    _caucho_line_map.add(1, 29);
    _caucho_line_map.add(2, 31);
    _caucho_line_map.add(5, 42);
    _caucho_line_map.add(6, 51);
    _caucho_line_map.add(23, 76);
    _caucho_line_map.add(26, 82);
    _caucho_line_map.add(26, 84);
    _caucho_line_map.add(27, 86);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/d:/WAPServer/jsp/showcity.jsp"), 1090239476000L, 1114L);
    _caucho_depends.add(depend);
  }

  private static byte []_jsp_string3;
  private static byte []_jsp_string1;
  private static byte []_jsp_string5;
  private static byte []_jsp_string4;
  private static byte []_jsp_string0;
  private static byte []_jsp_string2;
  static {
    try {
      _jsp_string3 = "\"><img src=\"icon/title2.png\" alt=\"\"/>".getBytes("GB2312");
      _jsp_string1 = "\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\r\n<wml>\r\n<card id = \"main\" title = \"华风天气服务--请选择城市\">\r\n".getBytes("GB2312");
      _jsp_string5 = "\r\n</card>\r\n\r\n</wml>".getBytes("GB2312");
      _jsp_string4 = "</a><br/>\r\n".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
      _jsp_string2 = "\r\n<a href=\"fcst.jsp?cityName=".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -