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
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
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:
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
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 ('
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 =
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",
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
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 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
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.
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 );
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)
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
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
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
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