You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "A. Lotfi" <ma...@yahoo.com> on 2008/10/15 21:29:54 UTC

How to scroll a table in struts ???

Hi,
   
  I have an iteration that return users from an action in a jsp table, I have 1356 rows, it makes the page very long, is there any way to make the table scrollable inside the table.
   
  I am using struts1.2
   
  Thanks, your help is appreciated.

       

RE: How to scroll a table in struts ???

Posted by "Kawczynski, David" <da...@merck.com>.
http://www.dreamincode.net/code/snippet132.htm

Scrollable is fine, but the jsp response will remain large.  You way
want to consider using the displaytag to paginate the resultset.

-----Original Message-----
From: A. Lotfi [mailto:majidnakit@yahoo.com] 
Sent: Wednesday, October 15, 2008 3:30 PM
To: Struts Users Mailing List
Subject: How to scroll a table in struts ???

Hi,
   
  I have an iteration that return users from an action in a jsp table, I
have 1356 rows, it makes the page very long, is there any way to make
the table scrollable inside the table.
   
  I am using struts1.2
   
  Thanks, your help is appreciated.

       
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


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


Re: how to transfer element between two list boxes ?

Posted by Dave Newton <ne...@yahoo.com>.
--- On Fri, 10/17/08, A. Lotfi wrote:
> <html:form action="transfertoDB">
>   <html:select property="menu" size="10" >
>     <html:option value="">--SELECT--</html:option>
>     <html:options collection="menuList1" property="value"
>                   labelProperty="label" />
> [...]
>
>   I have two questions :
>   1) I hard coded the size of the lists to 10,How to make
> the size dynamic?

Use JSP EL:

<html:select property="menu" size="${theSize}">

> 2) I would like to transfer element between the two lists.

Not a Struts question; that's JavaScript.

Dave


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


how to transfer element between two list boxes ?

Posted by "A. Lotfi" <ma...@yahoo.com>.
Hi,
   
  I am using struts1.2.9
   
  I have a jsp file that has two list boxes :
   
  <html:form action="transfertoDB">
            <html:select property="menu" size="10" >
                <html:option value="">--SELECT--</html:option>
                <html:options collection="menuList1" property="value" labelProperty="label" />
            </html:select>  
           
            <html:select property="menu" size="10" >
                <html:option value="">--SELECT--</html:option>
                <html:options collection="menuList2" property="value" labelProperty="label" />
            </html:select>  
        </html:form>
   
  I have two questions :
  1) I hard coded the size of the lists to 10,How to make the size dynamic?
   
  2) I would like to transfer element between the two lists .
   
  Thank you , your help is appreciated.

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

How to populate comboboxes from Database ??

Posted by "A. Lotfi" <ma...@yahoo.com>.
Hi,
   
  I am using struts1.2
   
  I need to have a jsp page that has a form with two comboboxes or listboxes and a submit button, so the user can transfer data between the two comboboxes and the press submit button to update the database.
   
  is there any small example on how to get data from Database to a list box in a jsp page ?
   
  Thanks, your help is appreciated.
   
   

       

[OT] Re: How to scroll a table in struts ???

Posted by Dave Newton <ne...@yahoo.com>.
A scrollable div?


--- On Wed, 10/15/08, A. Lotfi <ma...@yahoo.com> wrote:

> From: A. Lotfi <ma...@yahoo.com>
> Subject: How to scroll a table in struts ???
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Date: Wednesday, October 15, 2008, 3:29 PM
> Hi,
>    
>   I have an iteration that return users from an action in a
> jsp table, I have 1356 rows, it makes the page very long, is
> there any way to make the table scrollable inside the table.
>    
>   I am using struts1.2
>    
>   Thanks, your help is appreciated.

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