Unless you are doing anything funky, you should be able to change to any extension....and if you are _not_ using Struts Modules, you can go back and forth between extension (*.do) and path (/myapp/foo/myaction) mapping by simply changing the web.xml file.
I did this on a previous project, and it didn't go over as I had hoped during a meeting with a few Marketing people. I spent the next few weeks explaining that the app was NOT writing in .Net. A few people were smart enough to notice the '.aspx' in the address bar and relate it to ASP.NET, but not smart enough to really understand the relationship between the URL and the technology behind it.....GEEEEEZ!!
-- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx
----- Original Message ----- From: "Chaikin, Yaakov Y." <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, October 28, 2004 10:32 AM
Subject: RE: Hiding .do
James,
Is that really true?
Are you saying that Struts custom tags automatically pick up their extension
from the controller servlet mapping in web.xml?
Hmm... I was under the impression that it was the other way around. Struts tags produced "*.do" and you need to map it in web.xml in order for the controller to kick in for handling those requests.
What about <html:form>? This tag automatically sticks ".do" at the end.
Thanks, Yaakov.
-----Original Message----- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 10:14 AM To: Struts Users Mailing List Subject: Re: Hiding .do
If you've coded your app without hard references to ".do", then you only need to change the web.xml file and all links/forms will be changed.
For some fun, try changing to *.aspx and give a demo to your boss!!
-- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx
----- Original Message ----- From: "Chaikin, Yaakov Y." <[EMAIL PROTECTED]> To: "StrutsUser (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, October 28, 2004 10:06 AM Subject: Hiding .do
Hi,
Could someone either explain the steps or point me to a web page that explains how to develop/deploy a Struts based app without the user having to see the ".do" in the URLs but still take advantage of the Struts custom tags?
Thanks, Yaakov.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]