Recently using jquery to write down the option value of the Drop-down box to move around, the code is as follows:
Copy Code code as follows:
Untitled Document
Option 1
Option 2
Option 3
Option 4
Separate form from Action page
Button press, click or onclick event to trigger
Pass a unique parameter to the child page JSP,
Sub pages, responsible for querying and judging logic,
Jsp:forward tried, directly to the error
Copy Code code as
JSP programming in the Web page appears garbled, the basic can be grouped into 5 categories:
1. JSP page display garbled.
2. When the servlet receives the parameters passed by Form/request, it is displayed as garbled
3. JSP to receive
1. Use of beans
In order to use Benas in the JSP page, we must use the JSP action tag: Usebean
Usebean format:
When a JSP page containing a Usebean action tag is loaded on the server, the JSP engine first finds in a synchronized block, based on the
After learning the JSP basic syntax and the use of HTML and JavaScript, JSP+JDBC connect the database to develop a dynamic Web page can be implemented.
For students who have studied Java SE, the operation of the database is not unfamiliar, if there
String agent = Request.getheader ("user-agent");
StringTokenizer st = new StringTokenizer (agent, ";");
St.nexttoken ();
Get the user's browser name
String userbrowser = St.nexttoken ();
Get the user's operating system name
String Useros =
This is the actual combat JSP advanced programming three.
Today spent a few hours, and finally the room inside the development of tomcat+hibernate, learning environment configured well.
Application scenarios: Tomcat 5.5, Hibernate 2.1.7, MySQL 3.23
Our first example is the simplified DAO approach, which mainly introduces OOP concepts in programming.
This time, we'll make the DAO up, but still keep the simplest form for beginners to learn.
The simple DAO pattern consists of:
1 interface
2.
Many JSP beginners in learning simple JSP programming, often stay in the JSP inside the SQL statement to tune a JavaBean database connection stage, stalled.
This simple tutorial is expected to help beginners learn to use OOP ideas for JSP
1. Introduction
database applications, especially web-based database applications, often involve the storage and display of picture information.
Usually we use the method is to display the picture in a specific directory, in the database to save
Passing data between Web pages using JavaBean and JSP parameters
Introduction: Web Architecture designer Brett McLaughlin demonstrates how the combination of JavaBean components and JSP technologies enables you to store and deliver data between Web
Introduction: Scriptlet is a good choice for fast and miscellaneous (Fast-and-dirty) coding, but in the long run you need to choose a less cluttered solution for your JSP pages. In this issue of JSP best practices, Brettmclaughlin shows you how to
In JEE6, the El expression in the JSP supports method calls with parameters. You can call it like this:
${foo.bar (Baz)}.
The latest implementation is Juel, you can download a trial. The following code is the test of how to use:
Originally I did not add ID to this parameter in DeleteUser () and myconfirm (), but found that it was not possible to pass this parameter without ID in the deletion of this link deletion. i tried to change the position of deleteuser (), but found
Environment:
1. Database: Microsoft SQL Server 2000
2. Database driver: Net.sourceforge.jtds.jdbc.Driver
JNDI (Java naming and Directory Interface) Overview:
TOMCAT4 (5) provides a Jndi--initialcontext implementation instance that is compatible
Before writing a simple JSP to do the stress test, did not expect a problem is when the pressure is relatively large, run a long time will appear a phenomenon, that is, the JVM's memory is almost exhausted, with Jprofiler view will find that there
1. Requestdispatcher.forward ()
is on the server side, when using forward (), the Servlet engine passes HTTP requests from the current servlet or JSP to another servlet,jsp or normal HTML file, or your form commits to a.jsp, The forward () redirect
There are approximately three ways to jump using JSPs:
1. response.sendRedirect(); 2. response.setHeader("Location",""); 3.
Some of the following rules have been tested:
I. Response.sendredirect ()
Out.flush () is not allowed before this
In the JSP built-in object "02" We have simply studied page, request, session, application four kinds of objects of the attribute range. So from the beginning of this article we have come together to learn more about the use of request, response,
Built-in objects are the core of JSP, it can be said that built-in objects throughout the Web, even in the subsequent development is still frequently used.
The table in "JSP built-in object" 01 "describes the built-in objects in 9 that are really
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.