Thursday, October 28, 2010

Spring Web Flow 2: flow redirect

needed : proper mapping definition

e.g.
epb5-servlet.xml

<!-- Spring MVC -->
<bean id="handlerMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/loginform.htm">flowController</prop>
<prop key="/jobheaderform.htm">flowController</prop>
</props>
</property>
</bean>



to redirect from loginform flow to jobheaderform flow:
e.g.in loginform.xml:
<view-state id="jobHeaderView" view="flowRedirect:jobheaderform.htm?jobId=15438">
</view-state>

where jobId is defined as an input in jobheaderform flow:
<input name="jobId" required="true" />

Wednesday, October 27, 2010

notes on Spring Web Flow

1) Spring Web Flow 1.0 and Spring Web Flow 2.0 are different as e.g. Struts 1 and Struts 2. i.e. there is no compatibility
2) having trouble with the latest version of Spring Web Flow 2 and Spring 3 -> an app implemented with an older version is not working with the libs from the latest distributions
3) web flow definition -> in a state, there may be only one evaluate -> the second one is not executed, the flow fails

Monday, October 25, 2010

Web App testing - SeleniumHQ

http://seleniumhq.org/

Apache Ivy

http://ant.apache.org/ivy/
dependency management that is easily integrated with ant

Friday, October 22, 2010

Having Fun with Spring Roo

it is really funny ... to build java projects ... from command prompt....

http://s3.springsource.com/MRKT/roo/2010-01-Five_Minutes_Roo.mov

Tuesday, October 19, 2010

maven - Oracle JDBC driver dependency

e.g. we'd like to use ojdbc14.jar for Oracle 10.2.0.1.0

1) install jdbc driver in mvn repository

mvn install:install-file -Dfile={ORACLE_HOME}/jdbc/lib/ojdbc14.jar -Dpackaging=jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.1.0

2) specify dependency in pom.xml

<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.1.0</version>
</dependency>

other people's blogs

http://joelonsoftware.com/
to check Painless Functional Specifications in particular

http://www.gridshore.nl/


http://www.andygibson.net/articles/seam_spring_comparison/html/ch02.html

unfortunately again about Spring Web Flow 1:
http://www.cakesolutions.net/teamblogs/2008/07/16/spring-webflow-passing-objects-between-parent-flow-and-subflows/

http://forum.springsource.org/archive/index.php/t-39048.html

**********
Struts 2:
http://cse-mjmcl.cse.bris.ac.uk/blog/2007/09/10/1189430125294.html

***********
http://denis-zhdanov.blogspot.com/2009/09/standalone-tomcat6-based-web.html


http://paulszulc.wordpress.com

Saturday, October 16, 2010

getting familiar with spring

Spring in Action, 2nd edition, Craig Walls
notes

DI - Dependency Injection
AOP - Aspect-Oriented Programming

s.
EJB 3.0 specs
Expert One-on-One: J2EE Design and Development, Rod Johnson
templating frameworks Velocity, FreeMaker
AOP Alliance interfaces, AspectJ
JMX Java Management Extension
JCA Java EE Connector API
...