Register for sign-in (non-invasive)
User Id Password
Provide feedback/Ask a question
Home Documentation Download Support Store

  Projects 
 Projects Overview 
  jWebApp  AGPLv3
 Description 
 Features 
  jPersist  GPLv3
 Description 
 Features 
  MemSL  GPLv3
 Description 
 C Features 
 C++ Features 
  Licensing 
 GPLv3 
 AGPLv3 
 O-S Exemption 
  Support 
 Support Agreements 
  News/Blog 
 jwaBlogger 
  Consulting 
 Consulting Services 


   OSI Certified Open Source jWebApp - Web Application Framework

Please donate via SourceForge.net
Please Support This Project
An equivalent donation also gets you access to
the documentation
(see Documentation)
Download from SourceForge.net  

Project at SourceForge.net
SourceForge.net Logo

 jWebApp Description 

jWebApp is a trouble free full stack MVC web application framework that truly removes the complexities of web development and its configuration.  jWebApp is so simple, it can actually be learned in a matter of minutes.

 

jWebApp is literally this simple:

 

public class JWebAppExample extends RequestHandler

  {

    DatabaseManager jpersistdb = AppUtils.getDatabaseManager();

 

    public String processGetCustomer(HttpServletRequest request)

      {

        request.setAttribute("customer", jpersistdb.loadObject(Customer.class,

"where :customerId like ?",

request.getParameter(“customerId”)));

       

        return "/WEB-INF/customer.jsp";

      }

 

    public String validateNewCustomer(ServerInterface serverInterface)

      {

        ... // trivial validation stuff

        if (errors.length() > 0) return “/WEB-INF/newCustomer.jsp”

        else return SUCCESS;

      }

 

    public String processNewCustomer(ServerInterface serverInterface)

      {

        Customer customer = new Customer();

 

        serverInterface.fillObjectFromRequest(customer);

 

        jpersistdb.saveObject(customer);

 

        serverInterface.setAttribute(“customer”, customer);

        serverInterface.setAttribute(“customerSaved”, “Customer Saved”);

 

        return "/WEB-INF/customer.jsp";

      }

  }

 

JSP generation:

 

<div align="center">

    <h2>jWebApp Example.</h2>

    <b>${customerSaved}</b>

    <p>CustomerId: ${customer.customerId}

    <p>First Name: ${customer.firstName}

    <p>Last Name: ${customer.lastName}

    ...

</div>

 

and calling:

 

http://host/context/jWebAppExample/getCustomer?customerId=value

 

or post a form with:

 

http://host/context/jWebAppExample/newCustomer

 

Using the above given URLs, jWebApp automatically finds the supporting class, instantiates it, and executes the supporting method.  jWebApp does not require any configuration or annotation, so the above is actually all you have to do.

 

jWebApp provides support for all of the features you expect, but does not need additional tag libraries or extensive APIs to implement them, what you already know is all you will need.  With jWebApp, you can use any model/business layer technologies, any database-access technologies, any web-authoring technologies, and plain old HTML and HTML forms.

 

Powered By

Powered by jWebApp
and
jpersist (3K)


 Notice 

Copyright (C) 2002 - present, David Bulmore/Software Sensation Inc. ALL RIGHTS RESERVED.

Software Sensation, jWebApp, jPersist, Install&Update, Enterprise Server Objects (ESO), Enterprise Server Scripting (ESS), and Memory Structures Library (MemSL) are trademarks or registered trademarks of Software Sensation, Inc. in the U.S. and other countries.

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.