This is the code for the V2R1 project. This ended up being a pretty ambitious project, in which I essentially rewrote the CGI proxy program in RPG. It's far from complete, but it proves a simple point: you can write complete multi-tiered applications using nothing but EGL Rich UI, RPG, and the HTTP server on the i. No WebSphere, no Tomcat, in fact no Java of any kind. That's awfully powerful, especially with the introduction of EGL CE.
What does it really mean?
FREE MODERNIZATION.
Let me say that again...
FREE MODERNIZATION!
Anyway, you can read more about the project here:
See What i Can Do - V2R1 (Complete!).
The project is attached here. If you import it, you should see a project named SWICD1 and inside that project a folder named simply "i". That folder has a single file, SWICD1, which is a savefile of the library SWICD1 which is the RPG side of this project (source and all). I didn't even bother with copyrights or anything - use it at your peril

.
Last thing - you'll need to direct the Rich UI proxy request to the CGIPROXY program. You do that with this line in your server:
ScriptAlias /___proxy /QSYS.LIB/SWICD1.LIB/CGIPROXY.PGM
Good luck!
UPDATE: Thanks to Ortwin, who pointed out that the SWICD1 project relies on data definitions in another project, the SWICDi project. That's because in the full architecture, I create the data definitions in the host project and then reference them in the client project. That may change now, since I can create Rich UI applications without any host web project at all. Anyway, for the purposes of this version, I simply included the SWICDi project and its EAR, SWICDiEAR.