wyl_159 2013-04-29 09:44
浏览 236
已采纳

web项目中引入jquery库问题

大家帮忙看看这个jsp文件中为何引入不到jquery库,目录结构如我上传的图片
请求到这个页面后报:
SCRIPT5007: 属性“$”的值为 null、未定义或不是 Function 对象

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


  • 写回答

5条回答 默认 最新

  • jinnianshilongnian 2013-04-29 12:46
    关注

    修改你的配置文件example-servlet.xml 加上红色部分即可
    <?xml version="1.0" encoding="UTF-8"?>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:context="http://www.springframework.org/schema/context"
    [color=red] xmlns:mvc="http://www.springframework.org/schema/mvc" [/color]
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context.xsd
    [color=red] http://www.springframework.org/schema/mvc
    http://www.springframework.org/schema/mvc/spring-mvc.xsd"[/color]>
    <!-- 指定spring mvc controllerr的扫描 -->

    [color=red]<mvc:annotation-driven/> 
    <mvc:default-servlet-handler/> 
    

    [/color]

    [url]http://jinnianshilongnian.iteye.com/blog/1423971[/url]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog