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> 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>* wrote: > > > From: Bob Santos <bob.santo...@gmail.com> > Subject: Re: [java ee programming] Question > To: buttsa...@yahoo.com > Cc: java-ee-j2ee-programming-with-passion@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 > 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 > > > -- 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