background preloader

Java

Facebook Twitter

Building My Own Siri / Jarvis. Most of the magic behind Siri happens remotely.

Building My Own Siri / Jarvis

I want to create my OWN version of Siri…. except I don’t care for having it on my phone. OptaPlanner - Constraint satisfaction solver (Java™, Open Source)

FX

Struts 2 Hello World Example. As you learnt from the Struts 2 architecture, when you click on a hyperlink or submit an HTML form in a Struts 2 web application, the input is collected by the Controller which is sent to a Java class called Actions.

Struts 2 Hello World Example

After the Action is executed, a Result selects a resource to render the response. The resource is generally a JSP, but it can also be a PDF file, an Excel spreadsheet, or a Java applet window. Assume you already build-up your development environment. Now let us proceed for building our first Hello World struts2 project. The aim of this project is to build a web application that collects the user's name and displays "Hello World" followed by the user name. I am going to use Eclipse IDE, so all the required components will be created under a Dynamic Web Project. Create a Dynamic Web Project: Start your Eclipse and then go with File > New > Dynamic Web Project and enter project name as HelloWorldStruts2 and set rest of the options as given in the following screen:

Struts 2 + Spring 2 + JPA + AJAX. On this tutorial we will demonstrate how to setup Struts 2 in Eclipse, and make it work with Spring, Java Persistence API (using Hibernate) and Struts 2 Ajax tags.

Struts 2 + Spring 2 + JPA + AJAX

Hibernate is licensed under the LGPL, and any application created using Hibernate is subject to the terms of the LGPL. Following this tutorial verbatim will require use of a Struts 2 deployment greater than 2.0.3 Tomcat Install Tomcat before going forward. See Tomcat's installation guide if you have any problem installing it. MySql Install and configure MySql. CREATE TABLE 'quickstart'.' Show me the code You can just download the zipped Eclipse project, add the required dependencies to the lib folder under the /WebContent/WEB-INF/lib folder (relative to project's root folder) and import it into Eclipse. The maven way To run the project this way you will need maven installed. Download the zipped projectDownload jta jar from here. SiteMesh Starter Kit - SiteMesh 2 - Confluence. The SSK (SiteMesh Starter Kit) is a development package to quickly get started with SiteMesh and see a working demonstrations of the first 2 example tutorials.

SiteMesh Starter Kit - SiteMesh 2 - Confluence

Download, unzip, launch and import cafe.war to see SiteMesh in action. Icon Microsoft Windows unzip program will not work. Consider the free 7-Zip, Winzip or WinRAR. Download Using the SiteMesh Starter Kit on Windows The SiteMesh Starter Kit was put together to be as unobtrusive as possible. Index of /downloads/sitemesh/SiteMesh 2.4.2.

Home - SiteMesh 2 - Confluence. Skip to end of metadataGo to start of metadata What is SiteMesh?

Home - SiteMesh 2 - Confluence

SiteMesh is a lightweight and flexible Java web application framework that applies the Gang of Four decorator pattern to allow a clean separation of content from presentation. Work with the content of your website and have the appropriate look and feel applied (decorated) just before delivery to a PC or Mobile device. At the same time, SiteMesh has many advanced features and works with popular frameworks such as Spring and Struts. Why Use SiteMesh Write your content once and present it in many different ways, Gliffy Zoom Let's Hear Some More. Java Struts Spring Hibernate Tutorial - github.com/ chrishulbert/ JavaTutorial. EdCode.org. Web Automation. Introduction Web Automation written in C#, using Web Browser control to automate many things.

Web Automation

You can do many things by write JavaScript code to control a Web Browser. Background You must know basic knowledge about JavaScript and C#, because Web Automation using JavaScript to communication with c# function. How it work This code bellow explain communication between JavaScript function and C# function, if you don't use it, when you call JavaScript to C# function it will not work. Hide Copy Code [ComVisible(true)] public partial class frmMain : Form { } Then you create a Web Browser and a load JavaScript function on the Web Browser like in the code below on Form Load: The code below has two important points, first ObjectForScripting and window.external: The purpose of ObjectForScripting is for communication between JavaScript and the frmMain application, you can replace this by another class if you want, this class will be called from the JavaScript function.

How you excute the script: Techniques. La programmation par contraintes avec Choco3 (Java) jUSB: Java USB. Sokoban. Icons & Icon Packs - Download Free PNG Icons. Pricing for Git and Mercurial repo hosting for Bitbucket by Atlassian. Hibernate Examples. Let us try an example of using Hibernate to provide Java persistence in a standalone application.

Hibernate Examples

We will go through different steps involved in creating Java Application using Hibernate technology. Create POJO Classes: The first step in creating an application is to build the Java POJO class or classes, depending on the application that will be persisted to the database. Let us consider our Employee class with getXXX and setXXX methods to make it JavaBeans compliant class. A POJO (Plain Old Java Object) is a Java object that doesn't extend or implement some specialized classes and interfaces respectively required by the EJB framework. When you design a classs to be persisted by Hibernate, it's important to provide JavaBeans compliant code as well as one attribute which would work as index like id attribute in the Employee class.

Create Database Tables: Second step would be creating tables in your database. HyperSQL Usage Examples. Links to a collection of pages on how to use HyperSQL.

HyperSQL Usage Examples

Getting Started For new users. A simple, illustrated guide on how to run an HSQLDB server and to connect to the server with the Database Manager Swing. Schuchert - JPA Tutorial 1 - Getting Started. <--Back This first tutorial gives you an opportunity to work with: setting up a persistent unit, creating in-memory entities and persisting those entities to a database.

schuchert - JPA Tutorial 1 - Getting Started

You'll write the code such that the environment creates the database schema based on meta-information (annotations) in your entity classes. Good luck! JavaFX News, Demos and Insight // FX Experience.