jsp ÂÒÂë ÇóÖú
±¾ÈËÔÚ±àдjsp½çÃæʱ£¬³öÏÖÂÒÂë¡£ÎҵIJ˵¥Ä£¿éÊÇÒýÓõÄÍⲿÎļþ ´úÂ룺 <%@ include file="head.txt" %>
ÔÚÏÔʾʱ£¬²Ëµ¥ÀïÃæµÄ×ÖÈ«ÊÇÂÒÂ룬¶øÒ³ÃæÖ÷ÌåµÄ×ÖÌåÕý³£¡£
head.txtµÄ´úÂëÈçÏ£º
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<table align="center" border="0" width="700" height="18" bgcolor=yellow cellspaing="1">
<tr>
<td width="100%">
<a href="showBookList.jsp">ÊéÄ¿ä¯ÀÀ </a>|
<a href="userRegister.jsp">Óû§×¢²á </a>|
<a href="userLogin.jsp">Óû§µÇ¼ </a>|
<a href="buybook.jsp">¶©¹ºÍ¼Êé </a>|
<a href="modifyForm.jsp">Ð޸Ķ©µ¥ </a>|
<a href="showOrderForm.jsp">²é¿´¶©µ¥ </a>|
<a href="modifyPassword.jsp">ÐÞ¸ÄÃÜÂë </a>|
<a href="modifyMessage.jsp">Ð޸ĸöÈËÐÅÏ¢ </a> </td>
<tr>
</table>
jspÒ³Ãæ´úÂ룺
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ page import="book.Login" %>
<%!
public String codeString(String s)
{
String str=s;
try {
Ïà¹ØÎÊ´ð£º
ÔÚASPϵıäÁ¿£¬Èç¡°2009-09-09¡°£¬×÷Ϊ²ÎÊý£¬´«ÈëJSPº¯ÊýÄÚ£¬±äΪÂÒÂ룬ÇëÎÊÈçºÎ½â¾ö
asp´«µ½jsp?ûÅö¹ý...up up
¸ñʽ»¯°¡£¡
ASPÖÐÈÕÆÚÊDz»ÊÇÒÔ×Ö·û´®µÄÐÎʽ´«ÈëJSPº¯ÊýÖеģ¿
Èç¹û²»ÊÇ×Ö·û´®µÄ»°£ ......
ÎҵĿª·¢µÄƽ̨ÊÇMyeclipes6.0 + tomcat5.x + mysql
ÎÒËùÓеıàÂ뷽ʽ¶¼ÊÇÓõÄUTF-8
ÎÒÖ»ÓÃÁËStrtus¿ò¼Ü
ÔÚÒ»¸öformÖÐÈçÏÂÓõÄÊÇpostµÄÌá½»·½Ê½£º
<form class="form" action=&quo ......
ÏÂÃæcategoryTreeCont.jsp ´úÂë
----------------------------------------
Java code:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
< ......
<script language="javaScript">
function select()
{
document.selectpages.selectnum.value=document.selectpages.selectpage.value;
document.selectpages.submit();
}
&l ......