It is quite handy to handle exceptions in struts, whether it's struts1 or struts2, and configuring global exceptions is OK ~
To print out the exception information in the page:
The processing method in Struts1:
Direct use of tags in struts2:
:
Common-fileupload componentsDownload Address: http://jakarta.apache.org/commons/fileupload/Unzip the zip package after downloading and copy Commons-fileupload-1.0.jar to Tomcat's webapps/your webapp/web-inf/lib/.Create a servletImport
The session is a global variable and is the proxy of the browser thread on the server side. As soon as the Web service program is open, the session will exist, and when you first visit, the session will automatically assign you one session ID, so
1. Introduction
The include directives in the JSP are in the form of:Typically, include is considered when parts of all pages in an application, such as headers, footers, and navigation bars, are the same. The include directive element of the ,jsp
JSP page through JS implementation of the Message pop-up box, the style can be modified according to requirements, this is just a simple example, customized two messages, frame effect is as follows
JSP page
;/head> unreadlist = new
form.jsp
fckeditor application in form
showform.jsp
The application of fckeditor in form below two ways show, but request.setcharacterencoding ("Utf-8"); is used to solve Chinese
use this class to place data in
JSP The
page is displayed in tabular form, and it has dynamic sorting and dynamic query function. This class can be easily implemented: 1, the data read out of the table in tabular form. 2, according to the
The basic composition of 1.JSP pages
Directive Identity (page,include,taglib) directive: Enables the server to perform actions and set properties that are valid throughout the JSP page range, as set by the directive.
HTML Markup Language: mainly
In the direct to format. such as: is to output the attribute date in YYYY-MM-DD format . 2. Use for formatting. such as: or " /> 3. Another way to do this is through an international approach: first
When we do Web applications, in many cases we need the operator to enter date-type field information such as dates on the page. The usual practice is:
1, select the label to choose the date
2, give an input, and define a fixed format, so that
For Web applications, front-end (JavaScript) and back-end (Jsp/servlet) can not be used to share data, only the back-end program (JSP) data output to generate the page to the front, the generated page of JavaScript code is likely to get the
JSTL Core Tag Library has a total of 13 tags, functionally divided into 4 categories:
1. Expression control Tags: out, set, remove, catch
2. Process Control Tag: If, choose, when, otherwise
3. Cyclic Tags: forEach, fortokens
4.URL operation tag:
First, create the database.
We create an Access database Student.mdb and use the Table Designer to create a table called Table1, and add test data as follows:
Second, configure the data source.
Select Start-> Administrative Tools-> Data Source
solutions for El Expressions in JSP pages that do not work
2009-09-21 09:30:32| Category: Programming | font size Subscriptions
I use myeclipse6.5 tomcat5.5, as if tomcat5.0 above all support Jstl.
I also find a lot of information, tried a lot of
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.