• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bean, logic:iterate and ActionForm

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following classes:
A bean class by name AssistanceRequest:


the action form:


the action class:

where arRqstArray is an array of AssistanceRequest objects i.e. bean objects.

On the jsp:


What I am trying to acheive is when I change anything on the "notes" property, I am not able to see the changed value in the action when I submit. Previously I used to get a null pointer exception so I have made the scope session. This solves the exception but that does not show the changed value of the notes.

If you put a code like


(see I have changed the name to actionform in the above snippet) it will work fine, because the "notes" property will be in the form. But if you put a bean inside a form and then try to change it, when you submit I am not able to store the changed property of the bean in the form.

What I mean is after submitting, in the action class:



The value printed shows the previous values of the property "notes" not the updated values from the jsp. So I have to store the changed value of the bean in the form.

Please help and thanks for your time.

Luke.
 
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic