ExtJS, though powerful, is difficult to debug. It was a great effort but eventually succeeded. A summary of the skills of the learning knowledge I will be summarized in the next blog post. Now it's time to stick to the code.
Servlet Code (note I
1, the browser to the action pass parameters:
set the property in action and set the Get/set method for the property. Assign a value by the name of the property when passing the parameter. such as Xxx?name=aa
value with Request.getprameters
In the actual use of Struts2, CSS and JavaScript are often introduced into the JSP view page, which involves reference path issues. There are two types of paths, one is the relative path and the other is an absolute path. Let's talk about their
First of all, Struts.xml. If you want to restrict the type of upload file, you can configure an interceptor:
image/bmp,image/png,image/gif,image/jpeg
Single File Upload jsp:
Single File Upload
This garbled problem plagued me for half a month, has been too lazy to repair him, also does not affect the function, nothing more than the need to open their own notepad.
After a long time, found that no matter what type I use, utf-8 GBK gbk2312,
Org.apache.jasper.JasperException:Unable to compile class for JSP:
An error occurred at line:163 in the JSP file:
/touch/management/permission/adminmanagement.jspList cannot is resolved to a type
162:sysuser user =
1. Client upload file
Client through a JSP page, upload files to the server, the JSP page must contain a file class form, and the form must be set enctype= "Multipart/form-data". An input stream is obtained by Request,request.getinputstream () the
Method 1. The following procedure executes the Opentheindexpage () method when the page is fully loaded
telecommunications Data Collection system
Method 2: Can be the following, but the effect is not as good as Method 1.
The second
Directly on the code ...
Welcome to the use of university personnel and vehicle Management system, please log in first, if not registered in this site, please register first. Admin User
Date issue
1. Get server-side current date:
[Copy to Clipboard] [ - ] CODE:
Date mydate = new Date ();
%>
2, to obtain the current year, month, day:
[Copy to Clipboard] [ - ] CODE:
Date mydate = new Date ();
int thisyear = mydate.getyear () + 1
Deploying Project Web in Eclipse sometimes accessing a JSP throws the following similar exception informationOrg.apache.jasper.JasperException:The Absolute uri:http://java.sun.com/jspDeploy the Web project if this exception is thrown. Please ensure
JSP has the following 9 built-in objects:
Request : represents the HttpServletRequest object, client requests. It contains information about browser requests and provides several useful methods for obtaining cookies, headers, and session
The C tag we use in web development is the core library in Jstl, providing common support for everyday tasks
: Setting variable values and Object properties
: Display variable contents in page
No label body:
Has the label body:
label Body
1. cache report source
Cache the report source in session variables so that the report source can be effectively used multiple times. When a report source is not cached, It is very expensive to create a new report source multiple times. In addition,
Part 1 installation in the Java environment
1. The latest j2sdk version is 1.4.2 _ 01,: http://java.sun.com/j2se/1.4.2/download.htmlDownload netbeans ide v 3.5.1 with j2se v 1.4.2 cobundleUse netbeans ide v 3.5.1 that includes j2se v 1.4.2
2.
JSPDynamic inclusion
Now let's take a look at the JSP dynamic include command:
Create a project testinclude
Then add the file:
Index. jsp:
index.jsp'srequest:
Curdate. Jsp:
curDate.jsp: curDate.jsp's request:
View
This article aims to correct some incorrect articles on the Internet!
Development steps:
First, create a class:
Inherit bodytagsupport
Then set the field generation Set Method
Class:
Package Org. pan. tags; import Java. io. ioexception; import Java.
To build the ckeditor environment, see the ckeditor3.6 getting started tutorial in JSP.The JSP page uses the Rich Text control ckeditor to submit form data
Use the Rich Text control ckeditor to customize the style on the JSP page
JSP uses ckeditor
Master nine implicit objects:Request Response out session application pagecontext page config exceptionImplicit objects are objects that can be directly used on the page without the need for new objects. Note that... %> or ,
Request object: Stores
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service