Hi Stefania,
I am trying to download the new version of your summary but I'm not able to find the working link!!
Go to the
SCWCD links and scroll down to the
Rancher Notes section.
You should find the correct link over there.
Another little question: I'm studying but I find difficult to write code to practice, you already suggested me to write a web app, I followed the examples on the first chapters( about servlet and sessions) of HF but when I have to write code about EL, JSTL, custom tags, security, it means everithing except servlets, I still cannot find the right strategy. Could you give me a suggestion?
True, there is a lot about JSPs (EL, JSTL, Tags) on the exam. I would still suggust writing a small address-book web-app.
Let me just give you an idea:
Create a project (Dynamic Web Poject if you use Eclipse) called WebAddressBookUse the welcome-file tag to point to your starting jspOn that starting jsp allow the user to choose 3 possibilities (Show Addresses, Update Addresses, Delete Addresses)Create a ContextListener, that will read your addresses from a file and put it as an attribute in the ServletContextCreate a controller Servlet that will read the users choice and forward to either the ShowAddressesServlet, UpdateShowAddressesServlet, DeleteShowAddressesServletOn the ShowAddressesServlet get the list of addresses from the ServletContext and add it to your request, forward to a show.jsp and use the <c:forEach> tag to list you addressesDon't show the whole address on your jsp, create a link (with <c:url>) to link to a detail.jspCreate a update.jsp and a remove.jsp and include the addresslist (for example) by including the show.jsp)Secure your UpdateShowAddressesServlet, DeleteShowAddressesServlet after you have seen them working well (i.e. updating your addressfile)Try hanging in all the different listeners, and write something to the system consoleTry creating your own custom tag that will list your addresses in different formats (by using an attribute)Focus on getting the application flow right first, after that fill in the details of your implementation........
Good luck and don't forget to post your questions on javaranch!
Regards,
Frits