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

📄 topandbottom.java

📁 wml和jsp实现wap网站后台管理及手机显示的过程
💻 JAVA
字号:
package tagclass;import javax.servlet.jsp.*;import javax.servlet.jsp.tagext.*;public class TopAndBottom extends TagSupport{  String title;   public String getTitle()  {    return this.title;  }  public void setTitle(String newTitle)  {    this.title=newTitle;  }    public int doStartTag() throws JspException  {    try    {      pageContext.getOut().print("<table height=100% width=100%><tr height=10%><Td align=center><h1>*"+this.getTitle()+"*</h1></td></tr><TR valign=top><TD align=center>");    }    catch(Exception e)    {      throw new JspException(e);    }    return EVAL_BODY_INCLUDE;  }    public int doEndTag() throws JspException  {    try    {      String s="</td><tr><tr height=5% valign=bottom><Td><div align=right><a href='mailto:cyndi2@mail.china.com'>联系cyndi</a>|<a href='help.htm'>查看帮助</a>|<a href='http://herald.seu.edu.cn'>艺文频道</a></div><div align=center>herald版权所有</div></td></tr></table>";      String t=new String(s.getBytes("gb2312"), "ISO8859_1");      pageContext.getOut().print(t);    }    catch(Exception e)    {     throw new JspException(e);    }    return EVAL_PAGE;  }}

⌨️ 快捷键说明

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