These two days under the Win98 apache1.3.9 plus Jserv and gnujsp1.0,jdk1.2.2,jsdk2.0
Found that Chinese can not display correctly. Either garbled or wrong.
After the Netizen reminds, summed up the following several methods.
1: Modify locale: Select
The Jsp:plugin Action enables you to insert the object or EMBED element of the specific browser you want to specify the plug-ins that the browser needs to run a Java applet.
Grammar:
Type= "Bean|applet"
Code= "Classfilename"
Codebase=
This article illustrates the method of Jsp+ajax to upload files without refreshing. Share to everyone for your reference, specific as follows:
List page: selectaddress.jspJS Page: Ajax_edit.jsJSP processing page: editaddress.jspUpload Tool class:
Package coreservlets;
Import java.io.*;
Import javax.servlet.*;
Import javax.servlet.http.*;
Import java.util.*;
/** creates a table showing the current value of each
* of the standard CGI variables.
*
* Taken from Core Servlets and JavaServer
-Data pagination Display-JDBC 2.0:ODBC
Through the JDBC:ODBC can realize the JSP to the database operation, in this example I wrote the connection of the database in a JavaBean, can realize to reuse
pagetest.jsp file:
Database Paging Test
This article illustrates the Jsp+jdbc method for implementing a connection database. Share to everyone for your reference. Specifically as follows:
The first attempt to jsp+jdbc, according to the example of the book toss a half-day, is not even on
Although you can put a large chunk of program code in a small instruction file, most Java program code belongs to reusable components called JavaBean. JavaBean are like ActiveX controls: They provide known functionality and are designed to be
This article illustrates the implementation method of JSP paging display. Share to everyone for your reference.
The implementation methods are as follows:
Copy Code code as follows:
"
Article Management
--
The following effect content needs to be implemented in the project. As shown in figure:
Specific implementation of the source code is as follows:
Two-box page Source:
Selected roles: Director Physician Nurse Front Office >
This morning, the client told me that Excel export ID card when the show some of the wrong, I see the original ID card with the end of X can, the others are not correct. Identity is displayed as shown in the figure:
Search on the internet found
In the JSP page using the "" comment, the Java code in the note will be executed, you can view the page source code to see the implementation of the completion of the content, so that the code does not want to execute, affecting the load speed. For
Hide Annotations
Write in the JSP program, but not to the customer.
JSP syntaxExample:
Copy Code code as follows:
a Comment test
a Test of Comments
Describe
Characters marked with hidden annotations
A. JSP implied object response implementation file Download introduction
(1) The simplest way to implement a file download in JSP is to define a hyperlink to a target resource, and the user clicks the hyperlink to download the resource directly,
(1) In the login application, in order to prevent malicious login, often require the server dynamically generated authentication code and stored in the session scope, and finally returned to the image form to the client display
(2) The following
Today, in the project encountered a problem, two JS page to share a JS object. JS global variables and static variables are not good, other hard to force the small farmers do not have to insist. And LZ do not want to use cookies to store, one is
This article only discusses how to install apache+servlet+jsp on Windows NT 4.0. The configuration in this article is as follows:
Windows NT 4.0
Jdk1_2_2-001-win.exe
Apache_1_3_12_win32.exe
ApacheModuleJServ.dll
Tomcat.zip (3.0)
A. Software
Datetag.tld file:
1.0
1.2
date
http:// com.demo.util.datejstl/tags
date
com.demo.util.jstl.JSTLUtil
value
true
true
parttern
true
true
Referencing in JSP pages:
Use in JSP pages:
The code in the test.jsp is shown below
Copy Code code as follows:
Testing using Java beans in jsp
News:
: Represents an instance that defines a Java bean, the
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.