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

JSP not returning the values

 
vinoth kumar v
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Iam loading <html: option>(TicketTypes) dropdownbox from database.

But when a form is submitted the returned value for the ticketType is <% out.println(ticketTypes[i]); %> iam not getting variable name.

How can i get the dbitemname instead of <% out.println(ticketTypes[i]); %> in the ticketType variable in the form bean.
for eg.,

ticketTypes = {"apple","orange"}
If a person select "apple" in the dropdown box.
ticketType should be sent as "apple"
But in here it is sent as <% out.println(ticketTypes[i]); %> to the form bean.

Please shed some light on me.

Thanks in advance.
 
Jaimesh M Ponkia
Greenhorn
Posts: 21
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No need to use for loop in jsp when you have the values in the bean property.

Have a look at the code below:

 
vinoth kumar v
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot . .
iam able to get the values now
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic