Build a Web application development platform using ApacheWicket

Source: Internet
Author: User
ApacheWicket Introduction: ApacheWicket (http: wicket.apache.org) is a lightweight web application development framework with several features: 1. with Java and HTML, you can easily get started with development without learning additional scripting languages, such as Ruby, Python, and Groovy. 2. POJO data models are used

Overview of Apache Wicket:

Apache Wicket (http://wicket.apache.org/) is a lightweight web application development framework, which has several features: 1. with Java and HTML, you can easily get started with development without learning additional scripting languages, such as Ruby, Python, and Groovy. 2. use the POJO data model to implement MVC separation for each web module; 3. less XML configuration; 4. use Maven for package management and dependency management. In general, Apache Wicket features quick start. Currently, this framework is widely used in China, and there are few Chinese documents. This article describes how to use JDK + eclipse + maven +McAt to quickly build a web application development platform based on Apache Wicket.

The procedure is as follows:

1. Configure JDK, eclipse, Maven, and tom.CatEnvironment. In my development environment, JDK 1.6, Maven 2.2.1, Eclipse for EE developer (Helios Service Release 2), and Tomcat V7.0 are used. In this eclipse version, you can directly add Tomcat as the web server running environment, which is very convenient. In the eclipse menu bar, choose Window> Prefere.NcEs-> Server-> RunTimeEnvironments->Dd.

2. InCommandEnter your working directory and create your web application framework:MvN archetype: generate-DgroupId =Org. lepro-DartifactId =Webone-DarchetypeArtifactId = maven-archetype-webapp. Org. lepro and webone are custom content.

3. After executing the preceding command, a webone directory will be created, enter the directory, find the pom. xml file, and update it: (add wicket and org. slf4j dependencies mainly)

  1. <Project XmLnS=\ "Http://maven.apache.org/POM/4.0.0 \" Xmlns: xsi=\ "Http://www.w3.org/2001/XMLSchema-instance \"
  2.  Xsi: schemaLocation=\ "Http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd \">
  3.  <ModelVersion>4.0.0 ModelVersion>
  4.  <GroupId>Org. lepro GroupId>
  5.  <ArtifactId>Webone ArtifactId>
  6.  <Packaging>War Packaging>
  7.  <Version>0.1-alpha Version>
  8.  <Name>Webone Maven Webapp Name>
  9.  <Url>Http://maven.apache.org Url>
  10.  <Dependencies>
  11. <Dependency>
  12. <GroupId>Junit GroupId>
  13. <ArtifactId>Junit ArtifactId>
  14. <Version>3.8.1 Version>
  15. <Scope>Test Scope>
  16. Dependency>
  17. <Dependency>
  18. <GroupId>Org. apache. wicket GroupId>
  19. <ArtifactId>Wicket ArtifactId>
  20. <Version>1.4.7 Version>
  21. Dependency>
  22. <Dependency>
  23. <GroupId>Org. slf4j GroupId>
  24. <ArtifactId>Slf4j-log4j12 ArtifactId>
  25. <Version>1.5.8 Version>
  26. Dependency>
Related Article

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.