Managed to solve the problem. Here's what I did.
1) Set a request-scope variable in P1Action
2) The P2FormBean has a
String variable 'display' defined. This corresponds to the hidden variable 'property' attribute. See my posts above if this is unclear.
Override the reset() nethod of P2FormBean, adding
That sets the value of the hidden field in P2.jsp.
3) Override the validate() method of P2FormBean
This adds a request-scope variable 'display' so that the bean:write tag can display the value on p2.jsp. Again, see my posts above if this is unclear.
Just wanted to share this working solution. In case
testing reveals a problem, I will be sure to post it here.
Forgot to add: I did remove the 'value' attribute for the <html:hidden> tag, so that part in P2.jsp looks like:
[ June 16, 2006: Message edited by: Ud Naik ]