To implement a small function of the interface, the dropdown box reads the database information, displays it in the streets, clicks the selected value, and stores it in the database.
below look at the interface effect:
first, introduce the
Commodity entity class design
Examples of commodities here are books. We will build it as a JavaBean class to improve the reuse of code and the maintainability of the program. Here's a little trick to quickly add a lot of setters and getter:
// Note: Chinese file names such as "target page. jsp" are not recommended.// Jump with session, without requestResponse.Sendredirect("Target page. jsp ");// Jump with session and request// You need to add the parameter request. setattribute ("myvar"
Normally, it is easy to reset and submit forms with icons.
yes, but does not have the name attribute in the original label, so the above JS cannot be called.
the name attribute is automatically assigned. This value is related to the form
Note: to verify whether the verification is null, you must first ensure that the verification is performed before the form is submitted. If there are empty items in the verification result, the form cannot be submitted and a verification error
Those who have written AWT or swing programs in JSP/servlet must be impressed with the event handling mechanism of the desktop program: classes that implement the listener interface can be used when a specific event occurs, call specific methods to
Dynamic web page (JSP, JSF) bug in tomcat5.5.23:
JSP: test JSF:
When you click the two links above, you can see what happened: the page jumps to the Web homepage !!! But for HTML pages, it cannot be said !!!
We recommend that you use
The following example shows how to call JavaScript Functions in the applet. 1. Applet source code (tmin_js.java)
// ImportationsImport java. AWT. graphics;Import java. AWT. event;
// Liveconnect... for JavascriptImport Netscape. Javascript.
Part 2: About javamail
Document usage
The documentation in the downloaded javamail API is very useful. You can find it in/docs/javadocs/index.html under javamail. The second part mainly analyzes the mail program components. You can read the document
Currently, WebLogic 9.2 is used.
Every time the JSP file is changed, WebLogic needs to be restarted, and the server is always restarted, making everyone very hurt.
Finally, we found a solution.
Take my current environment as an example:
OS:
This format control and editing works with FCKeditor, Which is perfect. The use of FCKeditor is briefly introduced in other blog posts.
When reading data from textarea and then reading data from the database, the simplest way to display the data to
The standard tag Library (jstl) is a set of custom tags that implement many common web site functions in standardized formats. In the JSP Best Practices Section, Brett McLaughlin will introduce you to jstl and explain how to change JSP pages to use
1. download the latest cos package (http://www.servlets.com/cos/cos-05Nov2002.zip), decompress the COs. Jar under the lib directory to add to classpath.
2. Compile a JSP file to be uploaded. For convenience, you can use a simple HTM file. on this
In fact, this function mainly involves four functional points.
1. Implementation of the home page Function
2. Implementation of the last page Function
3. Implementation of page numbers near the current page in the middle
$ {num} $ {num}
4.
Import copyright information copyright information import test
Copyright Information Page
copyright page sales hotline of the programming dictionary: 400-675-1000 URL: www.mingrisoft.com Copyright@www.mingrisoft.com
Basepath in JSP (this article is reprinted articles, articles reprinted from http://blog.csdn.net/lutinghuan/article/details/6450174)
The following code is automatically generated on the new JSP page of Eclipse:
String Path = request. getcontextpath
Download a dtree. The application is as follows:
dtree view System Expand All Zookeeper hide all
Real data can be read from the database and added to the node. You can modify it as needed.
The simplest thing is to convert the URL Based on the URL rewriting (rewrite) module in various web servers:In this way, the program implementation will be almost unchanged? The link id = 234 is mapped to news/234.html, and looks like a static link
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