| Author |
No extension STRUTS Controller Mapping
|
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
Ok, does anyone else hate the .do extension as much as I do? Personally, I would prefer to not have an extension at all. When not using STRUTS this is easily achieved for each servlet mapping by something like: So when I go in my browser to http://localhost:8080/webap/login I am forwarded to the appropriate JSP and that is all I see in the browser. Well, with the way the Controller works, I haven't been able to find a work around for this in struts and would love to do away with the extension all together. Anyone have any ideas?
|
 |
Rick Hightower
Author
Ranch Hand
Joined: Feb 20, 2002
Posts: 350
|
|
|
Set the action mapping to /action/* anything under action would go to your action.
|
Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
Originally posted by Rick Hightower: Set the action mapping to /action/* anything under action would go to your action.
That won't work. I have a Filter that I am using to check authentication. I have to map it to secure pages via /user/*, /action/* or whatever. With that being the case, something like LoginAction that doesn't require authentication would hit the Filter and be denied. I guess I should have stated that in the first post. I want to keep my filter in place. I don't want to create a subclass that does this and extend that in all my Action classes. So are there any other options?
|
 |
 |
|
|
subject: No extension STRUTS Controller Mapping
|
|
|