Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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.


Ïà¹ØÎĵµ£º

HTMLÖÐmetaµÄ×÷ÓÃ

Ô´ÎÄ£ºhttp://www.pconline.com.cn/pcedu/sj/wz/html/0401/293106.html
metaÊÇÓÃÀ´ÔÚHTMLÎĵµÖÐÄ£ÄâHTTPЭÒéµÄÏìӦͷ±¨ÎÄ¡£meta ±êÇ©ÓÃÓÚÍøÒ³µÄ<head>Óë</head>ÖУ¬meta ±êÇ©µÄÓô¦ºÜ¶à¡£meta µÄÊôÐÔÓÐÁ½ÖÖ£ºnameºÍhttp-equiv¡£nameÊôÐÔÖ÷ÒªÓÃÓÚÃèÊöÍøÒ³£¬¶ÔÓ¦ÓÚcontent£¨ÍøÒ³ÄÚÈÝ£©£¬ÒÔ±ãÓÚËÑË÷ÒýÇæ»úÆ÷È˲éÕ ......

ÍøÕ¾ÓÅ»¯³£ÓõÄHTML±êÇ©

ÍøÕ¾ÓÅ»¯
³£ÓõÄHTML±êÇ©:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<body>
<h1>H1±êÇ©£¬¶¨ÒåÎÄÕ±êÌ⣬һ¸öÒ³ÃæÖ»ÒªÒ»¸ö</h1>
<h2>H2±êÇ©£¬¶¨ÒåÎÄÕ±êÌ⣬һ¸öÒ³ÃæÖ»ÒªÒ ......

JSP ±Ê¼Ç


JSP£¨Java Server Page£©
JSPÊÇ·þÎñÆ÷¶ËÔËÐеÄÒ³Ã棬JSP±¾¾ÍÊÇÒ»¸öÎĵµ£¬Ëû²»½ö¿ÉÒÔ°üº¬¾²Ì¬µÄHTML´úÂ룬Ҳ¿ÉÒÔ°üº¬¶¯Ì¬µÄJAVA´úÂ룬·þÎñÆ÷ÈÝÆ÷¿ÉÒÔ½«JSPת»»³ÉServlet·¢²¼£¬²¢½ÓÊÜÇëÇó¡£
JspÎļþÖ»Ðè·ÅÔÚÓ¦ÓÃÎļþϾͿÉÒÔÁË¡£
JSPÀý×Ó£º
<html>
<head><title>time</title></head>
& ......

HTMLÏÔʾÈÕÆÚʱ¼ä´úÂë [js ÌØЧ´úÂë]

Ò»ÖÖ£º
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>¼æÈÝFireFoxµÄµ±Ç°Ê±¼äµÄJS½Å±¾</title>
</head>
<body>
<DIV id=time>µ±Ç°Ê±¼ä
<SCRIPT>document.getElementById('time').innerHTML=new Date().toLo ......

ÐÂÀËÔÚÏßhtmleditor jsp°æµÄʹÓà ¿É½áºÏstruts2

ÔÚÏßÍøÒ³±à¼­Æ÷ÖÐ×îÖøÃûµÄÊÇfckEditor£¬µ«ËûµÄ¹¦ÄÜÌ«È«ÃæÁË£¬¶øÇÒʹÓÃÆðÀ´Ò²²»ÊǺܷ½±ã¡£Ïà¶Ô¶øÑÔÐÂÀËhtmleditor¾Í±È½ÏÇåˬ£¬¶øÇÒʹÓüòµ¥¡£ÐÂÀ˲©¿ÍºÍÈËÈËÍøÈÕÖ¾Ó¦¸Ã¶¼ÊÇÓõÄÕâ¸ö¿Ø¼þ¡£µ«ÊÇhtmleditor×î¶àµÄÊÇasp°æ±¾£¬ÔÚÍøÕ¾jsp°æ±¾Ê®·ÖÏ¡ÉÙ¡£Í¨¹ý²éÕÒÎÒÕÒµ½Ò»¸ö¿ÉÒÔʹÓõÄÐÂÀËhtmleditor jsp°æ±¾¡£ÏÂÔصØַΪhttp://down ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ