Dynamically set read-only/read-write for a component on the page
Document. getelementbyid ("custname"). readonly = false;
Document. getelementbyid ("custname"). readonly = true;
Dynamically hide/display a widget on the pageTDID. style. Display =
Now I am building the JSP platform.
I use Windows2000 Professional + JDK + Tomcat
JSP platform construction:
1. Download and install JDK:
Step 1: go to Sun's Java JDK 1.4 for free installationProgramTo download the Home Page:
One build result JSP
The build result JSP is designed to present the result of the build loop of the cruisecontrol. The left side of the page is about whether or not cruisecontrol is building your project, and the link to the previous build is
1. Download
FCKeditor. Java 2.3 (fckeditot for Java)
FCKeditor 2.2 (FCKeditor basic file)
2. Create a project: tomcat/webapps/testfckeditor.
3. Decompress fckeditor2.2 and copy the entire FCKeditor directory to the root directory of the
I recently saw an open source that uses Java to manipulate excel on the Internet. I tried it on WebLogic and thought it was good. I would like to recommend it to you.
First go to the terminal.
Write a JavaBean file and use jexcelapi to
The general idea of SQL injection attacks:
SQL Injection Location found;
Determine the server type and backend database type;
Determine the executable status
For some attackers, SQL injection is generally used. Next I will talk about my thoughts on
If the following content exists, it indicates servlet 2.3/jsp 1.2.
"-// Sun Microsystems, Inc. // DTD web application 2.3 // en"
Http://java.sun.com/dtd/web-app_2_3.dtd>
By default, Servlet 2.3/jsp 1.2 does not support El expressions, whereas
String agent = request. getheader ("User-Agent ");
Stringtokenizer ST = new stringtokenizer (agent ,";");
St. nexttoken ();
// Obtain the user's browser name
String userbrowser = ST. nexttoken ();
// Obtain the user's OS name
String useros = ST.
There is a trimwhitespaces directive that shoshould accomplish this,
In your JSP:
Or in the JSP-config section your web. XML (note that this works starting from servlet specification 2.5 .):
*. jsp true
Unfortunately if you have a required
A java code cannot appear because of jsp code specifications. All have the jsp custom tag technology.
Therefore, jsp's custom tag technology is to remove the java code in jsp. At the same time, encapsulation of the tag's personal feeling is also a
This section describes the ServletContext and ServletConfig interfaces. Through these two interfaces, we can. set some parameters in xml, such as the database address and user name and password, to be used by Servlet, so that the Servlet does not
After a long time, I forgot the basics. Let's take a look at it today. Hehah... learn new things with a warm understanding !!!
1. RequestDispatcher. forward ()-forwardIs used on the server. When forward () is used, the Servlet engine transmits the
Jsp + ajax implementation is refreshing. When you move the mouse away from the text box, the user name is verified. The operation is as follows: Create an input page named input. jsp,
Copy codeThe Code is as follows:
jsp + ajax implementation
// Convert a string to a time type (the string can be of any type, as long as it is consistent with the format in SimpleDateFormat)
Java. text. SimpleDateFormat sdf = new java. text. SimpleDateFormat ("M/dd/yyyy hh: mm: ss a", java. util. Locale. US
This article describes how to use javabean and jsp pages to display data by page. In this example, the database used is Mysql.
1. Check javabean first. Class Name:DatabaseBean. java:The code for databaseBean. java is as follows:Copy codeThe Code is
The problem lies in the Web. xml declaration when a web Project is created.
The web. xml declaration part is generally divided into the following versions of xsd,
Web-app_2_2.dtd
Web-app_2_3.dtd
Web-app_2_4.xsd
Web-app_2_5.xsd
For more details, see
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.