Created: 2012-08-20 23:14
Updated: 2013-09-28 07:13

README.md

Pulsar Framework

Minimalist Web Framework Java

Requirements

  • Java

Instalation

Configure web.xml, append filter mapping and listener.

<filter>
  <filter-name>FrontController</filter-name>
  <filter-class>com.pulsar.framework.core.FrontController</filter-class>
</filter>
<filter-mapping>
  <filter-name>FrontController</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
  <listener-class>com.pulsar.framework.listener.ContextStartListener</listener-class>
</listener>

Create file /WEB-INF/app-config.properties and define package of controlles & view prefix/suffix.

scan.controller =   com.project.controller
view.prefix     =   /WEB-INF/views/
view.suffix     =   .jsp

Create your first controller

package com.project.controller;

@Controller("hello")
public class HelloController {

  @GET
  @Produces(MediaType.TEXT_PLAIN)
  public String index() {
    return "Hello world!";
  }
}

Running Application

Open your browser and enter:

http://localhost:8000/hello

Let's Rock!

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more