1. homepage (enter a name) (optional, form post to time. jsp ):
Omitted
2. determine the time forward to different pages:
Time. jsp:
CopyCode The Code is as follows: Document: Index
Created on:, 15:48:00
Author: Lucifer
--
Today, when I was working on a website, I encountered the following problem: when a JS file is introduced into the JSP page, if the relative path is written to the JSP page, but the firebug is used, the path is the path after the root directory is
1. Command element
Page
Include
Taglib
2. Script Element
Declarations: Use . Note that the variables and methods here are shared across the entire webpage, that is, all requests on this webpage are shared.
Scriptlets: Use
Reprinted from: http://read.newbooks.com.cn/info/169649.html
1,Article1
Recently encountered a problem: Use Get There is a problem with the method to pass Chinese characters. Post No problem.The problem is described as follows: JSP ?
First, we will introduce the storage of tree structures in dB.
Use a two-dimensional table, for example, to store a tree structure:
Now, our goal is to express this tree structure:
It can be seen that there is a hierarchical relationship
1. Configure JDK 1. Download JDK and decompress the package. Assume D: \ jdk6. Make sure that the bin directory is in this directory, the following java_home directory is D: \ jdk6. 2. configure system variables (1) Right-click my computer ",
String agent = request. getheader ("User-Agent ");
Stringtokenizer ST = new stringtokenizer (agent ,";");
St. nexttoken ();
// Obtain the user's browser name
String userbrowser = ST. nexttoken ();
// Obtain the user's OS name
String useros = ST.
1. jsp
Code :
Copy code The Code is as follows: Document: Index
Created on:, 12:45:43
Author: Lucifer
-- %>
Http://www.w3.org/TR/html4/loose.dtd>
JSP page
Get scheme:
Get protocol:
Get remote address:
Get Remote Host:
Get Server
1. requestdispatcher. Forward ()When forward () is used on the server, the servlet engine transmits the HTTP request from the current servlet or JSP to another servlet, JSP, or common HTML file, that is, your form is submitted to. JSP, in. JSP uses
A simple web application is used to describe the Web server configuration, application deployment, and Debugging Processes Using myeclipse.
I,Prepare development tools
Eclipse is used here
3.1.2
And myeclipse4.1.1. Of course, Java is usually
This article mainly summarizes three methods for deploying and releasing JSP applications in Tomcat.
1. directly put it in the Webapps directoryThe Webapps directory of Tomcat is the default application directory of Tomcat. When the server starts,
1. Compile a tag processor class that implements the tag Interface
Copy codeThe Code is as follows: package cn. itcast. web. tag;
Import java. io. IOException;
Import javax. servlet. http. HttpServletRequest;Import javax. servlet. jsp. JspException;
A java code cannot appear because of jsp code specifications. All have the jsp custom tag technology.
Therefore, jsp's custom tag technology is to remove the java code in jsp. At the same time, encapsulation of the tag's personal feeling is also a
When each JSP page is accessed for the first time, the WEB Container will send the request to the JSP Engine (a Java program) for processing. The JSP Engine first translates JSP into a _ jspServlet (essentially a servlet) and calls it according to
In the google process, I saw this article ("NicEdit cannot get textarea value under JQuery") Get an inspiration, that is, I can use js to read the content in the nicEdit Rich Text Editor, grant the content to textarea and then submit the form. Code:
Some examples are shown on the Internet. For a simple three-level linkage, Struts, Hibernate, and other frameworks are added. This Ajax interaction does not know how it relates to these frameworks. Why is a small Demo so big.
Today, I made a dwr +
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