Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display multiple images from a mysql table to jsp

 
Pravin Shirke
Ranch Hand
Posts: 152
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
i have this jsp

here i call a servlet to get the image from the Database based on the parameter employee id.

but the problem is that the servlet is not getting called. or it gets call after the page is rendered and it throws a java.lang.NumberFormatException: For input string: "" which is due to the parameter which i have passed i.e id="" as it has already looped out of the values so it will be blank. my question is why the servlet is not getting called


this is my servlet mapping


i have tried using

but no use.
i am using struts
please help me. is it due to struts-config.xml file this problem is being popped up???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic