1. Configure the Web. xml file for the Structs ApplicationStep 1: Configure ActionServlet
action org.appache. structs.ActionServlet action *.do
Note: No matter how many sub-applications are included
When a JSP page is requested, the corresponding FormBean is automatically created and the struts tag control is set by the corresponding attribute. Therefore, if you want to set the initial values for the controls on the page from the very beginning,
/* Execute an insert statement and pass the parameter */Create or replace procedure p_test2 (I in number)BeginInsert into t values (I, 'x' | to_char (I ));Commit;End; aaa bbb String driver = "oracle. jdbc. driver. OracleDriver ";String strUrl = "
SP operation Access DatabaseRecently, when I used JSP to write the company's website sample program, I used JSP to operate the Access database. Many things are not difficult, but we don't know. ^-^ Haha, so now I have written a small program to
Tomcat is a Servlet container with web server functions. We can download it from the address below.Http://apache.mirror.phpchina.com/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.exeThe installation is very simple. The default port number is 8080,
Method 1: cache data in the servlet init () method
After the application server initializes the servlet instance and provides services for client requests, it will call the init () method of the servlet. In the lifecycle of a servlet, The init ()
If you want to execute one of several code blocks, you can use the switch statement:
Syntax:Switch (n){Case 1:Execution Code Block 1BreakCase 2:Execution Code Block 2BreakDefault:If n is neither 1 nor 2, execute this code}Working principle: the (n)
The html code is as follows:
UI Designer
Department: Technical Department
Work Location: Zhengzhou
Number of recruits: 21
front-end development engineer
Department: Technical Department
Work Location: Zhengzhou
Number of
There are five types of JSP compiler guidance and Directive elements. after JSP 1.0, most of the JSP is contained in a single tag with as the end. the new JSP 1.1 Specification has been published, and it is also compatible with XML.
The compiler
In the development of jsp and servlet, a small example I made today shows Chinese garbled characters. I have used many methods and found that it still cannot be solved. Finally, I used a filter to end the process.
This method is summarized as
The Code is as follows:
ConnectionTimeout = "20000"RedirectPort = "8443" type = "regxph" text = "yourobjectname"/>ConnectionTimeout = "20000"RedirectPort = "8443" type = "regxph" text = "yourobjectname"/> Changed:
JSP is very similar to ASP. Both provide the ability to mix some program code in HTML code and explain and execute the program code by the Language engine. In an ASP or JSP environment, HTML code describes the display style of information, while
JSP built-in Object request object
The request information of the client is encapsulated in the request object, so that the client can understand the customer's requirements and then respond. It is an instance of the HttpServletRequest class.
Serial
Import java. SQL .*;
Several issues to be aware of when Jbuilder correctly connects oracle ArrayiThe classes12.jar file should be used as the jdbc driver for oracle8 and later versions;Correctly set the classpath for windows and enterprise setup and
There are many algorithms for implementing the tree structure of the Forum. For details, you can go to www.chinaasp.com for full-text search. My current JSP Forum uses one of the following algorithms: Tree Structure algorithms are not implemented
Four random numbers and messy background images are generated. The numbers and background colors change, and the server refreshes (with history. go (-1)File that generates the verification code image ----- image. jspColor getRandColor (int fc, int
Final-modifier (keyword) If a class is declared as final, it means that it cannot generate a new subclass and cannot be inherited as a parent class. Therefore, a class cannot be declared both abstract and final. Declare variables or methods as final
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