jwebhelp Sources
Brought to you by:
vugluskr
File | Date | Author | Commit |
---|---|---|---|
src | 2014-01-16 |
![]() |
[76dc45] Improved field settings from XML |
LICENSE | 2013-10-09 |
![]() |
[70b623] License changed to GPLv3 |
README.txt | 2013-10-29 |
![]() |
[6bdd52] Relatives - new annotation for "many to many" f... |
build.xml | 2013-11-18 |
![]() |
[425d49] Added tiny jms-like service |
jwebhelp-config.dtd | 2013-11-13 |
![]() |
[c4f13a] Lightened whole structure, removed unused featu... |
Quick way to make a "helloworld" project: - Include jwebhelp.jar in classpath, in project dependencies and include it in output war-artifact. - Make web.xml looks something like that: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>com.lucky.jwebhelp.WHDispatcher</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> </web-app> - Define class with @WebWorker annotation. - Create method with @WebPath("/") annotation like that: @WebWorker public class MyClass { @WebPath(value = "/", contentType = "text/html") public String myMethod() { return "<h1>Hello, world</h1>"; } } - Thats it, run it.