摘要:
1、编写一个实现tag接口的java类,并覆盖其doStarttag方法public class ViewIpTag implements Tag {private PageContext pagecontext;public void setPageContext(PageContext arg0) {this.pagecontext = arg0;}public int doStartTag() throws JspException {HttpServletRequest request = (HttpServletRequest) this.pagecontext.getRequest 阅读全文