编程论坛's Archiver

luyihuaa5201 发表于 2008-5-7 16:20

链接传参问题??

<meta http-equiv="refresh" content="1;url=<%=request.getContextPath()%>/profileSelected.do?profileId=<%=profile.getId()%>&profile=<%=profile%>">
   我传的是profile对象  我在另外一个页面用request.getParameter("profile"); 接的只是一个String类型  怎么才能接受到那个对象呀??

fty123 发表于 2008-5-8 09:45

强制转换

强制转换

glamey 发表于 2008-5-9 16:20

你就强制类型转换了

glamey 发表于 2008-5-9 16:21

看你怎么接收了,request.getParameter一般都是接收String类型的厄

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.