Hello, I'm really hoping I can get some help on this.
Here is my problme:
I have "virtual" folders on the server that have pages mapped, so for instance, http://www.blahblahblah.com/one/me.htm is the same page as http://www.blahblahblah.com/two/me.htm with my controller parsing the directory that was entered and plugging in dynamic text as needed. I'm doing that with the following:
Now, the first problem I have is that if someone types in http://www.blahblahblah.com/one/ I want to forward automatically to me.htm I can't set me.htm as the welcome-file it does not work, a 404 error is thrown...Code:<property name="mappings"> <props> <prop key="/*/me.htm">meController</prop> ....
Another issue is that within my 404 error page (code shown below) I can't get the originally requested url. Can anyone help with either problem? I'm stuck!!
In Web.xml
in servlet.xmlCode:<error-page> <error-code>404</error-code> <location>/404.htm</location> </error-page>
Code:<prop key="/404.htm">errorController</prop>
Thanks!


Reply With Quote