File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bean rules

 
Tom Rispoli
Ranch Hand
Posts: 349
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Occasionaly I run into problems where struts2 is unable to take the data from my request and put it into the beans in my action class. The problem is that there is either something wrong with how I have the bean class defined or how I have the property set up. The logs don't tell me much that helps me narrow down the problem. This ends up taking me a very long time to debug. Can anyone know of a good place to find the rules that that java 6 uses for bean Introspection? I read the spec but it doesn't seem to contain all of the details. For instance, I couldn't get one of my classes to work until I gave it a zero parameter contsructor, and I don't see that in the spec (unless I'm missing it). If anyone know where to find a consise, accurate set of the rules or a good description of what is done during Introspection please let me know.

Thanks
 
Davie Lin
Ranch Hand
Posts: 294
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about posting your Javabean code here, without looking at your code is pretty much impossible to know where the problem might be
 
Tom Rispoli
Ranch Hand
Posts: 349
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not looking for help with a bug, I'm trying to find a better way to figure out when the problem that I've run into is that my bean class isn't set up correctly to work with Struts. I assume my problem is that I need to conform to Sun's bean spec, but the spec doesn't give me a very clear set of rules as to what I need to do to conform to it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic