//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
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 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
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
(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
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
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
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
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,
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.
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
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
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
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
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
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
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
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