How do I pass information from a servlet to a JSP page

后端 未结 4 1190
日久生厌
日久生厌 2020-12-06 02:45

Is it possible to have a servlet that contains an object (an ArrayList in this case) that then does the equivalent of displaying a jsp page and passing that object to the js

4条回答
  •  失恋的感觉
    2020-12-06 03:12

    If you are trying to make some kind of "component" then it's better to convert the JSP page into a custom tag. Here is excellent article about that: http://onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html

提交回复
热议问题