Hello Dave, The issue is that you are specifying a path to the root of your server. Any time you provide "/mypage.html", it will ignore the current directory you are in and reference the root of the web server.
What you want is "./mypage.html" or just "mypage.html". What you should be doing when using MVC, though is choose a mapping for pages that are to go through you controller servlet. The Barracuda project generally maps "*.event" to the controller. So, no matter where you are in your directory hierarchy of your current context, the appropriate event will be fired. However, even in this case, if your context we "/mycontext" and your link inside a page in that context was "/myevent.event", this still would end up going to the root of your webserver and not be served by the current webapp context. Instead, you would use "./myevent.event" or just "myevent.event" as the URL. Does that make sense? Jake Wednesday, September 11, 2002, 11:37:09 AM, you wrote: DR> Hello All, DR> I'm seeing some really odd behaviour, I hope someone can tell me what i'm DR> doing wrong. I've written some jsp/servlet code with Forte 4.0, created a DR> war file and deployed it on Tomcat 4.0.4. ( I deployed it by putting the DR> war file in the webapps dir and restarting Tomcat) The war file was DR> my_stuff.war so the url is DR> http://localhost:8080/my_stuff/index.jsp DR> That works fine. As I started developing a little code I got to a point I DR> wanted a link back to the entry of the site, I thought DR> <a href="/index.jsp">Back to Top</a> DR> would do the job. But this link pointed to DR> http://localhost:8080/my_stuff/servlet/index.jsp DR> I was confused so to simplify things I went back to index.jsp and put a DR> link to itself in the file. When you mouse over the link, the address it DR> point to is DR> http://localhost:8080/index.jsp DR> Shouldn't Tomcat be prepending DR> http://localhost:8080/my_stuff DR> onto any link I specify like this DR> <a href="/somefile.jsp">My Link</a> DR> I'm playing around with what's called a model 2 architecture where a jsp DR> page calls a servlet which does some data processing and then forwards the DR> request to another jsp page and I'm not having any trouble with path's when DR> I forward the request, just with links in the jsp pages. DR> what's really maddening is that in playing around with this I've seen it DR> work correctly and seen it fail. Obviously I'm doing something boneheaded, DR> any ideas?? DR> Dave DR> -- DR> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> DR> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
