Two Laptop Bag
The moose likes Tomcat and the fly likes Problems on introspection/reflection under Tomcat (for JSTL and STRUTS) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Problems on introspection/reflection under Tomcat (for JSTL and STRUTS)" Watch "Problems on introspection/reflection under Tomcat (for JSTL and STRUTS)" New topic
Author

Problems on introspection/reflection under Tomcat (for JSTL and STRUTS)

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
[ June 30, 2003: Message edited by: F�bio Gama ]
 
 
subject: Problems on introspection/reflection under Tomcat (for JSTL and STRUTS)
 
Threads others viewed
flow of controls in a Bean
Populating the FormBean/Business Tier Bean - doubt on Introspection/Reflection
Problems while importing an Struts-based .war from Tomcat to WSAD 4
Too many getters
Problems on introspection/reflection under a Servlet Container
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture