?<!--[endif]-->
Javabean代码
package com.mr;
?
public class OutHTML {
??? //版权信息字符串
??? private String copyRight="版权:梁任元制作";
??? //输出版权信息的方法
??? public String getCopyRight(){
?????? String coprRightHtml="<table><tr><td align='center'>"+copyRight+"</td></tr></table>";
?????? return coprRightHtml;//返回coprRightHtml字符串
??? }
}
JSP代码
<jsp:useBean id="copyright" class="com.mr.OutHTML"/>
??? <table border="1">
??? <tr>
??? ??? <td align="center"><%=copyright.getCopyRight()%></td>
??? </tr>
</table>
?