I. Code PreviewIn the past two days, emails are sent to struts2. The previous project was useful to spring. It was very convenient to use the mail support class provided by spring to complete this function. However, if we only use struts2, we
1. JSP commands
Category: 1). page 2). include 3). taglib
Syntax:
2. Page compilation command:
• Purpose: Use the Page compilation command to set the Page attributes of JSP. Usually located at the top of the JSP page, you can have multiple page
In jsp learning, variables on the other jsp page are often called on one jsp page. The following is a summary of the learning over the past few days.
There are multiple methods to call variables between jsp pages:
1. Get parameters through the
Receiving Request Parameters1:Http: // MAID: 8080/struct2341/test/helloworld. do? Id = 123In this way, the action class will get the id name matching through the reflection mechanism; you can also use the form to submitPublic class HelloWorldAction {
1 because struct2 functions such as file upload and data verification are all set by the system's defaultThe interceptor in defalutStack is implemented, so we define that the interceptor must reference the default defalutStackIn this way, other
Today, the error "failed to create the java virtual machine" was reported when zend for eclipse 10.5 was opened. gg immediately found that the PermSize and MaxPermSize configuration problems were solved.
When zend for eclipse 10.5 is enabled, an
DictBase(Id (,) ,Name ())
Factory method mode
IDAL layer (add an interface and define a method in it)Obtain List Interface: Category dictionary name
DALFactory layer (DataAccess new interface implementation factory mode)AssemblyPath =
I. the requirement is as follows: use jsp to implement an ultra-simple web calculator. II. implementation 2. code Calculator. java copy code package com. amos. model; import java. math. bigDecimal;/*** @ ClassName: Calculator * @ Description:
Jps commands are introduced in JDK1.5 to facilitate display of javaJVM process information. I used to use
ps -ef | grep java
Query the pid information of the java program, or check whether my appserver is running. Now, you can use jps to
Generally, the following two packages must be referenced to develop jsp custom tags:
ImportJavax. servlet. jsp .*;
ImportJavax. servlet. jsp. tagext .*;
First, we need to get a general idea of the interface and class hierarchy involved in the
(1) Install Tomcat7 in Ubuntu:
It is very easy to install tomcat7 in ubuntu. Just refer to [1],
(1) type the command:
Sudo apt-get install tomcat7,
(2) check the website http: // localhost: 8080/
In my version it is showed like this:
(2) If
I. Brief Introduction to JSP 1. What is JSP? JSP stands for Java Server Pages. Like servle technology, JSP is a technology defined by SUN for developing dynamic web resources. The biggest feature of JSP technology is that writing jsp is like writing
When a url comes in, such as http: // localhost: 8080/pro/demo/hello. jsp? Name = john. On the hello. jsp page, we can get the name value as follows:Copy codeThe Code is as follows:String path = request. getContextPath ();String basePath = request.
Copy codeThe Code is as follows:Public interface JdbcTemplate extends JdbcOperations {Public abstract void beginTranstaion ();
Public abstract void commit ();
Public abstract void rollback ();}
Copy codeThe Code is as follows:Public class
Unlike the compilation command, the compilation command notifies the Servlet engine to process messages, and the Action Command is only a script action during running. The compilation command works when compiling JSP into Servlet: The processing
1. java is the code that runs on the server side. jsp is run on the server servlet, while javascript and html are the code that runs on the browser side. Therefore, the order of loading and execution is java> jsp> js.
2. Loading Sequence of js in
1. External Style
When a style needs to be applied to many pages, the external style sheet is ideal. When using an external style sheet, you can change the appearance of the entire site by changing a file. Use the label to link to the style sheet
Preface
This document describes how to use Tomcat as the j2ee container and Sqlserver2005 as the database. Struts version 2.3.15.3 and Spring version 3.2.5
Spring Introduction
Spring is also an open-source project under appache. The powerful
Possible reasons why the Struts2 verification framework does not work1. Whether the name complies with the Conventions:-Validation. xml-- Validation. xml2. Check whether the validation. xml tag is correct, such as whether to disable all tags and
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