Many problems have been encountered in the recent work. Sum up. The main function of this code is to forward a generated JSP page into a PDF output to the page
Need to use Itext
String html = Servletutils.forward (Request,response, "/web-inf/
This article is introduced the JSP technology realizes the dynamic page to the static page method, shares to everybody, concretely as follows:
For JSP technology to implement dynamic page to static page of the program, we have three steps to
There are Fn:contains (STR,STR) methods in Jstl to determine whether a string contains another string, but there is no way to tell if the list contains string, so you write a method yourself
Contains.tag:
String
1) ' JavaScript: History.back (1) ' > "Back Up"
2) ' Back to previous page '
3) Go ( -1) ' > ' Back to previous page '
History.go (-1) One step back
History.go (0) Refresh this page
History.go (1) before further
The number in parentheses
This article illustrates the common query and display methods of JSP pages. Share to everyone for your reference, specific as follows:
Background:
1. You need to display the results of a database query as a list in a JSP2. In a good Java EE mode,
• Jsp+servlet has been used to develop projects in recent projects, but difficulties have been caused by the lack of familiarity in the background. Fortunately, learning ability can also do one time to learn it.
• Today's question: After the
JSP tutorial connecting to the Oralce database tutorial and displaying records
public class Userdao {PRIVATE Connection conn = null;private Statement st = null;Public Userdao () {try {Class.forName ("Oracle.jdbc.driver.OracleDriver").
The last time I wrote a JSP guide, there were two errors ( what?). There are two places ..., in a word ... ), so here's what you want to record:The new JSP file will automatically generate a sentence:Then we need to import the packages we
* JSP: running process on the server container:After receiving a jsp file request from a customer, the container performs syntax analysis on the jsp file to generate the java servlet source file, compile the file, and then respond to the customer.*
JSP has its own section of the resin file, the following is an introductory guide.Template data-text outputUnless otherwise specified, the JSP file in the text will be sent exactly because it is a part of the response in the text file. This is the
Common JSPJSP pages are used by containers to generate Servlet classes. For example, Tomcat containers generate JSP Servlet classes in the work directory. Therefore, a lot of simplified syntax can be used in JSP for containers. This article will
5. Send HTML emailsHTML format is hypertext format. your email can be written in HTML code. After being sent to the recipient, the recipient will receive hypertext, which is much better than plain text. the following is a program modified based on
1. Introduction:The development of Java Mail API is a good example of SUN's continuous efforts to provide a public API framework for Java developers. A public framework is promoted to oppose solutions restricted by suppliers, which fully predicts
Author/Source: Blueski compilation (including two articles. The previous article uses sun.net. smtp, and the last one uses javamail.1. We can send mail via any JSP Engine (such as JSWDK) that supports sun.net. smtp packages in sun
There are many algorithms for implementing the tree structure of the Forum. My current JSP Forum uses one of the following algorithms: Algorithms for implementing tree structures without recursion, now I will introduce the specific tree structure
Add a listener for application startup and termination. This listener will call the corresponding method by the container (tomcat) each time the application starts and ends.1. Write our own listening class, which must implement
Html page The code is as follows:Copy code add logs publish logs Log Title: * Log Category: Collection c = log. showLogClass ();Iterator it = c. iterator ();While (it. hasNext ()) { Allclass log_class = (Allclass) it.
Set and obtain the page range attribute: page_scope_01.jsp The code is as follows:Copy code Test PageContext. setAttribute ("name", "James ");PageContext. setAttribute ("birthday", new Date ());%>String username = (String) pageContext.
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