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

servletÏòjspͬʱ´«¶à×é¾ßÓÐÏàͬ½á¹¹µÄÖµ

package com.dong;

import java.io.IOException;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class BuyerOrderServlet extends HttpServlet {

private static final long serialVersionUID = -3855206432313787833L;


public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {

doPost(request, response);
}

public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String[] order_id=new String[10];
String[] new_price=new String[10];
String[] product_number=new String[10];
 
HttpSession session = request.getSession(true);
response.setContentType("text/html;charset=utf-8");
String driver = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc:oracle:thin:@127.0.0.1:1521:global";
String username = "scott";
String pass


Ïà¹ØÎÊ´ð£º

JSP´æÈëÊý¾Ý¿â

ÎÒÊÇÓÃSTRUTS £¬×öÁËÒ»¸öJSPÒ³Ãæ£¬Ìá½»ºóûÓдæÈëÊý¾Ý¿â¡£
JSP´úÂëÈçÏ£º
aa.jsp´úÂë
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ taglib uri=" ......

jspÒ³ÃæÖÐ×ÖÌå±äÉ«ÎÊÌâ - Java / Web ¿ª·¢

<html><head><title>[@title]</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<script language='javascript'>
function diyCheck ......

JSP/Servlet½»»¥ - Java / Web ¿ª·¢

JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
  JSPÒ³Ãæ½«²ÎÊýPOST¸øservlet
  
  ÒªÇóÈçÏÂ;
  1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......

jspÒ³ÃæÈçºÎ±£´æ³Éhtml¸ñʽ - Java / Web ¿ª·¢

ÎÒÔÚjspÒ³Ãæ²éѯµ½Êý¾Ý¿âÖеÄÒ»±ÊÊý¾Ý£¬²¢ÒÔtableÑ­»·µÄÐÎʽÏÔʾ£¬µ«ÐèÒªÏÂÔØ±£´æ³Éhtml¸ñʽ£¬ÇëÎÊÓ¦¸Ã´¦Àí£¿´úÂëÓÐûÓÐÌØÊâÒªÇó£¿ÊDz»ÊÇÐèÒªÌØ±ðµÄjar°ü£¿
ÄãÕâÊǰѱ¨±í±£´æÎªHTML¸ñʽ£¬²»ÖªÓÐʲôÓô¦£¬
ÒªÊÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ