Chaster 2 Junior Poster in Training

Hi all!

My problem is the following: I'm using Spring MVC, and trying to use several controllers (one for each jsp).
My controllers are defined in the xml like:

<bean id="/login.htm" class="controllers.LoginController" />
<bean id="/menu.htm" class="controllers.MenuController" />

inside LoginController's onSubmit I do a ModelAndView("menu", ...). That is OK, the menu page gets displayed. On that page, however, if I press the submit button, LoginController's onSubmit gets invoked again (checked it in debug mode). Also, even if it's showing the menu view, in the title bar I see "<stuff>login.htm" instead of "<stuff>menu.htm".

Can anybody explain me, why is my MenuController omitted here?

Thanks,
Chaster

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.