IllegalStateException on page load

I have a simple index page the i am using as my application entry point. I need this page to call a servlet then return an array of brands to fill in on my home page. Now i alwyas get this error and sometimes the brands never fill in on the page. I have searched and tried different things o found on the web. In the html file i commented the different ways i have tried but still get the same result. Is there a better way to try to do what i am doing or do i just have a syntax error?

yes, but this jsp page is my entry point. so when i go to www.mypage.com this is the first page called. I then am calling the servlet so i can load my home.jsp page with the proper information. Is there a way that when i go to www.mypage.com the first thing executed is the servlet?