Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts + Hibernate

 
Fabio Araujo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having some one problem when I try to populate a Form class with struts.
When I was using just Struts, the properties of my class that represents the FKs was simple variables like int type, but now they are instances of other class

Class ProdutoForm


Class GrupoForm


My page to register one product

I don't know what to put in the place of "???", I've tried to put "grupo.idgrupo" but this didn't work too =/

Or maybe if I can place a new property in class ProdutoForm and Hibernate ignore this property...
 
Fabio Araujo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got some advice from rlaf of Guj Forum and solved my problem using the code below



e na jsp:


Is there a better solution for this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic