Thanks alot for the multibox answer, it worked fine. 

I have another problem plaguing me at the moment.  I have a JSP application on which you can perform a certain search.  Because I dont know how many search results will be returned I have to make sure that I have page numbers, dynamically created which will forward the user from on page to the next, but because I don't know how many pages there will be in advance I have to use the paramId and paramName attributes.  When I do this, my form bean is bypassed completely because I am not submitting the form.

How do I solve this problem?  Please, if anybody has any similar solution or examples point me in the right direction.

Thanks alot in advance.

>From: "Misra, Supriya" <[EMAIL PROTECTED]>
>To: "chiji nwankwo" <[EMAIL PROTECTED]>
>Subject: RE: Using the multibox option
>Date: Mon, 24 Sep 2001 09:52:03 -0400
>MIME-Version: 1.0
>Received: from [146.9.19.19] by hotmail.com (3.2) with ESMTP id MHotMailBD7885E300774004379A92091313A4650; Mon, 24 Sep 2001 06:53:40 -0700
>Received: from med-core03.med.wayne.edu ([146.9.19.65])by eeyore.med.wayne.edu (8.9.3/8.9.3) with ESMTP id JAA26425for <[EMAIL PROTECTED]>; Mon, 24 Sep 2001 09:50:52 -0400 (EDT)
>From [EMAIL PROTECTED] Mon, 24 Sep 2001 06:54:07 -0700
>content-class: urn:content-classes:message
>X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0
>Message-ID: <[EMAIL PROTECTED]>
>X-MS-Has-Attach:
>X-MS-TNEF-Correlator:
>Thread-Topic: Using the multibox option
>Thread-Index: AcFE/Dl2knuYukyySIKKTVxbL/HaAwAAP4lw
>
>I have cut and pasted from Action --there could be syntactic errors but
>the idea should be clear
>
>if (form == null) {
> form = new BlankForm();
> session.setAttribute(mapping.getAttribute(), form);
> }
> BlankForm localForm = (BlankForm) form;
>
>
>
> // activity is all allactivities(ArrayList)
> // selected is the string array for multibox
>
>
> ActivityDBA temp1=new ActivityDBA(); // New Database Object temp1
>
>
> // Get all activities
>
> activitylist=temp1.getAllActivity("",Current);
>
>// Get the values you need to check from database
>
> String [] faactcd=temp1.getallActivity("jsmith")
>
>
> //Create an String Array of faactcd for the forms
>multibox
>
> String checked[]=new String [activitylist.size()];
>
> // Creating the list which will be checked
>
>
> Iterator it = activitylist.listIterator();
>
> int l=0;
> while (it.hasNext())
> {
> Activity a = (Activity) it.next();
>
> for (int k=0;k> {
>
> if( a.faactcd.equals(faactcd[k]))
> {
>
> checked[l]=a.faactcd;
> continue;
> }
> else
> checked[l]="N"; // Just give some value
> }
> l=l+1;
>
>
> }
>
>
>
>
>
> //if no activities were found
>
>
>
>
> if (activitylist.size() == 0)
> request.setAttribute("IteratorMessage", "No Activities found");
>//you dont want to crash on Null Pointer
> else
> {
>
> localForm.setActivities(activitylist);
> localForm.setSelected(checked)
>}
>
>
>-----Original Message-----
>From: chiji nwankwo [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 24, 2001 9:24 AM
>To: Misra, Supriya
>Subject: RE: Using the multibox option
>
>
>
>Would you happen to have an example of an action class that implements
>this?
>
>
>
> >From: "Misra, Supriya"
> >To: "chiji nwankwo"
> >Subject: RE: Using the multibox option
> >Date: Mon, 24 Sep 2001 09:19:19 -0400
> >MIME-Version: 1.0
> >Received: from [146.9.19.19] by hotmail.com (3.2) with ESMTP id
>MHotMailBD787E3500384004319C920913139DDE0; Mon, 24 Sep 2001 06:20:54
>-0700
> >Received: from med-core03.med.wayne.edu ([146.9.19.65])by
>eeyore.med.wayne.edu (8.9.3/8.9.3) with ESMTP id JAA22645for ; Mon, 24
>Sep 2001 09:18:06 -0400 (EDT)
> >From [EMAIL PROTECTED] Mon, 24 Sep 2001 06:22:14 -0700
> >content-class: urn:content-classes:message
> >X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0
> >Message-ID:
> >X-MS-Has-Attach:
> >X-MS-TNEF-Correlator:
> >Thread-Topic: Using the multibox option
> >Thread-Index: AcFE+zKzsPWE36PrT1KLLX/h+sCTSwAABWTA
> >
> >In your Action class you set values of activities and selected--(not
> >booleans). Booleans is for checkboxes. For multibox it is usually a
> >string.
> >
> >-----Original Message-----
> >From: chiji nwankwo [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, September 24, 2001 9:17 AM
> >To: Misra, Supriya
> >Subject: Re: Using the multibox option
> >
> >
> >
> >Hi,
> >
> >Thanks for getting back to me on such short notice.
> >
> >Im still a bit confused (selected is a string array with length same as
>
> >activity but contains values which on matching will be checked ). If
> >the value of your property 'selected' is an array of Strings, how and
> >where do you set the value of the selected checkbox to true (boolean).
> >I don't know if I have made any sense, but if I have please explain
> >further.
> >
> >Thanks a lot
> >
> >Chiji
> >
> >
> >
> > >From: "SUPRIYA MISRA"
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: Using the multibox option
> > >Date: Mon, 24 Sep 2001 13:02:09 +0000
> > >MIME-Version: 1.0
> > >X-Originating-IP: [146.9.55.120]
> > >Received: from 146.9.55.120 by lw11fd.law11.hotmail.msn.com with
> >HTTP;Mon, 24 Sep 2001 13:02:09 GMT
> > >
> > >The JSP
> > >-------
> > >> type="fal.BlankForm">
> > >
> > >
> > >
> > >>property="activities">
> > >
> > >
> > >">
> > >
> > >FORM Bean
> > >---------
> > >private String[] selected;
> > >
> > > public void setSelected(String [] val){
> > > this.selected=val;
> > > }
> > >
> > > public String[] getSelected(){
> > > return this.selected;
> > > }
> > >
> > >Logic above:-
> > >activities is an array list of Object to iterate upon
> > >selected is a string array with length same as activity but contains
> > >values which on matching will be checked
> > >
> > >activity:- Example a,b,c,d
> > >selected:-null,null,c,null
> > >length =4
> > >Only c will be checked.
> > >
> > >email me at [EMAIL PROTECTED] if you still have questions. I
> > >cannot differentiate the mailing list and personalized emails at
> > >[EMAIL PROTECTED]
> > >
> > >
> > >>From: "chiji nwankwo"
> > >>To: [EMAIL PROTECTED]
> > >>Subject: Using the multibox option
> > >>Date: Mon, 24 Sep 2001 09:32:28 +0000
> > >>
> > ><< message3.txt >>
> >
> > _____
> >
> >Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> >
> >
>
> _____
>
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>


Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to