• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Menu Forwards?

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The index.jsp of the application contains two lines:

What is the meaning of this redirect forward? Is the browser asked to submit a new request to the path with logical name "welcome"?
I then searched the config.xml file,

The path of the logical name "welcome" is "do/Menu" (note it is upper case Menu). However, there is no Menu ActionServlet in the application.
There is menu.jsp (note it is lower case menu) in the application. Does this application display menu.jsp when it is first launched? Apparently, it does. This menu.jsp is in the ApplicationContext/article/content folder. I am confused - does /do/Menu locate the menu.jsp
1. in the /article/content folder?
2. regardless upper or lower cases?
[ September 11, 2003: Message edited by: JiaPei Jen ]
[ September 11, 2003: Message edited by: JiaPei Jen ]
[ September 11, 2003: Message edited by: JiaPei Jen ]
 
Sheriff
Posts: 17665
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in struts-config.xml, look for <action path="/do/Menu" ...>
This technique is an example of "Use Global Forwards for all entry points to application" found in Ted Husted's Struts Catalog
---
Well, now that I look at your configuration, maybe it's not an example of the Catalog technique after all. Anyway, what your configuration does is it gives different logical names for your menu page.
[ September 12, 2003: Message edited by: Junilu Lacar ]
 
Not so fast naughty spawn! I want you to know about
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic