Calling a JSP with different parameters
i would like to know how to call a JSP-file with different parameters so that I can use it as a blueprint for several webpages in my project.
My project is quite simple and only for learning purposes:
I have a start page with several cooking recipes. If I click on one of those recipes I will get a detailed view of the recipe, which includes some text and an image.
However, I don't want to create a new jsp-file for every recipe, because all recipes have the same layout. Instead, I want to use one and the same jsp-file for an arbitrary amount of recipes. The content of those recipes should be located in one or several XML-files.
I couldn't find a good example on the internet, so I would be very happy if someone could help me here.
|All times are GMT +5.5. The time now is 04:53.|