This example is a reference to some of the Web site on JSP on the operation of XML related documents, but also combined with some personal experience. Examples of the content is the development of an enterprise internal catering system backend
The example in this article describes the custom label usage in JSP. Share to everyone for your reference. Specifically as follows:
Here a simple write a custom tag, the advantage of their own definition of the tag is in the JSP page can be used to
First, JSP Technology overview
After Sun officially released JSP (JavaServer Pages), this new WEB application development technology quickly caught people's attention. JSP provides a unique development environment for creating highly dynamic WEB
Author: builder.com
JSP provides a number of simple and useful tools, including reading data from a database, sending data, and being able to display the results in a pie shape. Now let's take a look at this simple and practical approach.
All the
Method One: The simplest is the most used method
<%@ page language="java" pageEncoding="GBK" %>
or
This method is used for Chinese display in JSP pages.
Method Two: Use the filter
Filters are used primarily for form submissions, and data is
JS JSP 1.1 presents a method of extending the JSP flag, which is named "Logo Library". These libraries allow other flags similar to those of Jsp:include or jsp:forward, but they are not JSP: prefix and also have some attributes attached to the
JS the first part of the Java environment installation
1, the latest version of the current j2sdk is 1.4.2_01, download address: http://java.sun.com/j2se/1.4.2/download.html download NetBeans IDE v 3.5.1 with J2SE V 1.4.2 Cobundle uses NetBeans IDE
JS is an accidental opportunity to browse to a
website, the page is fresh and feels very comfortable. Web site is using JSP
Development, I decided to test the security of the system for my personal interests.
telnet www.target.com 8080GET
Apache|js Linux under the JSP development environment, APACHE,TOMCAT server configuration process:
(Special note: This article is referred to the Internet, through personal practice and summary, if you encounter problems in the configuration,
js| detailed includes and two child elements.
Where elements already exist in JSP 1.2, is the new element of JSP 2.0.
The elements are mainly eight child elements, respectively:
1.2.3.4.5. syntax is not supported;
6.7.8.
A simple element
js| Repeat | Repeat submit
1 JavaScript, set a variable to allow only one submission at a time.
2 or JavaScript, put the submit button or image as disable
onsubmit= "Getelbyid (' submitinput '). Disabled = true; return true; " >
3
js| Connection Database | Problem You can help me look at the following three files (a JSP, two. java), I entered the address in IE, prompted the following error (code should not be wrong, do not know if the problem is set up), look at the high
The combination of JavaBeans and JavaServer pages
Through the above study, we should have a basic understanding of JavaBean, for JavaServer pages in the call JavaBeans we also need to know some specific JSP content, let's take a look.
JavaBean
Java Servlet and JSP tutorial (4)3.3 HTML Servlet outputMost servlets output HTML, instead of plain text. There are two additional steps to output HTML: tell the browser that HTML is sent next; modify the println statement to construct a valid HTML
Since its launch, jsp programming language has been widely used due to its fast, platform-independent, scalable, and object-oriented features, more and more manufacturers have developed a variety of support platforms, such as IBM WebSphere and BEA's
1. To develop a custom behavior, you need to use a series of classes and interfaces called tag extension mechanisms in JSP1.1 specifications ). All interfaces and classes required to implement the tag handler are defined in the javax. servlet. jsp.
(I) form requirementsThere are two requirements for the form for uploading files:1. Apply post to method, that is, method = "post ".2. Add attributes: enctype = "multipart/form-data"The following is an example of a form used to upload files: Action =
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