A site created by JSP can obtain some information only after logon. Generally, websites, ASP, and aspx maintain the logon status through cookies or sessions (marked by cookies, therefore, access the logon page to obtain the cookie, and then attach
JSP to obtain the corresponding server variables (including the variables in the HTTP header:
SERVER_NAME request. getservername ();
Server_software request. getservletcontext (). getserverinfo ();
Server_protocol request. getprotocol
Suggestions for new users to improve JSP technical capabilities
1. How to quickly improve your technical capabilities
Create a project. The assumption is also true.
For example, you want to create a forum, such as csdn. You may encounter many
Disable eclipse before making any changes.
Find the JAR file in the eclipse installation directory:
Myeclipse 7.0 m2 \ eclipse \ plugins \ com. genuitec. Eclipse. wizards_6.9.200.zmyeclipse69200200809.jar
Open the jar using WinRAR:
Drag \
First, let's look at the directory structure.
-- + Login---------- + WEB-INF----------------------- + Classes-Beans-Tags----------- + TLDsLogin is the JSP file in the main directory. In the example login. jsp, loginfailed. jsp, login_form.jsp,
This document briefly introduces Java Bean. It mainly includes:
1. Java Bean Lifecycle
2. Common JSP labels of Java Bean
3. Simple Java Bean demo
1. Java Bean Lifecycle
Page, for a specific web page, each web page browsing is a new
As we all know, "/" indicates the root directory, but it is "/" in Servlet and JSP, But it points to different locations. Now let's assume that my applicationProgramThe name is MyApp. The MyApp directory contains files a. jsp and B. jsp. To switch
1. Static Page garbledThe file encoding is inconsistent with the encoding to be displayed in the browser.1) Check the original file encoding. open the file in notepad and save it as a file;2) Add a command to the current page to recommend that the
1 // First: include command: When JSP is converted to servlet, the specified file 2 3 4 5 // Type 2: action element: Introduce the specified file when the JSP page is requested 6 7 8 9 10 11 12 // The second method can
Separation of HTML and JSP developmentDate: 2003-10-15 17:28:16Source: dynamic website creation GuideAuthor: sayyes
In the traditional JSPProgram.CodeIt is convenient to write code
When we do the verification code, it is often due to anti-cheating. Sometimes the verification is intentionally added to many interference factors. At this time, the verification code is not clearly displayed and users often enter errors. In this
I recently tested WebService. I used myeclipse5.1.1 to create a WebService named "user" and added two methods to the service.
Public String example (string message ){Return message;}
Public String [] usercheck (string username, string password
Use the smartupload component in JSP to upload a file --
JSP's support for file uploading is not as good as PHP's support. It is directly implemented as a function, not as it can be implemented through components in ASP. JSPs can be implemented
Visifire statistical charts have been introduced in previous articles. Visifire can be embedded in pages such as Asp, Asp.net, Php, and Jsp, however, when using Visifire on these pages, splicing xmal strings in javascript or server code is
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.