JS 1. Download to the Sun home page to download the JDK installation version, assuming the JDK is installed in C:\j2sdk1.4.2_03\, then set the environment variable java_home as C:\j2sdk1.4.2_03\,
Then add C:\j2sdk1.4.2_03\bin to the Environment path variable and add Tools.jar and Dt.jar to the CLASSPATH environment variable if there is no classpath
environment variable, then create it.
2. Download the Tomcat installation version, assuming that Tomcat is installed in c:\tomcat4.1; Then set the en
Let's talk about it today. Perfect Framework's static file additions and accesses , the configuration of routes, and the submission of forms . While the official web site has a section on accessing static files, there are some points to note when using the perfect framework to access static files, which are not presented on their official documents. What we are going to do today is to access the static file through the browser, and then use the form form in the static file to submit the correspo
not forget to modify the/etc/hosts file to point the demo to 127.0.0.1.
In principle, the configuration has been completed, so you can access it directly. However, a large wave of 403 is approaching .....
0x02 Problem
If you select the/var/www/directory or sub-directory according to the Wikipedia configuration, you can run it without any pressure. However, a 403 error occurs when you change to a location such as/home/user/webroot.
Check the error log
will use the YIIC (command-line tool) to create a new YII application. Gii (a powerful web-based code generator) completes automatic code generation for specific tasks. Assuming Yiiroot is the installation directory for YII, WebRoot is the server's document root directory.
Run YIIC at the command line, as follows:
% YIIROOT/FRAMEWORK/YIIC WebApp webroot/testdrive
note| Note: When running YII
( recommended way ).
Create a new Myservic.java file under Axis_example/src with the following:
public class MyService {
public string Processservice (string arg) {
return arg;
}
}
Compiling Myservic.java
In the new DEPLOY.WSDD (can refer to the axis-bin-1_4.zip/axis-1_4/samples in the DEPLOY.WSDD----as long as guaranteed under the Classpath) file, the content is:
Xmlns:java= "Http://xml.apache.org/axis/wsdd/providers/java" >
Start Tomcat
In this way, you must first
static files, including HTML files, CSS files, image files, and JavaScript files, are the resources contained in an application.1. Provide static filesBy default, static files are stored under your Webroot directory, and Webroot's path is defined in Project.json."Webroot": "Wwwroot"A static file can be stored in any directory below Webroot, which is obtained in a
Two linux servers can be mounted between two linux servers: SERVER: 1. First, you need to set the directory on the host (1) to be mounted. Modify/etc/exports, add a shared directory. Here, the host refers to the server (the directory to be shared)/srv/www/app/wtcms/webroot/upload 10.10.10. * (ro, sync, no_root_squash)/srv/www/app/wtcms/webroot/main 10.10.10. * (ro, sync, no_root_squash) specifically,/srv/ww
build Spring MVC under Eclipse
One, new dynamic Web Project
A Web project is the most basic, only look at 3 places, in the root directory (this directory is generally used to call webcontent or Webroot) have:1.webroot/web-inf/web.xml Boot file2.webroot/web-inf/classes/the compiled class file, which establishes the subpath according to package3.
Flex + Java + Blazeds, flexjavablazeds
1. Environment: jdk1.6 and Flex4.6
2. Tool: MyEclipse10
3. SERVER: Tomcat7
4. Connection Method: Blazeds
5. Project type: Flex Project
6. Steps
(1) create a new Flex project named FlexToJava
After entering the project name, click "Next ".
Select BlazeDS and select "use WTP ...", Click Next. By default, the project is created.
The new project directory is as follows:
(2) Add the new project to Tomcat
Start Tomcat, run the FlexToJava. mxml page, and star
In order to have a preliminary understanding of yii, we describe how to build the first Yii application in this section. We will use the YIIC (Command line tool) to create a new YII application. The GII (powerful Web-based code generator) automates code generation for specific tasks. Assuming that Yiiroot is the installation directory for YII, WebRoot is the server's document root directory. Run YIIC at the command line as follows:
% YIIROOT/FRAMEWORK
of yii, we describe how to build the first Yii application in this section. We will use the YIIC (Command line tool) to create a new YII application. The GII (powerful Web-based code generator) automates code generation for specific tasks. Assuming that Yiiroot is the installation directory for YII, WebRoot is the server's document root directory.
Run YIIC at the command line as follows:
% YIIROOT/FRAMEWORK/YIIC WebApp
that your Web server supports PHP 5.1.0 or later. Yii has passed the test on Apache HTTP Server on Windows and Linux systems. It should also work properly on other Web servers and platforms that support PHP 5.
Create the first Yii application
To have a preliminary understanding of Yii, we will describe how to build the first Yii application in this section. We will use yiic (command line tool) to create a new Yii application. Gii (a powerful web-based code generator) automatically generates cod
To have a preliminary understanding of Yii, we will describe how to build the first Yii application in this section. We will use yiic (command line tool) to create a new Yii application. Gii (powerful web-based code generator) for specific tasks...
To have a preliminary understanding of Yii, we will describe how to build the first Yii application in this section. We will use yiic (command line tool) to create a new Yii application. Gii (a powerful web-based code generator) automatically genera
following code in the Require field within the project Composer.json file:
"Yiisoft/yii2-imagine": "~2.1.0"
Then execute the command (CMD) in the project root directory:
Composer require Yiisoft/yii2-imagine
Yii2 using Imagine
Use yii\imagine\image; $srcImg = Yii::getalias (' @webroot/test.jpg '); $aimImg = Yii::getalias (' @webroot/testdeal.jpg ') ; $srcTTF = Yii::getalias (' @
YIIC (Command line tool) to create a new YII application. The GII (powerful Web-based code generator) automates code generation for specific tasks. Assuming that Yiiroot is the installation directory for YII, WebRoot is the server's document root directory.
Run YIIC at the command line as follows:
% YIIROOT/FRAMEWORK/YIIC WebApp webroot/testdrive
note| Note: When running YIIC on MacOS, Linux, or Unix syste
=NewClasspathxmlapplicationcontext (NewString [] {"Applicationcontext. xml",ApplicationContext-test.xml"});
Beanfactory AC =NewClasspathxmlapplicationcontext ("Classpath *:/applicationcontext *. xml");
Beanfactory AC =NewClasspathxmlapplicationcontext ("Classpath *: src/folder/applicationcontext *. xml");
Besides: filesystemxmlapplicationcontextThis class obtains the project path by default, that is, the project name level. but I tested, in myeclipse, execute the main method, get th
describe how to build the first Yii application in this section. We will use yiic (command line tool) to create a new Yii application. Gii (a powerful web-based code generator) automatically generates code for specific tasks. Assume that YiiRoot is the installation directory of Yii, and WebRoot is the document root directory of the server.
Run yiic on the command line as follows:
% YiiRoot/framework/yiic webapp W
$latest_products_list . This allows you to see which variables are used in the template in a single glance in the program.
Directory Structure of Fleaphp
A typical fleaphp application has the following directory structure:
The directory of this application is mainly divided into weblibs and WebRoot. Where Weblibs saves all the code for the program, and the WebRoot directory saves only those parts
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.