Hello Marcus,

Thursday, November 7, 2002, 9:51:31 AM, you wrote:

MB> I got an "AddRecord.jsp", "AddRecordAction" and "AddRecordForm"
MB> and last but not least an "ShowAddedRecord.jsp" that displays the record
MB> that was added.
MB> When I added a new record to database, I want to forward to the same
MB> jsp, "AddRecord.jsp", so that the user can add further records.
MB> The problem now is that
MB> a) If I set this Action to scope="request", I can't redisplay the record
I always prefer to use request scope. So:
What exactly do you mean by 'I can't redisplay the record'?

MB> if I set it to scope="session", 
MB> b)when I forward to the same page again, "AddRecord.jsp" all field are
MB> filled witht the values of the old record.
MB> c) When I set value of the form to value="" it works, but when an error
MB> occurrs and the validate method gets called,
MB> all fields are left blank instead of filled.
MB> d) redirecting neither helped, because I am not using an action on the
MB> last page, just a link to the first page.

MB> Have you got a better solution ?
MB> Someone suggested to delete the form, but I don't know how to do this /
MB> guess it won't work / or wouldn't be following the mvc design to
MB> delete the form on jsp.
I have never heard of this.

MB> thx in advance,

MB> marcus

MB> --
MB> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
MB> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>



-- 
Best regards,
Dirk


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to