I have an idea about the development of struts. If there is another way please let me know!
i want to reuse an action in different context like this:

i mention that im using this mapping in web.xml : *.do

Ive tried 2 approaches
approach 1
defining 2 actions in struts like this:
a /view/CerereActEdit.do -> X.class
b /edit/CerereActEdit.do   -> X.class (same class)
c /CerereActEdit.do -> X.class (same class)

but it seems that struts, whatever action i ran it always uses c mapping!
q: why is that because web.xml mapping mentions that struts must match *.do
so he should match /view/CerereActEdit.do with /view/CerereActEdit.do not with /CerereActEdit.do!!!

approach 2
i only use /CerereActEdit.do that does some things and then forwards like this:
<forward name=.... path="/CerereActeList.do"
but when i run /view/CerereActEdit.do and also /CerereActEdit.do struts always forwards to /CerereActeList.do and never to /view/CerereActeList.do that is he "forgets" the context in which he has executed CerereActEdit action

i think that the behaviour of struts should be improved to keep track of the context (not losing it on the way)
and to switch to context only when requested!



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

Reply via email to