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

📄 lefttag.java

📁 招标投标网上系统
💻 JAVA
字号:
package cn.com.syntc.webapp.taglib;
/*
 *********************************************************************
 *  文件 : LeftTag:$
 *  项目 : 长沙银行
 *  公司 : 沈阳东软软件股份有限公司
 *  日期 : $Date$
 *  说明 :
 **********************************************************************
 * 版本历史:
 * $Log:  $
 *********************************************************************
 */
import java.io.IOException;
import javax.servlet.jsp.tagext.TagSupport;
import javax.servlet.jsp.*;
import org.apache.struts.action.*;
import org.apache.struts.util.RequestUtils;
import java.util.Enumeration;

import cn.com.syntc.webapp.session.UserSession;;

/**
 *  <p>
 *
 *  Description:页面左边标签</p> <p>
 *
 *  Copyright: Copyright (c) 2003</p> <p>
 *
 *  Company: neusoft </p>
 *
 *@author     wangy    Mail : wangyong@neusoft.com
 *@created    2003年12月9日
 *@version    1.0
 */
public class LeftTag   extends TagSupport
{
  public int doStartTag() throws JspTagException
  {
    try
    {
      pageContext.getOut().flush();
    }
    catch (Exception e)
    {
      // do nothing
    }
    return SKIP_BODY;
  }

  public int doEndTag() throws JspTagException
  {
    try
    {
      UserSession USession = (UserSession)pageContext.getSession().getAttribute("UserSession");

      String target = (String)pageContext.getRequest().getAttribute("target");
      String website = (String)pageContext.getRequest().getAttribute("website");

      try{
         pageContext.getOut().flush();
      } catch (Exception e){
         // do nothing
      }

      pageContext.getOut().write("<table  border='1' cellpadding='2' style='border-collapse: collapse'  bordercolor='#111111' width='181' height='110' valign=top align=center>\r\n");
      pageContext.getOut().write("<tr>\r\n");
      pageContext.getOut().write("  <td height='17' width='71' align='left'>姓名:</td>\r\n");
      pageContext.getOut().write("  <td height='17' width='100' align='left'>王勇</td>\r\n");
      pageContext.getOut().write("</tr>\r\n");
      pageContext.getOut().write("<tr>\r\n");
      pageContext.getOut().write("  <td height='18' width='71' align='left'>准考证号:</td>\r\n");
      pageContext.getOut().write("  <td height='18' width='100' align='left'>wy</td>\r\n");
      pageContext.getOut().write("</tr>\r\n");
      pageContext.getOut().write("<tr>\r\n");
      pageContext.getOut().write("  <td height='18' width='71' align='left'>&nbsp;年&nbsp;&nbsp;&nbsp; 级:</td>\r\n");
      pageContext.getOut().write("  <td height='18' width='100' align='left'>1999</td>\r\n");
      pageContext.getOut().write("</tr>\r\n");
      pageContext.getOut().write("<tr>\r\n");
      pageContext.getOut().write("  <td height='18' width='71' align='left'>&nbsp;班&nbsp;&nbsp;&nbsp; 级:</td>\r\n");
      pageContext.getOut().write("  <td height='18' width='100' align='left'>国际贸易(1)班</td>\r\n");
      pageContext.getOut().write("</tr>\r\n");
      pageContext.getOut().write("<tr>\r\n");
      pageContext.getOut().write("  <td height='19' width='71' align='left'>&nbsp;电子邮箱:</td>\r\n");
      pageContext.getOut().write("  <td height='19' width='100' align='left'><a href='mailto:happyguan@163.com'>happyguan@163.com</a></td>\r\n");
      pageContext.getOut().write("</tr>\r\n");
      pageContext.getOut().write("</table>\r\n");

      try{
         pageContext.getOut().flush();
      } catch (Exception e){
         // do nothing
      }
    }
    catch (Exception e) {
      System.out.println(e.getMessage());
	    e.printStackTrace();
    }
    return EVAL_PAGE;
  }
}

⌨️ 快捷键说明

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