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: 10228
- 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!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 2 guests