working on a proof-of-concept in due course. Jetty would be a good way
to initialise a Gears solution. The Google Plugin for Eclipse makes
use of a Jetty server for debugging GWT and GAE code.
http://groups.google.com/group/tyndalestep
David.
2009/8/5 Tyndale STEP Project <TyndaleSTEP@gmail.com>:
> Yup! So the web browser requests a JSP page, the JSP page is then forwarded
> back to the browser. The user inputs some data, it is sent back to Jetty,
> this is process by java and a new JSP is served... That would be a full good
> solution, but Dave said he might also have some idea too?
> Chris
>
> 2009/8/5 Tyndale STEP Project <TyndaleSTEP@gmail.com>
>>
>> Looks like you are getting somewhere useful.
>> Do you think we can assume Java 6 will become ubuiquitous while we are
>> developing our project?
>>
>> Are you able to talk to java from the browser?
>> - eg can a user enter an email address and send the message there?
>>
>> David IB
>>
>> At 21:01 03/08/2009, you wrote:
>>
>> Hey there
>>
>> Just to let you know that I've now got a java program that launches
>> (in-process no display) the webserver, pointing to a seperate project in
>> Eclipse which holds one of the Struts applications (MailReader). I can post
>> things back and forth and display forms for entry. I can add subscriptions
>> to my new user and have them displayed in the browser.
>>
>> It will be trivial to launch the browser too. As seen on this page, it is
>> trivial to open up the default browser of the host system (
>> http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/
>> ) On the other hand that requires Java 6. Not sure if we want to do that? We
>> could alternatively, in the distribution, distribute batch files, the first
>> line of which starts the server, and the second line which invokes the
>> default browser. These would be OS specific. I'm not sure what version of
>> Java we want to use but Java 1.5 is probably what i expect most people to
>> have. I guess we could distribute Java 6 with the app too if we really
>> wanted to use that.
>>
>> I've already got code to launch the database so that shouldn't be too
>> difficult to add in either. I'm happy to add a few screenshots, but i've
>> played around with the application and it looks like it's working. I may try
>> and tie that in, but I'm 95% sure we can run this fine, that is if we decide
>> to go that way for developing step. All we would distribute is a standard
>> java application (some jar files basically, no extra scripts, etc.)
>>
>> Chris
>>
>>
>>
>> 2009/8/3 Tyndale STEP Project <TyndaleSTEP@gmail.com >
>> Basically is just like a web server, except it can started/stopped from an
>> application, but it can also be used as a normal server to host a website on
>> the internet.
>>
>> I should be able to get an application that kicks off Jetty, and java
>> database off, then load the default browser and requests a page or two. It
>> may not be this week though, but I'll have a stab tonight, and then another
>> stab possibly in the week after next... I'm afraid, I've got another holiday
>> coming up and may be out of touch for a while.
>> Chris
>>
>> 2009/8/3 Tyndale STEP Project <TyndaleSTEP@gmail.com >
>> Chris has annotated Overview of Programming issues with some comments
>> about Jetty.
>> He pointed to two discussions:
>> The discussion here talks about it mainly as a rival to Tomcat
>> The discussion here talks about using it to call a browser and send code
>> to it.
>> Does Jetty also respond to requests from the browser? (I read both
>> discussions quickly, so I probably missed this).
>>
>> Chris - do you think it would be within your skills to produce a proof of
>> concept application using Jetty?
>> Eg a java application which opens a browser and sends a "Hello World -
>> How are you?" with a Yes/No option box,
>> and responds "Oh Dear" or "Great!" depending on the option picked,
>> where the two messages "Oh Dear" or "Great!" are written in the java code,
>> and NOT in the web page with the option box.
>>
>> If we can write a program that does this, then we can link to JSword from
>> a browser,
>> and request verses or searches from the browser and have them displayed in
>> the browser.
>> We can then add new code either by adding java to JSword or by putting
>> Javascript in the web pages (probably both).
>>
>> Guys, can you think of any other way to create this little application?
>>
>> David IB
>>
>> --
>> Posted By Tyndale STEP Project to Tyndale STEP - Programming on 8/03/2009
>> 01:53:00 AM
>>
>>
>>
>>
>> --
>> Posted By Tyndale STEP Project to Tyndale STEP - Programming on 8/03/2009
>> 10:57:00 AM
>>
>>
>>
>>
>> --
>> Posted By Tyndale STEP Project to Tyndale STEP - Programming on 8/03/2009
>> 01:01:00 PM
>>
>> --
>> Posted By Tyndale STEP Project to Tyndale STEP - Programming on 8/05/2009
>> 03:07:00 AM
>
>
> --
> Posted By Tyndale STEP Project to Tyndale STEP - Programming on 8/05/2009
> 06:37:00 AM
No comments:
Post a Comment