Problem description:
size = "12" maxlength = "12"/>
As shown above, input obtains the data of the database bean through the value attribute.
This is not the case when it is changed to textarea. (Of course, you can print the data in the database
The static interface design is login.htm. The Code is as follows:
system logon system Logon User name password & nbsp; code & nbsp; Submit the information entered by the login user to login. jsp (preferred for SUN Enterprise
Jsp (the preferred choice for SUN Enterprise Applications) uses jsp (the preferred choice for SUN Enterprise Applications) forward Action to redirect pages. Syntax:
% >}"/> Or
% >}">
Value = "{parameterValue | }"/> +
Jsp (the first choice for SUN enterprise-level applications) We have been learning it 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, the pet
Since both languages are used, we have to compare them. Let's first look at JAVA Implementation and then PHP, of course, there are many implementation methods, especially JAVA, for the implementation of the same function is definitely much more than
1. include commandInclude can insert the JSP code into the JSP code before converting the JSP page to the Servlet. Its main advantage is its powerful functionality. The included code can contain JSP structures that affect the home page in general,
For details about how to use the jsp image Verification Code under Struts, refer to another article html "> jsp image verification code. The principle is to generate a four-digit Verification Code randomly, write it into the Session, and generate an
1. During js programming, a space is left before and after keywords and parentheses to improve program readability.
Function x () {...}. After JavaScript code is compressed, spaces are removed, mainly to improve readability.
2. When multiple
Solutions for Chinese in JSP:After adding the following sentence, China Mobile can directly write Chinese characters on the page, without conversion. The submitted Chinese characters are directly obtained by request. getParameter (""), without
Framework mainly involves technologies: Spring + Struts2 + Hibernate + Freemarker
Let's take a look at the working principle of Struts2, so that we can easily consider the expansion points when designing the development
Introduce CKEditor to the page:1. 2. Add class = "ckeditor" to the "content" textarea tag"
After the introduction, you can use CKEditor to edit the content of the text box, for example:
, TextArea has become a visual editing areaAfter editing the
I recently encountered some problems when I used jsp to output map data.
The result is that I didn't set the get Method for map in ation (all I have is the ssh framework)
Assume that there is a map variable in the action, and the key-value pair is a
1. struts2 type conversion, for 8 element data types and java. util. for common data such as Date and String, struts2 can use the built-in type converter for automatic conversion. However, for custom object types, We need to specify the type
Source of Request Parameters
1. query string of the request URL, such as/localhost/abc/test? Abc = ddd & bbb = ccc, the string following the question mark2. For a POST request, if Content-Type = "application/x-www-form-urlencoded", the parameter
Although our demo was successful, you also learned how to define the exception handling page (for example, your ExceptionHandler. jsp (the preferred choice for SUN Enterprise Applications) is on the general jsp (the preferred choice for SUN
Jsp (preferred for SUN Enterprise Applications) 2.0Tag learning notes1.Description
This document is for learningTomcat (a very useful JSP running platform)The note in the example in does not refer to the relevant instructions, so the correctness of
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.