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

Interesting forward path

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I am looking at one application developed with Struts 1.2 and velocity, and find some unusual actions like below:

<action path="/login" type=...>
<forward name="success" path=".portal.home" />
</action>

I have never seen a forward path could start with '.', but it works here! Does anybody know where to find the corresponding file/action for ".portal.home"? There is no such mapping in web.xml or struts-config.xml.

Thanks!
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
That type of path is common in application using Tiles.
 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
its a tiles definition.

look in the tiles-def.xml

the jsp's are defined in with
<definition name=".base.definition" path="/layout/layout.jsp">
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
"James Z",

You've been warned on multiple occasions over several years that your display name does not comply with the JavaRanch naming policy which we try to strictly enforce. Please re-read this document and edit your display name in order to comply. Consider this your last warning. If you do not comply, your account will be terminated. For now I will simply close this thread. When you change your display name, I will re-open it. Thank you.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic