There are many configurations on the Internet. Here is a simple method:
First, let's take a look at this article:
Article 1:Cximage usage experience
Cximage usage experience
(1) Installation
Open cximglib. DSW and compile it into a lib library file before use. The subsequent usage is as follows:
I. the most complex method and the best function (occupying a large space ):
"1. Copy the following directories to the same level as" my new project directory ", for example:
[Cximage] cximage. DSP
[
servlets are started:
Org. Apache. Catalina. servlets. DefaultServlet
Servlet for processing static resources. What images? HTML? CSS? JS? Look for him?
Org. Apache. Catalina. servlets. invokerservlet
Process the servlets that are not engaged in Servlet Mapping.
Org. Apache. Jasper. servlet. jspservlet
Process.
5.15 The context has been started.
How many steps have been taken? The context is finally started.
OK! Here, each container and comp
Tomcat's JSP Engine and tomcat JSP Engine
The jasper component of tomcat must be used to parse jsp files into class files.Jasper is the JSP Engine Used in tomcat, and Jasper 2 is used in Tomcat 6. Compared with the original version, Jasper has made many improvements, such: JSP Tag Buffer Pool, background compilation, automatic re-compilation during page change,
-entitymanager.jar Hibernate's core library.Hibernate-jpa-2.0-api-1.0.1.final.jar Hibernate dependency Package, used to define Java persistence.Hibernate3.jar Hibernate core implementation.Itext~ a Java class library that is used to generate PDF documents. By Itext, you can not only generate PDF or RTF documents, but also convert XML and HTML files into PDF files.Jackson~ is a class library that Java uses to process JSON-formatted data, and it performs very well.jasypt~ simple and useful string
The detailed introduction of JSP automatic compiling mechanism
In general, the Jasper Automatic detection mechanism is relatively simple, relying on a background thread to constantly detect the JSP file and the compiled class file after the final modification time is the same, if the same is not changed, but if different will need to recompile. In fact, because the JSP for the project deployed in Tomcat may have introduced other pages, or other jar p
, and if there are no errors, you can use the report template in your program.
JasperReports Introduction:
Using JasperReports to generate reports is very simple, using only a few classes in the Net.sf.jasperreports.engine package to complete the report generation, preview, print, export and other functions.
1. Net.sf.jasperreports.engine.JasperCompileManager class.
Use several static methods of this class to complete the compilation of the report (see API documentation specifically)
There
The process of parsing a JSP file into a class file requires the use of Tomcat's Jasper component.Jasper is the JSP engine used in Tomcat, used in Tomcat 6 is Jasper 2, compared to the original version made a lot of improvements, such as: JSP tag buffer pool, background compilation, page changes automatically recompile, JDT compilation in Eclipse, and so on.To put it simply, a JSP file that the JVM does not
JSP compiled into Servlet (3) JSP compiled Servlet
What is the Servlet class after JSP compilation? What are the mappings between them? When discussing the relationship between JSP and Servlet, Let's first look at what a simple HelloWorld. jsp will look like after it is compiled into HelloWorld. java.
① HelloWorld. jsp
Out. println ("HelloWorld ");
%>
② HelloWorld_jsp.java
Package org. apache. jsp;
Import javax. servlet .*;
Import javax. servlet. http .*;
Import javax. servlet. jsp .*;
Public
Create a new index.jsp file in the Web root directory"java" contenttype="text/html; CHARSET=GBK "%>html>head>meta http-equiv="Content-type" Content="text/html; Charset=iso-8859-1 ">title>Insert Title heretitle>head>body>Current system timenew java.util. Date()); %>body>html> Configure Web. xmlweb-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns= "Http://java.sun.com/xml/ns/javaee" xsi:schemalocation="Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_ 0.
Existing Java open-source Bi front-end framework
I recently demonstrated the open-source Bi front-end framework in the Java field and shared some things I remember.Because I only watched it for a few days and didn't have time to sort it out, it looks messy and not very thorough.
Currently, common bi front-end frameworks (Business Intelligence projects) in the Java field mainly include the following open-source frameworks such as pentaho, spagobi, openi, and
Problem description
Today, I encountered a strange problem during development. There is an action in which request is used. the setattribute () method places a list object in the request and forward it to a JSP file. The main content of this file is to use CodeThe execution is normal. But the code in this module (xxgl) is simple logic, but always prompts:
Org. Apache. Jasper. jasperexception: cannot find bean t
In
Any ScopeAt org. Apache.
arcade-like Game
FULCRUM
Dev
Java based services framework
Gantt Project
App
Java-based Gantt chart and project planning tool
Geronimo
Dev
Appache J2EE 1.4 app server; to be certified by 3q 2004
Ghostwriter
Game
One of a dozen delightful Java Web Start games
Grinder,
Dev
Load Testing Framework that uses Jython
Hibernate
DBMS
Persistence and object/relational mapping tool
have an XML file, and then compile it into a Jasper file. end of Jasper. jasper file, which is very familiar to us. JSP file, in fact, we call its compiled servlet.
(Picture from http://ireport.sourceforge.net/cap3.html#3.1)
However, static reports have no meaning, so there is a good saying: "A datasource + A Jasper =
). The main settings are as follows:
Properties
Application Server Directory: This is the installation directory of my tomcat 4.1.30. I installed it under F: \ tomcat, so its value is F:/tomcat.
Address: 127.0.0.1
Port: 80 (because I changed 8080 to 80 in Tomcat, so here is 80, based on your Tomcat listening port)
Classpath variable name: tomcat_home (can be modified to another string)
Classpath variable: F:/tomcat (tomcat installation directory)
Click Apply.
Server classpath:
Jdk_tools
If you encounter report problems in the project, record the main processes and problems and forget them.
1. Environment
Jdk1.5, jasperreports-1.1.1, iReport-1.1.0
2. Chinese problems
A, remember to itext-1.3.1.jar, itextasian. Jar these two packages in the iReport-1.1.0/lib directory, the two packages to see, probably can be seen is used to define the font style and other functions;
B. In ireport, set the following parameters correctly, as shown in figure
I forgot the exception information in t
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.