Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : jsp

jsp Á´½ÓOracleµÄÁ¬½Ó³ØºÍ²éѯÌøת´úÂ루´øµÇ¼£©

'-------------------------------------------------------------------ÒÔÏÂÊǵǼ´úÂë
<%@ page contentType="text/html; charset=gb2312"%>
<!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; charset=gb2312" />
<title>ÐÅÏ¢²éѯϵͳ</title>
<style type="text/css">
<!--
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
body,td,th {
 font-size: 12px;
 color: #0000CC;
}
.text{ border:1px #D1D1D1 solid; width:150px; height:20px;}
.STYLE1 {color: #FFFFFF}
-->
</style></head>
<body scroll="no">
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0" background="images/d.jpg"  height="473">
  <tr>
    <td ......

jsp Á´½ÓOracleµÄÁ¬½Ó³ØºÍ²éѯÌøת´úÂ루´øµÇ¼£©

'-------------------------------------------------------------------ÒÔÏÂÊǵǼ´úÂë
<%@ page contentType="text/html; charset=gb2312"%>
<!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; charset=gb2312" />
<title>ÐÅÏ¢²éѯϵͳ</title>
<style type="text/css">
<!--
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
body,td,th {
 font-size: 12px;
 color: #0000CC;
}
.text{ border:1px #D1D1D1 solid; width:150px; height:20px;}
.STYLE1 {color: #FFFFFF}
-->
</style></head>
<body scroll="no">
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0" background="images/d.jpg"  height="473">
  <tr>
    <td ......

weblogic jsp ±àÒ룺²é¿´±àÒëºóµÄjavaÖмä´úÂë

ÔËÐÐ×Ô¼ºÅäÖõÄwebÓ¦Óã¬ÍùÍùÖ»ÄÜ¿´¼ûweblogic±àÒëÖ®ºóµÄclassÎļþ¡£¶ø¿´²»¼û±àÒëÇ°µÄjavaµÄÎļþ¡£ÎªÁ˵÷ÊÔ·½±ã£¬ÎÒÃÇÓÐʱºòÊÇÏë¿´±àÒëÇ°µÄjavaÎļþ¡£
ÔÚweblogic.xmlÖмÓÈë
<jsp-descriptor>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
¼´¿É¡£
Èç¹ûûÓУ¬ÔÚWEB-INFÖн¨Á¢Ò»¸öweblogic.xmlÎļþ¡£
Ôö¼Ó
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app
PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd" >
<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
</weblogic-web-app>
¿´¿´webÓ¦ÓÃÔÚweblogicÖÐÉú³ÉÁÙÊ ......

weblogic jsp ±àÒ룺²é¿´±àÒëºóµÄjavaÖмä´úÂë

ÔËÐÐ×Ô¼ºÅäÖõÄwebÓ¦Óã¬ÍùÍùÖ»ÄÜ¿´¼ûweblogic±àÒëÖ®ºóµÄclassÎļþ¡£¶ø¿´²»¼û±àÒëÇ°µÄjavaµÄÎļþ¡£ÎªÁ˵÷ÊÔ·½±ã£¬ÎÒÃÇÓÐʱºòÊÇÏë¿´±àÒëÇ°µÄjavaÎļþ¡£
ÔÚweblogic.xmlÖмÓÈë
<jsp-descriptor>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
¼´¿É¡£
Èç¹ûûÓУ¬ÔÚWEB-INFÖн¨Á¢Ò»¸öweblogic.xmlÎļþ¡£
Ôö¼Ó
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app
PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd" >
<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
</weblogic-web-app>
¿´¿´webÓ¦ÓÃÔÚweblogicÖÐÉú³ÉÁÙÊ ......

Html£¬JspºÍJavaBeanÀïÃæµÄ¡°.¡±ºÍ¡°/¡±Ëù´ú±íµÄ·¾¶

ÔÚJspºÍjspÖеÄjavabeanÀïÃ棬"/"Ö¸µÄÊÇtomcatËùÔڵĸù·¾¶£¬Èç¹ûÊÇÔÚWindowsϾÍÊÇtomcatËùÔÚÅ̵ÄÅÌ·û£»¶ø“.”Ö¸µÄÊÇtomcatµÄbinĿ¼ËùÔڵķ¾¶¡£
ÎÒ²ÂÏëÕâÊÇÒòΪjsp´úÂ붼»á±»tomcatתΪServlet£¬¶øServletÊÇÔÚtomcatÖзÃÎʵģ¬ËùÒÔjvmÔÚÔËÐÐServletʱ¾ÍÈÏΪĿ¼ÊÇtomcatËùÔÚµÄĿ¼¡£
HtmlÖеē/”Ö¸µÄÔòÊÇÍøÖ·µÄ¸ùĿ¼£¬Èç/javascript¾Í»á±»½âÒëΪhttp://localhost/javascript ......

ÈçºÎÏòÒ»¸öjsp´«µÝÁ½¸öÒÔÉϵIJÎÊý

ÓÐÁ½ÖÖ´«²Î·½Ê½
Ò»¡¢get·½Ê½£º
        ÕâÖÖ·½Ê½½«²ÎÊýдÔÚurlÖУ¬¾ÙÀýÀ´Ëµ£¬Èç¹ûÄ¿±ê´«²ÎÒ³ÃæÊÇtarget.jsp,ÄÇôÔÚurlÀï¿ÉÒÔÕâôд£º
        http://..../target.jsp? <Param1> = <value1> & <Param2> = <value2> &...
        ¿ÉÒÔ´«µÝ¶à¸ö²ÎÊý¡£
        ÔÚtarget.jspÖУ¬ÓÃrequest.getParameter( " <ParamName> ");»ñÈ¡£»
¶þ¡¢post·½Ê½
        ÕâÖÖ·½Ê½ÊÇÓà <form> ¿òÌå´«µÝ²ÎÊý¡£¾ÙÀýÀ´Ëµ£¬ÈçÐèÒª½«²ÎÊýÓÉsource.jsp´«µÝµ½target.jsp¡£ÄÇôÔÚsource.jspÖÐÐèÒªÕâôд£º
        .......
        <form   name= "form1 "   action= "target.jsp "   method= "post ">
              <input   name= " <Param1> "   value= " <value1> "   type= "text ">
              <input   name= " <Param2> " &n ......

JSP¶ÁÎļþ´úÂë

<%@ page contentType="text/html; charset=gbk" language="java" import="java.io.*" buffer="64kb" %>
      <%
 
   String path_in = "";
   String content = "";
 
   path_in = request.getRealPath("/")+"admin"+File.separator+"temp_1.txt";
   out.println(path_in);
  
   try
   {
   BufferedReader in = new BufferedReader (new FileReader(path_in));
   String file = "";
   String temp = "";
   while((temp=in.readLine())!=null)
   {
    file+=temp;
  out.println("writer.println(\""+temp+"\");");
   }
   in.close();
  
   out.println(file);
   out.flush();
  
  
   }
   catch(Exception e)
   {
   out.println(e);
   e.printStackTrace();
   }
 &nbs ......

JSPдÎļþ´úÂë

<%@ page contentType="text/html; charset=gbk" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.io.*" %>
<!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>
   
    <title></title>
 <meta http-equiv="pragma" content="no-cache">
 <meta http-equiv="cache-control" content="no-cache">
 <meta http-equiv="expires" content="0">   
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
 <meta http-equiv="description" content="This is my page">
 <!--
 <link rel="stylesheet" type="text/css" href="styles.css">
 -->
    <link href="css/common_1.css" rel="stylesheet" type="text/css" />
   <link rel="SHORTCUT ICON" href=" ......
×ܼǼÊý:884; ×ÜÒ³Êý:148; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [136] [137] [138] [139] 140 [141] [142] [143] [144] [145]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ