May 2005
If I currently would have to build a Java web application, I would probably connected with the Spring Framework to implement. In the context of Jax 2010 Jürgen Höller (one of the chief developers of Spring) a review, an inventory and an outlook given in Spring.
After playing and playing Spring, like many other frameworks, and alternative technologies (such as SWT and GWT), in his view, particularly in the role as a platform and standards, "enabler" a major role. , Means that frameworks are more innovative and higher release cycles have as standards such as JPA. Rather, they offer even the possibility of new standards to integrate into existing environments. So it is possible to develop with Spring 3.0 applications using standards such as JPA 2.0 or JSF 2.0 and still on older JBoss, Websphere or Tomcat can even run installations.
This integrative role is, according to Juergen Hoeller continue to determine the path of Spring. Here for June / July 2010, version 3.1, and in 2011 the version 3.2 are provided. This will be like in the past by Milestone releases always kept close to the latest versions of the standards or are even one step ahead.
Similar items:
posted by gklinkmann \ \ tags: frameworks , Java , Open Source
Mar 22
I have few hours to use up my Google Code hosted project- grum on the state of things done (it was indeed about time). Grum is a little Grails application for user management, which allows me to it with the web framework Grails 'to "play.
I'm aware of in implementing the many Grails Plugins waived in order to have as few side effects as possible and keep it even for those simply looking for an introduction to Grails. Thus, included in Grum solutions, such as one:
- access to a Mysql database implemented
- 1:1, 1: n and n: m GORM model relations
- own days writes Libs
- the JSP Tag Lib DisplayTag used to display the data page by page, to group, sort, and in all possible formats (excel, csv, xml, pdf) to export
- allows the upload of files
- functional tests with the webtest plugin used
- and the delivery of XML based on specific URL's (short content negotiation) to implement
The new version 0.3 now uses the plugin webtest grails 1.2.1 and 2.0.3 version. The sources , the SQL files to create the Mysql database and a web archive with all required libraries are available on Google Code to download ready.
Nutztungshinweise:
The code can be freely used, but may contain errors, for which I assume no liability. The license of the libraries it should be observed.
Similar items:
posted by gklinkmann \ \ tags: frameworks , Grails , Groovy , Java , Web
Oct 19
While I was in the first part in my little series on HTTP clients have been busy with Pear, I will now in the second Part of my attention to the Zend Framework addressed.
Even here you need two packages to accomplish the task (see Part 1 ). The package Zend_Http is like the Pear Package Http_Request2 to pure HTTP communication suitable.
With Zend_Dom one can divide the received HTML.
One way to solve the task may be:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| 'Zend/Http/Client.php' ; require_once 'Zend/Http/Response.php' ; require_once 'Zend/Dom/Query.php' ; $url = 'http://www.google.de' ; $client = new Zend_Http_Client ( $url , array ( 'maxredirects' => 0 , 'timeout' => 30 ) ) ; try { $response = $client -> request ( 'GET' ) ; if ( 200 == $response -> getStatus ( ) ) { $dom = new Zend_Dom_Query ( $response -> getBody ( ) ) ; $forms = $dom -> query ( 'form' ) ; $form = $forms -> current ( ) ; $action = $form -> getAttribute ( 'action' ) ; $client = new Zend_Http_Client ( $url . $action , array ( 'maxredirects' => 0 , 'timeout' => 30 ) ) ; $client -> setParameterGet ( 'q' , 'http client examples' ) ; $response = $client -> request ( 'GET' ) ; $dom = new Zend_Dom_Query ( $response -> getBody ( ) ) ; foreach ( $dom -> query ( 'a.l' ) as $link ) { if ( $link -> hasAttribute ( 'href' ) ) { $href = $link -> getAttribute ( 'href' ) ; $linkText = $link -> textContent ; echo "<a href= \" $href \" > $linkText </a><br />" ; } } } else { echo 'Unexpected HTTP status: ' . $response -> getStatus ( ) . ' Php require_once 'Zend / Http / Client.php'; require_once 'Zend / Http / Response.php'; require_once 'Zend / Dom / Query.php' $ url = 'http://www.google.de' ; $ client = new Zend_Http_Client ($ url, array ('maxredirects' => 0, 'timeout' => 30)); try ($ response = $ client -> request ('GET') if (200 == $ response -> getStatus ()) ($ dom = new Zend_Dom_Query ($ response -> getBody ()) $ forms = $ dom -> query ('form'); $ form = $ forms -> current (), $ action = form -> getAttribute ('action'); $ client = new Zend_Http_Client ($ url $. $ action, array ('maxredirects' => 0,' timeout '=> 30)); $ client -> setParameterGet (' q ',' http client examples'); $ response = $ client -> request ('GET'); $ dom = new Zend_Dom_Query ($ response -> getBody ()) foreach ($ dom -> query ('al') as $ link) (if ($ link -> hasAttribute ('href')) ($ href = $ link -> getAttribute ('href'), $ link text = $ link - text content> echo "<a href = \" $ href \ "> $ link text </ a> <br />";))) else (echo 'Unexpected HTTP status:'. $ response -> getStatus (). " $response -> responseCodeAsText ( ) ; } } catch ( Zend_Http_Exception $e ) { echo 'Error: ' . $e -> getMessage ( ) ; } ?> '. $ Response -> responseCodeAsText ();)) catch (Zend_Http_Exception $ e) (echo' Error: '. $ E -> getMessage ();)?> |
The code speaks for itself, so I will not explain it at this point as detailed as in the first part.
The difference is in the parsing of the HTML's. The method query () (lines 18 and 31) provides that is not an array, a special object of class Zend_Dom_Query_Result back. Since this class, the two interface Countable and Iterator implemented, the results of the inquiry with a foreach loop to go through. Every single match is over an object of class DOMElement shown.
Conclusion:
Zend also offers Zend_Http Zend_Dom and a good HTTP client. One uses in his project already have other classes from the Zend Framework this approach is recommended.
View:
In part three, I leave the PHP world and put HttpUnit a very comfortable and feature-rich HTTP client for Java before using.
Similar items: posted by gklinkmann \ \ tags: frameworks , php , web
Oct 11
The week before the holiday is always a bit stressful. Therefore, there are only two links:
- Start in Spring RC2 Roo
- Who can use Grails can not or will receive a code generator Roo with Spring for web applications based on Spring, and Java.
- Wordpress with Lucene
- The Free Library Search, more than one entry in Wordpress plugin.
Similar items: posted by gklinkmann \ \ tags: frameworks , Java , Spring , Web , wordpress
Oct 03
Throughout the week, there are always interesting articles on the net for me, to me a bookmark on delicious.com are worth. Some of the impetus for a review in my own blog, but most of accumulated knowledge (we are all hunters and gatherers), which may be viewed.
This week we have made following article in my link list:
- Inspiration: The best CSS and design galleries
- A good layout is just as important as the technology behind it. Here are a few examples.
- Image Flow by Finn Rudolph
- A very nice implementation of Apple's Cover Flow for the web.
- 10 Useful Findings and Usability Guidelines
- The Smashing Magazine has released some results of his study on the usability of web sites - very interesting.
- Stylish Charts Using jQuery CSS and PHP
- So far I have always created as image maps on the fly. The solution with PHP and jQuery is also an interesting approach.
- Browser with PHP remote control
- Nils Langner of phphatesme Blog explains how you can with selenium and PHP to remotely control the browser. Automated functional tests are already very long list of subjects for my blog. It is time for a post.
- Grails 1.2: Spring 3, Uri Rewriting and more
- Very good article about the upcoming Grails 1.2 Release.
Similar items: posted by gklinkmann \ \ tags: Ajax , css , frameworks , Grails , JavaScript , Spring , Web