* Emphasis content *javaweb Project JSP load static resources appear Chinese garbled
First of all, I introduce myself in the code encountered a garbled problem: JSP page load, load the static resources of Chinese name, appear garbled, naturally get
Basis:
One. Introduction to JSP 1. Understanding: Java server page; Embed Java scripting language in HTML2. Compare servlet and JSP1 The servlet is suitable for business processing, and JSP is suitable for interface display2 The JSP file will
1 window. Pen ()
Advantage: simple.
Method:
(1)
2 content-Disposition
Advantages:
Content-disposition is an extension of the mime protocol. The mime protocol instructs the mime user agent how to display additional files. When
Today I wrote a module to dynamically manage the drop-down menu function.
The JavaBean technology is used when adding implementations.
It was used in the past, but there was no problem with it. Today it is not easy to use.
Later, I
JSP enterprise interview questions (1)The three-tier architecture is illustrated, and its features are described. How to implement it and what functions are implemented at each layer? (Enterprise pen exam)
In two-tier applications, the application
1. Page Object
The page object represents the JSP itself. More accurately, it represents the servlet after JSP is translated. It can call the methods defined by the servlet class.
Ii. config object
The Config object stores some initial servlet
/** This is the class used to manage user information.
Onlineuser. Java*/
Import javax. servlet. http .*;Import javax. servlet .*;Import java. util .*;
Public class onlineuser implements httpsessionbindinglistener {Public onlineuser (){}
Private
Javabean is a Java-based software component. JSP provides comprehensive support for the integration of JavaBean components in Web applications. This support not only shortens the development time (you can directly use tested and trusted existing
Sometimes, we have a lot of repeated code in the script code on multiple JSP pages, so we will think about how to reuse them. When using it, we need to pay attention to several issues:For example, there are two files: toolbar. js and Main.
Problem:
TableCode nameCompany 1, 0001Company 2, 0002Table BMaincode subcode subname0001 1001 department 10001 1002 Department 20002 2001 Department 30002 2002 Department 4
Two select statements. If Company 1 is selected as the first select
This article mainly introduces how to use lomboz to develop jstl and El. It is best to first refer to my previous article "using eclipse3.0.1 + lomboz3.0.1 + atat5.0.28 to develop jsp". The environment configuration is similar to it, here is a brief
Many application presentation layers use JSP and Servlet. This article discusses how to improve the performance of such applications through coding best practices and deployment process configuration.
Recommended best coding practices
This section
// Sometimes the user wants to download the file, but the file type is associated with the browser in the system, and the result is opened in IE.
// Common examples include Word, Excel, and PDF. Therefore, converting a file into a data stream allows
Ckeditor api chm help document http://download.csdn.net/detail/guoquanyou/3622884
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 and
I. Several Action elements of JSP: Three (custom tags embedded in JSP for the server) 1. jsp: include: Implement Dynamic include attribute: page. the URL of the target component. Starting with "/", it indicates the absolute path. 2. jsp: forward:
From: http://hi.baidu.com/itfuck_/item/803662469cdf7baa61d7b945
1:
Import java. util .*;
Int y, M, D, H, mm;Calendar c = calendar. getinstance ();Y = C. Get (calendar. year); // yearM = C. Get (calendar. month) + 1; // monthD = C. Get (calendar. day_
After modifying the JSP page, you can package and deploy the page to Tomcat.
One of them is, of course, the index path of the search.
Nutch-site.xml
searcher. dir
F:/nutch/test
The other part is
Nutch-default.xml
plugin. Folders
Recently I have made frequent connections to the database JSP, and the necessity of the database connection pool is given here. For JSP, a good J2EE server is necessary. jboos and WebLogic are both good solutions.
In general, when developing
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