• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

html option tag error

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Expert's
<html:select>
<html ption value="<%=departmentId%>"><%=departmentName%></html ption>
</html:select>
where departmentId is an int.

This code was compiling and running in Orion just fine, however, when trying to access
this page in JBoss, I get the following error:

An error occurred at line: 1,745 in the jsp file: /insurance/jsp/selectTenderType.jsp
| Generated servlet error:
| The method setValue(String) in the type OptionTag is not applicable for the arguments (int)
|
how to solve this problem.Please help me.Its Urgent.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Every question on JavaRanch is "urgent", at least to the person asking it. Please Ease Up.
As for your question, have a look at this post.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try changing <%=departmentId%> to <%= (new Integer(departmentId)).toString%>. That way the argument is a String instead of an integer.
[ February 04, 2008: Message edited by: Merrill Higginson ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Rajm mr",
Please check your private messages.
-Ben
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"raj",
Please check your private messages right away. Your account is about to be closed.
 
reply
    Bookmark Topic Watch Topic
  • New Topic