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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems on introspection/reflection under a Servlet Container

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi there.
I�m experiencing problems involving introspection/reflection under Tomcat when using JSTL and STRUTS. At first , I named the setters and getters methods the standard way... For instance, for userName and dateOfBirth attributes, I created set/getUserName and set/getDateOfBirth methods. I created a testing class where I populated one bean from another using the introspection provided by BeanUtils.copyProperties(targetBean,sourceBean) ... In the command line, it worked very well with the methods named as above , BUT, when I try to do the same under Tomcat, it just doesn�t work unless I change the naming of the setters/getters methods... I mean , unless I create setUsername/getUsername or setusername/getusername and setDateofbirth/Dateofbirth or setdateofbirth/getdateofbirth , the instrospection doesn�t work at all ! I�ve already tested it for JSTL tags and STRUTS (populating a business tier bean from a FormBean) and unless I name these methods this way , I don�t get it working !
Could anyone please tell me what happens ???
Thanks !
F�bio
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
You have already asked this question here. If you are not happy with the responses, simply asking the same question again in a different thread is not the way to go about it. Stick with the original thread and try to refine your question there.
I am going to request this thread be closed and followups be posted to the original thread.
Jason
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic