You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mufaddal Khumri <mu...@wmotion.com> on 2003/02/25 05:52:21 UTC

Need to create two lists and add remove data between them.... ?

Hi,

I have a JSP page on which i need to create two lists side by side and 
have two buttons between them - Add and Remove. I have other stuff on 
the same JSP page as well. like text boxes, check boxes etc.

How do I get my add and remove buttons to work so that i can capture a 
mouse click on add to transfer the selected item from list1 to list2 ? 
(the same for the remove button .. remove a selected item from list2 
and add it back to list1).

Does anybody know how to solve this problem ? Sample code would be 
highly appreciated to.

Thanks,
Mufaddal.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Need to create two lists and add remove data between them.... ?

Posted by Mike Jackson <mj...@cdi-hq.com>.
Javascript would be the only way that I can think of (without doing a page
submittion, which I'm assuming is what you're trying to avoid).  I don't
have an example however.

--mikej
-=-----
mike jackson
mjackson@cdi-hq.com

> -----Original Message-----
> From: Mufaddal Khumri [mailto:mufaddal@wmotion.com]
> Sent: Monday, February 24, 2003 8:52 PM
> To: Tomcat List
> Subject: Need to create two lists and add remove data between them.... ?
>
>
>
> Hi,
>
> I have a JSP page on which i need to create two lists side by side and
> have two buttons between them - Add and Remove. I have other stuff on
> the same JSP page as well. like text boxes, check boxes etc.
>
> How do I get my add and remove buttons to work so that i can capture a
> mouse click on add to transfer the selected item from list1 to list2 ?
> (the same for the remove button .. remove a selected item from list2
> and add it back to list1).
>
> Does anybody know how to solve this problem ? Sample code would be
> highly appreciated to.
>
> Thanks,
> Mufaddal.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org