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.
Jsp (preferred for SUN Enterprise Applications) Init () {}: jsp (preferred for SUN Enterprise Applications) This method is called when Page is initialized, in addition, this method is only executed once upon initialization. Therefore, the author
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);
To use excel components in this way, the client must have an excel program. The method is to extract the content of each td tag in the table as the content of a cell in an excel file.1. Add a java script to the webpage.
Function AutomateExcel
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,
Assumerver Pages (JSP) and XML are two crucial components of Sun's J2EE. JSP is an effective tool for creating application server programs, and the customer can be a browser, a device, or other applications. You can use XML to describe the data and
Java has gradually warmed up in recent years. With the introduction of Java SE 5 and Java SE 6, the future of Java is even more brilliant. However, Java-based jsp (the preferred choice for SUN enterprise-level applications) has never been lifted
Because the browser stores the previously viewed data in the browser's cache, the browser sometimes fetches the data directly from the cache, because after we modify the program, the old data is displayed.
The following code can fix this problem.
Processing of welcome-file-list
According to the Servlet specification, the welcome file is a part of the URI that does not start with a slash (/), but I do not know whether it can be a file or a URL mapped to a Servlet, such
1. if the welcome
Jsp (preferred for SUN Enterprise applications)Research on page Encoding
Motivition
A netizen once asked me this question:
China
Why does the "China" page become garbled during operation?
Analysis
Key Step
For the analysis of the above
The following provides four garbled solutions for different situations, including the different situations where garbled codes occur in web development.It mainly targets the garbled code solution proposed by the java + MySQL (the best combination
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.
String strName = "";String strSex = "";Try{Class. forName ("com. MySQL (the best combination with PHP). jdbc. Driver"). newInstance ();String url = "jdbc: MySQL (the best combination with PHP): // localhost: 3306/samp_db ";String strUser = "root
Introduction:Jakarta_POI uses Java to read and write Excel (97-2002) files, which can meet most of the requirements.Because this tool was used by a project, it took some time to translate POI itself.A Guide is provided with some reductions and
Jsp (preferred for SUN Enterprise applications), relative paths and absolute paths in Servlet
Jsp (preferred for SUN Enterprise applications)AndServletThe absolute path and Relative Path Problems have plagued me for several days. After some efforts,
A learning process for beginners of jsp (preferred for SUN Enterprise Applications) (7)TheUnforgivenChapter 7 Operations on ultra-long text-Access to Clob dataWhen I wrote a message board, I wanted to store the body content of the message board. I
is equivalent to static compilation to the same page, such as content-type.Otherwise, errors such as duplicate inclusion will be reported, and itself should be equivalent to two independent page units that do not interfere with each other,
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.