myeclipse、mvc………………

来源:百度知道 编辑:UC知道 时间:2024/09/28 10:15:38
有个测评系统,起中要查看源代码,有URL http://localhost/assess/dimeAction.do?method=listByGuideId&guideId=402881831a19b924011a1b67de9c0239&type=0&operator=update

具体是什么意思?特别是后面method=……=……=……的这一长串
那我在SRC中对应的是不是这一段呢?

public ActionForward listByGuideId(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
String guideId = request.getParameter("guideId");
String type=request.getParameter("type");
String operator=request.getParameter("operator");
request.setAttribute("dimeTree",gernateTree(getService().getDimeTreeRootByGuide(guideId,type),
type,operator));
request.setAttribute("operator", operator);

………………
…………

method=listByGuideId:这应该是一个操作标识
guideId=402881831a19b924011a1b67de9c0239
type=0
operator=update
上面三个应该参数,应该对应数据库的某些字段,至于operator我想它也算是标识别,算是二阶标识吧(这是更新,也可能有其他操作比如创建,插入等)

http://localhost/assess/dimeAction.do
localhost:本机地址吧(一般有个端口号,不知道你为什么没)
assess应该是项目名称
dimeAction.do:处理客户请求的Servlet的映射名

是的....!!!