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Á¬½Ó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 ......
Ò»£®ÊôÐÔ£º
src£º¸ÃÊôÐÔÖ¸¶¨ÍⲿJavaScriptÎļþµÄµØÖ·£¬¿ÉÒÔ¿çÓò¡£Èç¹ûÖ¸¶¨Á˸ÃÊôÐÔ£¬ÄÇôscript±êÇ©ÖеÄÄÚÈݾͻᱻºöÂÔ¡£
type£ºÖ¸¶¨ËùʹÓõĽű¾ÓïÑÔ£¬¿ÉÒÔ¸²¸ÇĬÈϵĽű¾ÓïÑÔ£¨¼´ÔÚ<META http-equiv="Content-Script-Type" content="type">Öж¨ÒåµÄ½Å±¾ÀàÐÍ
£©¿ª·¢Õß±ØÐëÖ¸¶¨¸ÃÊôÐÔ£¬¸ÃÊôÐÔûÓÐĬÈÏÖµ¡ ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; char ......
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 ......