文章列表
 
您正在查看 "Jsp" 分类下的文章

2012-04-12 12:19

建一个简单的登录界面index.jsp,代码如下:

<%@ page contentType="text/html;charset=UTF-8"%>
<html>
<head><title>request的使用</title></head>
<body bgcolor="#FFFFCC">
<center>
<table border="1">

<h1 align="center">登陆验证</h1>
<hr>
<form action="requestform.jsp">

 
2012-03-22 23:46

Clustering && session replication

1)    First of all, make sure that you have implemented load balancing by configuring Apache Http Server and two Tomcat Servers in your computer;

reference: http://hi.baidu.com/prometheus2008/blog/item/3ac3f72db24fe22b359bf744.html

2)   

 
2012-03-22 13:20

Implementing Load Banlance with Apache and Tomcat

1)    Download and Install JRE      jre-6u20-windows-i586-iftw-k.exe

2)    Download and Install JDK      jdk-6u20-windo

 
2009-04-02 11:36

application、session、request、page的作用范围由大到小。

page只在当前页面有效。

request在一次请求的全过程中有效。包括用户请求访问的当前web组件,以及,和当前web组建共享同一请求的其他web组件(比如jsp页面中include的,forward标记包含的)。存放在HttpServletRequest对象中。

   

 
2009-04-02 11:35

cookie 把信息保留在客户端,把用户信息保留在用户本地不必总访问服务器。当发出页面请求时,把cookie里的信息从客户端发到服务器。一次有效,不能跨窗口。

session 的信息保存在服务器端,通过消耗服务器内存来保存信息。
      是用户全局变量,对该用户的所有操作过程都有效。为每个用户分配一个sessionId,用来唯一的标识客户,用session.

 
2009-04-02 11:33

① out - javax.servlet.jsp.jspWriter
   out对象用于把结果输出到网页上。
方法:
1. void clear() ;
   清除输出缓冲区的内容,但是不输出到客户端。
2. void clearBuffer() ;
   清除输出缓冲区的内容,并输出到客户端。
3. void close() ;
   关闭输出流,清除所有内容。
4. void flush() ;
   输出缓冲区里面的数据。
5. int getBufferSize() ;
   获取以kb为单位的目前缓冲区大小。
6. int getR

 
2009-02-07 22:09

示例程序:

<HTML>
<HEAD>
<title>WEB页面导出为EXCEL文档的方法
</title>
</HEAD>
<body>
<BR>
<table id = "PrintA" width="100%" border="1" cellspacing="0" cellpadding="0" bgcolor = "#61FF13">
<TR style="text-align : center;

 
2008-08-06 16:33

index.jsp

<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<
%@page import="java.util.*"%>

<html xmlns="http://www.w3.org/19

 
2008-08-06 16:22

beforeSpeakFlat.jsp://本页面主要功能就是生成一个全局的application变量,以记录所有的留言情况。

<%@ page import="java.util.*" import="java.util.Vector"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Co

 
2008-08-01 11:14

writeCookie.jsp:

<%@ page contentType="text/html; charset=gb2312" langu

 
   
 
 
文章分类
 
   
 
文章存档
 
     
 
最新文章评论
  

回复prometheus2008:哦
 

回复天使街没有人:你好,我学的计算机。
 

亲 冒昧的问一下你是学什么的?
 

yield()和join()的区别 join方法是,用对象名称调用,在一个线程t2中调用另一个线程t
 

非常好!
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu