Some time ago I thought about how to learn things by myself. It was like a dog, a bear, and a corn. I learned one, lost one, But I still wrote a log and saved my footprints!
201012.17 started downloading tomcat6.0 and mysql5, and developed a
Import the custom class in JSP. the user is defined under the default package, as follows:
Then,
Run:
The import user cannot be resolved
Change the user class to the class in the Custom package as follows:
Com. Test. importclass.
In action:
Private list messagelist; // The get and set methods are omitted.
@ Action ("/findallmessageaop ")Public String findallmessageaop () throws exception {
Messagelist = messagemanager. queryall ();Return "find"; // jump to the corresponding
By chance, when you browse a website, the page is fresh and comfortable. Websites are developed using JSP. For my personal interests, I decided to test the security of my system.
Telnet www.target.com 8080
GET/maid HTTP/1.1
[Enter]
[Enter]
The
Part 2: About javamail
Document usage
The documentation in the downloaded javamail API is very useful. You can find it in/docs/javadocs/index.html under javamail. The second part mainly analyzes the mail program components. You can read the document
How can I allow the servlet to access the webpage or JSP file under Web-INF. in web-INF, the application server regards it as a forbidden directory, that is, it cannot be accessed directly in the browser.For some reasons, Servlet access is allowed,
I. Development Environment Configuration
Step 1: Download j2sdk and tomcat: To the sun official site (http://java.sun.com/j2se/1.4.2/download.html) download j2sdk, pay attention to download the version of Windows offline installation SDK, at the
I. source generation region exposure
1. adding a special tail signature causes the JSP source code to be exposed in JSP, which also has issues similar to ASP vulnerabilities, for example, IBM WebSphere Application Server 3.0.21, BEA Systems
If "relative path" is used in JSP, problems may occur.
Because the "relative path" in the webpage is relative to the "URL request address" to find resources.
What does the above sentence mean?For example:Assume that we have a project: MyAppUnder
FCKeditor controls please go to the official website to download some of the content in the http://www.fckeditor.net idea, readers can download.
1. Open the compressed package fckeditor_2.6.3.zip, copy the FCKeditor folder to the WEB-INF, which can
Yesterday, I spent more than two hours submitting JSP form data and saving it to the database with Chinese garbled characters. Today I finally solved the problem. Here are some operations to help you.
The main problem is coding. There are a lot of
1. garbled Chinese characters may occur when the request object processes get and post requests:Tomcat processes get and post requests in different ways.A POST request stores parameters in the message body of the request data packet.Therefore, you
JSP Execution Process
1. The client sends a request
2. The Web Container converts JSP into Servlet Source Code
3. The Web Container compiles the generated source code.
4. The Web container loads and executes the compiled code.
5. Return the
Cookie. jsp
cookie hello, visitors. Welcome to join us for the first time! enter the name: welcome to [ ! the registration time is:
Deal. jsp
used to write registration information to a cookie
Import copyright information copyright information import test
Copyright Information Page
copyright page sales hotline of the programming dictionary: 400-675-1000 URL: www.mingrisoft.com Copyright@www.mingrisoft.com
Conversion;
I encountered a problem with my colleagues and found it quite classic. Then I found this article and suddenly realized it.
Think of yourself as depressing. Dumb!
------------------------------------------------------------------
The
1. This is a game of guessing numbers. By using JSP to call JavaBean
2. Two files are required: Number. jsp and numberguessbean. java.
3. Check the number. JSP code first:
If (number. getnumguesses () = 0)
{
%>
welcome to the number guess
1. jsp is short for Java Server Pages.
2. Web applications developed using JSP are cross-platform.
3. JSP technology is an extension of Servlet technology. Servlet is a platform-independent Java Server Component of 100% pure Java.
4. The following
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.