JS on the Internet to see a lot of questions about how to learn JSP, just on the internet to see an article on the study of JSP, picked up a part of the translation, I hope to learn a little guidance jsp.
A common mistake is to think of JSP as a
JS
A. Build JSP environment under Windows 2000
System environment:
1, operating system: Windows 2000
This example uses the software to download the address:
1), J2SDK1_3_0-WIN.EXE[29.4MB]
Http://java.sun.com/products/jdk/1.2/
2), JAKARTA-TOMCAT-4
js| Solutions | problems | show | Chinese solutions for JSP Chinese display problems the following methods are summarized: 1. Add a statement to the JSP page: The Chinese display is normal. 2, for the text box from the Web page through string
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
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
JS JSP Another important syntax is tags (tags). JSP tags are not the use of
<some:tag> body </some:tag> If the flag does not require a body, the start and end flags can be combined, such as:
<some:tag/> Here we use a/> instead of the > character
JS forms (forms) are a common way to interact on a Web site. JSP makes form processing easier. The standard way to work with a form in a JSP is to define a "bean". This "Bean" is not a full Java bean. You just define a class so that it has an area
JS JavaServer pages (JSP) technology provides a quick and easy way to create WEB pages that display dynamically generated content. The industry's leading Sun company has developed the relevant JSP specification, which defines how to interact between
Js
Forms are a very common way to interact with a Web site. JSP makes form processing easier. The standard way to work with a form in a JSP is to define a "bean". This "Bean" is not a full Java bean. You just define a class so that it has an area
js| Server
In the use of JSP production of e-commerce sites a dime. But for the JSP site, security really can make people feel at ease? In the face of a proliferation of hacker attacks and virus attacks, JSP Web server can be more secure than other
Js
FCKeditor is an open source project above SourceForge.net, which implements the functions of the Online Web page editor, allowing web programs to have powerful editing capabilities such as MS Word. The official website is http://www.fckeditor.net,
js| Code
In general, it is a bad habit to write hard code in a program, such as: this.state= "01"; The usual practice is to write a class (interface) to hold the constantspublic interface Systemconstant{String STATE_WTJ = "01";}
And then you can
js| Web page
Zzzzz~ May Wind
SRC: The path of the file, both HTML files, but also can be text, ASP, etc.width, height: "Painting in the picture" area of the width and height;Scrolling: When the specified HTML file in SRC does not show up in the
Js|servlet| Tips
1.requestdispatcher.forward ()
is on the server side, when using forward (), the Servlet engine passes HTTP requests from the current servlet or JSP to another servlet,jsp or normal HTML file, or your form commits to a.jsp, The
Cookie|js in developing Web site applications, using cookies to record some of the user's information is a more common method, and cookies are very simple to use. If we want to get the value of the cookie in the JSP program, we just need to use
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
js| page
In Web applications, if the result set is ResultSet RS directly, stored in the session, or Reueest range,
You can pass it to the JSP and show that the
But to take into account, if the query at the same time a lot of users, the server
Method One: Caching data in the Init () method of the Servlet
After the application server initializes the servlet instance, it invokes the Init () method of the servlet before servicing the client request. In the lifecycle of a servlet, the init (
One: Introduction
Remember beginners JSP, always like to compare him and asp,php, also accustomed to using the ASP development model to write JSP later found that this is really silly practice, in fact, JSP came out of the MVC model has been used.
User logon and Exit logs
When the user logs on to the system, insert a record in the log table, record the time the user logged in, and log the time the user exits the system when the user exits the system.
We use the Httpsessionbindinglistener
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