The browser doesn't know that /myapp is a signifigant part of the URL, to a browser it looks like a directory. (to the *browser*, which is the one doing the form post).
So you need to either 1) always prepend the result of request.getContextPath() (Which is what I do these days) 2) use absolute URLS
You *might* be able to get away with <form action="process" ... > But I wouldn't count on that. What happens when you decide to shift a directory around? [ June 24, 2004: Message edited by: Mike Curwen ]
Joined: Feb 25, 2004
Thanks a lot, Mike. I think I just make a silly mistake and misunderstanding on the context path. Your answer is quite useful for me. Again, thank you. I decide to use the request.getContextPath() which is fine for my case. [ June 26, 2004: Message edited by: HKVince Chan ]