Re: specify html:form action property

2007-01-17 Thread Ilja S.
Sorry didn't get what you mean by "use JSTL/EL to navigate the servlet api" :) As I mentioned before request.getServletPath() gives Tiles layout jsp page, not action mapping. * Best Regards Ilja Joseph McGranaghan wrote: That MappingDispatchAction sounds l

Re: specify html:form action property

2007-01-17 Thread Joseph McGranaghan
That MappingDispatchAction sounds like a good idea. What if you use JSTL/EL to navigate the servlet api and do a similar filter for /admin/* etc? Could do it in a javascript function onSubmit. -Joe Ilja S. wrote: The thing is that I use MappingDispatchAction So in one action class I have 2 m

Re: specify html:form action property

2007-01-17 Thread Ilja S.
The thing is that I use MappingDispatchAction So in one action class I have 2 methods: 1 will be executed when /supervisor/deals is accessed and other when /admin/deals is executed. I found this convenient for handling authorization (user with role supervisor can't access /admin/* urls) and hav

Re: specify html:form action property

2007-01-17 Thread Joseph McGranaghan
What if you use a DispatchAction and one path. Either way you will need to check a parameter (or something) to ensure the proper route -Joe Ilja S. wrote: Hello This could be silly question but I'm kind stuck here. I have 2 ActionMappings in struts config with following paths: path="/admin/dea

specify html:form action property

2007-01-17 Thread Ilja S.
Hello This could be silly question but I'm kind stuck here. I have 2 ActionMappings in struts config with following paths: path="/admin/deals" path="/supervisor/deals" Both have the forward to same jsp with form. All I want to do is depending on a requested mapping submit form, well, to its' ac