December 2007
Get a better handle on Struts actions, with Spring
by jpcaruanaimporting Struts applications into the Spring framework. Follow along as George shows you how to revamp Struts actions so they can be managed just like Spring beans. The result is a boosted web framework that easily reaps the benefits of Spring AOP.
October 2007
Geek Speak: The Web Framework Hell
by jpcaruana (via)Today, what does a developer do when they want to start a project from scratch?
Do I go with JSF? Ruby on Rails? JRuby? Groovy on Rails? Struts 2? GWT? Flex?
July 2007
Architecte Junior J2EE chez Valtech
by jpcaruanaVos principales missions sont :
• Participation à la conception d’architecture de systèmes utilisant les technologies Java,
• Encadrer des développeurs,
• Mettre en place des frameworks innovants du marché,
• Auditer des applications existantes,
• Participer à des études comparatives de technologies du marché,
• Mettre en œuvre les méthodes agiles sur des projets,,
• Présenter et expliquer à vos collaborateurs vos choix techniques, votre façon de faire.
TagUnit : Bringing testing and test-driven development to JSP
by jpcaruanaAllows unit testing of JSP custom tags within their special environment.
April 2007
StrutsTestCase for JUnit
by jpcaruana & 2 others (via)StrutsTestCase for JUnit is an extension of the standard JUnit TestCase class that provides facilities for testing code based on the Struts framework. StrutsTestCase provides both a Mock Object approach and a Cactus approach to actually run the Struts ActionServlet, allowing you to test your Struts code with or without a running servlet engine. Because StrutsTestCase uses the ActionServlet controller to test your code, you can test not only the implementation of your Action objects, but also your mappings, form beans, and forwards declarations. And because StrutsTestCase already provides validation methods, it's quick and easy to write unit test cases.
StrutsTestCase is compliant with the Java Servlet 2.2, 2.3, and 2.4 specifications, and supports Struts 1.2, and Cactus 1.6.1 and JUnit 4.0.
Please note that StrutsTestCase is no longer backwards compatible with Struts 1.0. The last release compatible with Struts 1.0 is StrutsTestCase v2.0.
November 2006
AJAX et Struts par l'exemple - Julien Carnelos Blog
by jpcaruana (via)On trouve aujourd'hui beaucoup de références sur le net sur AJAX ( XmlHTTPRequest en réalité ) mais peu d'éléments sur l'intégration de AJAX sur le framework Struts. Concernant les ressources francaises sur le sujet, c'est quasi inexistant en recherche sur Google. Je me suis donc décidé à écrire ce petit article technique. Attention, cet article n'explique pas réellement le fonctionnement de la technologie AJAX mais plutôt de son intégration avec le framework Struts.
java.net: Sprinkle Some AJAX Magic in Your Struts Web Application
by jpcaruana (via)AJAX is the latest revolution in web development circles, allowing rich dynamic interfaces deployed within a normal web browser. Struts has been one of the de facto standards for Java-Web development for a number of years, with a large number of applications already deployed. This article will show you how to combine the richness of an AJAX user interface with your existing Struts applications.
This article shows a simple and elegant way to do this by including a couple of lines of JavaScript on your JavaServer Pages (JSPs). While we show how to reuse existing Struts actions, the techniques are equally applicable to the Java-Web framework of your choice. The method proposed will also allow a move to the next version of Struts (Shale) or JavaServer Faces (JSF) in the future.
Struts best practices - Java World
by jpcaruana & 1 other (via)The article discusses the following main points:
* Screens with dynamic fields
* Safeguarding JSP pages
* Error categorization
* Validation of service requester
* Application security
* Prepopulation
* Stack maintenance (for bread crumbs)
* Context-related problems
* Form-bean scope
* Data transfer object implementation
* Exceptions
* Action chaining
Enterprise Java Community: Redirect After Post
by jpcaruana (via)All interactive programs provide two basic functions: obtaining user input and displaying the results. Web applications implement this behavior using two HTTP methods: POST and GET respectively. This simple protocol gets broken when application returns web page in response to POST request. Peculiarities of POST method combined with idiosyncrasies of different browsers often lead to unpleasant user experience and may produce incorrect state of server application. This article shows how to design a well-behaved web application using redirection.
1
(10 marks)