• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is a Slash Represents

 
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Normally we would expect an absence of slash in front of a path to means relative URL. In struts, if we use something like:

<action path="InputAction" input="retry.jsp"...>


what are the full URLs that 'InputAction' and 'retry.jsp' will be resolved to? What will they be relative to?
 
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
without the slash, the 'path' is relative to which ever URL you are accessing the action from. adding a '/' will take the start of the action to the context-root of your application.

the 'input' is relative to your top level JSP directory (webApplication directory, usualy is where your 'index.jsp' file sits). if your retry.jsp is inside the WEB-INF under the jsp/errors/ directory, then the input should be 'WEB-INF/jsp/errors/'.
 
Let's get him boys! We'll make him read this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic