I don't think *.do forces a filesystem type of approach. It's equivalent in flexibility to /do/* in fact. You don't have to have a file or even a set of directories that match the path of the /x/y/z/file.do path specification, so you could do the same things you do with /do/*. It's just a matter of preference. Try it -- you can have weird *.do paths that don't map to anything in the filesystem.
-----Original Message----- From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 1:04 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: /do/* instead of *.do in web.xml It allows for a more logical approach to your command structures. Of course, I stopped useing *.do long ago. So, maybe it is that way too. From what I remember the *.do followed a filesystem type of approach and acutally ties you to your filesystem layout (I may be wrong). Whereas the /do/* follows a more logical command approach for example it makes a lot more since to have: www.mydomain.com/do/admin/user/add/save Rather than www.mydomain.com/AdminUserAddSave.do With .do you can only go so long before you can't make the name any longer. It just gets confusing. /do/* also follow the more traditional (standard) approach adopted by the J2EE mapping. The reality is we are dealing with mappings not one to one relationships to classes or hard resources. If I am mapping to a hard resource then it is fine to use an extension. But, if I am not. Well, then the /do/* mapping just logically looks better. I guess all in all it's a preference thing. But, I think the /do/ is a lot more eloquent and allows you to see easier where you are logically in the app. In the end applications are not about hard resources. The hard resources are there for the application. So the application should be clear and logical. That is why I like the /do/ command structure Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -----Original Message----- From: Thinh Doan [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 9:52 PM To: Struts Users Mailing List Subject: RE: /do/* instead of *.do in web.xml "works way better" in what ways? Faster, easey code maintenance...? Thkx, Thinh -----Original Message----- From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 7:20 PM To: Struts Users Mailing List Subject: RE: /do/* instead of *.do in web.xml All I use id /do/ in my apps. It works way better. I am not sure why the examples don't follow this. -----Original Message----- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 12:41 PM To: 'Struts Users Mailing List' Subject: RE: /do/* instead of *.do in web.xml yep. -----Original Message----- From: jfc100 [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 2:28 PM To: Struts-User Subject: /do/* instead of *.do in web.xml Hi, Has anyone managed to use /do/* instead of *.do successfully in web.xml? The struts catalog mentions a few benefits but I've not managed to get it to work yet. (*.do works but not /do/*). Any ideas? Thanks Joe -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

