• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

assign the two dimension array in struct jsp page

 
dev pandya
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can assign the two dimenstion array in jsp page.
My bean is like this
String matrixA[][] =new String[5][5];
String matrixB[][] =new String[5][5];

How can assign the matrixA and matrixB in the jsp page.so that i can use the two dimenstion array use in struct action class.



Regards
Devarshi
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Devarshi,
Note how "Struts" is spelled. A "struct" is a type of data structure - something else entirely.

It sounds like you are trying to pass a 2D array to an action via an action form? If so, this is impossible to do. The request.getParameter() framework that Struts forms uses behind the scenes doesn't support 2D arrays.

Can you elaborate on the problem you are trying to solve? This will help people recommend alternatives.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic