Hi,
In my
servlet, doGet method to calls another method which basically create bean and forward to
JSP, my question is that whether that method should be public or should I declare that as a private method?
Code Snippet:
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
redToHomePage(req, res);
}
private void redToHomePage(HttpServletRequest req,HttpServletResponse res) {
....
}
I am not sure whether I should declare redToHomePage as public or private?
Thanks in advance.
Sam