Now have a lot of novice JSP users will often ask the database how to connect ah, how old mistakes ah? So I concentrated in this write an article for your reference, in fact, this database logic all put in the JSP may not be a good practice, but is
This article illustrates a simple blog system based on Jsp+servlet implementation. Share to everyone for your reference. Specifically as follows:
There are no small blogs written with frames, and the code is massively repetitive.
Personal feeling
After the installation, we'll discuss the syntax of the JSP. If you're lazy, you can download the grammar card and if you're unfamiliar with Java programming, you might want to refer to the Sun's manual; However, the site creator should not do much
js|web| Program
Label processor
The traditional label processing API in JSP 1.2 is complicated by allowing the tag body to contain scriptlet, but now it is possible to write a JSP Web page that contains no scriptlet by using an expression language.
js| Tutorial
//----------------------------------------------------------------------------------------------
Internal objects
Out (various data types are exported to the client)
Important Method:
Out.print (type) or Out.println (type): NewLine
js| notes
The 1.JSP Tag library (also called a custom library) can be viewed as a set of methods that generate xml-based scripts, which are supported by JavaBeans. Conceptually, a tag library is a very simple and reusable code construct. It can
javascript|js| Navigation
Turn from:http://java.mblogger.cn/zhipingch/posts/15336.aspxSimilar to the MSDN CSDN navigation tree effect, JSP + JavaScript implementation!
New Document Java.lang.Class.forName
js| Solution | data | database | problem | show | Chinese
These two days by the title of the problem entangled, and finally solved the
The problems encountered at that time were as follows:
Sybase running on UNIX, code unknown, JSP page display
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,
Adduser.java file
Note: The main user data read and add operations, derived from the DB, Addnewuser method used to add user data, CheckUser () method to check the user name is duplicated, there are some set/get methods used to deal with the
EL (Expression Language)User user= (user) Session.getattribute ("User");Dept dept=user.getdept ();String Departname=dept.getdname ();%>EL:${sessionscope.user.dept.departname}=${sessionscope.user.dept["Departname"]}//. Same as [], but [] can be set
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
First, simple label (SIMPLETAG)As the traditional label using three label interface to complete different functions, appear too cumbersome, not conducive to the promotion of label technology, sun Company to reduce the learning difficulty of the
1. built-in JSP objects
JSP has nine built-in objects: request, response, session, out, page, application, exception, pagecontext, config1.1 request
The request information of the client is encapsulated in the request object, which can be used to
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
Solve Chinese garbled characters
Author: Source:Access times: Join time:
I recently saw N people asking Chinese questions on this site to help you solve them. The solution to the Chinese problem
Java Servlet and Its Features
Servlet is the answer of Java technology to CGI programming. Servlet programs run on the server to dynamically generate Web pages. Compared with traditional CGI and many other CGI-like technologies, Java Servlet is more
In this example, Access is used as an instance, and there are still many improvements.Please improve yourselfPackage product;Import java. SQL .*;Public class ConnectDB {String strDBDriver = "sun. jdbc. odbc. JdbcOdbcDriver ";String strConnstr =
Download fckeditor from the official website. Note that there are two packages: the main file and the jsp integration package.1. Decompress fckeditor_2.2.zip (main file of FCKeditor) and copy the FCKeditor directory to the root directory of the
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