> It almost seems like "forwards" bypass actions. When I did my "forward" back > to the list page, it wouldn't execute the "ListClassesAction.perform()" method, > which normally populates the list with new data.
Forwards go where you tell them to, and don't make any hidden detours. Unless I'm mistaken, your forwards reference the JSP directly, which is why they go to the JSP and not to the action. If you need them to go to the action first, then you'll need to define them to do that (e.g. by specifying "foo.do" instead of "foo.jsp" for the path). Hope this helps. -- Martin Cooper ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 29, 2001 11:38 PM Subject: Re: link to list page & Resetting list page after saving in edit page > >>>>> "David" == David M Karr <[EMAIL PROTECTED]> writes: > > >>>>> "David" == David M Karr <[EMAIL PROTECTED]> writes: > David> Tomcat3.2.3 (with JBoss2.4.1). > David> I have several architectural and technical issues I'm trying to resolve with a > David> quite simple page arrangement. I'd appreciate any guidance, both towards > David> fixing what I have, and producing a more "sane" arrangement, if there's > David> something basicallywrong with my architecture. > > David> Update: > > David> I realized that my "perform" method was looking for the "forward" in the > David> servlet, instead of the ActionMapping. Once I fixed that, the initial display > David> of the class list worked fine. > > David> Then, I clicked one of the Edit buttons, changed one of the fields, clicked the > David> Save button, and it displayed the following error: > > Well, I ended up adding code in my "SaveClassAction" class which just manually > gets the "listClassesForm" attribute from the session, and then updates the > attribute on it manually, then continues with the forward. That correctly > updates the list after I click "Save". > > It almost seems like "forwards" bypass actions. When I did my "forward" back > to the list page, it wouldn't execute the "ListClassesAction.perform()" method, > which normally populates the list with new data. > > Is there a cleaner strategy for doing things like this? I definitely didn't > like to hardcode the reference to "listClassesForm" in the > "SaveClassAction.perform*()" method. I wish I could have gotten some sort of > indirect reference to the form bean associated with the page I was going to > forward to. > > -- > =================================================================== > David M. Karr ; Best Consulting > [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004) >

