I use js to transfer values between parent and child mainly by calling the parent window method in the Child Window. Parent.htmlHtml code parent.html -->Name: select Child.htmlHtml code child.html -->Select a name: name 1 name 2 name 3 name 4
Jsp jtds connection to SQLServer 2000
How does jsp connect to the SQL server 2000 database? In addition to jdbc, there is also a jtds connection method.
Connect to the SQL Server database through JTDS JDBC Driver, the Driver file name is jtds-1
1. response. sendredirdbms ("Jump to page ");
This method modifies the http header to issue redirection instructions to the browser so that the browser displays the content of the redirected webpage.
The request cannot pass the value.
Run all the
1) Comparison of Action Implementation classes: Struts 1 requires Action classes to inherit an abstract base class; a specific problem of Struts 1 is the use of abstract class programming rather than interfaces. Struts 2 Action class can implement
[Size = medium] The Avatar stored in the database is byte [] bytes. The image is read from the database using a stream based on the user id on the jsp page. However, if the user does not have an Avatar, it will be displayed on the page as a small
During the project process, we often encounter such a situation that we need to perform single-point logon, that is, users can log on to a system and other systems at the same time.
Here is an example to illustrate how to implement Single-point
In the form
[Html] name: password: Verification Code: you cannot see it clearly. Change it to another one. Type = "reset">
In the verification code image, validate. jsp is called to generate the verification code image. The content in this
Programming: using the HttpSessionListener listener interface to listen to the current number of online usersRequirements:(1) Compile a class to implement the HttpSessionListener interface. In the public void sessionCreated (HttpSessionEvent se)
// Obtain and generate a random color hereColor getRandColor (Random random, int ff, int cc ){'If (ff> 255)Ff = 255;If (HTTP> 255)Cc = 255;Int r = ff + random. nextInt (cc-ff );Int g = ff + random. nextInt (cc-ff );Int B = ff + random. nextInt
The database looks for the table where a string is located.
Method 1 occasionally goes wrong
[SQL]-- Method 1Declare @ sSearchContent varchar (100) = 'f6f89834-817c-47d7-a436-6484754111cb'Bytes -----------------------------------------------------
Servlet Chinese garbled charactersInsert the following word into Servlet doPost and the jsp that calls Servlet.[Html]Request. setCharacterEncoding ("UTF-8 ");Response. setCharacterEncoding ("UTF-8 ");
[Html]Keep the code on both sides consistent.
As the project progresses, I realized that 80% of the time will be spent on 20% of the features.
Improve the product as a developer to lay the foundation for product launch.Let's look at mature products, especially products of large companies, and
Solve the Path Problem in JSPIf "relative path" is used in JSP, problems may occur.Because the "relative path" in the webpage is relative to the "URL request address" to find resources.What does the above sentence mean?For example:Assume that we
When the memory allocation problem occurs, both malloc and calloc must specify the size of the memory to be allocated, but free is not required, I wondered how free knows how many lengths are allocated from the pointer address?
At that time, I
1. Create a report style in Word or Excel.
The Row Height and column width in Excel cannot be expressed in mm or cm.
Computing required. In 1024*768, 1CM is about 38 pixels.
Based on this, you can calculate and control the row and column positions
1. Introduction to built-in objects
JSP built-in objects are very important in JSP. These built-in objects are created by WEB containers, so you do not need to create them yourself.
The main built-in objects include:
(1) request: javax. servlet.
I have been working on the final project recently, so I have encountered many problems and solved them. I will write them here to share with you ....
After one morning, I thought about it myself, and referred to some things, I made the database
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