aspose file tools*
The moose likes JSP and the fly likes Unable print on JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Unable print on JSP page" Watch "Unable print on JSP page" New topic

Unable print on JSP page

Raj Neets
Ranch Hand

Joined: Nov 12, 2002
Posts: 46
I have a two dimensional array object returned to JSP by a java bean method, but when i try to print the values in that array, a Servlet exception is thrown.Can some one please tell me were i go wrong.
Here is the code
String event_period[][] = period.getevent_period();
for(int i=0;i<9;i++){
<%for(int j=0;j<7;j++)
out.print("<td>"+event_period[i][j] + "</td>");

Sri Basavanahally
Ranch Hand

Joined: Oct 07, 2003
Posts: 75
Can you pls give some details on the error ?

Raj Neets
Ranch Hand

Joined: Nov 12, 2002
Posts: 46
Error Message
This is only error thrown
I agree. Here's the link:
subject: Unable print on JSP page
Similar Threads
Having some multidimensional array problem in JSP
changing the color?
selecting dynamically generated rows of a table
Displaying all the months in the year
pass a variable in the URl