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?
Originally posted by John Schretz: I need this page to call a servlet then return an array of brands to fill in on my home page.
You're doing it backwards. Servlets should call JSPs, not the other way around.
Please see this article for information on accepted best practice web application constructs. [ October 01, 2008: Message edited by: Bear Bibeault ]
Joined: Sep 10, 2008
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?