Question about linking the jsp input fields to the actionForm

Hi - I am a newbie to JSP and Struts
We have a jsp form for employees to change their contact information.
The fields are layed out so that it will have the "current information" and the "change to" information
                    Current Info            Change To
   Last Name   _____________     ________________

the current information is display only

Here's the question - when I create my actionForm do I need to have properties for both of these fields (i.e. a property for "currentLastName" and for "newLastName" or is there a way to use the same property for both of these fields?  I would want the "change to" fields to be blank unless the user inputs a value into the text box

Who is Participating?
it's better to have both as seperate fields.

Not a good idea to have a single field representing two different values at times.

JLLangeAuthor Commented:
thank you - I was assuming that was the way to go, but wanted to make sure :o)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.