No I wouldn't say that putting "/bookEdit.do" in the JSP gives it any knowledge of the navigation sequence. By definition an Action is an abstraction, the page knows nothing of the implementation, which is the point of having the controller.
Forwards themselves are attributes of the ActionMapping not the .JSP, so logically using the forward parameter you are binding the .JSP to a particular Action in any case and it's no different from using an action reference directly. Maybe you ought to look at some kind of generic router or some of the DispatchActions if you want a more abstracted "Event" driven model in your links - I think that's a valid route to go and it's something we done a lot. Within the specialised data binding aware actions that we (Oracle) supply as part of our Application Development Framework (ADF), the DataForwardAction, which is used as a displayer and event hander for data bound pages, has a just such an eventing model.
A link can use an event=<name> url parameter which by default will cause a forward with the same <name> to be returned, of course that is coupled with the ability to implement your own code to react to that event as well. However, it does mean that the same page can be re-used because it's now working on a named event basis, and then it's up to the handling action to process the event as makes sense in the context that the .JSP is being used.
As I say this is just one possible implementation...


Regards

Duncan Mills


fjalvingh wrote:

I know that, but specifying "/bookEdit.do" in the JSP means that the
JSP has knowledge of where to go next. I want this knowledge to be
embedded in the struts-config.xml, not in the pages. So the JSP page
just specifies "exits", and the struts-config.xml "wires" those exits
to actions.

Thanks for your answer though ;-)

Frits



Not a 100% percent I undestand what you propose to do, but could you not
just say:

    <html:link page="/bookEdit.do"
               paramName="xxx"
               paramProperty="yyy"
               paramId="zzz" >edit</html:link>

Or am I missing something here?


Håkon -- We shall fight on the beaches, we shall fight on the landing grounds, we shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to