Jsp-servlet provides a good platform for Web application developers. However, most of the domestic development based on Jsp-servlet is in the most basic state, code reuse rate is low, low development efficiency, can not adapt to large-scale, complex
One: Description
In this article use proficient, skilled, familiar, understand the symbol of your mastery of a technology.
Proficient: able to master more than 85% technical points of this technology, use this technology for more than two years,
Recently done a project, JSP page background picture always consider its size, trouble dead. The results went online to search a good way to share with you
background
The 4.jpg pictures are as follows:
Some netizens do not know how to run their own JSP files, I briefly introduce here, to provide you with a point of reference:
1. Download and install Tomcat. Download Address: Http://jakarta.apache.org/tomcat
2. Write your own JSP Web pages and
In AS2, you typically use the Loadvars class to exchange data with a Web server:
var msg:LoadVars = new LoadVars(); var msgSent:LoadVars = new LoadVars(); msg.var1 = "one"; msg.var2 = "two"; msgSent.onLoad = function(success:Boolean):Void {
1. First create a helper class that implements the tag function, which is to change the color of the body text. This class can inherit TagSupport or Bodytagsupport, and the difference is that the former applies to labels that have no principals, and
JavaBean is a Java-based software component. JSP provides complete support for integrating JavaBean components in Web applications. This support not only shortens development time (can directly leverage tested and trusted existing components, avoids
JSP Other related resources:
Servlets and JavaServer Pages (JSP) 1.0:a Tutorial
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
JavaServer pagestm:a Developer ' s perspective
The last component associated with the JSP syntax is called an internal object. Within the JSP small instruction file, you can access these internal objects to interact with the servlet environment that performs JSP Web pages. Many of the access to
Although you can put a large chunk of program code in a small instruction file, most Java program code belongs to reusable components called JavaBean. JavaBean are like ActiveX controls: They provide known functionality and are designed to be
Declaration in JSP:
There are two ways to declare in a JSP: one is , and the other is , now talk about the second kind.
1, test conditions:
Suppose there are two pages test1.jsp and test2.jsp have the following code:
Out.print ("The"
Often see the JSP novice ask Tomcat How to configure the JSP, servlet and bean issues, so summed up how to configure the JSP, Servlet and Ben, in the hope of helping those beginners.
Step one: Download J2sdk and tomcat: Download J2SDK to the Sun
Because response is an implied object in JSP pages, you can use Response.sendredirect () directly in JSP pages to achieve relocation.
Attention:
(1). You cannot have HTML output before using Response.sendredirect.
This is not absolute, and the
Java Server page (JSP) is a growing technology for building dynamic Web pages. JSP and ASP, PHP, working mechanism is not the same. In general, JSP pages are compiled, not interpreted, as they are executed. The first call to the JSP file is actually
There are local languages in every region of the world. The regional difference leads directly to the difference of language environment. In the process of developing an internationalized program, it is important to deal with language problems.
Long time no update blog, wrote a JSP upload components to see you
1. Download down, create a new Java EE project, put the Qingcai-upload.jar into the Lib, and then Upload.tld put under the Web-inf.
2. In Web.xml
For example:
xmlns= "Http://java.
In Web applications, content caching is one of the most common optimization techniques and can be easily implemented. For example, you can use a custom JSP tag--we'll name it
--by
and
encapsulate each page fragment that needs
Pagect.java-Paging class/*@version ***********Created on June 25, 2001, 14:41***************************************/Package VOD;Import java.sql.*;Import java.util.*;
public class Pagect{Private long L_start; Start recordingPrivate long l_end; End
Use the JSP page to define a tag library and prefix using taglib directive from the definition tag.
Its syntax:
Example:
.
Describe:
The Directive (Directive) allows you to use custom labels, name the tag libraries, and specify
FCKeditor is an open source project above SourceForge.net, which implements the functions of the Online Web page editor, allowing web programs to have powerful editing capabilities such as MS Word. The official website is http://www.fckeditor.net,
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.