Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

display multiple images from a mysql table to jsp  RSS feed

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???
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!