Analysis of the Client identity authentication example program, explained to the digest certification, incidentally mentioned Sslserversocket, require students to be able to sslserversocket through the creation process to explain the factory model
To better understand the Authenticateservlet servlet, it is important to understand that the processing code for two requests is placed in this service method, and each request executes a section of the code, quite if. else ... of the situation.
It then explains how various form fields pass parameters to the Web server and how they apply to the actual project. list box to have no option: Ctrl can also give up the choice, but you can't expect users to do this.
Example of a hidden field: When paging a query, only the start and end times are available in the form, and the current page number needs to be passed as a hidden field. The email in the step of the Registration wizard hides the field on the second page.
How to prevent forms from repeating submissions
Google and Baidu search when the HTTP request method why is get?
The application of GetParameter and Getparametervalues methods in practical projects.
GetParameter cannot remove Multipart/form-data form information, you can use the decorator design pattern to solve the problem.
Decorator design mode, has been explained many times before, to FileWrapper as an example, to have the original file function, but also on this basis to increase the acquisition of father, judge whether they are youngest function, so, think of the decorator design mode.
A practical case for handling multiple list items at once and explanation of the coding tips
Explains how to get the entity content of the request message, the data structure in the Multipart/form-data format, the test of the students ' basic coding ability:
For such a string of symbols: "----XXX----BBBBBB----CCCCC----", where each part is separated by "----", extract and print out each piece of content, The String.IndexOf and String.substring methods are required to pay attention to the significance of the two parameters of the String.substring method.
String src = "----AA----BBB----CCCC----"
String splitter = "----";
int endindex = 0;
int startIndex = Src.indexof (splitter)
while (StartIndex!=-1)
{
Endindex = Src.indexof (Splitter,startindex + splitter.length ());
if (Endindex!=-1)
{
System.out.println (
Src.substring (StartIndex + splitter.length (), endindex));
StartIndex = Endindex;
}
Else
{
Break
}
StartIndex = Endindex;
}
Use the following code to explain
E = V.enumate ();
while (E.hasmoreelements ())
{
E.nextelement ();
}
Think of me years ago. A practical problem in Paging Encoder project: There is a ring-type queue, a line Cheng data, another thread to take the data, you can decorate this as an exercise for everyone to do, with keyboard input to simulate data into, using a timer to simulate data.