1. Switch to the "offline" ProjectIn opencms, JSP files can be created and edited only in the "offline" project State. Therefore, you must switch from the "online" project state to the "offline" project state before creating a JSP file.2. Start "new"
Include command strong 2008.10.9
The include command notifies the container to embed other files at the specified position on the current JSP page. The content of the contained file can be parsed by JSP, which occurs during compilation.
Filename
JSP Session Object comprehension: 2008.10.9
The Session Object implements the httpsession interface to save the status of each user. The Session object is saved in the container, and sessionid is sent back and forth between the server and the
1. the applet must be able to run first.
2. After deploying the project to Tomcat, put the Applet Class file and JSP in the same directory, and put the JAR file used in the applet in the same directory.
3. The method for referencing the
For compilation convenience I put the servlet-api.jar and jsp-api.jar together with other jar packages, in ant buildWill be copied to the web project WEB-INF/lib, but this time there is a JSP page compilation error, all the JSPWhen the page is
JSP cache problems. this problem has been found many times online. in fact, the answer is similar, that is, how to set it to clear the cache or not to use the cache. no matter what cache. of course. you can use the following methods to solve the
This book is actually an entry-level book for Java Web development. It is a reference book for some technical problems that need to be confirmed on a daily basis. Some time ago, when I was solving the problem of another person, I suddenly found that
In recent days, my ADSL cannot be connected to the Internet. Almost at home, you can only buy discs to watch movies. I don't know how many mm flood occurs in the Forum. Originally, this post will be sent out on Wednesday. Unexpectedly, China Unicom
① Out-javax. servlet. jsp. jspwriter The out object is used to output the result to the webpage. method: 1. Void clear (); clear the content of the output buffer, but not output to the client. 2. Void clearbuffer (); clear the content of the
JSP custom tag Learning (advanced)
Keyword: custom tag
Bodytag Interface
The implementation class of the bodytag interface, which is used to operate the body content (bodycontent ).
Definition method: Public void doinitbody ();
Public int
Today I wrote a communication class that enables data interaction with JSP. Paste them together. If you are interested, try again.
Package { // something used to communicate with the web page Import flash.net. urlloader; Import flash.net.
In order to implement the communication between AS and JSP, we first configure Tomcat (not mentioned here), in the Apache Software Foundation/tomcat 5.5/webapps of Tomcat
Create a directory
Example: J:/program files/Apache Software Foundation/tomcat
Create a client to send data on the basis of the original one.
Step: Import flash. Text .*;
Use the textfield class to create two input boxes
For example:
Username = new textfield (); addchild (username); username. width = 200; username. height =
Pageencoding = "UTF-8" %> insert title here Out. println (application. getrealpath ("/"));%>
Try {
Zipinputstream in = new zipinputstream (New fileinputstream (Application. getrealpath ("/") + "1.zip "));
Zipentry entry = NULL;
While (Entry = in.
Today, I saw a JSP page value transfer in my book. I think it is easier than on the web page. I want to take notes for myself and learn from other users.
Session. jsp page
session
session
Session2.jsp code
session1
String name =
How to configure struts4.0Step 1: Create a project.
2nd step: Create a webapplication by name (for example, book) and check jstl1.0 and struts1.1 (struts1.1) in the following selection basket. Press enter.
3rd step: Create a servlet in the Web
TagThis label is used to access the "property" of the current file or its parent folder. "properties" are set in the "properties" dialog box in the "Browse" view of opencms.
Label description
Name
Description
Required
Name
All files in opencms are usually stored in the database, which is also known as opencms VFS (Virtual File System ). That is to say, the file structure seen in the opencms workspace does not exist on RFS (real file system, that is, hard disk) (except
Why is opencms used in JSP?Opencms provides many features to help you speed up development, such as templates, user management, permission settings, and Cache Management. You can also create dynamic navigation based on the file structure of opencms,
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.