sugestion, reusing actions in different contexts

2008-03-24 Thread Mihai Scripca
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/CerereAc

Re: [struts] sugestion, reusing actions in different contexts

2008-03-24 Thread Mihai Scripca
Dale Newfield wrote: Mihai Scripca wrote: 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 alwa

Re: [struts] sugestion, reusing actions in different contexts

2008-03-24 Thread Mihai Scripca
Dave Newton wrote: I'm pretty much lost at this point. What version of struts are you using? Im using struts 1.2.7 This is not the behaviour of struts but my desired behaviour! The server should get the request: /app/context/formAction.do, execute the action formAction ,then should go

Re: Tiles in 1.3.9

2008-04-04 Thread Mihai Scripca
dont you think it would be better practice naming tiles like this: tile.def (*.def are like .jsp but virtual pages) and only class tiles should be named with dot first like this .class-name? i point the issue by myself. the main issue is i have not given the in struts-config.xml. after i giv