请求的资源不可用错误

时间:2013-08-15 10:52:45

标签: spring java-ee spring-mvc mapping

我遇到了使用Spring进行URL映射的问题。 第一种方法:

@RequestMapping(value="/indexActel1")
    public String Affichage(Model model)
    {   
         model.addAttribute("listeOds",serviceOds.getAll());
        model.addAttribute("listeParam",serviceParam. getAll());
         model.addAttribute("listeDim",serviceDim.getAll());
         return "Actel1/Affichage11";
    }
当我使用url时,

起作用:indexActel1.htm(* .htm是我在web-xml中声明的url-pattern)。

但是我遇到了同一个类中另一个方法的问题,我收到错误:请求的资源不可用。! 即使我在请求映射注释中使用相同的url-pattern和相同的地址。

这是我映射的方法,我想打电话。
它是与第一个类在同一类中的方法。

@RequestMapping(value="/updateParamActel1" )
    public String UpdateParam(Model model,@RequestParam String id)
    {   
        identifiant=id;
        System.out.println("id parametre ="+ id+" longueur: "+id.length());
        System.out.println("id manuel ="+ "105"+" longueur: "+"105".length());
        Ods_Gis_Actel Obj= serviceOds.getById(id);
        Toupdate=serviceParam.getById(id);;
        System.out.println("id ="+ id);
        System.out.println("step 1 ! \n");
        model.addAttribute("label",Obj.getNom_actel());
        System.out.println("step 2 ! \n");
        System.out.println("code: "+Obj.getCode_actel()); 
        System.out.println("step 3 ! \n");
        return "Actel1/rechercheDimDes11";
    }

可能是什么问题?

提前感谢。

0 个答案:

没有答案
相关问题