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
The biggest advantage of using annotations to configure actions is that zero configuration can be implemented, but transactions have both advantages and disadvantages. This makes it easier to use and maintain.
To use annotation, we must add an
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.
What is the MVC pattern... Let's talk about its process.
A form is defined in login. jsp:
This completes the entry from layer V to layer C.
Controller. java is a Servlet. to inherit from HttpServlet, you must first arrange it in the
Today, I was hit by a JSP garbled problem. The solution is as follows:
1. The TOMCAT6.0.33 configuration file server. xml does not contain URIEncoding = "UTF-8"
The URL has a Chinese string and java is used in the background,
String str = request.
Request object in jsp: The request object can be used not only to set and obtain request range variables, but also to obtain client request parameters, request sources, headers, cookies, and so on. GetParameter () method to obtain the client request
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
Recently, I was working on a small e-newspaper system and defined a String articleTitle variable. jsp jumps to result. jsp reads the variable normally, and then the result. jsp jumps to its own reading is not normal, delayed for a long time, and
Today, when using Struts2, the running always prompts There is no Action mapped for namespace/and action name.According to the prompt, it can be determined that such action does not exist in the namespace.However, the configuration is correct after
There are several ways to read the online:1. Add this code to the HEAD area on your table list page:2Generate a token and save it in the user session. Add a hidden domain in the form to displayThe value of the card. After the form is submitted, a
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 //
[1] [2] [3] 4 [5] [6] [7] [8] [9] Total number of curPage pages on the current page pageCount display Number of labels showCount = 9 start = curPage-4> = 1? CurPage-4: 1 end = curPage + 4 I 1? CurPage-4: 1; long end = curPage + 4 $ {para} "> []
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.
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.