• 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

boolean form bean member

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
I have a form with a field phase1of2 (yes I probably should do it as a multi-step wizard, just could never apprehend that fast enough) that I set to "true". The form bean member has the setter and the is implemented. However when I test in the my action it comes up as null. Now every form bean getter comes up as null. This worked yesterday. How can this happen? Semantic logic disappears with these technologies at times. I am creating a new instance of the form bean in the action. In my struts-config.xml it has the correct form bean class assigned to the action. Ideas? tia.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure why you'd created a new form bean instance in your action; the framework normally handles form creation.

That aside, w/o any code it's kinda difficult to diagnose the issue; if you're creating an instance in the action, and the form bean itself initializes its properties, and the property is coming up null in the same action that's creating it, I'd say you've borked something up pretty good and would look at a deployment issue.
 
Chris Pat
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for the intrusion, my stupid mistake. I didnt sufficiently de-evolve my thoughts and I was trying to implement two steps with placeholder method calls that returned a null. I must be stupider next time, so I can build up the software to do what I want semantically.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If we got money for stupid mistakes we'd all be rich :)

(Well, *I* would, anyway!)
 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic