my dog learned polymorphism
The moose likes Struts and the fly likes Menu Forwards? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Menu Forwards?" Watch "Menu Forwards?" New topic

Menu Forwards?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
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 ]
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

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 ]

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: Menu Forwards?
It's not a secret anymore!