Today I wrote a module to dynamically manage the drop-down menu function.
The JavaBean technology is used when adding implementations.
It was used in the past, but there was no problem with it. Today it is not easy to use.
Later, I
Normally, it is easy to reset and submit forms with icons.
yes, but does not have the name attribute in the original label, so the above JS cannot be called.
the name attribute is automatically assigned. This value is related to the form
JSP enterprise interview questions (1)The three-tier architecture is illustrated, and its features are described. How to implement it and what functions are implemented at each layer? (Enterprise pen exam)
In two-tier applications, the application
1. Page Object
The page object represents the JSP itself. More accurately, it represents the servlet after JSP is translated. It can call the methods defined by the servlet class.
Ii. config object
The Config object stores some initial servlet
Java Server Page (JSP) is becoming increasingly popular as a technology for creating dynamic web pages. JSP is not the same as ASP, PHP, and working mechanism. Generally, JSP pages are compiled rather than interpreted during execution. Calling the
/** This is the class used to manage user information.
Onlineuser. Java*/
Import javax. servlet. http .*;Import javax. servlet .*;Import java. util .*;
Public class onlineuser implements httpsessionbindinglistener {Public onlineuser (){}
Private
Here is an example:
Runtime runtime = runtime. getruntime ();
Process = NULL;
String line = NULL;
Inputstream is = NULL;
Inputstreamreader ISR = NULL;
Bufferedreader BR = NULL;
String IP = "add the IP address you want to ping here ";
//
Sometimes, we have a lot of repeated code in the script code on multiple JSP pages, so we will think about how to reuse them. When using it, we need to pay attention to several issues:For example, there are two files: toolbar. js and Main.
Previously, using the SSH framework, the queried data is always stored in the session or request in the action, and then transmitted to the foreground for display; but then I saw some code declare a list or other member variables in the action, and
Currently, WebLogic 9.2 is used.
Every time the JSP file is changed, WebLogic needs to be restarted, and the server is always restarted, making everyone very hurt.
Finally, we found a solution.
Take my current environment as an example:
OS:
Many application presentation layers use JSP and Servlet. This article discusses how to improve the performance of such applications through coding best practices and deployment process configuration.
Recommended best coding practices
This section
// Sometimes the user wants to download the file, but the file type is associated with the browser in the system, and the result is opened in IE.
// Common examples include Word, Excel, and PDF. Therefore, converting a file into a data stream allows
From: http://hi.baidu.com/itfuck_/item/803662469cdf7baa61d7b945
1:
Import java. util .*;
Int y, M, D, H, mm;Calendar c = calendar. getinstance ();Y = C. Get (calendar. year); // yearM = C. Get (calendar. month) + 1; // monthD = C. Get (calendar. day_
After you log on to the system, you need to provide literature search, that is, directly go to the nutch search interface, and then connect to the page. One is personal space management, and the other is global document analysis, so how can we
After modifying the JSP page, you can package and deploy the page to Tomcat.
One of them is, of course, the index path of the search.
Nutch-site.xml
searcher. dir
F:/nutch/test
The other part is
Nutch-default.xml
plugin. Folders
is used to upload values to the action when you select the drop-down menu. How can this happen? After thinking for a long time, the results are searched on Google; they all say that the encoding method is not converted. At this time, I am very happy.
When you use struts 2 tags, if you use the code:
"/>
Or
The following errors will occur:
According to TLD or attribute directive in Tag file, attribute value does not accept any expressions
However, you must use:
Yes
This may be because you have
This is a stupid method .. I Know That tomcat has a way to get the system session .. however, I cannot obtain the related classes with my abilities... if some experts see this .... tell me what you know ....
Countonlineuser. Java/*Power by 24
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