jsp
liuwzh
这个作者很懒,什么都没留下…
展开
-
JSP知识点汇总之一
JSP编译指令有三个:• page: 该指令是针对当前页面的指令。[language="Java"][extends="package.class"][|mport= "package. class , package. *},…"][sess|on="true | false"][buffer="none| 8kb | s|ze kb" 1[autoFlush="true|false"][|sThread8afe="true | false"][|nfo="text"][errorPage="relat|原创 2010-09-16 23:16:00 · 535 阅读 · 0 评论 -
Servlet Filter概述
凡是开发过J2EE的web application的人员都知道,经常需要处理以下几种情况: 访问特定资源(Web 页、JSP 页、servlet)时的身份认证 应用程序级的访问资源的审核和记录 应用程序范围内对资源的加密访问,它建立在定制的加密方案基础上 对被访问资源的及时转换, 包括从 servlet 和 JSP 的动态输出 一个执行过滤器的Java 类必须实现javax.servlet.Filter 接口。这一接口含有三个方法: in原创 2010-10-19 10:28:00 · 288 阅读 · 0 评论 -
getSession()
查看当前请求的会话对象通过调用HttpServletRequest的getSession方法实现。如果getSession方法返回null,你可以创建一个新的会话对象。但更经常地,我们通过指定参数使得不存在现成的会话时自动创建一个会话对象,即指定getSession的参数为true。 getSession(true)就表示如果Session不存在就创建一个新的Session,并把Session的标识SessionID写到Cookie中,如果存在就是用这个 Session。getSession(false)就原创 2010-10-18 13:38:00 · 13814 阅读 · 1 评论 -
onsubmit
<br /><form name=”prodform” action=”index.jsp” method=”post”<br />onsubmit=”return validateForm()”><br />If the onsubmit handler returns true, the form data is sent to the server for further processing. If the<br />onsubmit handler returns false, the origi原创 2010-09-30 07:48:00 · 379 阅读 · 0 评论 -
Object Description
<br />Implicit Object Description<br />request Represents the request from the client invoking the JSP page in its browser<br />(javax.servlet.http.HttpServletRequest)<br />response Represents the response being prepared for the user’s browser<br />(javax.原创 2010-09-29 21:43:00 · 466 阅读 · 0 评论 -
bad code!原创 2010-09-29 21:36:00 · 362 阅读 · 0 评论
-
javax.servlet.http.HttpServlet
<br />Method Name Description<br />doGet() Processes an incoming request that is sending data via the HTTP GET<br />action<br />doPost() Processes an incoming request that is sending data via the HTTP POST<br />action<br />doPut() Processes an incoming req原创 2010-09-30 08:04:00 · 462 阅读 · 0 评论 -
c:forEach
Weather PortalYou Get the Latest Weather! ${row.city} ${row.temp}-----------------------package com.wrox.begjsp.ch2;import java.beans.*;import java.util.*;public class NewsFeed extends Object implements java.io.Serializable {原创 2010-09-28 13:44:00 · 288 阅读 · 0 评论 -
property=”*”
<br />The use of the property=”*” notation will cause the action to attempt to match incoming parameter<br />names with bean property names and perform the assignment of values from each of the incoming<br />parameters to its matching property原创 2010-09-29 08:13:00 · 321 阅读 · 0 评论 -
fmt
<br />Tags from this library that are frequently used in JSP include the following:<br />❑ <fmt:formatNumber>: To render numerical value with specific precision or format<br />❑ <fmt:formatDate>: To render date and time values in a specific format (and acc原创 2010-09-29 00:08:00 · 284 阅读 · 0 评论 -
EL Property Access and Nested Properties Examples
<br /><jsp:setProperty name="newsfeed" property="topic" value="news"/><br />News headline is <b>${newsfeed.value}</b>.<br/><br /><jsp:setProperty name="newsfeed" property="topic" value="entertainment"/><br />Entertainment headline is <b>${newsfeed["value原创 2010-09-29 00:06:00 · 365 阅读 · 0 评论 -
The core group
<br />The core group of tags are the most frequently used JSTL tags. Some useful core tags include the following:<br />❑ <c:if> for conditional flow<br />❑ <c:forEach> and <c:forTokens> for iteration<br />❑ <c:choose>...<c:when>....<c:otherwise> for select原创 2010-09-29 00:05:00 · 326 阅读 · 0 评论 -
empty operator
<br />Operand Data Type Empty Value <br />String “” <br />Any named variable Null <br />Array no elements <br />Map no elements <br />List no elements原创 2010-09-28 23:55:00 · 309 阅读 · 0 评论 -
EL Named Variables
<br />First the set of EL implicit objects is searched for a matching name (EL implicit objects are covered later in this chapter), and then the four scopes(Page>Request>Session>Application)<br /> <br />In practice, this is equivalent to a call to the Java原创 2010-09-28 23:53:00 · 242 阅读 · 0 评论 -
News Portal原创 2010-09-28 22:49:00 · 230 阅读 · 0 评论
-
通过JNDI连接weblogic的一些问题
原创 通过JNDI连接weblogic的一些问题 收藏首先说说这些语句:java.naming.factory.initial java.naming.provider.url java.naming.factory.object java.naming.factory.state java.naming.security.authentication java.naming.security.principle java.n原创 2010-10-19 10:31:00 · 785 阅读 · 0 评论