Paths represented by "." and "/" in HTML, JSP, and JavaBean

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 and getattribute in JSP

-- 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

JSP tag Creation

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

Configure eclipse3.1 JSP development environment (tomcat version)

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

tld

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 SQL Server2000 Database (jdk1.6 + JSP + Tomcat 5.5.20)

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

October 20 Ajax and JSP training diary

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,

Session usage in JSP

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.

Difference between JSP and servlets

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

Rapid development of JSP applications using jstl

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

Custom JSP tags

tld

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

JSP page translation principle

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

JSP page value passing Method

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 =

Source code generated by JSP

Java. AWT. image. *, java. util. *, javax. ImageIO. * "%> // Create an image in memory Int width = 60, Height = 20; Bufferedimage image = new bufferedimage (width, height, Bufferedimage. type_int_rgb ); // Obtain the image ContextGraphics G = image.

This kid talked about the nature of JSP garbled code!

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

JavaBean + JSP + Dao implement Paging

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

Question about Chinese encoding in JSP framework page request

tld

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

JSP page Jump Problems

 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

After the JSP page is fully loaded, execute a JS function.

  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

Writing SQL statements in JSP is the key

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

Total Pages: 280 1 .... 266 267 268 269 270 .... 280 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.