i have a list of size 3

in my controller i say

int noofcards=List1.size(); which returns me the value 3

i want to print this value in my jsp. How do i do it ?

i tried this way

Controller

request.setAttribute("noofcards",noofcards);

jsp

<%= request.getAttribute("noofcards"); %>

Thanks in Advance

Remove the semi-colon from your JSP expression.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.