= Request.getparameter ("select"); if(C.equals ("Yes")) Out.print ("Welcome!"); ElseOut.print ("I don ' t like you!"); //jump to another page with a parameterRequest.setattribute ("token", token); Request.getrequestdispatcher ("Welcome.jsp"). Forward (Request,response); }}4. Create a welcome.jsp page and accept the parameter values pageencoding=" Iso-8859-1 "%>// %> Welcome to RZZX1. 5, create a Web. xmlWeb. XML is used to establish the servlet-JSP
JSP Implicit ObjectIn this chapter, we will discuss and learn about implicit objects in JSPs. These objects are Java objects that the JSP container provides to developers in each page, and developers can call them directly without explicitly declaring them. A JSP implicit object is also known as a pre-defined variable.
In-depth analysis of the four fields (attributes) of Java Web Item16 -- jsp
Jsp has four fields. The scope ranges from small to large, including the page domain, request domain, session domain, and application (servletContext) domain. The fields can also be called attribute ranges. The so-called attribute range is the storage range that can be accessed after a pr
I. Why Java Chinese problems
The Java kernel and class files are unicode-based, which makes Java programs have good cross-platform performance, but it also brings some trouble about Chinese garbled characters. There are two main reasons: the garbled problem generated during compilation of Java and
Hello everyone! Long time no see! Today we began to learn JSP, some of the basic knowledge of the record is here to share with you.First, the URL (Uniform Resource Locator agree to the resource Locator). The URL includes the Transport protocol (http://), IP address, port (port if 80 can be omitted, others cannot be omitted), project resource address.Again, the next b/s,c/s architecture.b/S is a browser/server;Browser and server side use request/corre
JSP Java Server Page, jspjava Server
Hello everyone! Long time no see! Today, we started to learn about JSP. Here we will share some basic record knowledge with you.
First, let's talk about the URL (Uniform Resource Locator agrees to the Resource Locator ).
The URL includes the transmission protocol (http: //), IP address, port (if the port is 80, it can be o
js|servlet| | Getting Started Tutorial Java servlet and JSP Tutorials (2)
2 installation
2.1 Installing the servlet and JSP development tools
To learn about servlet and JSP development, you must first prepare a development environment that conforms to the Java Servlet 2.1
Related information:"21-Day Learning Java Web Development"Summary of results:1.page Set JSP page Global properties, acting on the entire JSP page, including statically contained files2.the 3.page directive contains 13 attributes as shown in the table:1>language used to declare the type of script spoken2>extends is used to specify which parent class the servlet ge
Learn servlets and JSPs here >> iAm333 's ColumnBooksXinxin Sun's "servlet/jsp in Depth: Tomcat-based Web development"Lin Shinliang's "Jspservlet Study notes (second edition)"Process of processing requests by the servlet containerBefore starting the text, let's review and refine the process for the servlet container to process the request.1) The user clicks on a link that points to a servlet instead of a s
js|servlet| | Getting Started Tutorial Java servlet and JSP Tutorials (1)
1 overview
1.1 Java servlet and its features
The servlet is a Java technology answer to CGI programming. Servlet programs run on the server side and dynamically generate Web pages. Compared to traditional CGI and many other CGI-like technologi
existing servers, if it doesn't support a servlet, adding that part is often free (or requires very little investment).
1.2 jsp and its characteristics
JavaServer Pages (JSP) is a common static HTML and Dynamic HTML hybrid coding technology, for the description of JSP basic concepts See "JSP technology Introduction.
)
Microsoft's ASP is a technology similar to JSP. There are two advantages to JSP compared with ASP. First, dynamic parts are written in Java, not VB script or other Microsoft languages, and are more powerful and easier to use. Second, JSP applications can be ported to other operating systems and to non-Microsoft Web s
technology similar to JSP. There are two advantages to JSP compared with ASP. First, dynamic parts are written in Java, not VB script or other Microsoft languages, and are more powerful and easier to use. Second, JSP applications can be ported to other operating systems and to non-Microsoft Web servers.
= showModelDialog ("/jsp page path included in the mode window ";Help = 0; status = 0; center = yes; dialogWidth = 100pt; dialogHeight = 100pt ");}}
7. Mutual transmission of js and java Variables
In jsp, js variables are often assigned to java variables, or java variables
The difference between JSP (Java Server Pages) and JS (JavaScript):1.JSP is typically used for server-side programming (such as reading databases, updating databases, etc.) although JavaScript can also be used for server-side programming in ASP environments, it is more widely used for client programming, such as many common web effects that are JAVASCRIPT+CSS imp
servlet output buffers.
3
contentType
Defines the character encoding scheme.
4
errorPage
Defines another URL that reports the JSP that Java does not check for runtime exceptions.
5
isErrorPage
Indicates whether this JSP page is a URL specified by the properties of another
(). write ("Hello World! ");
}
Catch (java. io. IOException e)
{
Throw new JspException ("IO Error:" + e. getMessage ());
}
Return EVAL_PAGE;
}
In this way, "Hello World!" will be output at the end of the custom tag of the jsp file !"
7. Not enough. We need to write down the following method:
Public void release (){}
For this simple example, the above method does not require any implementation.
8. The
JAVA basics: Seven Tips for improving JSP applications-general Linux technology-Linux programming and kernel information. For details, see below. Are you often complained about slow response to JSP pages? Have you ever wondered whether your WEB applications will be able to withstand the increasing traffic volume when the number of customer visits increases dramat
Java basics: Seven Tips for improving JSP applications-general Linux technology-Linux programming and kernel information. For details, see below. Are you often complained about slow response to JSP pages? Have you ever wondered whether your WEB applications will be able to withstand the increasing traffic volume when the number of customer visits increases dramat
Since its access to Java and JSP, it has been constantly dealing with Java's Chinese garbled characters, and now it has finally been completely solved. We will share our solutions with you.I. Why Java Chinese problemsThe Java kernel and class files are unicode-based, which makes Ja
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.