JSP Basic Knowledge Point Summary 01

//java scriptlet code System.out.println ("Here is the JSP scriptlet tag"); in which you can define local variables, write statements, etc. 2, in which you can define global variables, methods, Classes 3, The main function is to output a

The research of JSP duplicate submission

JSP summary of issues in which pages cannot be refreshed or prevented from refreshing If you want the form to refresh when you select, delete, modify, and so on, you need to add: window.returnvalue=0. such as leadership/leader_ctl.jsp

Comments in the JSP

Comments in the JSP are divided into two types of comments: • Explicit Annotations: There are comments in HTML "" • Implicit annotations: You can use the "//", "/*....*/" in Java, and your own annotations in the JSP: " "What is called explicit

JSP file writing

  BelowCodeCreate an XML file   Fileoutputstream fo = new fileoutputstream ("webapps/login. xml ");Printstream so = new printstream (FO );So. println (" ");So. Print (" ");So. Print (name );So. println (" ");So. Print (" ");So. Print (password )

04-insert JavaScript code in the JSP script (Basic JSP Application)

Registration page registration page User Name: password: Registration successful page Registration successful page

06-jsp built-in Object Request

1. obtain the information submitted by the form. Requets. getparameter () method 2. Get Access Request Parameters Example: processing page Obtain request. getparameter () 3. submit the form request to this page. Set the submitted address of

There are three methods to include another JSP page in one JSP page.

(1) include command The include command tells the container to copy all the content summarized by the included file and paste it into the file. (2) include standard action (3) using jstl Note: (1) Insert" header when converting the include

Javascripte transmits parameters to the current JSP without refreshing the page

n Out. println ("ABCD ");Java. Io. bufferedreader BR = request. getreader ();String STR = "";String SRT = Br. Readline ();While (SRT! = NULL){STR + = SRT + "/N ";SRT = Br. Readline ();}Out. println (STR );%>  

How to obtain parameters in struts2 JSP #, %, $

1. For example, to obtain the value of the username attribute stored in the session, you can use the following methods:Session. getattribute ("username") gets the value of username,Use the following method in El:$ {Sessionscope. Username} 2. For

JSP page iterator or foreach loop output List Value

In action: Private list messagelist; // The get and set methods are omitted. @ Action ("/findallmessageaop ")Public String findallmessageaop () throws exception { Messagelist = messagemanager. queryall ();Return "find"; // jump to the corresponding

Organize JSP enterprise interview questions-1.2

JSP enterprise interview questions (1)The three-tier architecture is illustrated, and its features are described. How to implement it and what functions are implemented at each layer? (Enterprise pen exam) In two-tier applications, the application

JSP basics of Resource Sharing

We have been studying JSP for a long time. We have summarized a little basic knowledge in the process and used it to share it with beginners until we finally made a small project, Pet Hospital, jcreater4.0, our simplest tool, was used to do this. Oh,

Java/jsp Learning Series 13th (applet calls JavaScript Functions)

The following example shows how to call JavaScript Functions in the applet. 1. Applet source code (tmin_js.java) // ImportationsImport java. AWT. graphics;Import java. AWT. event; // Liveconnect... for JavascriptImport Netscape. Javascript.

JSP Chinese display Solution

I. garbled characters on the JSP page ii. garbled characters when the form is submitted to Chinese. III. Database Connection Chinese garbled characters often occur during JSP development, which may affect you, I am writing out the Chinese garbled

Select Association in JSP

Problem: TableCode nameCompany 1, 0001Company 2, 0002Table BMaincode subcode subname0001 1001 department 10001 1002 Department 20002 2001 Department 30002 2002 Department 4 Two select statements. If Company 1 is selected as the first select

Use eclipse3 + lomboz3 + Tomcat to develop JSP -- 4. a servlet instance

This article mainly introduces how to use lomboz to develop jstl and El. It is best to first refer to my previous article "using eclipse3.0.1 + lomboz3.0.1 + atat5.0.28 to develop jsp". The environment configuration is similar to it, here is a brief

JSP standard tag Library

tld

The standard tag Library (jstl) is a set of custom tags that implement many common web site functions in standardized formats. In the JSP Best Practices Section, Brett McLaughlin will introduce you to jstl and explain how to change JSP pages to use

JSP Chinese problems

I. garbled characters are displayed on the JSP page. II. garbled characters occur when the form is submitted to Chinese. III. Database ConnectionChinese garbled characters often occur during JSP development, which may affect you, I am writing out

Necessity of JSP database connection pool

Recently I have made frequent connections to the database JSP, and the necessity of the database connection pool is given here. For JSP, a good J2EE server is necessary. jboos and WebLogic are both good solutions. In general, when developing

Use cos in JSP to upload Web files (Modified Version)

cos

1. download the latest cos package (http://www.servlets.com/cos/cos-05Nov2002.zip), decompress the COs. Jar under the lib directory to add to classpath. 2. Compile a JSP file to be uploaded. For convenience, you can use a simple HTM file. on this

Total Pages: 280 1 .... 202 203 204 205 206 .... 280 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.