Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2007, 12:35 AM
Registered User
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tomcat URL mapping question

Hi guys,

I'm fairly new to Tomcat and I have a very simple problem.

I have a .jsp file under my "webapp/jsp/admin/index.jsp". This jsp references a .css file using:

<link rel="stylesheet" type="text/css" href="../common/css/global.css" />

I put the "global.css" in a folder under "webapp/jsp/common/css". I am experienced with Apache running PHP and this usually works automatically but it doesn't work under Tomcat. I know that it has something to do with modifying the URL mappings but I'm not really sure how or which file to edit. I think it's the "web.xml" but I don't really know the syntax of how to do it.

Can anyone give me some advice please? Thanks!

 
Old October 17th, 2007, 10:20 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Check the <base> tag given in the jsp page. If it is given the relative path is resolved using the value given in this base tag.

- Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
url mapping for jsp in tomcat deepakkotla Apache Tomcat 1 March 20th, 2008 07:58 AM
url mapping and regular expressions rudgr BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 3 February 4th, 2006 08:46 AM
How to remove URL rewriting using tomcat config or mintnovate Apache Tomcat 0 November 13th, 2005 01:01 AM
Newbie dba question for mapping tcronin@cmsstl.com Biztalk 0 September 14th, 2004 10:02 AM
url mapping for jsp in tomcat rams279 Apache Tomcat 1 July 16th, 2004 06:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.