Looking for a long time finally found a JSP can be used ... Share!!
Copy Code code as follows:
pageencoding= "UTF-8"%>
"
Management Area
cellspacing= "1" class= "Table_style" >
Product Picture:
1. In the site (My site is: E:\javatest) under the establishment of the folder "Accessdb" and under the folder to establish a database "Test.mdb" and the Table "Stu", Stu Field Id,stuname test.mdb the path is: e:\ Under Javatest\accessdb
The
My environment is Win2003+jdk+tomcat, the version is as follows
Jdk:jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe
Tomcat:apache-tomcat-6.0.35.exe
I only need these 2 software can, do not have to create environment variables or anything, I have
1, the problem leads to:
We often need to use Ajax in JS to send the request in the background, before we need to collect the required form form parameters, I often this solution, simple and convenient:
Editbasicdataobjectform is the form of the
As long as in the JSP page if the following code on the line
=0 && new Date (). GetHours ()
Good Morning
Good afternoon
application Example:
Time Type: =0 && new Date (). GetHours ()
Data: [{
' label ': ' Morning ', '
value ': 1,
'
JSP programming in the Web page appears garbled, the basic can be grouped into 5 categories:
1. JSP page display garbled.
2. When the servlet receives the parameters passed by Form/request, it is displayed as garbled
3. JSP to receive
The Jstl and El expressions are often used when doing projects, sometimes we need to look at the source code generated by the page, but when the JSP is full of jstl of the various tags, the page will have a lot of blank parts, sometimes too much
What is included:
In the development of the page, some code will inevitably have repeated use of the situation, such as a page has a section of code a,b page and C page can use a this code, then the B and C pages include a page, the natural A This
This content is also prepared according to the requirements of the business students. In fact, this small project is just graduated from the time to do, many times we want to perform the following sql/hql and then get an HTML table output:
Input:
On the server side to determine whether the form is repeated, the main consideration in the page through the session to share the flag variable method to achieve, that is, in the client page set session in the flag variable, and then in the server
Create cookies with JSP
What is a cookie?
As you know, the browser communicates with the Web server using the HTTP protocol, and when a user makes a page request, the WEB server simply responds, and then closes the connection to the user. So when
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,
Environment:
1. Database: Microsoft SQL Server 2000
2. Database driver: Net.sourceforge.jtds.jdbc.Driver
JNDI (Java naming and Directory Interface) Overview:
TOMCAT4 (5) provides a Jndi--initialcontext implementation instance that is compatible
Create a more complex directory hierarchy under the root directory. Simple applications can simply be placed in the root directory by these files.
The/web-inf/web.xml:web.xml file is used to configure the Web program, which is called the Web
The development of Jsp+javabean two-storey structure should be more familiar and better understood.
But one thing must be clear is the user through the browser to send a Web page request, the request to the server after the server to find the
Application is an instance of the Javax.servlet.ServletContext interface, which actually represents the context of the entire servlet.
Common methods for application objects:
The above method is application, of course, in addition to the above
File operation is one of the important content of Web programming, ASP on file operation has been discussed a lot, let's see how JSP is implemented.
Here used two files, a JSP file a JavaBean file, through the JSP call JavaBean can easily write
"> my JSP ' index.jsp ' starting page --> eleven --%> If target= "person", as below, will report title exception!"The normal wording is as follows:"Javax.servlet.ServletException:javax.servlet.jsp.JspTagException:Invalid
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