At a certain time, it is necessary to regularly run an ASP file to execute a task. For example, a factory needs to collect the readings of all electric meters at nine o'clock a.m, of course, this should be connected to various electric meters
1. Obtain the image address on the original page.
Function picstr (STR)
Set objregexp = new Regexp 'to set the configuration object
Objregexp. ignorecase = true' case insensitive
Objregexp. Global = true' is set to full-text search.
Objregexp.
1.1 Java Servlet and Its FeaturesServlet is the answer of Java technology to CGI programming. Servlet programs run on the server to dynamically generate Web pages. Compared with traditional CGI and many other CGI-like technologies, Java Servlet is
SimpleSendMessage. javaImport java. util .*;Import javax. mail .*;Import javax. mail. internet .*;Import javax. activation .*;Public class SimpleSendMessage {Public static void main (String [] args ){// Collect the necessary information to send a
JSP-Hitcounter counts sessions.Copyright (C) 2000 Jesper Schmitz Mouridsen.Visit www. webappcabaret/jsm2/webapps. jsp? Find = jsphcs for more info.This program is free software; you can redistribute it and/or modify it under the terms of the GNU
I. PrefaceTomcat is a good choice for beginners to execute JSP and Servlet ,. Tomcat is a product of the Apache organization, and sun's support for it is also quite good.Ii. Download and installJAVA official site: jakarta.apache.org, which is also
I. PrefaceTomcat is a good choice for beginners to execute JSP and Servlet. You can also use Resin. Both products do not cost a penny. Resin supports Xml well.Ii. Download and installFor the Resin official site: http://www.caucho.com /.Download from
I encountered a problem when I was working on the project recently. I added response. sendRedirect () and the system also executed it, but it just didn't jump. Finally, I found the reasons on the Internet:First, we need to understand how to use
In the afternoon, I finally implemented the jsp connection to MySQL to perform the insert operation. Enter data on the index. jsp page and submit it to the mysql -- insert. jsp page for database insertion. The index. jsp page code is as follows:Copy
In a recent DRP project, garbled characters often occur when JSP is used to operate Chinese characters. These problems cause Chinese characters to fail to be entered or displayed properly. The settings of character sets and encoding methods of
10.1 session status overviewThe Stateless feature of HTTP brings about a series of problems. Especially when shopping through online stores, the server cannot remember the previous transactions smoothly, which becomes a serious problem. It makes it
If the page in jsp: include is garbled, you must add the Request. setCharacterEncoding ('utf-8 "); // or the specified encoding (GBK or other)%>As shown below:Copy codeThe Code is as follows:Jsp-include.jsp jsp include test page Request.
When I passed parameters in Chinese today, I was unable to pass the live encoding, so I thought of using escape.Request. getParameter could not receive the parameter, so he thought about how to receive the parameter.Tested and approvedCopy codeThe
Next, we will summarize several common connection methods.
For example, the following Access database student, table basic, and six records are displayed in Jsp in several ways. :
For several ways to connect to the Access database, basically is
In projects, we often encounter the need to pass Chinese Characters in JSP page switching. There are two main methods.
◆ URL Method
For example:
Http: // website/test1.jsp? Act = add & type = apple & param = % 20D % 20B
◆ FORM Mode
For example:Copy
In jsp, if you need to process complex data, defining a java method above is a very effective solution, and pushing the responsibility for processing data to this method, then the main process of the jsp page will not be affected. Of course, you can
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