Jsp tag file例子以及说明(9)
来源:未知 责任编辑:责任编辑 发表时间:2015-03-01 01:35 点击:次
out.write("The first include directive demonstrates how you can include\r\n");
out.write("a static resource called included.html.\r\n");
out.write("<br/>\r\n");
out.write("Here is the content of included.html:\r\n");
out.write("<table>\r\n");//直接把included.html编译到此类
out.write("<tr>\r\n");
out.write(" <td><b>Menu</b></td>\r\n");
out.write("</tr>\r\n");
out.write("<tr>\r\n");
out.write(" <td>CDs</td>\r\n");
out.write("</tr>\r\n");
out.write("<tr>\r\n");
out.write(" <td>DVDs</td>\r\n");
out.write("</tr>\r\n");
out.write("<tr>\r\n");
out.write(" <td>Others</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>");
out.write("\r\n");
out.write("<br/>\r\n");
out.write("<br/>\r\n");
out.write("The second include directive includes another dynamic resource: included.tagf.\r\n");
out.write("<br/>\r\n");
out.print("Hello from
included.tagf");//直接把included.tagf的内容编译到此类
out.write('\r');
out.write('\n');
} catch( java.lang.Throwable t ) {
if( t instanceof javax.servlet.jsp.SkipPageException )
throw (javax.servlet.jsp.SkipPageException) t;
if( t instanceof java.io.IOException )
throw (java.io.IOException) t;
if( t instanceof java.lang.IllegalStateException )
throw (java.lang.IllegalStateException) t;
if( t instanceof javax.servlet.jsp.JspException )
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>