1.2 introduction to the first jsp program: 1. Open a text editor or a jsp-specific text editor to highlight some syntaxes.2. if you write a jsp to process http requests. It will be the same as compiling an html file.3. If a jsp file contains some
1. problem: the People object in the request has a property named men, and men is a Collection with many man. Now, all man names in the collection are displayed.
Obviously, this is a nested Tag problem. Three tags interact with each other: the
Due to functional requirements, some judgment code needs to be executed before N methods of js, and M methods need to be executed to process the code. If you directly write the code in a specific method to add processing code, it will make the code
JSP nine implicit objects
Request
Response
Config
Application
Exception
Session
Page
Out
PageContext
Out implicit object
The out implicit object is used to send text data to the client.
The out object is returned by calling the getOut method of
1. Use of simple labels
1) use custom tags to control whether the page content (TAG body) is output
Public void doTag () throws JspException, IOException {
// JspFragment jf = this. getJspBody ();
// Jf. invoke (null );
// Equivalent to jf.
Sometimes we unify the style of the website, so we can separate the header and footer of the website, and reference the header and foot of other pages, but in practice, we often like to use html format because of footer. In this way, we will
The reference code is as follows:
$ {errTip} mobile phone number: password: log on
click this link for computer access to this page.
Note:
All mobile phones must be accessible normally.
1. Do not add html tags.
2. Do not add the title
Type 1: struts1.2 looping element. name indicates the result set. Reference tag library [Java]$ {x. u_id} $ {x. u_name} $ {x. u_sex} modify Delete
Type 2: struts2.0 looping element. Note: value is the result set. Reference the tag library
A moment of cheap, the structs-config.xml file in a paragraph deleted, the results are always reported error.Error message: Document is invalid: no grammar found[Html] "-// Apache Software Foundation // DTD Tiles Configuration 1.3 //
JSP and Servlet Chinese garbled processing I learned about Chinese garbled characters in JSP and Servlet a few days ago. I wrote a blog and updated it today. It should be able to solve the daily garbled problem. Now I want to make the following
When looking for rs. absolute (), I saw this article, which is very good .. It's a pity .. I have to copy and paste it...
JDBC interfaces:The java. SQL. DriverManager class is used to process driver calls and support new database connections.Java.
Function: automatically uploads the 02view.html file under the same directory in 5 seconds. 1) html implementationAdvantage: simpleDisadvantage: cannot be used in Struts Tiles 2) javascript implementationAdvantage: flexible, can be combined with
Summary of the process of passing JSP page parameters!Transfer Process:
1. if you click to connect to the Jsp page, the transfer process is xxx. action request --> action --> Jsp. You must use action before entering the jsp page. Therefore, the
JSP TechnologyJSP OriginIn many dynamic web pages, most of the content is fixed, and only some content needs to be dynamically generated and changed.If the Servlet program is used to output webpages with only some content that needs to be
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