The JSP drop-down box displays the database information -- Please select -- DAO d=new dao ();// This is the class that the database accesses. List List=d.getdata (); for (int i=0;i { %> > --Please select-- > ;
1. How database connections are accessedJSP inside the link database operation as follows:Context CTX = new InitialContext ();DataSource ds = (DataSource) ctx.lookup ("Java:comp/env/jdbc/bookstore");Connection conn = Ds.getconnection ();Statement
The first type:in front of the page, adderrorpage= ""%>The first line indicates that your page is in Chinese codethe second line declares that your page values are also encoded in ChineseThe second kind tomcat4.x support in the messaging code, but 5.
JSP: Java server page, HTML embedded in Java, so more aspects of display (V)Serlet, is the server-side applet Java embedded HTML, more aspects of business processing.JSP execution Process1) The client makes the request. 2) the Web container
First, what is JSP JSP full name JavaServer Pages, is a technical standard that enables software developers to dynamically generate HTML, XML, or other format documents in a Web page that is co-created by Sunmicrosystems Company and many
JavaBean is a reusable, cross-platform software component. JavaBean can be divided into two kinds: one is the user interface (UI) JavaBean, and the other is that there is no user interface, mainly responsible for processing transactions (such as
In a three-tier architecture-to-JSP project, how do I implement select dynamic binding data and dynamically select the specified row? and see below:1. First define a bean class that instantiates the ID and name of each piece of data that is bound to
Set parameters in the web. xml file:
myjsp /myjsp. jsp firstparam firstparamvalue
myjsp /myurl/*
The followingProgramThe firstparam value of the parameter defined in Web. xml cannot be retrieved. my JSP page. jsp My init
I. Preface
Orion is small, but has a lot of functions. If you don't talk about it, you can see its current support:(1) servlets/jsp
(2) EJB
(3) HTTP (Note: Web servers such as Apache or IIS are no longer needed)
Ii. Download and install
For
I. Preface
Tomcat is a good choice for beginners to execute JSP and servlet ,. Tomcat is a product of the Apache organization, and Sun's support for it is also quite good.
Ii. Download and install
Java official site: jakarta.apache.org, which
I. Preface (translated from Orion official site)
This article will introduce how to define your own tag under Orion Application Server step by step, implement the tag function, and finally use a JSP Example for testing.
2. Create a tag to
I. Preparations before running
We recommend that you create a DNS for the MS sqlserver7 database named test_db.
There is a table in the database: Guestbook field: Name (varchar), email (varchar), body (text)
The SA password is blank for
I. Preface
JDK (Java Development Kit) is a Java application.ProgramIt can be said that all Java applications are built on this. It is a set of APIS, or Java class. The latest version jdk1.3 has been officially released. Considering that I am not
I. Preface
Tomcat is a good choice for beginners to execute JSP and servlet. You can also use resin. Both products do not cost a penny. Resin supports XML well.
Ii. Download and install
For the resin official site: http://www.caucho.com /.
Overview:
XML and JSP are the hottest things in these days. This article describes how to combine these two technologies to build dynamic websites. You can also take a look at examples of Dom, XPath, XSL, and other Java-XML technologies.
Code .
Let'
I. Copyright Notice
This file will be published in GPL mode.
2. software acquisitionAs the saying goes, to do a good job, you must first sharpen the tool. The following lists the resources obtained by the software mentioned in this article, and
1.1 Java Servlet and Its Features
Servlet is the answer of Java technology to CGI programming. ServletProgramRun on the server to dynamically generate Web pages. Compared with traditional CGI and many other CGI-like technologies, Java Servlet is
Full-text search in JSP
Full-text search has always been a key WEB technology. People are most concerned about how to find the information they want in the vast amount of information. The famous Google is a very successful example. Most people
Package coreservlets;
Import java. Io .*;Import javax. servlet .*;Import javax. servlet. http .*;
/** Simple servlet that generates HTML.* * Taken from core servlets and assumerver pages* From Prentice Hall and Sun Microsystems press,*
The Connection Methods for Apache and Tomcat are JK1.x, JK2, and mod_webapp.Apache2.0.50 + atat5.0.29 + mod_jk2 connection method. The environment is windows XP1. Download:Apache2.0.50 download from http://apache.orgTomcat5.0.28 from
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