Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Html/Jsp³£ÓõÄÒ³ÃæÌøת·½·¨

µÚÒ»ÖÖ£º
<script language="javascript" type="text/javascript">
    window.location.href="login.jsp?backurl="+window.location.href;
</script>
µÚ¶þÖÖ£º
<script language="javascript">
    alert("·µ»Ø");
    window.history.back(-1);¡¡
</script>
µÚÈýÖÖ£º¡¡
<script language="javascript">
    window.navigate("top.jsp");¡¡
</script>
µÚËÄÖÖ£º¡¡
<script language="JavaScript">
    self.location="top.htm";¡¡
</script>
µÚÎåÖÖ£º¡¡
<script language="javascript">
    alert("·Ç·¨·ÃÎÊ£¡");
    top.location="xx.jsp";
</script>
µÚÁùÖÖ£º¡¡
servletʵÏÖÌøת-->request.getRequestDispatcher("/WEB-INF/pages/error.jsp").forward(request,response);
µÚÆßÖÖ£º¡¡
ÓÉÓÚÒÔÉϵÄÌøת¶¼ÊÇwebRootϵÄ,»òÕßÒÑÖªÍêÕûurlµØÖ·µÄÌøת.Èç¹ûhtml»òÕßjspÊÇ´æ·ÅÔÚWEB-INFϵÄ,ÔÚʹÓÃstrutsµÄÇé¿öÏÂ,¿ÉÒÔͨ¹ýÅäÖÃstrutsµÄ·¾¶»ñµÃÍêÕûµÄurlµØÖ·,²»Ê¹ÓÃstrutsʵÏÖWEB-INFϵÄÒ³ÃæÌøת...
/**
* @author Vicky
* @emial eclipser@163.com
*/
public class NavigateTo extends HttpServlet {
private static final long serialVersionUID = 1L;
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,
IOException {
String url = request.getParameter("url");
request.getRequestDispatcher(url).forward(request,response);
}
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
IOException {
doGet(request, response);
}
}
web.xmlÅäÖÃ:
  <servlet>
    <servlet-name>NavigateTo</servlet-name>
    <servlet-class>cn.vicky.servlet.NavigateTo</servlet-class>
  </servlet>
ʹÓõÄÒ³Ãæ:
<%
String path = request.getContextPath();
%>
<script type="text/javascript">
  function playGame()
  {
   window.


Ïà¹ØÎĵµ£º

jspÖÐÁ¬½ÓÊý¾Ý¿âµÄÎÊÌâ

½ñÌìÔÚѧϰjspÖÐÊý¾Ý¿âµÄʹÓÃʱ£¬Óöµ½Ò»¸öºÜÆæ¹ÖµÄÇé¿ö£¨ÖÁÉÙÏÖÔÚ¿´À´Êǵģ©¡£jspÖÐÁ¬½ÓmysqlÊý¾Ý¿â£¬¿ªÆômysqlÊý¾Ý¿âºó£¬ÔÚjspÒ³ÃæÖÐǶÈëµÄjavaÁ¬½ÓmysqlÊý¾Ý¿âµÄÄǼ¸¾ä´úÂë¡£ºÃÏñ Class.forName("org.gjt.mm.mysql.Driver");ûÆðµ½×÷Óã¬Ö»ÐèÒªConnection con=DriverManager.getConnection("jdbc:mysql://localhost/test? ......

jspÁ¬½ÓMySQLÊý¾Ý¿â 2

¡ñjspÁ¬½ÓMySQLÊý¾Ý¿â
testmysql.jspÈçÏ£º
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("org.gjt.mm.mysql.Driver").newInstance();
String url ="jdbc:mysql://localhost/softforum?
user=soft&pas ......

ÄãÕæµÄÁ˽âhtmlÂ𣿠֮script±êÇ©½éÉÜ

Ò»£®ÊôÐÔ£º
src£º¸ÃÊôÐÔÖ¸¶¨ÍⲿJavaScriptÎļþµÄµØÖ·£¬¿ÉÒÔ¿çÓò¡£Èç¹ûÖ¸¶¨Á˸ÃÊôÐÔ£¬ÄÇôscript±êÇ©ÖеÄÄÚÈݾͻᱻºöÂÔ¡£
 
type£ºÖ¸¶¨ËùʹÓõĽű¾ÓïÑÔ£¬¿ÉÒÔ¸²¸ÇĬÈϵĽű¾ÓïÑÔ£¨¼´ÔÚ<META http-equiv="Content-Script-Type" content="type">Öж¨ÒåµÄ½Å±¾ÀàÐÍ
£©¿ª·¢Õß±ØÐëÖ¸¶¨¸ÃÊôÐÔ£¬¸ÃÊôÐÔûÓÐĬÈÏÖµ¡ ......

html±í¸ñ±ê¼Ç

HTMLÓÐ10¸ö±í¸ñÏà¹Ø±êÇ©¡£ÏÂÃæÊÇÒ»¸ö´øÓмò½éµÄÁÐ±í£¬µ«ÊÇÊ×ÏÈ£¬ÎĵµÒª±»ÕýÈ·µÄ¶¨ÒåÔÚHTML 4.01/XHTML 1»òHTML 5ÏÂÃæ:
<caption> ¶¨Òå±í¸ñ±êÌâ(4, 5)
<col> Ϊ±í¸ñµÄÁж¨ÒåÊôÐÔ(4, 5)
<colgroup> ¶¨Òå±í¸ñÁеķÖ×é(4, 5)
<table> ¶¨Òå±í¸ñ(4, 5)
<tbody> ¶¨Òå±í¸ñÖ÷Ìå(4, 5)
< ......

ÔÚJSPÖÐÅäÖÃFCKeditor 2.6.4

1.FCKeditor ½éÉÜ
FCKeditor Õâ¸ö¿ªÔ´µÄHTML Îı¾±à¼­Æ÷¿ÉÒÔÈÃweb ³ÌÐòÓµÓÐÈçMS Word ÕâÑùÇ¿´óµÄ±à¼­¹¦ÄÜ£¬.FCKeditor Ö§³Öµ±Ç°Á÷ÐеÄä¯ÀÀÆ÷¡£
2£®×¼±¸¹¤×÷£º
»·¾³£ºwinddows XP¡¢tomcat6.0¡¢JDK1.6
ÏÂÔØ£º
1)£ºFCKeditor_2.6.4.zip
µØÖ·£ºhttp://nchc.dl.sourceforge.net/sourceforge/fckeditor/FCKeditor_2.6.4.zip ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ