[Done] Rewrite small Applet into Web App

Back to OpenSource Participation forum

Rodion (admin)     2015-07-11 17:03:19
User avatar

This project is not a part of CodeAbbey. It is about library I wrote back in 2011 and have no much time to maintain now.

Requirements: Java, good J2SE, basic knowledge of applets and servlets. Also a bit of HTML + JavaScript.

Have a look at Fuzzy Regular Expressions for Java - you should see in the right side of the screen either demo-applet for this project, or an empty space saying that either you have no java installed properly, or applets are not supported by your browser.

Currently it may look like following:
frej demo applet view

Task: create small server-based web-application instead of applet. It should have a single plain page with the same textareas and buttons. The difference is that when buttons are clicked, demo is executed not in applet on the user's computer, but rather on the server.

Technically it would be HTML page with small javascript which can exchange data with servlet on the server. It should be compatible with Google App Engine so we'll be able to deploy it for free - and insert the page as iframe instead of the applet.

The project sources are at github.com/rodiongork/FREJ and applet itself is in the subfolder stuff.

I'm ready to answer any questions or help a bit with hint on how to download sample application for GAE and modify it as necessary.

ivan.girin     2015-09-23 08:28:06

Hello. I have some question about this project, if it is still actual. 1. What kind of response should be (published page or just simple server-based web-application)?

p.s. sorry for my English.

Rodion (admin)     2015-09-23 10:24:14
User avatar

Hi, thanks for your interest!

>What kind of response should be (published page or just simple server-based web-application)?

You see, I've mentioned Google App Engine - this platform allows easily host small java web-applications (e.g. servlet-based) so it would be great to:

  • create a single-page web-app, providing such form and functionality;
  • deploy it to GAE;
  • then I will modify the page at sourceforge so it shows your application inside iframe instead of this applet.

GAE have some kind of tutorial and example project so you can easily try it yourself. They only have some clumsy navigation on their site so it is better to google for "Google App Engine Java Tutorial". Probably it is here. Though I vaguely remember there were more than one tutorial...

ivan.girin     2015-09-24 07:13:02

Hi. Ok

deploy it to GAE;

That's what I wanted to hear. Thanks for links. That may take some time (for me). I write when there will be some results.

supersergey     2015-10-16 15:20:37

Redesigned the demo for Spring MVC.

Working version

Source code

frej.jar which is available on the source forge is compiled with Java 1.8, which makes trouble on Google App Engine. Recompiled it with 1.7.

Rodion (admin)     2015-10-16 19:25:50
User avatar

Sergey, Hi!

Really, looks great! And seems to work properly too :)

Thank you for notice about code version of frej.jar - that's my fault and I hope to change it to 1.7 soon, for no 1.8 features are needed.

There are minor warnings about bootstrap-related libs, but I can manage this :)

I'll try to integrate it into existing page tomorrow, with links to you - so that you can demonstrate it as a part of your professional portfolio!

Big thanks for helping with this!

Rodion (admin)     2015-10-17 08:47:06
User avatar

UPD I've break my brain trying to make the updated page work with CORS, as the sourceforge's hosting do not execute java itself. Then I fall back to idea with iframe. At least it seems to work now.

I also changed the design of the project page according to your hint :)

Please, Sergey, check that URL to your linkedin account is correct (for original one did not work for me).

Thank you once more for your help!

Please login and solve 5 problems to be able to post at forum