delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

But i keep getting the below error message:
Invalid cast from java.lang.String to java.lang.String.
May I know which is the correct way to retrieve an 2D array??
Thanks a lot..


Hi,
I have try to forward from a servlet to a JSP.
Code in my servlet is below:
String[ ][ ] carrot;
:
:
RequestDispatcher rd = getServletContext().getRequestDispatcher("/summary.jsp");
request.setAttribute("Data", arr);
rd.forward(request, response);
Code in my summary.jsp is below:
<\%
String[ ][ ] listSort = (String[ ][ ])request.getParameter("sortedData");
:
:
\%>
But i keep getting the below error message:
Invalid cast from java.lang.String to java.lang.String[ ][ ].
May I know which is the correct way to retrieve an 2D array??
Thanks a lot..

TOP

Try using request.getAttribute() instead of request.getParameter().



But i keep getting the below error message:
Invalid cast from java.lang.String to java.lang.String.
May I know which is the correct way to retrieve an 2D array??
Thanks a lot..

TOP

Back Forum