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

📄 _fcst__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 _fcst__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.Utility Utility;
      synchronized (session) {
        Utility = (wapserver.Utility) session.getValue("Utility");
        if (Utility == null) {
          Utility = new wapserver.Utility();
          session.putValue("Utility", Utility);
        }
      }
      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);
      	//String line = Weather.GetLineByCity(cityName,"../WAPServer/jsp/db/");		String cityName = request.getParameter("cityName");	String path = request.getRealPath("/");	//System.out.println(cityName+path);	//out.println(Weather.findCity(cityName,path+"WAPServer\\jsp\\db\\"));	///test	Vector v = new Vector();	Vector v2 = new Vector();	v = (Vector)Weather.GetAll(cityName,path+"db\\");	if(v.size()<=1){		v2 = (Vector)Weather.GetPreAll(cityName,path+"db\\");	}	System.out.println("v"+v);	System.out.println("v2"+v2);
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      out.print((cityName));
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
           if(v.size()>10){	for(int i = 1;i<6;i++){  
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      out.print((Utility.getDateString(i)));
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      out.print((Weather.Get_Weather(v,i)));
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      	  if(!Weather.Get_Weather_B_Url(v,i).equals("")){	
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      out.print((Weather.Get_Weather_B_Url(v,i)));
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      		}	 	if(!Weather.Get_Weather_B_Url(v,i).equals(Weather.Get_Weather_E_Url(v,i))){	
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      out.print((Weather.Get_Weather_E_Url(v,i)));
      pageContext.write(_jsp_string9, 0, _jsp_string9.length);
      	}		
      pageContext.write(_jsp_string10, 0, _jsp_string10.length);
      out.print((Weather.Get_Temp(v,i)));
      pageContext.write(_jsp_string11, 0, _jsp_string11.length);
      out.print((Weather.Get_Wind(v,i)));
      pageContext.write(_jsp_string12, 0, _jsp_string12.length);
      	}		}else{ 	for(int i = 0;i<5;i++){  
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      out.print((Utility.getDateString(i)));
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      out.print((Weather.Get_Weather(v2,i+1)));
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      	  if(!Weather.Get_Weather_B_Url(v2,i+1).equals("")){	
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      out.print((Weather.Get_Weather_B_Url(v2,i+1)));
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      		}	 	if(!Weather.Get_Weather_B_Url(v2,i+1).equals(Weather.Get_Weather_E_Url(v2,i+1))){	
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      out.print((Weather.Get_Weather_E_Url(v2,i+1)));
      pageContext.write(_jsp_string9, 0, _jsp_string9.length);
      	}		
      pageContext.write(_jsp_string10, 0, _jsp_string10.length);
      out.print((Weather.Get_Temp(v2,i+1)));
      pageContext.write(_jsp_string11, 0, _jsp_string11.length);
      out.print((Weather.Get_Wind(v2,i+1)));
      pageContext.write(_jsp_string12, 0, _jsp_string12.length);
      	}	 	}		
      pageContext.write(_jsp_string13, 0, _jsp_string13.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("_fcst__jsp.java", "/fcst.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(27, 87);
    _caucho_line_map.add(38, 89);
    _caucho_line_map.add(44, 99);
    _caucho_line_map.add(45, 101);
    _caucho_line_map.add(46, 103);
    _caucho_line_map.add(49, 109);
    _caucho_line_map.add(50, 111);
    _caucho_line_map.add(54, 119);
    _caucho_line_map.add(55, 121);
    _caucho_line_map.add(59, 127);
    _caucho_line_map.add(70, 143);
    _caucho_line_map.add(71, 145);
    _caucho_line_map.add(72, 147);
    _caucho_line_map.add(75, 153);
    _caucho_line_map.add(76, 155);
    _caucho_line_map.add(80, 163);
    _caucho_line_map.add(81, 165);
    _caucho_line_map.add(85, 171);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/d:/WAPServer/jsp/fcst.jsp"), 1090239382000L, 2500L);
    _caucho_depends.add(depend);
  }

  private static byte []_jsp_string2;
  private static byte []_jsp_string10;
  private static byte []_jsp_string11;
  private static byte []_jsp_string3;
  private static byte []_jsp_string4;
  private static byte []_jsp_string8;
  private static byte []_jsp_string9;
  private static byte []_jsp_string5;
  private static byte []_jsp_string12;
  private static byte []_jsp_string7;
  private static byte []_jsp_string1;
  private static byte []_jsp_string0;
  private static byte []_jsp_string6;
  private static byte []_jsp_string13;
  static {
    try {
      _jsp_string2 = "\">\r\n<table>\r\n  <tr>\r\n    <td  >\r\n      <p ><font color=\"#003366\"><b>预报时间范围</b></font></p>\r\n    </td>\r\n    <td ><font color=\"#003366\"><b>天气现象</b></font></td>\r\n    <td ><font color=\"#003366\"><b>温度</b></font></td>\r\n    \r\n    <td ><font color=\"#003366\"><b>风力/风向</b></font></td>\r\n  </tr>\r\n  ".getBytes("GB2312");
      _jsp_string10 = "\r\n     </td>\r\n	<td>".getBytes("GB2312");
      _jsp_string11 = "</td>\r\n    \r\n    <td>".getBytes("GB2312");
      _jsp_string3 = "\r\n  <tr   >\r\n    <td>".getBytes("GB2312");
      _jsp_string4 = "</td>\r\n    <td>".getBytes("GB2312");
      _jsp_string8 = "\r\n		<img src=\"".getBytes("GB2312");
      _jsp_string9 = "\"/>\r\n		".getBytes("GB2312");
      _jsp_string5 = "<br/>\r\n	 ".getBytes("GB2312");
      _jsp_string12 = "</td>\r\n  </tr>\r\n".getBytes("GB2312");
      _jsp_string7 = "\"/>\r\n	  ".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 = \"华风天气服务-".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
      _jsp_string6 = "\r\n			<img src=\"".getBytes("GB2312");
      _jsp_string13 = "\r\n</table>\r\n\r\n\r\n</card>\r\n</wml>".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

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