Activate your free membership today | Log-in

Friday, September 9th, 2005

Struts-Layout Suggest

Category: Java, LiveSearch

<p>The Struts-Layout tag library now allows you to put Suggest fields on your web
pages:

It is very easy to use:

You only have to use a simple JSP tag:

<layout:suggest suggestAction=”/getCountrySuggestions” key=”Country”
styleId=”countryField” value=”" />

where “/getCountrySuggestions” is a Struts action in which you instantiate a collection containing the results matching the typed word.

You can easily custom it:

You can use different skins, set the maximum number of returned results, set the timeout or the minimum number of typed characters before getting results…

How to use Suggest field:

Read the tutorial: http://struts.application-servers.com/suggest/index.html

More about Struts-Layout:

Struts-Layout is a tag library for struts which provides easy and fast interface
creation. This is achieved by powerful tags which display panels, input fields,
tables, treeviews, sortable lists, datagrids, popups, calendars, etc. With those
tags, the developer have neither need to write nor even know HTML.

Struts-Layout website: http://struts.application-servers.com/

You can find an online demo

Struts Layout

( via François Goldgewicht )

Related Content:

  • Build Struts applications easily
    WDSC provides a variety of tools, wizards and editors to make it easier and more productive to build Struts applications, especially for developers...
  • Tiles 101/201
    The article is divided into two sections. In Tiles 101, I'm going to talk about how to create a standard layout using tiles. In Tiles 201, I'm going...
  • Redirect After Post
    This article shows how to design a well-behaved web application using...
  • Working with WDS's wizard
    +++--
    3.6 rating from 22 votes

1 Comment »

Comments feed

I just find a problem with layout:suggest, the options suggested doesn´t renders well accents and the “ñ”. I´m spanish.

How can I solve it? Any idea?

Comment by polyphony — May 9, 2006

Leave a comment

You must be logged in to post a comment.