<a href="/displayProduct?productCode=8601">True Life Songs and Pictures</a>
404 ErrorThe server was not able to find the file you requested.<servlet>
  <servlet-name>DisplayProductServlet</servlet-name>
  <servlet-class>music.catalog.DisplayProductServlet</servlet-class>
 </servlet> <servlet-mapping>
  <servlet-name>DisplayProductServlet</servlet-name>
  <url-pattern>/catalog/displayProduct</url-pattern>
 </servlet-mapping>

解决方案 »

  1.   

    should be :<a href="displayProduct?productCode=8601">True Life Songs and Pictures</a>
    404 ErrorThe server was not able to find the file you requested.
      

  2.   

    不理解这句:<url-pattern>/catalog/displayProduct</url-pattern>
      

  3.   

    <url-pattern>/displayProduct</url-pattern>
      

  4.   

    <a href="/catalog/displayProduct?productCode=8601">True Life Songs and Pictures</a>
    试试可以不
      

  5.   

    <a href="/displayProduct?productCode=8601">True Life Songs and Pictures</a> 改为
    1.
    <a href="<%=request.getContextPath()%>/displayProduct?productCode=8601">True Life Songs and Pictures</a>2. 
    <a href${pageContext.request.contextPath}/displayProduct?productCode=8601">True Life Songs and Pictures</a>
      

  6.   

    我没做任何改变,竟然没404问题了,但出了个500的错。我加入了mysql jar,结果很悲催,啥都不出来了。抽风啊。我到处clean,又关eclipse,都不起作用。没招了
      

  7.   

    把mysql jar拿掉又重装,又都好了
      

  8.   

    卡在这里了:dataSource = (DataSource) ic.lookup("java:/comp/env/jdbc/test");