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?
About question enthuware.jwpv6.2.936
Moderator: admin
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About question enthuware.jwpv6.2.936
You are right. This has been updated.
thanks for your feedback!
thanks for your feedback!
Who is online
Users browsing this forum: No registered users and 8 guests