Dwscript web server - delphi

I want to use dwscript for web programming ( generating dynamic content). I was wondering if there is any module for apache web server? Or how can I run my own web server based on dwscript?

I'm not (yet?) familiar with DWScript, but I've created an Apache module that runs a Delphi-compiled module that serves a web-site over an abstract interface, so it can plug into IIS or InternetExplorer also. There are also versions that auto-recompile when it detects changes to the source-code, so you can develop and test by hitting refresh in the browser window:
http://xxm.sourceforge.net/

Related

How to create content in apache sling using java program

I am new to apache sling i want to create content(node) using java program and that to be stored in jackrabbit
Every HTTP request targeting Sling (localhost:8080/path/to/my/resource) providing basic authentication will do just fine. In that sense Sling is completely client agnostic and you are free to choose language and library (i.e. Apache Commons) of your choice.

Delphi client that runs like it is connected to a web server - without a web server. Is it possible?

I am familiar with programming in Delphi stand-alone applications and web-server applications.
Is it possible to have a Delphi application that when launched gets the browser to handle its output? Without a server being between the user and the application.
The reason I would like to do this is because HTML CSS and so on provide a more familiar user-interface to most people.
You can not "let the browser handle its output" without any HTTP connection, so a local web server, then using regular URIs like http://localhost:888/myDelphiApp/FullURI.
What you can is to embed a Web Browser to your Delphi application, then provide the generated web content not via HTTP, but as local content.
You may use
THtmlViewer Open Source component - which I like very much;
Delphi Chromium Embedded;
WebBrowser Component.
All recognize CSS and HTML content.

Dart best practices for develop and production

Sorry if this is a noop question, but I'm pretty new to Dart.
I wonder if someone has good links or ideas for best practices for develop and debug a Dart application in a node.js environment. I can start a standalone Dart app and call a rest api using absolute url, but I think the Dart app should be served using node.js and the urls should be relative. In production we also need to serve the js compiled app. Do you know how to build a good development environment, near to production?
You can create a launch configuration in DartEditor to be able to use the debugger with another web server.
https://code.google.com/p/dart/issues/detail?id=3748 (sorry couldn't find a better ressource)
The Dartium built in debugger (Chrome developer tools) works pretty well too with Dart.
You will loose some features like transformers as pub serve uses it though.
I guess the best for development is to set Access-Control-Allow-Origin header in your node.js server and develop with the web server built in in DartEditor (dart: debugging client/server communication for dart client and existing rest api?).
For testing and bug-fixing in an environment similar to the deployment environment use the configuration described above.
Dart is just like static files for the server. You don't loose much when you don't use node.js for serving Dart.

How to call Java EE SOAP or REST services from mobile platform. etc Dxtreme, Jquery Mobile, Icenium

I want to develop mobile apps based on HTML, JS. It must work on any device etc iphone, ipad, android and windows phone...
I must use JAVA EE on server side. First I choosed Dxtreme. after I learned dxtreme, it is possible REST Service using ASP.NET Web API. But it is inpossible on Java EE. following error :
But call along #POST, #PUT and #DELETE methods throws error
"XMLHttpRequest cannot load http://www.restserver/Service/item. Origin
http://www.localhost:51140 is not allowed by Access-Control-Allow-Origin".
I believe there must be something that people must be using SOAP or REST Service on Mobile.
Which mobile framework is it possible ?
Please help me.
Thanks.
have You read About Phonegap?U can use phonegap to build application that can work around different Mobile platform.Its uses HTML5,CSS3,Javascript.Hope this helps you......
Generally, people access web services using RESTful interfaces on the server end. You can create that with ASP.NET Web API and many other server side frameworks of course. Your error, I'm guessing, but not sure, is from your client application. If I'm correct, you are probably running some simulator or the app within a browser client, and not one of the mobile framework simulators, and are running into the problem where the browser restricts your access to services on systems other than the site your started with. I.e. if you got to myboringwebpage.com and try to look up something on api.twitter.com within the app, the browser will stop you unless you add certain things to your web server/page telling the browser that that is OK. Look up "CORS". With Icenium, if you use the browser development environment "Mist" you will get those issues. If you use the Windows environment "Graphite" there is no such restriction. If you use the Intel HTML5 XDK at http://html5m.com/, it runs some process to get around those issues, while running a simulator in a browser. If you end up building PhoneGap apps, which you can using Icenium, appery.io, Intel HTML5 XDK, PhoneGap Build and others, the built app, installed on the phone, will not be restricted as an in-browser "app" would. However, I had problems with the Intel framework's XHR code handling all the different methods. Sorry this probably doesn't cover everything you need - you'll have to live and learn a lot of this.

Support for offline storage in Javafx 2.x

I have an application that shall support offline storage of user data in case the server is unreachable. In Javafx 1.3 that was achieved via the classes javafx.io.Storage and javafx.io.Resource.
When migrating to Javafx 2.0 these classes have been discontinued. I believe that the guys at Oracle have an equivalent functionality for it in Java.
My question is What is the equivalent of the aforementioned classes in Javafx 2.0 What I want is to specify a resource name to which I can store data without worrying where it is exactly stored on the client file system, the same as browsers cookies.
Thanks for your help
Ahmed
There is no equivalent of javafx.io.Storage and javafx.io.Resource in JavaFX 2.x itself. Because JavaFX 2.x is based on Java, you can use Java services.
The JNLP FileSaveService and FileOpenService may be used. These services should work across JNLP based deployments (browser embedded and webstart apps) - not sure if they work for standalone apps.
If you know that your application will be run as a standalone app or a signed browser embedded or webstart app with higher privileges, then you can get the user directory via the user.home system property and write your app data to an an appropriate file location under that, probably using the Files api as in this Files tutorial. For example, use the Files api to create a {$user.dir}/.myapp/appdata.dat file to read and write.
JavaFX embeds an html5 web engine. The WebEngine in JavaFX 8 implements the offline storage portion of the html5 specification, the WebEngine in JavaFX 2.2 does not.

Resources