show.java
字号:
package tldbean;
import java.io.IOException;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
public class show extends TagSupport{
public int doStartTag() throws JspException {
try {
JspWriter out = this.pageContext.getOut();
String x = (String)pageContext.getRequest().getAttribute("newsType");
if(x==null) x = pageContext.getRequest().getParameter("newsType");
if(x.equals("0")) out.write("新闻发布");
else if(x.equals("1")) out.write("网友推荐");
else if(x.equals("2")) out.write("专家讲坛");
else if(x.equals("3")) out.write("彩吧精选");
else if(x.equals("4")) out.write("玩法技巧");
else if(x.equals("5")) out.write("奥运消息");
else if(x.equals("6")) out.write("奥运彩票");
else if(x.equals("7")) out.write("足彩社区");
else if(x.equals("8")) out.write("足彩场次安排");
else if(x.equals("9")) out.write("大乐透社区");
else if(x.equals("10")) out.write("排列3、5社区");
else if(x.equals("11")) out.write("排列3号码");
else if(x.equals("12")) out.write("排列3、5号码");
else if(x.equals("13")) out.write("七星彩号码");
else if(x.equals("14")) out.write("超级大乐透号码");
} catch (IOException e) {
e.printStackTrace();
}
return super.doStartTag();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -