yeafee
javaholder
发贴: 42
积分: 1
|
于 2005-11-21 12:38
关于Spring 附带doc中Spring MVC step-by-step 1的疑问:
springapp/war/index.jsp ------------------------------------------------------------------------------- <html> <head> <title>Example :: Spring Application</title> </head> <body> <h1>Example - Spring Application</h1> <p>This is my test.</p> </body> </html> ________________________________________________| +++++++++++++++++++++++++++++++++++++++ springapp/war/hello.jsp ----------------------------------------------------------------------------- <html> <head> <title>Example :: Spring Application</title> </head> <body> <h1>Hello - Spring Application</h1> <p>Greetings.</p> </body> </html>
Controller中的确是有return new ModelAndView("hello.jsp");这样的跳转语句,但就是不明白如何关联的这index.jsp和hello.jsp呢?
求助?
yeafee edited on 2005-11-21 12:55
|