[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Question about linking the jsp input fields to the actionForm

Posted on 2006-03-27
2
Medium Priority
?
198 Views
Last Modified: 2010-04-01
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
ex.
                    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

thanks
Jen
0
Comment
Question by:JLLange
2 Comments
 
LVL 11

Accepted Solution

by:
fargo earned 150 total points
ID: 16304831
it's better to have both as seperate fields.

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

fargo
0
 

Author Comment

by:JLLange
ID: 16304874
thank you - I was assuming that was the way to go, but wanted to make sure :o)

Jen
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Moore’s Law has proven itself time and time again since it was first introduced. So what’s next? Will Moore’s law continue to remain relevant, or will new technology take over and bring us the next big advancement in computing?
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question