struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <>
Subject Re: Generic search pop up
Date Thu, 06 May 2010 06:56:28 GMT
Hi Stephane,
personally i would do it with div managed by jquery,
this div can be result of search action displayed by one or many jsp's.
So it would like this:
user clicks somewhere on the page to search,
div shows up with empty result and search text field,
user writes some text in search text field,
div feches search action by ajax and shows the results,
if user clicks on any of the results it fires some kind of event that
can select it or find on a page or whatever one need.

Best greetings,
Pawel Wielgus.

2010/5/6 Stephane Cosmeur <>:
> Hello struts users !
> I am building a web application whose users will often need to search many
> diffrent kind of entity. To find it they will have the choice between to
> click on the element through a table (not really convinient when there are
> many entity) or to find it by a search on the name with a s:autocomplete
> balise.
> That I would like to do is to create a genreic jsp page which would appear
> in pop up and would permit to search on diffrent kind of entities according
> to a parameter I give to it.
>  For exemple if i call my pop up with parameter '1', the s:autocomplet will
> search the companies, if i call it with parameter '2'  the s:autocomplete
> will search clients.
> I have two question : how to manage pop up with struts 2, is it useful tu
> use jquery to do it ?
> Do you think i have a good approach of the problem ? Does an easier way
> exist to do it ?
> Best regards,
> --
> Stéphane Cosmeur

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message