This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic

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))

Joe Ess

Joined: Oct 29, 2001
Posts: 8836

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:

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