If you are not using any IDE, just write it in your favorite text editorCodeAnd manually deploy it to webapps/, you will often encounter the error "class cannot be reloved to a type. Solution:
1. Check whether your. Class file is in
ServletIs a server-side Java application.ProgramIs independent of platform and protocol and can generate dynamic web pages.It serves as the intermediate layer between customer requests (Web browsers or other HTTP client programs) and server
Tomcat directory structure
Note: The lib directory stores jar files, where:
Server/lib: jar files in the directory can only be accessed by the Tomcat server
Shared/lib: accessible to all web applications
Common/lib: accessible to Tomcat
Two methods
Two methods are available for JSP include files:
1. Use the include tag, such
2. Use the JSP: Include tag, such
The difference is:
Method 1 is suitable for introducing static content with few changes, such as the header and footer
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 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
The role of the JSP path basepath (this article is a reprinted article,Article transferred from: http://yonglailizhi.iteye.com/blog/719924)
If "relative path" is used in JSP, problems may occur.
Because the "relative path" in the webpage is
Simply put, Sun first developed the servlet, which has powerful functions and advanced system design. However, it still uses the old CGI method to output HTML statements, therefore, it is inconvenient to write and modify HTML. Later, Sun introduced
Note: There may be many reasons for Garbled text, and the results vary in different environments.I have always been committed to finding a complete and omnipotent solution. I hope you can discuss it together.
Part 1:About Japanese encoding, the
Java EE Overview:
Java EE is an open platform with many technologies, including 13 core technologies (Java EE is the general term for 13 technologies ). Create an overall concept.
Thirteen J2EE technologies (specifications)
1. Java database
Type 1: When a browser opens a JSP page, Chinese characters on the page are garbledThere are a lot of IDE default JSP files are iso-8859-1 encoding, it is not recognized for Chinese, this problem can be solved with or "gb2312" or "GBK". I will not
I. jsp connection to oracle8/8i/9i Database (in thin Mode)
Testoracle. jsp is as follows:String url = "JDBC: oracle: thin :@ localhost: 1521: orcl ";// Orcl is the SID of your databaseString user = "Scott ";String Password = "tiger ";Connection conn
Scope:
Page;
Request;
Session;
Application;
Get and set attributes: setproperty and getproperty
Setproperty;
Setproperty; />
Setproperty;
Setproperty;
Bytes ------------------------------------------------------------------------------
Request. getcontextpath () indicates/project name. Example:/news01
1. jump from the JSP page to another page or Servlet
Use the full path (/project name/file path) to jump from the JSP page to other pages ). For example, the project name is news0
The request. getparameternames () method obtains (including buttons) All form objects with name attributes in the Form on the sending request page. An Enumeration type enumeration is returned.Traverse through the hasmoreelements () method of
Younger brother in 2004 to learn the MS classic ASP the oldest ASP, non net. Now, JSP is officially used. Although the younger brother has been familiar with Java for a long time, he may know a little bit about it, but he does not have. Therefore,
Original post address:
Http://hi.baidu.com/huqiwen/blog/item/7d36b15113fddd1e377abe7d.html
Because FCKeditor for Java 2.4 has made many changes compared with 2.3, these changes make it easier to configure FCKeditor. For example:
Changed the base
Presumably, you often encounter garbled code problems during website development. Recently, when I wrote a small example of a blog, I encountered garbled code problems, which are generally common and often searched, all solutions are available, but
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