Posted By:
Archie_Marsden
Posted On:
Thursday, October 18, 2001 03:37 PM
I am attempting to use the action to use a bean for storing form input from multiple screens. I get inconsistent results. At least as far as my understanding is based from reading JavaServer Pages by Hans Bergsten (great book btw) I set up a practice jsp page that contains an input form. My useBean looks as follows: Then I call a jsp page that uses the action to display the values I entered. Unless my second page has the exact same useBean tag as above, only minus the scope attribute I get nothing back. If I add the scope attribute to the second page I get no result. If I remove the setProperty action from the second page I get no result.
More>>
I am attempting to use the
action to use a bean for storing form input from multiple screens.
I get inconsistent results. At least as far as my understanding is based from reading JavaServer Pages by Hans
Bergsten (great book btw)
I set up a practice jsp page that contains an input form. My useBean looks as follows:
Then I call a jsp page that uses the
action to display the values I entered.
Unless my second page has the exact same useBean tag as above, only minus the scope attribute
I get nothing back. If I add the scope attribute to the second page I get no result.
If I remove the setProperty action from the second page I get no result.
I have two questions. Should all useBean actions display the scope attribute even if you're only
reading from the bean?
Shouldn't I be able to read a bean without the setProperty action?
Thanks,
Archie (archiem@crengland.com)