Java Server Page (JSP) is becoming increasingly popular as a technology for creating dynamic web pages. JSP is not the same as ASP, PHP, and working mechanism. Generally, JSP pages are compiled rather than interpreted during execution. Calling the
Recently, we have seen useful things in the case of chaos in csdn. We have used jfreechart to achieve a lot of complex graphics,
Reprinted URL: http://www.java2000.net/f30
Below are a few simple examples:
out. clearbuffer (); response.
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) HTML comment:You can use comments or expressions.2) Hide comments:Comments will be ignored during JSP compilation. the compiler will not compile the statements between them and it will not be displayed in the client's browser and source code.
3)
Static JSP inclusion
Now let's take a look at the JSP static include command:
Create a project testinclude
Then add the file:
Index. jsp:
this is user's area
Curdate: (without a suffix)
curDate:
Curdate. jsp:
Ckeditor api chm help document http://download.csdn.net/detail/guoquanyou/3622884
The JSP page uses the Rich Text control ckeditor to submit form data
Use the Rich Text control ckeditor to customize the style on the JSP page
JSP uses ckeditor and
When using a formThe parameter cannot be converted correctly.To the input. jsp page.
For example, we have a real student with attributes such as name, num, and age.
Student. Name, student. Num, and student. age should be sent from the
JSP
Stulst. Name "value =" XY "/>
Stulst. Name "value =" xy1 "/>
Stulst. Name "value =" xy2 "/>
This indicates that there are three different records.
Action
Public list Stulst;
........................................ ...........
Public stirng
The teacher asked me to build a small personal financial management system and use the jsp I learned this semester. Because the project is relatively small, I use JSP + JavaBean.
The previous analysis was successful, and there was a problem at the
Jquery. Treeview. js
1. Tree Structure
$ {Name}$ {Name}$ {name}
2. Add slices to the Tree Structure
$ {name}
3. Enable the check box to have the same effect as the single-host text
$ {name}
Note that the tag can be nested with Struts
Color getrandcolor (int fc, int BC)... {// obtain the random color in the specified range.
Random random = new random ();
If (FC> 255) fc = 255;
If (BC> 255) BC = 255;
Int r = FC + random. nextint (BC-Fc );
Int G = FC + random. nextint (BC-Fc );
Int
(Unlike generating static html from JSP, all the news is static.
If the HTM template is used, it will be replaced in different places.
)
Similar;
Request. setcharacterencoding ("UTF-8 ");String title = request. getparameter ("newstitle ");String
1. This instance mainly tells us how to call the JavaBean Component in JSP code.
2. The advantage of using Javabean is that JSP code is simplified, interface code and logic code are separated from each other, so that programmers can easily view and
We do not like to see on JSP pages. In fact, we can use a more elegant XML format to express1. Implicit commentsJSP Syntax: XML Syntax: None2. Declaration of variables or functionsJSP Syntax: For example:IntI = 0;IntA, B, C;Color red =NewColor (255,
PrefaceAnyone with JSP coding experience may experience JSP debugging difficulties. Due to the lack of automated debugging tools, JSP debugging has to use a large number of print statements in files. This method is a simple and effective method for
The source code of the example provided in this article has been uploaded by cainiao. If you are interested, go to http://download.csdn.net/detail/woshishuoshuoa/596%3 to download it ~~~
This is a simple registration verification program completed
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