1, build and understand your Web Server.
because Apache is free and works on most platforms, Apache is recommended for training purposes.
installation time: 2 days.
2, make sure you understand html/xhtml.
you will need to understand the
Problem Description:
How do I calculate a relative path to use a picture in a/jsp/index.jsp file? How do I calculate the relative path after servlet,struts forwarding?
Directory structure:
Application Name: Demo
Demo
----Webroot
----Images
--
Author: Xu Chunqin
Here are some of my experiences in learning JSP:
-->
First, the JSP working principle
When a JSP file is first requested, the JSP engine converts the JSP file into a servlet. And the engine itself is a servlet, in JSWDK or
Is your Java application running very slowly? Can they afford to keep up with the rising traffic? This article describes the development of high-performance, highly resilient JSP pages and the performance optimization of the servlet technology. The
HttpServletLet's review the class structure diagram mentioned in the previous section:
As you can see, HttpServlet inherits Genericservlet, but it is also an abstract class that cannot be used directly and can only be inherited.
There are two
In projects, we often encounter the need to pass Chinese characters in JSP page transitions. There are two main ways of doing this.
Url method
For example:
Http://website/test1.jsp?act=add&type= Apple ¶m=%20d%20b
Form mode
For example:
See some examples on the internet, for a simple three-level linkage, plus what struts, hibernate, and so on. This Ajax linkage does not know what the relationship with these frameworks, a small demo why the whole so big.
Today, I did an example of
The reason: By default, Servlet 2.4/jsp 2.0 supports EL expressions.
There are two ways to solve this problem:
1. Modify the opening definition of the web.xml.
Copy Code code as follows:
Xmlns= "HTTP://JAVA.SUN.COM/XML/NS/J2EE"
1. How do I make a selected row of records appear highlighted?
Http://topic.csdn.net/t/20050105/09/3699823.html
2. How do I select a value in the Drop-down list box and jump out of the new window?
Http://topic.csdn.net/t/20050107/15/3707444.html
3.
JavaBean is a Java-based software component. JSP provides complete support for integrating JavaBean components in WEB applications. This support not only shortens development time (can directly leverage tested and trusted existing components, avoids
The development of Jsp+javabean two-storey structure should be more familiar and better understood.
But one thing must be clear is the user through the browser to send a Web page request, the request to the server after the server to find the
js| notes
Some netizens do not know how to run their own JSP files, I briefly introduce here, to provide you with a point of reference:
1. Download and install Tomcat. Download Address: Http://jakarta.apache.org/tomcat
2. Write your own JSP Web
After the installation, we'll talk about JSP syntax. If you are lazy, you can download the grammar card and if you are unfamiliar with Java programming, you may want to refer to the Sun's manual; Web site creator should not do too much Java
Now it's time to put all the JSP syntax together. We will create a Web site with input format for users to enter stock tickers and get the current stock price (about 20 minutes delay). If there is an error, the error page is
Page directives
Page directives are important in JSP development, and you can use this property to define the properties of a JSP page, including setting MIME types, defining packages to import, specifying error pages, and so on.
Syntax for page
(ii) Apache Server
1, double-click the Apache_1_3_12_win32.exe file for installation, install using the default configuration, the default installation directory is:
C:\Program Files\apache Group\apache, I use $apache_root to replace the
This article only discusses how to install apache+servlet+jsp on Windows NT 4.0. The configuration in this article is as follows:
Windows NT 4.0
Jdk1_2_2-001-win.exe
Apache_1_3_12_win32.exe
ApacheModuleJServ.dll
Tomcat.zip (3.0)
A. Software
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