The review of Jsp/servlet technology is as follows
1. Requestdispatcher.forward ()
is on the server side, when using forward (), the Servlet engine passes HTTP requests from the current servlet or JSP to another servlet,jsp or normal HTML file, or
Now whether it is a blog forum or corporate office, can not be separated from the sharing of resources. Through the way of file upload, and share with you, so as to achieve a wide range of communication and communication between the masses, we can
Button type:LINK Type: Back to the previous step " > Back to Previous step Direct Jump Type:Open a new window: The days on the cloud JSP Jump WayThere are approximately three ways to jump using JSPs:1. Response.sendredirect ();2. Response.setheader (
Method-Set the Get and set methods directly on the action, and then use the iterator iteration output in the JSP page, but be sure to pay attention to the format. This is the format that I've been doing all afternoon.
/ Use tags ${id.name}//use El
1. Simple Label Introduction
Because the traditional label uses three label interface to complete the different function, appears too cumbersome, is not advantageous to the label technology promotion, the sun Company to reduce the label technology
One, expression language: Expression Language the concise way to generate dynamic content.
The most important two features of 1,jsp2.0: JSP syntax defines custom tags and expression languages.
2, to compute and output values for Java objects stored
The first time a JSP page is requested, the JSP page is compiled into a Java file,
This requires an option to be configured in Weblogic.xml:
keepgeneratedtrue-1true/
The generated files are placed in the
The JSP page uses the URL encoding to pass the Chinese parameter, in the parameter parsing process will appear garbled. Because Java is designed to take into account the internationalization of the problem, when the Java source code compiled into
One, Page object
The Page object represents the JSP itself, or rather, it represents the JSP-translated servlet, which can invoke the method defined by the Servlet class.
Two, config object
The Config object holds some of the servlet's initial data
These two days in the development process encountered a strange problem: the same Web application, the same JSP in different operating systems to be handled through different processing to solve the garbled problem.
The default encoding for JSP
1. Direct Output Table format
Support project Name: funded project name Serial number: Serial number Support number: Funding number
Note: garbled problem, page Save as Utf-8 format
Encoding format conversion
String s= "";
S=new String
Recently, a project in my need to use a date plugin to show the time, online search, and finally decided to use My97datepicker, color good-looking, layout is also very reasonable, but the use of the time encountered many problems, the biggest
/*********** I original, welcome reprint, Reprint please keep my information *************/Author: wallimnEmail: wallimn@sohu.comBlog: http://blog.csdn.net/wallimnTime: 2006-11-15/*********** I original, welcome reprint, Reprint please keep my
In JSP programming, sometimes need to involve scanner read control and so on, almost no solution to this kind of problem before, now can be implemented by the way of using Scanonweb control.
First download the Scanonweb control, download the
Iv. Write labels with label bodies
Need to return to Tagsupport.eval_body_include, you can enter the label body;
Attributetag.java
Package org.tagext;
Import javax.servlet.jsp.tagext.*;
Import javax.servlet.jsp.*;
public class Attributetag
Search the Internet a lot of information, finally found a way to understand.
Because Tomcat is ISO8859-1 encoded by default. So he changed him into a GB2312 in the web.xml.
In the JSP, you need to put the charset=gb2312
Like what:
See a lot of online paging function realization, some feel too messy, some really do not understand, may be their own knowledge is not enough.
According to their knowledge, packaging pagination method, in the interface to achieve, for everyone to
1. Use the Label control page logic case: Simulate the development of the tags-development tags-development tags-development of iterative tag development tag Case: Tag control class: P
Ackage Com.csdn.web.example;
Import
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.