Qwicap is a web application development API written in Java and based on the XHTML, CSS2 and Java Servlet technologies. It dispenses with the usual hit-run-exit model of web applications, automatically provides a state-rich environment, and includes an XML "templating" engine that makes on-the-fly customization of web pages straightforward. It is intended to reduce the learning curve associated with writing web applications, and the amount of time even experienced developers spend dealing with the mechanics of such development. Furthermore, it seeks to offer an alternative to the intimate mixing of code and content promoted by Java Server Pages (JSP), the confusion and code fragmentation associated with JSP tag libraries, and, for that matter, the embedding of content into Servlet or CGI code, with the associated code-clutter and content maintenance problems.
There are no silver bullets, nor one-size-fits-all solutions. Like every other method for writing web applications, Qwicap has its limitations. The trick is finding the right method for each job. Have a look.
Contents
Documentation
- Features Summary
- Security: Qwicap and the OWASP Top 10 for 2007
- Introduction – Meet Qwicap using a 30-line, truly complete, Java "number guess" game.
- Templating Introduction – Meet the custom XML engine.
- Prompt Pattern – The most basic structure of a Qwicap web application.
- The Qwicap API: The 6 Vital Classes
- API Documentation
- Deployment Descriptors – The default "web.xml" file, and what you might change.
- Change History
- Notes
- Copyright and License – It's LGPL, for a start.
- Acknowledgements – Dear Apache, Thanks for the libraries!
Downloads, Source Code, Binaries, Etc.
- Qwicap's Home on SourceForge
- Subversion repository URL:
https://qwicap.svn.sourceforge.net/svnroot/qwicap - Browse the source code.
- Subversion repository URL:
- Qwicap version 1.4b25 of 26-Sep-2008:
- Example Applications of 26-Sep-2008:
- Number Guess - This is the web application discussed in "Qwicap Introduction." It is a good place to begin tinkering. [Source & Project] [WAR file] (Drop the WAR into Tomcat's "webapps" directory. The URL will usually be "http://localhost:8080/guess/".)
- TimeCalc - A simple utility for adding and subtracting time quantities expressed in H:MM and decimal hours formats. [Source & Project] [WAR file] (Drop the WAR into Tomcat's "webapps" directory. The URL will usually be "http://localhost:8080/timecalc/".)
- Hunt the Wumpus - A classic computer game. This example demonstrates a multi-page application (it has three pages); transparently receiving input from links (the dynamically generated "area" elements of a client-side image map), rather than from form controls; and including dynamically generated downloads in web pages (the JPEGs that represent the current state of the game map). [Source & Project] [WAR file] (Drop the WAR into Tomcat's "webapps" directory. The URL will usually be "http://localhost:8080/wumpus/".)