日期:2014-05-19 浏览次数:20668 次
<servlet> <servlet-name>spring</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>spring</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
@RequestMapping("/subclass/{fid}") public ModelAndView subclass(HttpServletRequest request, HttpServletResponse response, @PathVariable int fid) { ModelAndView view = new ModelAndView(); try { view.setViewName("/subclass"); subclassinfo = bdo_goodsclassdaoimpl.mainclassinfo(fid); } catch (Exception e) { e.printStackTrace(); } return view; }
<% String basepath = request.getContextPath()+"/"; %> <script type="text/javascript" src="<%=basepath%>/mymobile/js/jquery/jquery.min.js"></script>