Original framework for simplifying web development-Jsptagex

Source: Internet
Author: User

In the blog dormant for more than a year, should write something:)

Jsptagex is designed to simplify Web Development, with MAVEN management, a few third-party dependencies, and very little code, first let's take a moment to understand it in simplifying the Web Development-related performance.

If you are interested in the framework, welcome to join Q-Q Group discussion: 431040030 (q-q Group number, please specify: Java and other Notes), the framework will be perfected under the preparation of open source, welcome to us to ask for demand and advice, once adopted, share source:)




    • Maven archetype

The default is to provide the most commonly used Java Maven archetype, based on different business scenarios, pull prototype projects, such as the Java EE application, JavaScript service, Java socket server, etc., address: http://maven.idbhost.com/nexus/ Service/local/repo_groups/public/content/archetype-catalog.xml

    • Mvc

Simply by configuring the Dispatchservlet in Web. XML, you can write functions directly in Java class to handle Web requests:




Support for function overloading in controller:




The Urialias annotations are optional and help you rename the URI to make it more user friendly, without specifying the class name and function name directly.

All Controller classes must inherit Basecontroller, remembering that aURL has a convention, whether it is a class or a function, as long as 1 annotations are used, the URL The actual access address is lowercase, if you want to start with the access, then directly urialias="/" can

    • Database operations

generate all DAO code in one click and call directly Activerecordgencode.run. The operation of the database can be done in XML configuration SQL (similar to mybatis) or can be directly based on the generated DAO class operations database.

Using the generated DAO to manipulate database crud methods:




If you are using XML to configure datasets, you support three ways of dataset definition: SQL statements, JavaScript functions, and Java classes:



Using the provided Tagjdbcinstance Singleton class, you can get the dataset in one sentence, where ${param.xxx} means get the page parameter xxx, or you can get parameters from the session, such as ${sessionscope.xxx}, like an El expression.

    • Tag Library

To simplify web development, the framework provides a number of tags, including JSP tags and freemarker tags, to be used on demand, depending on the business scenario.

There is no need to write datasets and selectone,sql tags for any Java code, there are some judgments, loop labels and authorization tags, export tags, see help PDF.

    • Other features

Can support the method of controller interception, just @inject, support the controller's global interception (intercept all URLs) for logging processing, also support the database cache processing, the default integration job scheduled Tasks, Only one line can be configured in App.xml

    • Plug-in System

In order to maintain the framework is sufficiently streamlined, the Java development process of non-essential functional modules are provided in plug-in form, such as connecting various types of third-party middleware connector plug-ins, full-text search plugin, WebSocket plug-ins, etc., see the Help manual.

Example runs:

1: New Database (MySQL): Db_jsptagex.sql;

2: Modify the data source in the App.xml under the application classpath, run can;

To learn more about this framework, please read the Jsptagex Handbook. pdf

Welcome to give us demand and advice, once adopted, share Source:)


For example engineering and development manuals, please move to download: http://cxlh.iteye.com/blog/2219171

Original framework for simplifying web development-Jsptagex

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.