Page 1 of 1

About question enthuware.jwpv6.2.936

Posted: Wed Aug 10, 2011 3:30 pm
by RoyEL1@comcast.net
Consider the code fragment of a servlet's doGet method. .

public void doGet(HttpServletRequest request, HttpServletResponse response)
{
...
ArrayList tableNamesVector = getTablesSomehow(); // 1
request.setAttribute("tableNames", tableNamesList); // 2
request.getRequestDispatcher("Reporter.jsp").forward(request, response);
...
}

I'm assuming that the tableNamesVector in //1 should match the tableNamesList in //2 since the question is really about using it in the Reporter.jsp.
Correct?

Re: About question enthuware.jwpv6.2.936

Posted: Sun Aug 14, 2011 8:39 am
by admin
You are right. This has been updated.

thanks for your feedback!