Discussions

Web tier: servlets, JSP, Web frameworks: Struts .do extension

  1. Struts .do extension (2 messages)

    Hi,

    How can I mislead user from seeing actual .do extension in the url?
    I know we could do this by servlet mapping but is there another approach of doing this?

    Thanks,
    Ash

    Threaded Messages (2)

  2. Change the web.xml[ Go to top ]

    In your web.xml file change the url pattern for Action from *.d0 to whatever extension you want them to see. You could make it *.ash or *.html.
  3. Use rewriting?[ Go to top ]

    Hi,How can I mislead user from seeing actual .do extension in the url?I know we could do this by servlet mapping but is there another approach of doing this?Thanks,Ash

    I found a nice package todo url-rewrites inside the webapp. Might be what you are looking for.

    http://tuckey.org/urlrewrite/


    regards,
    Robin