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: jsp cannot submit content in nicEdit

In the google process, I saw this article ("NicEdit cannot get textarea value under JQuery") Get an inspiration, that is, I can use js to read the content in the nicEdit Rich Text Editor, grant the content to textarea and then submit the form. Code:

Code for implementing user login Interaction Using j2e-j2ee

Server code:LoginServlet:Package com;Copy codeThe Code is as follows:Import java. io. ByteArrayOutputStream;Import java. io. DataOutputStream;Import java. io. IOException;Import java. io. OutputStream;Import javax. servlet. ServletException;Import

A simple example of a JSP custom tag

tld

Using custom tags in JSP can achieve this purpose. In fact, all the frameworks we know are basically implemented in the form of custom tags.By using custom tags, We can display complex logic on pages with simple tags. Next we will implement a very

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

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 Verification Code Generation

Call method: Use Image labels on the jsp page to directly call the following tag code: you only need to send the code to the area where the verification code is displayed)Public static String code =

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",

Summary of hibernate data update Methods

Copy codeThe Code is as follows:Usertable user = null;Session session = HibernateSessionFactory. getSession ();String SQL = "from Usertable as user where user. username =? ";Query q = session. createQuery (SQL );Q. setString (0, username );List l =

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

What does eclipse mean?

Eclipse is an open-source and Java-based scalable development platform. In itself, it is only a framework and a set of services, used to build a development environment through plug-in components. Fortunately, Eclipse comes with a standard plug-in

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

Solution for parsing EL expressions in JSP

The reason is: by default, Servlet 2.4/JSP 2.0 supports EL expressions.There are two solutions:1. Modify the definition at the beginning of web. xml.Copy codeThe Code is as follows:Xmlns = "http://java.sun.com/xml/ns/j2ee"Xmlns: xsi = "http://www.w3.

JSP errorPage setting method

1. Set errorPage: errorPage. jspCopy codeThe Code is as follows: JSP Page Error ~! 2. ApplicationCopy codeThe Code is as follows: // go JSP Page Boolean tf = true;If (tf ){String info = getServletInfo ();Throw new Exception ("Exception in:" + info );

Page 1/3 of jsp Hibernate getting started

For example:Copy codeThe Code is as follows:HibernateTest. javaImport onlyfun. caterpillar .*;Import net. sf. hibernate .*;Import net. sf. hibernate. cfg .*;Import java. util .*;Public class HibernateTest {Public static void main (String [] args)

Java SOAPHEADER web service

C # WEB SERVICEhttp: // www.jb51.net/article/16768.htm returned in JSON formatHere I use axis to create a class package. First download the axis compressed package, decompress it, and put axis under webapp. If it can be run, it will be OK.C # Can I

How to recompile the java class in weblogic 8.1 without restarting the server

Recompile jsp without restarting the service period, but the class is required.Therefore, you need to set the following parameters ::Add the following sentence to the weblogic. xml file (marked in red)-1 ccbroot However, the disadvantage is that it

Configure Hibernate as JNDI on Weblogic

1. First, you need to put the jar packages and configuration files used by Hibernate on the classpath path that Weblogic can search. Many people are confused about this step. In fact, let's take a closer look at the startup script files

Total Pages: 1800 1 .... 711 712 713 714 715 .... 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.