1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Calling a JSP with different parameters

Discussion in 'JSP' started by macaroni, May 14, 2012.

  1. macaroni

    macaroni New Member

    May 14, 2012
    Likes Received:
    Trophy Points:
    Hello people,
    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.

Share This Page