You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Heligon Sandra <sa...@nextream.fr> on 2002/10/21 16:27:58 UTC

Struts and client side features

	In a Struts application, is it possible to modify a JSP page without
	call the server.
	My problem is the following I have a page with a list of employees
	and the type of one of the column is a check box.
	I have two buttons "select all" and "unselect all", that must check
	all the employees or uncheck all.
	For that no method is called on the server, the result is just a new
version
	of a view.
	How can I do that ? do I have to use JavaScript ?
	On the page I would like to allow user to sort the list (rising or
ascending selection)
	by column. It is the same problem, isn't it ?

	Sandra 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Struts and client side features

Posted by "V. Cekvenich" <vi...@users.sourceforge.net>.
A good practices is to write a JSP tag that emits JavaScript.
The JavaScript can contain an array list that comes from a bean.
Commonly used on dependent options Collections tag.

.V

Heligon Sandra wrote:
> 	In a Struts application, is it possible to modify a JSP page without
> 	call the server.
> 	My problem is the following I have a page with a list of employees
> 	and the type of one of the column is a check box.
> 	I have two buttons "select all" and "unselect all", that must check
> 	all the employees or uncheck all.
> 	For that no method is called on the server, the result is just a new
> version
> 	of a view.
> 	How can I do that ? do I have to use JavaScript ?
> 	On the page I would like to allow user to sort the list (rising or
> ascending selection)
> 	by column. It is the same problem, isn't it ?
> 
> 	Sandra 




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>