In JSP and JSP JavaBean, "/" refers to the root path of Tomcat. If it is in Windows, it is the drive letter of the disk where Tomcat is located. "refers to the path of the bin directory of Tomcat.
I guess this is because JSPCodeTomcat is
-- Getparameter is of the string type. OrHttp://a.jsp? Id = 123Or the data submitted by a form.-- Getattribute can be an object.-- Getparameter () is used to obtain the parameter value passed by post/get;-- Getattribute () is used to obtain the data
Basic steps:
1. First write the class, extends tagsupport class, and rewrite the method you need.
(Note: If you inherit the simpletagsupport class, you must put all the processing code in the dotag () method)
2. Configuration
Write a TLD file and
Related Software:1. Eclipse 3.12. lomboz_3.0.13. emf-sdo-runtime-2.0.04. tomcatpluginv31beta (this plug-in is used to enable and disable tomcat in eclipse)
1. Install JDK and tomcat;The final result of environment variable configuration is as
JSP custom tag Library Development demonstration, and provides a ready-made example for download.
Development of tag library programs in netbeans 7.0
1. Create a web applcation. Select New Project> Web applaction from the menu and click Next.
2.
JDBC-ODBC bridge to access the SQL Server2000 Database, and JDBC driver implementation has many similarities, the difference is that the need to configure the data source, but does not need JDBC driver.
Create an SQL Server 2000 database
Start SQL
Teacher Liang Yanbing explained Ajax and a real Ajax project recently developed in the next two days. Therefore, I want to explain some of the prerequisites required by teacher Liang's courses today.Because you are not very familiar with JavaScript,
The JSP session is a life cycle of bean. Generally, it is page, which means that the session is valid until the user leaves the website. If the user cannot determine when to leave, it is generally set based on the system, tomcat is set to 30 minutes.
What is the difference between JSP and Servlet in the application? Many people are confused. Let me say a few things. Simply put, Sun first developed the servlet, which has powerful functions and advanced system design. However, it still uses the
In this article, I will introduce you to a JSP-based and flexible and interesting technology, that is, jstl. jstl is called Java Server Pages standard tag library. although JSP has become very popular, jstl has not been widely used in simple and
I have been learning custom tags recently, so I want to implement some self-contained tag library functions in JSP. By the way, I will also review the reflection mechanism. (If you are not familiar with these two technologies, at the bottom of this
As we all know, every JSP page is compiled into a Java class by the Web container for the Web container to call and generate HTML foliar feedback to the user. Understanding the variant methods and rules is very beneficial for us to learn JSP. We can
Several Methods for passing JSP page values:1. Hide the field transfer value:">
2. url transfer value:Use buttonA. '"Value = "Modify distributor"/>B. Set the onclick = "modifyregion ()" of input ()"Function modifyregion (){Window. Self. Location =
The reprinted content is as follows:
By default, Tomcat is all encoded in ISO-8859-1, No matter what display your page, Tomcat will eventually convert all the characters for you to ISO-8859-1. then, when GBK is used for translation on another
Pagebean. Java
Package com. servlet;Import java. util .*;Public class pagebean {Private list arraylist; // stores the total data// Page information DefinitionPrivate int totalrows = 0; // total data countPrivate int pagerecorders = 20; // number of
Recently, there is such a requirement that a home page obtains the request parameters (Chinese) from the request, and there are two frames on the home page,
Each frame is embedded with a JSP. How can we pass the Chinese parameter values on the home
There are several methods for page forwarding: 1 requestdispatcher. Forward () 2 response. sendredirect ()
3 4. Modify the location attribute of the HTTP header to redirect 5 pagecontext. forward () I wrote the code to check whether a user is
Method 1. after the page is fully loaded, run the opentheindexpage () method telecommunications data collection system Method 2, but the effect is not as good as method 1. the second type can only write one function and cannot be
Recently, I wrote a JSP video. There is no big problem. Basically, I can understand it and implement it like a gourd. When I wrote an SQL query statement last night, I did not miss a field. It takes 10 minutes to locate the problem. It means that
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