*
The moose likes Struts and the fly likes use a object in the form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "use a object in the form" Watch "use a object in the form" New topic
Author

use a object in the form

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 250
hi

in my class who extends ActionsForm

i have a object of type User

this class have two list

how to use my User object in my jsp?

i tried



but i get a message error



any idea

thanks
Fidel Edwards
Ranch Hand

Joined: Mar 19, 2008
Posts: 231
Hi Mark,

Could you explain me, how are you passing your request from your ActionForm (or what is the flow of your request)? What are the attributes you are using in your User Class?

Regards


God Gave Me Nothing I Wanted, He Gave Me Everything I Needed.
OCPJP6
mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 250
in my actionform

Fidel Edwards
Ranch Hand

Joined: Mar 19, 2008
Posts: 231
Hi Mark,

If I am getting it correctly. Then you should follow something like this.

Your object class (POJO)

Your ActionForm



In your jsp page try something like this


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: use a object in the form