JWt
Original authorEmweb
Initial release1.0.0 / December 2005; 20 years ago (2005-12)
Stable release
4.13.2[1] Edit this on Wikidata / 2026-05-07; 40 days ago
Written inJava
Operating systemCross-platform
TypeWeb framework
LicenseDual License: GNU General Public License or Commercial License
Websitewww.webtoolkit.eu/jwt
Repositorygithub.com/emweb/jwt

JWt (pronounced "jay-witty") is an open-source widget-centric web application framework for the Java programming language developed by Emweb. It has an API that uses established GUI application development patterns. The programming model is component-based and event-driven, similar to Swing.

The goal of the library is to benefit from the stateful component model used in desktop applications APIs, applied to web development, instead of the traditional model–view–controller (MVC) model. Rather than using MVC at the level of a page, MVC is pushed to the level of individual components.

While the library uses a desktop application development model, it does support web-specific features including semantic URLs, browser history navigation support, internationalization, themes, and styling.

A unique feature of the library is its abstraction layer of the browser rendering model. The library uses Ajax for communicating with Ajax-capable browsers, while using plain HTML form post-backs for other user agents (for accessibility and search engines). Using a progressive bootstrap method, the user interface is initially rendered as plain HTML, and for Ajax-capable browsers, it is automatically upgraded to use Ajax for increased interactivity.

JWt is distributed as a jar file. A JWt application is a war file that is deployed in a standards-compliant servlet container.

Major features

edit

See the feature list on the project homepage for a more detailed overview.[2]

  • Automatic graceful degradation and progressive enhancement
  • On all modern browsers, a JWt application is a single-page application, with full support for forward/back and bookmark navigation, but still fully SEO.
  • Supports server-initiated events (Comet), and uses asynchronous I/O when deployed within a Servlet 3.0 container.
  • A unified 2D rendering API (SVG/HTML5 canvas/VML/PDF) with java.awt.Graphics2D compatibility
  • Integrated PDF rendering for Widgets, Graphics (Charts) and HTML/CSS, to generate reports
  • Both client-side and server-side validation
  • Various automatic built-in security features to avoid cross-site scripting and CSRF vulnerabilities.
  • Theme support through CSS or Bootstrap
  • Available widgets are demonstrated in the widget gallery
  • A 3D painting API for WebGL rendering, with fallback to server-side GPU accelerated rendering
  • A 3D chart API (surfaces, points, bar charts, ...) supporting selection, intersection highlighting, height maps, isolines, ...

Code example

edit

The Hello World![3] example full source code[4]

/*
 * A simple hello world application class which demonstrates how to react
 * to events, read input, and give feed-back.
 */
public class HelloApplication extends WApplication {
    public HelloApplication(WEnvironment env) {
        super(env);
      
        setTitle("Hello world");

        getRoot().addWidget(new WText("Your name, please ? "));
        final WLineEdit nameEdit = new WLineEdit(getRoot());
        nameEdit.setFocus();

        WPushButton button = new WPushButton("Greet me.", getRoot());
        button.setMargin(5, Side.Left);

        getRoot().addWidget(new WBreak());

        final WText greeting = new WText(getRoot());

        button.clicked().addListener(this, new Signal.Listener() {
            public void trigger() {
                greeting.setText("Hello there, " + nameEdit.getText());
            }
        });
  }
}

See also

edit

References

edit
  1. ^ "Release 4.13.2". 7 May 2026. Retrieved 8 May 2026.
  2. ^ "JWt, Java Web Toolkit — Emweb". www.webtoolkit.eu. Retrieved 27 October 2019.
  3. ^ "JWt, Java Web Toolkit — Emweb". www.webtoolkit.eu. Retrieved 27 October 2019.
  4. ^ "SOURCE CODE OF THE HELLO WORLD EXAMPLE". www.webtoolkit.eu.
edit


📚 Artikel Terkait di Wikipedia

Wt (web toolkit)

open-source software portal Comparison of web-frameworks JWt (Java web toolkit), a native Java version of Wt Other C++ web frameworks "Wt: Release notes". www

JWT

Look up jwt in Wiktionary, the free dictionary. JWT may refer to: JSON Web Token, a metadata standard JWt (Java web toolkit), a software library J. Walter

Comparison of server-side web frameworks

Dynamic web page Java view technologies and frameworks List of content management systems List of rich web application frameworks List of web service

Index of JavaScript-related articles

JSON Web Encryption JSON Web Signature JSON Web Token JSON-LD JSON-RPC JSON-WSP JSONiq JsonML JSONP JSONPath JsPHP JsSIP JSX (JavaScript) JWt (Java web toolkit)

SAML-based products and services

originating product for the latest features and updates. Libraries and toolkits are used by developers to integrate applications and services into SAML

POCO C++ Libraries

for reading and writing JSON (JavaScript Object Notation) data format APIs for reading and writing JSON Web Tokens (JWT) APIs for interacting with MongoDB

HCL Notes

mature, and the C++ toolkit is an objectized version of the C toolkit, lacking many functions the C toolkit provides. The Java toolkit is the least mature

List of computing and IT abbreviations

Pages JTAG—Joint Test Action Group JVM—Java Virtual Machine JWE—JSON Web Encryption JWS—JSON Web Signature JWT—JSON Web Token K&R—Kernighan and Ritchie K8s—Kubernetes