I appreciate anyone's assistance. I wanted to validate user customizable
field values so I changed my JSP page so that the form action would post
existing form - action=<%= getRequestURI() %>. Upon form loading after
submit verify field values and if any are left empty a message would be
posted, and again form would be reposted until all field values were
confirmed not to be empty. If field values were not left blank then it would
automatically call a servlet to store the field values entered. The jsp page
and form worked perfectly until I tried to implement the field validation.
What happens is any object that I attempt to initialize after the form is
loaded for the second time (after action=<%= getRequestURI() %>) results in
a null pointer exception.
For instance the following works perfectly the first time around, but on the
2nd pass the second line of code draws a null pointer exception.
UserSelections us =
(UserSelections)request.getAttribute(PropertyConstants.USER_SELECTIONS);
int selectedModelId = us.getModelId();
Any help would be greatful,
Mike