Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

error occurred in passing list of object form servlet to jsp

 
Aya Muhannad
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code in servlet for passing list of objects


in jsp


the error

type Exception report

message An exception occurred processing JSP page /metadata_display.jsp at line 141

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /metadata_display.jsp at line 141

138:
139: <tr >
140:
141: <td> ${text.name} </td>
142: <td> ${text.med} </td>
143: <td> ${text.dom} </td>
144: <td> ${text.to} </td>

can you tell me how to solve the error
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have getter methods in place for all the fields the JSP uses? You need those. Also, don't use underscores in variable names - use CamelCase (i.e., authName).
 
Aya Muhannad
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not have getter method , I have another method
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's (at least part of) your problem then. You need get Name, getMed, getDom, etc.
 
Aya Muhannad
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
very thank you , my problem is solved when I use getter methods
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!