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

Domain Object as Strtus Action form.

 
Jigar Naik
Ranch Hand
Posts: 761
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can we create Struts action form without extending ActionForm class ?

I want to use Domain Object as an action form of struts.

 
Shankar Tanikella
Ranch Hand
Posts: 329
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, we can't. A simple example or way to look into it - while you submit your request, struts does the all required processing to set the request content in the corresponding form (your) which extends the ActionForm. In the action classes what you get(known by the method signature) is main/parent type(generic form, the ActionForm) and not the our actual domain form. And to me this is one of the reason or drawback why 1.x is let down
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic