Analysis of jsp standard tag Library

1. Introduction to JSTL Introduction: in JSP and javaBean, when we use loops on the Web page or use object methods to connect to the database, we need to use jsp script elements inevitably, there is a lot of java code embedded in it. Now developers

Difference between forward and sendRedirect for pages in jsp

Page jumps can be achieved in two ways: forward and sendRedirect.Forward: it can be used in JSP pages and implemented in Servlet.Use On the jsp page. For example, to jump to userlist. jsp, you can write:Copy codeThe Code is as follows: Use the

Solution to the Problem of too long jsp display text

Copy codeThe Code is as follows: title: 70} ">$ {fn: substring (schedule. content eq null? 'None': schedule. content, 0, 70)}... $ {Schedule. content null? 'None': schedule. content} $ {Schedule. content eq null? 'None': schedule. content}

Configuration of JSP Servelet data source connection pool

1. Configure the Context. xml fileCopy codeThe Code is as follows:Name = "jdbc/books" // The reference name can be customized.Auth = "Container" // specify the Manager for DataSource ManagementType = "javax. SQL. DataSource" // specify the package

AJAX self-learning exercise request and display

As follows:Request. jspCopy codeThe Code is as follows:PageEncoding = "ISO-8859-1" %> Insert title here City Code: City Name: Response. jspCopy codeThe Code is as follows:PageEncoding = "UTF-8" %>String code = request. getParameter ("q ");System.

Jsp form method example

1. Code:Copy codeThe Code is as follows:Document: indexCreated on:, 13:56:46Author: lucifer-- %> Onload = "giveFocus ()"> LOGIN Action = "http://wenda.tianya.cn/wenda/thread? Tid = 129583d1f709f89f ">& Lt; table width = "50%" & gt; User ID Password

SetProperty of JSP

1. Package:Copy codeThe Code is as follows:Package PaintBrush;/**** @ Author lucifer*/Public class PaintBrush {Private String curcolor = "red ";Public String getColor (){Return curcolor;}Public void setColor (String color ){Curcolor = color;}} 2.

JSP bean obtains various parameters

1. Package:Copy codeThe Code is as follows:Package beanpackage;/**** @ Author lucifer*/Public class SystemProperties {Public String getRuntimeEnvironmentVersion (){Return System. getProperty ("java. version ");}Public String

Analysis of security risks caused by sessionid in a URL

Figure:  It was cut out from the security report sent from the test group. The figure has some minor problems. I wanted to re-draw one and I didn't find a suitable picture in visio. So we can only use others' diagrams.   Note: Let's describe the

How to execute multiple SQL statements simultaneously in JSP

Copy codeThe Code is as follows:Con. setAutoCommit (true); // if it is set to true, executeUpdate is executed immediately.SQL = "insert into table1 (lable1) values ('001 ')";Rs = stmt.exe cuteUpdate (SQL );SQL = "insert into table2 (lable2) values ('

Jsp page display usage

Dynamically set read-only/read-write for a component on the pageDocument. getElementById ("custName"). readOnly = false;Document. getElementById ("custName"). readOnly = true;Dynamically hide/display a widget on the pageTdid. style. display = "block"

Process of permanent domain name change for jsp websites

1. Create a VM for the old domain name under tomcatThe homepage is index. jsp, And the 404 error page is unfind. jsp.301 redirection on the home page, facilitating Search Engine OptimizationResponse. setStatus (301 );Response. setHeader ("Location",

JSP static page generation practices and design ideas

Introduction:Let's compare two large websites:51job and Zhaopin (first, I declare that I am not making advertisements for them. I only use them as an example for technical comparison)51job uses a relatively "advanced" php technology, while Zhaopin

JSP connection to Access database

1. Create a database and ODBC Data Source1. Create a jcc. mdb database and user table2. Add Test Data3. Configure the ODBC Data Source2. Under /, create the Access database connection file Select. jsp.Select. jsp source code is as follows:Try {Class.

Implementation Code for automatic saving of ajax + jsp drafts

1. form part (index.html)The first step is to fill in the form page, use a DIV with the ID AutoSaveMsg to display the returned information, and use a CheckBox with the ID Draft_AutoSave to determine whether to save automatically, name the Textarea

FCKeditor usage (FCKeditor_2.6.3) page 1/2

1. DownloadOfficial download homepage: http://www.fckeditor.net/download/. fckeditor_2.6.3.zip is used.And FCKeditor-2.3 version2. DeploymentIn this example, WebRoot is used as the application root path. The directory structure after deployment is

Hibernate package Functions

Hibernate includes 23 jar packages, which are dazzling. This article will explain in detail the role of each jar package in Hibernate, so that you can choose based on your own needs in the application.Download Hibernate, for example, the stable

Chinese problems in Tomcat + Jsp Environment

Abstract: There have been a lot of discussions about the problems that Java applications have encountered in processing Chinese characters. Unlike most discussions, this article will discuss the problems in Java when processing Chinese characters

Summary of several methods for page Jump under jsp

1. RequestDispatcher. forward ()When forward () is used on the server, the Servlet engine transmits the HTTP request from the current Servlet or JSP to another Servlet, JSP, or common HTML file, that is, your form is submitted to. jsp, in. jsp uses

IIS6 + TOMCAT integration, practical instances!

Completed IIS6 and Tomcat integration. Now, I will post the steps for your reference, which frees you from getting involved on Google and debugging again and again. Start!First, describe my system. For Windows 2003 Server, the Chinese version + IIS6

Total Pages: 1800 1 .... 1024 1025 1026 1027 1028 .... 1800 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.