aspose file tools*
The moose likes Struts and the fly likes assign the two dimension array in struct jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "assign the two dimension array in struct jsp page" Watch "assign the two dimension array in struct jsp page" New topic
Author

assign the two dimension array in struct jsp page

dev pandya
Greenhorn

Joined: Jun 10, 2008
Posts: 14
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30294
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: assign the two dimension array in struct jsp page