kunal
kunal
kunal
req.setAttribute("All Comments", com);
kunal
kunal
Vanessa Danin wrote:Kunal, if your homepage should contain the comments as soon as it loads, you should
change your web.xml to
<servlet>
<servlet-name>Comm</servlet-name>
<servlet-class>org.nit.servlet.CommentsServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
and possibly place the call to your commentsList method in the Comm servlet's init method.
kunal
Kunal Lakhani wrote:Vanessa Danin, load on startup doesn't works. Just wonder, why?
kunal
Kunal Lakhani wrote:Thanks Paul Clapham. Any listener helpful in this case?
kunal