• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

assign the two dimension array in struct jsp page

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic