Just define each Field's (checkBox) name and id (html attributs) as the same name of the attribut (intance variable) of/in your Form (Struts).
Eventually u can use <c:for each to generate/show "fields" in your JSP. Ice-Man 2009/12/1 Anand <anand....@gmail.com> > hi, > > Servlet is a core, Since servlet is difficult to understand Jsp was > developed so that it saves times to code bec tag based language are easy to > understand. > > JSP container no doubts internally generates servlets, but without servlet > basic the generated code will be unknown for direct JSP deveeloper. > > Anand > > > On Thu, Nov 26, 2009 at 8:49 PM, Bob Santos <bob.santo...@gmail.com>wrote: > >> Hi Bilal, >> >> I agree with your point but I said you have to learn Servlets first before >> going to JSP cause make it easier for you. >> >> >> "IMHO, you have to understand how servlets work before you learn JSP cause >> it would be easier to understand JSP then." >> >> and that was in the context of what Sadia is going through. >> >> >> On Thu, Nov 26, 2009 at 7:37 PM, bilal malik <bam_u...@yahoo.com> wrote: >> >>> Hi Bob, >>> I disagree with you that one needs to Learn Servlets before going to >>> JSP.Coz the reason JSP was developed was to help Page designers who know >>> html and were supposed to learn bit of JSP to get work done. >>> If you see JSP internally converted by JSP Enginer to Servlets. >>> Thanks, >>> Bilal >>> >>> --- On *Wed, 25/11/09, Bob Santos <bob.santo...@gmail.com>* wrote: >>> >>> >>> From: Bob Santos <bob.santo...@gmail.com> >>> Subject: Re: [java ee programming] Question >>> To: "Sadia Butt" <buttsa...@yahoo.com>, "Java EE (J2EE) Programming with >>> Passion!" <java-ee-j2ee-programming-with-passion@googlegroups.com> >>> Date: Wednesday, 25 November, 2009, 7:13 PM >>> >>> >>> Hi Sadia, >>> >>> For example I want to create a simple book site that will display a list >>> of books: >>> >>> 1. Create my Book.java bean (http://pastebin.com/fe232e2b) >>> >>> 2. My home page which is index.jsp will have a link to the book list >>> which is a link to a servlet (BookServlet.java) that will create the book >>> list for me (usually you do this with a data source but we'll just hardcode >>> the list in this case) and then the servlet will dispatch the request to a >>> jsp(bookCatalog.jsp) and the jsp will display the book list. ( >>> http://pastebin.com/f4566c599) >>> >>> 3. So in BookServlet.java we've added the bookList object to the session >>> and we can get it in bookCatalog.jsp using EL and display it using >>> JSTL(forEach) as well. (http://pastebin.com/f3f13befd) >>> >>> But again since you missed out on these concepts I strongly recommend >>> going back to EL and JSTL. >>> >>> The codes assume you know what to import. They may have some errors as I >>> just wrote it on pastebin but it should give you the idea. >>> >>> Regards, >>> >>> Bob >>> >>> >>> On Thu, Nov 26, 2009 at 12:37 AM, Sadia Butt >>> <buttsa...@yahoo.com<http://in.mc954.mail.yahoo.com/mc/compose?to=buttsa...@yahoo.com> >>> > wrote: >>> >>>> Thanks bob for the reply >>>> >>>> I have practiced all of this except custom tags. Can you tell me when >>>> you EL helps you reference bean maps etc then what exactly do you mean???? >>>> >>>> thanks >>>> >>>> Sadia >>>> --- On *Wed, 11/25/09, Bob Santos >>>> <bob.santo...@gmail.com<http://in.mc954.mail.yahoo.com/mc/compose?to=bob.santo...@gmail.com> >>>> >* wrote: >>>> >>>> >>>> From: Bob Santos >>>> <bob.santo...@gmail.com<http://in.mc954.mail.yahoo.com/mc/compose?to=bob.santo...@gmail.com> >>>> > >>>> Subject: Re: [java ee programming] Question >>>> To: >>>> buttsa...@yahoo.com<http://in.mc954.mail.yahoo.com/mc/compose?to=buttsa...@yahoo.com> >>>> Cc: >>>> java-ee-j2ee-programming-with-passion@googlegroups.com<http://in.mc954.mail.yahoo.com/mc/compose?to=java-ee-j2ee-programming-with-pass...@googlegroups.com> >>>> Date: Wednesday, November 25, 2009, 4:50 AM >>>> >>>> Hi Sadia, >>>> >>>> Don't overwhelm yourself, just take on each topic one by one practice >>>> coding using the things you learn cause I think right now you are skimming >>>> through the whole JSP topic which is hard to understand if you don't start >>>> it from the beginning. >>>> >>>> IMHO, you have to understand how servlets work before you learn JSP >>>> cause it would be easier to understand JSP then. And then when you start >>>> with JSP start with scriptlets first, then EL, JSTL and custom tags. >>>> >>>> Scriptlets are java code snippets you put with your HTML code. >>>> >>>> Expression language helps you reference beans, maps, lists and other >>>> objects easily. >>>> >>>> JSTL are the standard jsp tags that help you get rid of unnecessary >>>> scriptlets like looping, database access, etc. >>>> >>>> While custom tags, are tags that you create yourself. >>>> >>>> You will be fine with JSP if you understand basic JSP(Scriptlets, >>>> expression, declaration), EL and JSTL. >>>> >>>> But again, don't try to rush things. >>>> >>>> >>>> Regards, >>>> >>>> Bob >>>> >>>> On Wed, Nov 25, 2009 at 11:23 AM, Sadia Butt >>>> <buttsa...@yahoo.com<http://mc/compose?to=buttsa...@yahoo.com> >>>> > wrote: >>>> >>>>> Hi guys.. >>>>> >>>>> While going through the web application development I found a lot of >>>>> things & I wanted to know the difference between them. First I saw >>>>> scriplets >>>>> expressions then I saw expression language then I found JSTL or the tags >>>>> which start with <jsp: then we have something called custom tags as >>>>> well....I am confused in this. Can anyone help me in this what exactly >>>>> things are active in the market & what should we cover in order to learn >>>>> JSP??? >>>>> >>>>> thanka >>>>> >>>>> Sadia >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Java EE (J2EE) Programming with Passion!" group. >>>>> To post to this group, send email to >>>>> java-ee-j2ee-programming-with-passion@googlegroups.com<http://mc/compose?to=java-ee-j2ee-programming-with-pass...@googlegroups.com> >>>>> To unsubscribe from this group, send email to >>>>> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<http://mc/compose?to=java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com> >>>>> For more options, visit this group at >>>>> >>>>> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Java EE (J2EE) Programming with Passion!" group. >>>> To post to this group, send email to >>>> java-ee-j2ee-programming-with-passion@googlegroups.com<http://in.mc954.mail.yahoo.com/mc/compose?to=java-ee-j2ee-programming-with-pass...@googlegroups.com> >>>> To unsubscribe from this group, send email to >>>> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<http://in.mc954.mail.yahoo.com/mc/compose?to=java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com> >>>> For more options, visit this group at >>>> >>>> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en >>>> >>>> >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Java EE (J2EE) Programming with Passion!" group. >>> To post to this group, send email to >>> java-ee-j2ee-programming-with-passion@googlegroups.com >>> To unsubscribe from this group, send email to >>> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com> >>> For more options, visit this group at >>> >>> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en >>> >>> >>> ------------------------------ >>> The INTERNET now has a personality. YOURS! See your Yahoo! >>> Homepage<http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/> >>> . >>> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Java EE (J2EE) Programming with Passion!" group. >> To post to this group, send email to >> java-ee-j2ee-programming-with-passion@googlegroups.com >> To unsubscribe from this group, send email to >> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> >> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en >> > > > > -- > Regards, > > AnAnD, > Software Engineer, > ZEDO AdServing > > > . > > -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com> > For more options, visit this group at > > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en > -- Derlon Ao encaminhar esta mensagem (ou qualquer 1 q se destine a mim tb), não se esqueça de retirar o meu nome e o meu End. de E-Mail e coloque todos os End.s dos destinatários em Cópia Oculta - CcO (BCc). Ajude a combater o Spam! -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en