I previously wrote a simple JSP for stress testing. I did not expect a problem that when the pressure is high, it will happen if the operation lasts for a long time, that is, the JVM memory is almost exhausted. You can use jprofiler to check that
application and session are relatively simple. The scope of application and page is described here. application: global scope. The entire application Program is shared, that is, the same webapp in the deployment file is shared, and the lifecycle
First look at a simple application, inA. jspWrite the following code
This transfers the parameter named name and value XY to name. jsp.
InName. jspReceiving Parameters
String n = request. getparameter ("name "); If (n! = NULL &&! "". Equals
JSP
Stulst. Name "value =" XY "/>
Stulst. Name "value =" xy1 "/>
Stulst. Name "value =" xy2 "/>
This indicates that there are three different records.
Action
Public list Stulst;
........................................ ...........
Public stirng
JSP standard tag library -- jstl
Jstl is a set of custom tag libraries that implement common functions in Web applications.
Jstl has five categories:
1. Core tag Library
2. internationalized/formatted tag Library
3. Database tag Library
4. xml tag
Source: http://www.cnblogs.com/adandelion/archive/2005/10/26/262666.html
The showmodaldialog cache is serious. The following is how to cancel the client cache settings in the subwindow.Bytes ---------------------------------------------------------
JSP files are composed of two types: JSP elements and HTML templates.
HTML templates are mainly used for static Web page display. Based on HTML templates, JSP elements related to dynamic web pages are added to achieve dynamic web page
In JSP, nine objects are implicitly defined, also called built-in objects.
Page: The current object. pagecontext: the context object of the page, which records the information of the current page. Request: This object encapsulates the information
Block declaration descriptionDeclares a script language variable or method. The content must be a complete and valid statement written in the language defined by the page command. The embedded JSP object is invisible to the declared element. The
HTML descriptionStandard HTML comment. The JSP Container sends the comment to the client browser, but the comment is not displayed in the browser. You can view the comment by viewing the webpage source file. Syntax] --> AttributeDefault Name
One of the most important new functions of servlet API 2.3 is the ability to define filters for servlet and JSP pages. Filters provide a powerful and standard alternative to non-standard servlet links supported by some early servers.
A filter is a
1. This instance mainly tells us how to call the JavaBean Component in JSP code.
2. The advantage of using Javabean is that JSP code is simplified, interface code and logic code are separated from each other, so that programmers can easily view and
1. This instance mainly tells us how to use JSP actions in JSP code, for example,
2. This instance requires four files: login.jsp,test.jsp, OK .htm,no.htm
3. First, let's take a look at login. jsp.
Username
Password
4. The test. JSP
We do not like to see on JSP pages. In fact, we can use a more elegant XML format to express1. Implicit commentsJSP Syntax: XML Syntax: None2. Declaration of variables or functionsJSP Syntax: For example:IntI = 0;IntA, B, C;Color red =NewColor (255,
JBoss 4.0 is automatically integrated with Tomcat 5.0, so it is not only a professional EJB container, but also a professional JSP/servlet container and web server.
Tomcat 5.0 is integrated in the following directory of
PrefaceAnyone with JSP coding experience may experience JSP debugging difficulties. Due to the lack of automated debugging tools, JSP debugging has to use a large number of print statements in files. This method is a simple and effective method for
The source code of the example provided in this article has been uploaded by cainiao. If you are interested, go to http://download.csdn.net/detail/woshishuoshuoa/596%3 to download it ~~~
This is a simple registration verification program completed
Scud (Flying Cloud Xia) http://www.jscud.com reprinted please indicate the author/source
Keywords: RSS, freemarker, RSS. XML, webwork2
RSS is widely used on the Internet, and RSS support is added to various websites. I recently studied it and added
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.