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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Interesting forward path

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • 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
  • Report post to moderator
That type of path is common in application using Tiles.
 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic