Rev as webserver

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
lharris
Posts: 20
Joined: Fri May 22, 2009 5:27 pm

Rev as webserver

Post by lharris » Wed May 26, 2010 1:55 pm

Hi - I have an existing application written in Java that uses Tomcat to serve webpages and interact with a Mysql database.
The user interface is not that great and rather than rewriting in html and java, I was exploring using Rev to serve the webpages, so i could gradually convert the interface to rev without having to lose existing functionality. Right now the browser renders all files.
Thanks

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Rev as webserver

Post by Mark » Sun May 30, 2010 11:51 pm

lharris,

Do you want to create a server or do you want to create a front-end interface with Rev? What is your question exactly?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

lharris
Posts: 20
Joined: Fri May 22, 2009 5:27 pm

Re: Rev as webserver

Post by lharris » Mon May 31, 2010 12:12 am

I would like to be able to access an existing mysql database via a webrowser but be able to replace the java controls with rev controls. This is mainly for 2 reasons. To make maintenance easier and to allow a nicer user interface. The reason to keep the browser is that some forms to be printed are scanned in or PDFs with HTML code attached to allow checkboxes and other fields to be marked off (order firms and requisitions are from other places and we have no control over them)
thanks

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Rev as webserver

Post by Mark » Mon May 31, 2010 1:25 am

What is your question, lharris?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Rev as webserver

Post by FourthWorld » Mon May 31, 2010 9:07 pm

lharris, I'm afraid I don't understand your request. A web server has no end-user interface, it's just a delivery system for media either copied from the server or generated there. The interface the end-user sees happens on the client side, in the browser.

If you're thinking about the client side, have you considered the RevWeb plugin?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

lharris
Posts: 20
Joined: Fri May 22, 2009 5:27 pm

Re: Rev as webserver

Post by lharris » Tue Jun 01, 2010 3:34 am

Hi- I guess what I'm trying to ask is: can I replace server side java code with rev code.
Presently my webserver is serving pages in HTML with embedded java code. The browser renders the HTML and executes the java code which uses the tomcat server to connect to the mysql database.

I don't like maintaining java and would like the same functionality with rev. Are Revlets used for this functionality? And is there a way to host it on my server.
Thanks

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Rev as webserver

Post by FourthWorld » Tue Jun 01, 2010 5:09 am

Revlets are stacks diplayed in the browser with the RevWeb plugin.

You can use Rev on a server as a CGI:
http://hyperactivesw.com/cgitutorial/tutorialtoc.html
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

lharris
Posts: 20
Joined: Fri May 22, 2009 5:27 pm

Re: Rev as webserver

Post by lharris » Tue Jun 01, 2010 5:40 am

Thanks
that was what I was looking for
lharris

Post Reply