other methods in this method as needed.
A model is created in this method based on the defined business logic. You can set different model attributes. These attributes are accessed by the view to display the final result. This example is created with the property"message.
The defined service method can returnStringIt contains the name of the view to be used to render the model. In this example,helloThe logical view name is returned.
Create a JSP View
Spring MVCMultiple types of views are supp
Messaging:Spring ORM: Integration of third-party ORM implementations, such as HIBERNATE,IBATIS,JDO and the JPA implementation of SpringSpring oxm:spring support for Object/xml mappings allows you to switch back and forth between Java and XMLSpring Test: A simple package for a test framework such as JUnitSpring TX: Consistent declarative and programmatic transaction management for JDBC, Hibernate, JDO, JPA, and more. Spring Web: Contains the core classes required to use the spring framework when
), and basic remoteThe ApplicationContext interface is the focus of the context moduleSpring-context-support provides the Spring application context with an integrated, common third-party class library, such as caching (Encache,guava,jcache), mailing ( JavaMail), scheduling (Commonj,quartz) and template engines (freemarker,jasperreports,velocity),etc.The Spring-expression module provides a powerful expression language (expressions Language) for runtim
://www.compiere.org/13.XPlanner XP project Management http://www.xplanner.org/14.Roller weblogger Open Source blog http://www.rollerweblogger.org/15.JBoss Open Source Server http://www.jboss.org/16.GlassFish Open Source Server https://glassfish.dev.java.net/17.JBPM Open Source Workflow http://www.jbpm.org/18.OSWorkflow Open Source Workflow http://www.opensymphony.com/osworkflow/19.JForum BBS system http://www.jforum.net/index.jsp20.Hypersonic SQL Java relational database http://hsqldb.sourceforg
applications, including classes that automatically load Web application Context features, Struts and JSF integration classes, File upload support classes, Filter classes, and a large number of tool helper classes.Externally dependent Spring-context, Servlet API, (JSP API, JSTL, Commons FileUpload, COS).
Spring-webmvc.jar : This jar file contains all the classes related to the Spring MVC framework. Contains Freemarker, JasperReports, Tiles, Velocity
. Source codeSample source Code11.2. Birt Resources for EclipseHttp://wiki.eclipse.org/index.php/BIRT_ProjectEclipse BIRT Wiki11.3. Vogella ResourcesVogella Training Android and Eclipse Training from the Vogella teamAndroid Tutorial Introduction to Android programmingGWT Tutorial Program in Java, compile to JavaScript and HTMLEclipse RCP Tutorial Create native applications in JavaJUnit Tutorial Test Your applicationGit Tutorial Put All your files in a distributed version control systemattachedNo
, any package that matches these names will be considered as the root package for the regular plug-in.struts2-dojo-plugin-2.3.4 some of the controls provided for struts such as: calendarstruts2-dwr-plugin-2.3.4. For integrating DWRstruts2-embeddedjsp-plugin-2.3.4 used to place JSP pages in a jar packagestruts2-jasperreports-plugin-2.3.4 for integrated JasperReportsstruts2-javatemplates-plugin-2.3.4 Apache provides ' javatemplates ' to replace the defa
used, robust persistence framework. Hibernate's technical community is very active.
Ebean: An ORM framework that supports fast data access and encoding.
PdfThe resource used to help create a PDF file.
Apache FOP: Create PDF from XSL-FO.
Apache PDFBox: A toolset for creating and manipulating PDFs.
Lite version of Dynamicreports:jasperreports.
IText: A library of easy-to-use PDF libraries to program the creation of PDF files. Note that a license is required for com
Messaging:Spring ORM: Integration of third-party ORM implementations, such as HIBERNATE,IBATIS,JDO and the JPA implementation of springSpring oxm:spring support for Object/xml mappings allows you to switch back and forth between Java and XMLSpring Test: A simple package for a test framework such as JUnitSpring TX: Consistent declarative and programmatic transaction management for JDBC, Hibernate, JDO, JPA, and more.Spring Web: Contains the core classes required to use the spring framework when
Development environment
The development environment for this article is used by Windows Vista Enterprise, birt-report-designer-all-in-one-2_2_2, Birt 2.2.2, Java EE servers apache-tomcat-6.0.18, of course, you can also use other Java EE servers such as Jboss.
First know BIRT
BIRT is a eclipse-based open source reporting system similar to jasperreports. It is primarily used on Java-ee Web applications. BIRT consists of two main parts: a report desig
1 Operating Environment1.1 JasperreportJasperReports is the core content of ireport. It is a powerful Open-source report generation tool that can output content to screens, printers, or generate PDFs, HTML, XLS, CSV, and XML files. It is written entirely in Java and can be used to generate dynamic report content in a variety of Java applications, including EE or Web applications. The JasperReports organization accesses data in the relational database
http://qdoxford.iteye.com/blog/290890
View result typeA series of result types provided by STRUTS2 are configured in Struts-default.xml in the Struts2-core-2.0.11.2.jar root directoryThe struts2 result type implements the Com.opensymphony.xwork2.Result interfaceType of results supported by type:
Chain: To handle the action chainChart: The result type of consolidating jfreechartDispatcher: Used to turn pages, usually process JSPFreemaker: Working with Freemarker templatesHttpheader: Controlling
template engine, separates the application logic from the content and the data. freemarker-http://www.freemarker.org/the most powerful and flexible template engine RHINO-HTTP://WWW.MOZILLA.ORG/JS/B/S structure required javascipt data analysis-------- ------------------------datavision-http://datavision.sf.net/Reporting System to support a variety of different databases jasperreports-http:// jasperreports.sf.net/Report Engine Weka-http://www.cs.waikat
Messaging:
Spring ORM: Integration of third-party ORM implementations, such as HIBERNATE,IBATIS,JDO and the JPA implementation of spring
Spring oxm:spring support for Object/xml mappings allows you to switch back and forth between Java and XML
Spring Test: A simple package for a test framework such as JUnit
Spring TX: Consistent declarative and programmatic transaction management for JDBC, Hibernate, JDO, JPA, and more.
Spring Web: Contains the core classes required to use the spring framework
One: STRUTS2 Framework Technology Introduction
Some advantages of 1.struts2: (1) canceling the Actionform class (2) makes testing easy (3) Increased interceptor function (4) capable of supporting multiple view technologies (Freemarker, Velocity, jasperreports, etc.)
(5) Provides a type conversion function (6) Powerful OGNL
2. Development process Summary: (1) Build a project environment that supports the STRUTS2 framework, add the jar packages required
dependency package in the Pom.xml file, Spring Boot parent node dependent package, Spring boot Web support, cache dependent Spring-context-support, integration Ehcache required dependencies, JPA operations database, MySQL Database-driven, specific Pom.xml files:
xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
After introducing this, the relevant introduction does not need to add the version configuration,
Spring boot will
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.