Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP/Tomcat: webapp with subdirectories  RSS feed

 
Craig Dixon
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to include several interactive workshops on the web site I maintain. These workshops may come from many different units within the organization. I had envisioned deploying each one under $TOMCAT_HOME/webapps/workshops/unit_name/workshop_name.

This would create a single web app called workshops with multiple subdirectories. In $TOMCAT_HOME/webapps/workshops/WEB-INF/web.xml, I would include an entry like this for each workshop:



This does, in fact, allow the index page to load, but it can't find any of the other files in $TOMCAT_HOME/webapps/workshops/unit_name/workshop_name.

There are two equally possible scenarios:

  • This is a perfectly logical thing to do, but I don't know how to do it. If this is the case, please help me.
  • This is a wildly illogical thing to do and is completely out of line with best practices. If this is the case, an explanation of why would be nice, but I'd settle for not being ridiculed too much.


  • Thanks for any help you can provide.

    [ August 02, 2005: Message edited by: Craig Dixon ]
    [ August 02, 2005: Message edited by: Craig Dixon ]
     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Posts: 66186
    146
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Make the "map anything in this folder" mapping:

    <url-pattern>/unit_name/workshop_name/*</url-pattern>
     
    Craig Dixon
    Greenhorn
    Posts: 19
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks for the advice. This didn't end up being the problem, though. I forgot to JKMount /workshops/* in Apache's httpd.conf. Seems to be working fine now.

    *feels stupid*
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!