File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Unable print on JSP page" Watch "Unable print on JSP page" New topic
Author

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++){
%>
<tr>
<%for(int j=0;j<7;j++)
out.print("<td>"+event_period[i][j] + "</td>");
%>

</tr>
<%
}
%>
Sri Basavanahally
Ranch Hand

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


UP THE IRONS !
Raj Neets
Ranch Hand

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