This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes Looking for POJO to web form and webform to POJO examples... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

Looking for POJO to web form and webform to POJO examples...

Jochen Szostek
Ranch Hand

Joined: Mar 23, 2008
Posts: 42

Hi all,

I'm looking for struts2 examples where the contents of a web form are synchronized to the values of a pojo and vice versa.

This is possible with struts, right?

Do you need to define some kind of mapping for this to work, or is it possible to e.g. create a user object with a name and pasword (string) field starting from a login form? (or is there any other way to create java objects and the corresponding web forms to manage them at the same time? (so you don't have to program them both))

Thanks!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8705
    
    6

Eric gave you a good answer in your previous post. Is there something you don't understand about his answer?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Joe is right. If you have follow-up questions, please post them in the original thread.

I'm closing this topic, but anyone who wishes to respond may do so in the thread below:

http://www.coderanch.com/t/58230/Struts/implement-pojo-web-form-mapping


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Looking for POJO to web form and webform to POJO examples...
 
Similar Threads
Preview Page before Submission
how to implement pojo to web form mapping in struts2
Jboss seam samples
using a pojo model in a struts app
Use Eclipse to create simple web service