Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 17th, 2007, 12:35 AM
Registered User
 
Join Date: Oct 2007
Location: , , .
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!

Reply With Quote
  #2 (permalink)  
Old October 17th, 2007, 10:20 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:11 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.