To connect to an Access database: "accesscon" value="provider= microsoft.jet.oledb.4.0";D ata source=| Datadirectory|db_access.mdb"/>string con_access= configurationmanager.appsettings["accesscon"]. ToString ();Connect to SQL Server "sqlcon"
Here is a preliminary design with PowerDesigner, which may be modified later.1. Start PowerDesigner New physical data model2. Tool bar3. New Table Model4, add the first table, you can double-click the table or the right-click menu to open the
--Backing up the database
Backup database db_csmanage to disk=' C:\backup.bak '
--To restore the database, you must first back up the log file of the database to the original backup file
Backup LOG db_csmanage to disk=' C:\backup.bak '
Detailed description of the implementation of ajax login instance by struts2 + jquery, struts2jquery
The following is an example of how struts2 + jquery implements ajax login:
1. Create a web project named test. Configure the struts2 environment and
The difference between the Compilation instruction and action instruction in JSP is two points:
Differences between the Compilation instruction and action instruction in JSP
1. The compile command notifies the Servlet engine to process messages,
Today, there is a problem in the project that two js pages need to share one. js object. Neither js global variables nor static variables can be forced by other hard-pressed small farmers. LZ does not want to store cookies. One is insecure and the
The teacher said that he would write a blog, and then he could only pull the blog that has not been moved for many years. Today, I will share the countdown in JSP and the automatic jump page.
Crazy, then the code was too difficult to complete, and
WebjxCom prompt: the jsp file contains the following sentence: $ {buildingList [0]! = Null? When buildingList [0]. distance: ''} runs in tomcat 6, the following error is returned:
The jsp file has the following sentence: $
Cookie should be a technology that has been used for a long time. As early as the advent of HTML, there was no way to record and identify different users between each independent page. Later, people invented the Cookie technology. When a user
1. Create a helper class to implement the Tag function. The function is to change the color of the subject text. This class can inherit from TagSupport or BodyTagSupport. The difference between the two is that the former applies to labels without a
Jquery sets the selected asp: CheckBoxList value based on the value returned by the interface, jquerycheckboxlist
Interface returns a json value, and then selects the corresponding value of asp: CheckBoxList through jquery
The code
Window. top [_ CACHE] enables multiple jsp pages to share one js object, window. top_cache
Today, there is a problem in the project that two js pages need to share one. js object. Neither js global variables nor static variables can be forced by
Methods for passing parameter garbled characters in Jsp page URLs
Garbled characters may occur when parameters are passed in the URL on the Jsp page.
The solution is as follows:
1. Use the method to change Tomcat. This method is simple, but it must
Jsp param action tag
The param TAG provides additional messages for other tags in the form of "name-value" pairs. This tag is used together with jsp: include, jsp: forward, and jsp: plugin labels.
Param action label
When this label is used
Common seven action commands in JSP
Common seven action commands in JSP
1. jsp: forward Command
Execute page redirection and forward request processing to the next page
2. jsp: param command
Used to PASS Parameters
3. jsp: include command
Detailed steps for setting up the latest simple and practical JSP dynamic website environment are as follows:
Content tip: the JSP (Java Server Pages) introduced by Sun is a dynamic web page development technology executed on the Server, which is
Jsp Syntax:
Jsp command element
(1) include: import other folders
(2) page:
Language: The language used. It can only be JAVA
ContentType: MIME type
Import: import a java package
(3) taglib: custom tag Library
Common standard elements of jsp
(1) jsp:
Method 1: cache data in the servlet init () method
After the application server initializes the servlet instance and provides services for client requests, it will call the init () method of the servlet. In the lifecycle of a servlet, The init ()
To determine whether a form is submitted repeatedly on the server side, you can use the Session sharing variable method between pages to set the flag variable in the Session on the client page, then, judge the flag variable in the Session in 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