Display data in jsp

前端 未结 1 576
长情又很酷
长情又很酷 2021-01-23 18:41

I am new in jsp and faced with one problem. I need to create jsp page, that displays data from servlet. Servlet code:

protected void doGet(HttpServletRequest req         


        
相关标签:
1条回答
  • 2021-01-23 19:07

    When I send single object to jsp it's work normally (commented part of code). But when I try to send list, I can not separate object and browser shows me only test messages.

    You have forgotten to include the core tag library. that's why <c:forEach> is not working but it works if you pass just single object.

    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    
    0 讨论(0)
提交回复
热议问题