Justin Bleach

Jul 08 2010

Clearing Spring form fields in a JSP within a Spring Webflow

This blog post concerns the issues I came across attempting to clear two drop downs and a text field in a JSP that itself was a view inside a Spring Webflow (v.2.x).

The layout of the JSP is here: http://gomockingbird.com/mockingbird/index.html?project=559efee20fb22b4a077b4e6652c36f8f54376621

Essentially what my terrible drawing is showing is a list of items and below that list of items three drop downs that when selected, and the save button is clicked, will populate another row in the list. The reason for being inside a Webflow is that this particular problem was part of an enhancement to an existing Webflow.

Read More

Apr 06 2010

Spring JSP for checkbox tag

The need arose at my client recently to add a checkbox to an existing JSP. The checkbox had to be defaulted to checked. Actually I had asked whether the checkbox should be defaulted to checked. This was a proud moment for me. It is not often that I have been presented with such an easy request, with good requirements around it. A checkbox is a single line of HTML code: 

 

<input type="checkbox" name="vehicle" value="Bike" />

 

and to default the box to checked it can look something like this:

 

<input type="checkbox" name="vehicle" value="true" checked="true"/>

 

Read More

Oct 01 2009

Open Source Software vs. Proprietary Software

By now we are all familiar with the debate over open source software versus proprietary software. We understand both models for the most part. Open source means the source code of the program is free to modify but in the end money is still made on software via support for it or using community input to sell a better product. Proprietary software is the Microsoft Office or Mac OS operating system software we buy. The consumer has no direct input into the software but can obtain a certain level of free support for it.

However the debate continues as each camp tries to out-sell the other. From a Systems Integration point of view do you recommend JBoss or Websphere for a client solution?

Read More

Jun 09 2009

Neat SCJP equals, hashcode link

In studying for the SCJP exam I stumbled upon this neat little link explaining a fundamental Java topic. The overriding of equals and hashcode. More speficially the title of the article is:

How to Write an Equality Method in Java (http://www.artima.com/lejava/articles/equality.html)

This is basic stuff but since the SCJP requires you to be a human Java compiler, rather than relying on a IDE like Eclipse, it's important to go over it.

Enjoy!

Read More

Disclaimer

The words and opinions expressed here are those of each article's respective author, and do not necessarily represent the views of CapTech Ventures.