May 2
JSP内置对象(9个常用的内置对象)

1.request对象

客户端的请求信息被封装在request对象中,通过它才能了解到客户的需求,然后做出响应。它是HttpServletRequest类的实例。

序号 方 法 说 明

1 object getAttribute(String name) 返回指定属性的属性值

2 Enumeration getAttributeNames() 返回所有可用属性名的枚举

3 String getCharacterEncoding() 返回字符编码方式

4 int getContentLength() 返回请求体的长度(以字节数)
May 1

一、Include指令
<jsp:include>标签表示包含一个静态的或者动态的文件。
语法:
<jsp:include page="path" flush="true" />
or
<jsp:include page="path" flush="true"><jsp:param name="paramName" value="paramValue" /></jsp:include>
注:
1、page="path" 为相对路径,或者代表相对路径的表达式。
2、flush="true" 必须使用flush为true,它默认值是false。
3、<jsp:param>子句能让你传递一个或多个参数给动态文件,也可在一个页面中使用多个<jsp:param>来传递多个参数给动态文件。

Tags: ,
Mar 21
参考
http://gceclub.sun.com.cn/staticcontent/html/sunone/app7/app7-dg-webapp/ch6/ch6-4.html
1.指定了自己的javaEncoding
<servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>fork</param-name>
            <param-value>false</param-value>
        </init-param>
                <init-param>
            <param-name>javaEncoding</param-name>
            <param-value>GB18030</param-value>
        </init-param>
        <init-param>
            <param-name>xpoweredBy</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>
Tags: , , , , , , , ,
Jan 6
BEA has released BEA Workshop Studio 3.3 . In this release, Web Folder Mapping allows you to assemble your source files in a folder organization that matches the needs of your development team, not in a structure required by the server or the IDE. All Workshop Studio features then work transparently with the mapped files (eg. AppXRay, WYSIWYG rendering, Wizards, Validation, Navigation, etc). When using WebLogic Server’s split development directory, users can deploy non-standard structures directly to the server from the IDE, bypassing complicated ANT workarounds outside the IDE. In WebLogic Server, this feature is known as split development directory .
Oct 27
在好多网站的最下方,会显示页面执行时间 Processed in 4 ms ,实现如下:
1. TimerFilter源码如下:
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]