Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable print on JSP page

 
Raj Neets
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you pls give some details on the error ?
 
Raj Neets
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Error Message
Javax.servlet.ServletException
This is only error thrown
Thanx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic