Handling the problem description: Now I have a javaweb project, I need to click Help on the portal to open the "aid. chm" file;
Current search Baidu does not have similar cases, they think of a way, through the JSP implementation:
JSP main
The former is the instruction element and the latter is the behavioral element. Where exactly will they be used? How to use and what is the difference between them? This should be a problem that many people will think of when they see it. Let's take
Source code, a.jsp to b.jsp value:
a.jsp Page Content:
name:
b.jsp Page Content:
String name=request.getParameter("name");%>
Phenomenon: Chinese garbled, such as "?????? ”
The workaround is as follows:
Method One:
1. In b.jsp, replace
The Js|servlet JSP action controls the behavior of the servlet engine using markup from the XML syntax format. Using JSP actions, you can dynamically insert files, reuse JavaBean components, redirect users to another page, and generate HTML code for
js| data
There are a lot of things to deal with from JSP to servlet or action: Data validation includes JavaScript validation of JSP pages and server-side validation, processing of file uploads, file upload size control, prevention of two
javascript|js|xml| objects
The XMLHTTP object can be used to pass parameters without refreshing the page, as a way for JavaScript to pass parameters to the JSP.
Here's an example of JavaScript passing parameters to a JSP:
xmlhttp.jsp
nOut.println
Js
SummaryThere is a mechanism in JSP that allows you to insert markup similar to HTML in a JSP page. This article describes the basic concepts and composition of JSP custom tags, and how to develop and apply JSP custom tags.
Key wordsJSP,XML,TLD,
js| Server | data | Database This setting is used for practice, very simple and convenient.
The database server is the MSSQL server personal. Ann installation by default.
JDK is version 1.4, download page:
JS based on JDBC What are the database common access methods?
1. Common Database Bean Design
In this example, the database connection and the execution of SQL statements and other common database operations are encapsulated, through the
By double-clicking the JSP icon, file->new...->web-> The Create JSP Wizard dialog box, as shown in Figure 3 below:· Web module: If there is more than one Web module in a project, you can specify the Web modules to which the JSP will join, because
1. Find the binary data of the picture from the database, set the found data into the sessionRequest.getsession (). SetAttribute ("img", binary data of the picture);2. Write the data into the stream1 PackageCn.jbit.auction.web.servlet;2 3
Image watermark is not only the watermark text can also be a picture, this time to achieve a watermark image watermark picture, after the need to use a code batch processing their own pictures.
everybody look first .Code Writing1. Import the
the so-called attribute range is the range of save that can be accessed after a property is set, after how many other pages are still accessible. One, JSP attribute scopeThere are four attribute ranges available in the JSP, and four attribute ranges
Configuration scheme of JSP running environment in Windows
Preparations before Configuration:Software Name:J2sdkInstallation Package Name:J2sdk-1_4_2-windows-i586.exe:Http://java.sun.com/Software Name:Jakarta-TomcatInstallation Package
1 Servlet1. servlet and servletconfig: the former corresponds to a servlet class, and the latter corresponds to the configuration information in Web. xml.(1) servlet:Init (servletconfig): it is called only once after the class is loaded and
I. Basic concepts:
**************************************** **************************************** *****
1. Tag ):
A tag is an XML element. A tag can simplify and maintain a JSP webpage, and supports multiple language versions for the same JSP
Learning process of a Jsp beginner (8)TheUnforgivenChapter 8 operations on image files-accessing and using the first Servlet of Blob dataI found some information on the Internet and adapted the following code based on my requirements:----------------
Jsp + JavaBean step-by-step tutorial (1)--------------------------------------------------------------------------------Jsp + JavaBean step-by-step tutorial (1)(Text/Liu Yufeng)Currently, Jsp is widely used as a good dynamic website development
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.