URL Question

Discussions

Web tier: servlets, JSP, Web frameworks: URL Question

  1. URL Question (2 messages)

    Hi,

    I have a struts based web application.
    How can I hide the technology being used from the url.
    basicall, I would like to have the application do all the work without the url having to change.(ex: http://mydomain.com/myapp)

    Thanks

    Threaded Messages (2)

  2. URL Question[ Go to top ]

    Hi,

    >
    > I have a struts based web application.
    > How can I hide the technology being used from the url.
    > basicall, I would like to have the application do all the work without the url having to change.(ex: http://mydomain.com/myapp)
    >
    > Thanks


    in your actions create an action forward

    ActionForward a = new ActionForward( "/" );

    a.setRedirect( true );

    return a;

    not tried it but maybe worth a shot
  3. URL Question[ Go to top ]

    Stephen,

    Thanks for you quick reply. I tried your idea. But it didn't work for me.I might be doing something wrong though. Thank any ways
    Ahmed