|
| I have couple of problems when I try to follow this tutorial, the only difference is that I use Netbean, but the tutorial use the Eclipse.
Here it is my question.
1. the first half of the tutorial work very well, the display the pet list show the similar result as from the tutorial, but the image can not be displayed.
I save all the image files under /WEB-INF/images directory, then from the code, I use "/WEB-INF/images/", it didn't work, I use the original code (requestContext), didn't work, what can be wrong here.
2. for the second part (display pet details), I can not pass the pet_id parameter, and catch it in doView, I tried both the sample code and getParameter, none of them work, from the sample code, it return 0, from the getParameter, it return null. Can not figure out what is going on here.
3. to include the jsp in doView, it always complaint that it can not find the jsp file, I tried the sample code, the /WEB-INF/jsp, none of them work for me.
4. even I can make all of the sample work, I still like to know how to navigate through the list, and pick up the particular pet item, then view its details, any idea of how to implement this part.
5. further more, if someone can show me how to implement the simple CRUD around this sample, that will be perfect.
Thanks. |