How to Protect Your JSP page

To better protect your JSP against unauthorized access and peeping, a good way is to store the page file under the WEB-INF directory of the Web application. Generally, JSP developers store their page files in the corresponding subdirectories of the

Solve JSP Chinese garbled characters

1. parameter transmission garbled characters 1. Parameter garbled characters passed in post mode: Add a filter or request. setcharacterencoding ("UTF-8 "); 2. parameters transmitted in URI or get are garbled: Modify tomcat/config/server. xml

The fh_1excel report is imported and displayed on the JSP page. incorrect data is generated after manual judgment. pdf document

User Requirements: There is an Excel table. Now you want to import the data in the Excel table to the system and display it on different JSP pages. Then, the owners of different pages review whether the content on the page is qualified. After

JSP learning Summary

I am bored with my recent internship. I started to learn J2EE and started to learn from Servlet/JSP. Here I am writing my own learning remarks. Java Web application development is very simple. Generally, the architecture is: Small Web applications

JSP path Summary

To reference the path of the current folder, I searched for a lot of information about the JSP path on the Internet and listed it one by one for reference: The absolute path of the Directory, to the root directory folder of the Directory, such as

JSP built-in 9 object learning Summary (1)

JSP has nine built-in objects: request, response, session, application, out, pagecontext, config, page, and exception. These objects are implemented and managed by system containers and can be directly used on the JSP page without being defined.I.

The JSP page cannot obtain the value saved by the session in the servlet.

Login. jspCode: String [] userinfo = {"",""}; Cookie [] cookie = request. getcookies (); If (cookie! = NULL ){ For (INT I = 0; I If (cookie [I]. getname (). Equals ("logininfo ")){ Userinfo = cookie [I]. getvalue (). Split ("#"); } } }

JSP Day 1

JSP: Java Server PagesRun on the server page developed in Java HTML + JavaScript --- the page running on the client Client ---- HTML ----> servlet ---> Dao ---> DB Advantages and disadvantages of servlet:Process business logicDisplay page out.

Convert JSP to Java

When testing the JSP program today, I want to see what the Java code translated by the server into JSP looks like. So I searched in the glassfish directory and found the translated Java code as follows: Package org. Apache. jsp; Import javax.

Use JSP to print Word and Excel reports (2)

Use JSP to print Word and Excel reports (2)[Date:] Source: http://www.gs008.com/blog/blogview.asp? Logid = 325 Because documents in MS Word and Excel support HTML text format, you can use Word or Excel to make a template, save it as a Web page,

How to view the JSP page name by right-clicking the source code

Add to in the HTML or JSP file.Then we can right-click the application and choose "view source code" to find the page name. Example:

[JSP tag library]. TLD file configuration

tld

1.0 CC http://www.baidu.com/xinqing helloworld mytag. hellotag Empty

JSP built-in Object Description

JSP provides some built-in objects to simplify page development. These built-in objects do not need to be instantiated and are implemented and managed by containers. 1. Out object: It mainly outputs data to the client 2. Request object: requests

Interesting JSP testing-do you have confidence in your app server?

Testoutofmemory Save the above Code to JSP and publish it to Tomcat, resin, WebLogic, and websphere. What are the results of experiment access to JSP? The answer is:       All servers except resin will shut down. Why doesn't resin? In fact,

The actual test of code that jsp can really disable browser cache is effective.

This problem has plagued me for a long time. The previous method was to use JS, And now I finally found a solution: Popular online versions: response.setHeader("Pragma", "No-cache"); response.setHeader("Cache-Control", "no-cache");

JSP web page problems in multi-language versions

When Using JSP in multiple languages (Chinese, Japanese, and English supported), I use editplus Replace Then an error is reported during running: Java. Io. charconversionexception: Illegal utf8 Encoding At first I thought the UTF-8 was

A download. jsp file (using the file stream read/write mode. This prevents garbled characters when files such as Doc. excl are opened)

Java. Io. bufferedinputstream Bis = NULL;Java. Io. bufferedoutputstream Bos = NULL;Try {String filename = request. getparameter ("FILENAME ");Response. setcontenttype ("application/X-msdownload ");Response. setheader ("content-disposition",

Use JSP: forward in struts2

Step 1: Modify in Web. xml: struts2 /* request forward Step 2: Modify or add in Web. xml index. JSP Step 3: First jump statement: The content in index. jsp is as follows:

JSP page automatically refresh jump

To automatically refresh the JSP page for a period of time, use the following method:   Use the Meta Refresh tag for Refresh.Meta Tags are part of the section of the HTML document.Example:   After a period of time, the system automatically

Request object in jsp

The request object has completed the httpservletrequest interface, deciding that it can obtain Users' Request Parameters, obtain cookies, obtain HTTP request headers, and obtain users' IP addresses. The first essentials of the request object

Total Pages: 280 1 .... 187 188 189 190 191 .... 280 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.