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 for everyone to introduce the use of AJAX Dynamic transfer JSP page, JS Jax writing, using ID to identify the delivery of objectsAjax Dynamic Delivery page, JS Ajax writing, using ID to identify the delivery object For example: Now
Generate 4 random numbers and clutter background pictures, the number and background color will change, server-side refresh (with History.go (-1) will also change)
Prototype reference Alibaba Http://china.alibaba.com/member/showimage
The file that
myeclipse Set JSP page default encoding method:
Windows (window)-preferences (Preferences)-myeclipse-files & editors-jsp-Right encoding: set to Iso10646/unicode (UTF-8)
MyEclipse Set the author, date, and so on in the Java file:Windows
JS often see JSP beginners ask Tomcat How to configure the JSP, servlet and bean issues, and then summed up how Tomcat configuration jsp, servlet and Ben, want to help those beginners.
I. Development environment Configuration
Step one: Download J2
The first step: we will do some preparatory work-software download and installation:
JDK is 1.4 download: http://java.sun.com/j2se/1.4/index.html
All is the default installation method (tips best to set the JDK directory into a simple situation such
js| Program | random
Color getrandcolor (int fc,int BC) {//random color for a given rangeRandom Random = new Random ();if (fc>255) fc=255;if (bc>255) bc=255;int R=fc+random.nextint (BC-FC);int G=fc+random.nextint (BC-FC);int B=fc+random.nextint
js| Beginner | Process A JSP beginner's learning process (vii)
Theunforgiven
Seventh chapter Ultra-long text operation--CLOB type data access
Back to the time I wrote the message board, when to store the text of the message board, found that
js| Program | Programmer This is from the Internet to see the article, feel good, and you share.
Author: unknown
See a lot of problems on the Internet is about how to learn JSP, just on the internet to see an article on the study of JSP, picked a
js| function
Beginners JSP, wrote a number of tool functions because it is not very good to use the regular expression in Java can only be so written! Send out to let everyone criticize and criticize and make some comments! There are a few functions
For many years do not engage in Java Web Development, these days is the national Day holiday, relaxation is also interested in looking back to Java Web Development Technology Foundation.As we all know, servlet is an important foundation of Java Web
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
Recently found that many users like the Tomcat work directory in the things called cache, in fact, it is not very appropriate, working directory is only Tomcat directory, that is, Tomcat to convert the JSP to a class file working directory, That's
Viewer tag
The viewer tag is the main tag for instantiating the DHTML report page viewer. It creates a DHTML report page viewer and allows you to set attributes through supported features.
Each instance marked by viewer requires a report tag to
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
Although
Although the session mechanism has been adopted in Web applications for a long time, many people still do not know the nature of the session mechanism, and even cannot correctly apply this technology. This article details
The session
SummaryIn a password-protected Web application, it is not only necessary to call the invalidate () method of HttpSession to correctly handle the user exit process. Now most browsers have buttons for moving back and forward, allowing users to move
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