When Using jsp (the preferred choice for SUN Enterprise Applications) for web development, drop-down menus are used in many cases. I did it a few months ago, but I forgot it today. After finding it for a long time, I wrote it down.
While (iterator.
1.1 application* Obtain the application object in jsp (preferred for SUN Enterprise applications)For example, getServletContext (). setAttribute ("counter", new mycount. Counter ());Example: * Methods for handling On Application Start and On Session
1.5 create a deployment description file. · Register for your servlets and create a url mapping· Register and specify listeners and filters in the Application· Specify the initialization parameters in the context.· Configuration error page and
1. Out objectIt is mainly used to output data of various formats to the client and manage the output buffer on the application server. The base class of the Out object is the javax. servlet. jsp. JspWriter class.Out Methods:Out. println (DataType);
3. Interaction with XML through tag library JSPThis is what I mentioned earlier, but because it is too important, I must also mention it in this article. The tag library can define the custom tags that appear on the JSP page as XML-like elements,
[9. Ultimate application-Cookie control in the pop-up window]In retrospect, although the pop-up window above is cool, there is a small problem (immersed in joy, there is no discovery ?) For example, if you place the above script in a page that
You only need to keep the settings in the following places so that your JSP will not have any Chinese problems.1. charset of JSP2. Your jsp server uses the character set for compiling JSP. By default, it is the same as the operating system. You may
During the Spring Festival holiday in 2004, I suddenly wanted to develop a Servlert/JSP (preferred for SUN Enterprise Applications) Container similar to tomcat (a very useful jsp running platform, implement the Servlet2.3 and jsp specifications
// This program uses a class reflection class, which can automatically fill the queried value into the value object.// This class can be found in the ibm article: using the class reflection mechanism to simplify struts development.Package com.
A jsp (first choice for SUN Enterprise Applications) learning process for beginners (2)TheUnforgivenChapter 2 mild access to server. xml (standardization is getting closer and closer)Now we are writing our first. jsp (the first choice for SUN
A button is provided at the bottom of the page, which can be used to stop or restart a task:
As long as the task is not stopped, the browser will display the computing result 5050 in about 10 seconds:
4. Stop a task
On the stop. jsp page, set
Contains an expression that complies with the JSP syntax.
JSP syntax
Example
.
Description
The expression element represents an expression defined in the script language. It is automatically converted to a string after running, and then
Http://www.netqu.com CEN member Wuxuehui released
A large number of useful suggestions are provided to help you design low-level programs and provide general instructions for coding:
(1) The first letter of the class name should be capitalized. The
Application: an online album
Everyone enjoys photography! They like to show photos of their loved ones, friends, and vacations, while web is a good place for them. -- Even if you are a relative of a thousand miles away, you can see it. I will focus
An important feature of Jsp is that it can be extended by using javaBean. Put most of the functions in javaBean to make the jsp page program clean, concise, and easy to maintain. JavaBean can be easily used to capture the input of Page forms and
I. InstallationJsp (preferred for SUN Enterprise Applications) SmartUpload is developed by www. jsp (preferred for SUN Enterprise Applications) a free-of-charge full-featured file upload/download component developed on the smart.com website,
1.3 compile a servletIf you have written a servlet, how can you compile it into a class file;First you need to check if the servlet-api.jar is configured under your classpath. Then you can use the javac command to compile other java source files.
Create multiple mappings for a Servlet
What should we do when we want to create multiple names or URL patterns so that web users can request a servlet?
You can configure multiple servlet-mapping related to servlet elements in the deployment
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