jsp和wml关于参数传递的问题

phoenixlf 2007-12-12 07:21:10
在此,再次向大家请教了.
比如下面的程序:
<%
out.print("课程:<br/>");
String id=request.getParameter("uid");
ResultSet rs = sqlBean.executeQuery("select courname from course where courid in(select courid from teachercourse where teaid='" + id + "')");
out.print("<select title=\"查看课程\" name=\"course\">");
while(rs.next()){

out.print("<option title=\""+ rs.getString(1) +"\" value=\"" + rs.getString(1) + "\">");
out.print(rs.getString(1));
out.print("<option>");
}
out.print("</select>");
%>
虽然在我的Nokia模拟器里能显示出传送过来的数据,可在opera里不能显示......
我想请教一下大家认为这样能行吗?也就是我通过手机上这个页面的时候,也能得到需要的数据吗?因为使用的是模拟器.如果不行的话,我需要怎么做才能将我查询的数据显示在wml控件里呢.也就是如何给控件赋值.
...全文
53 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zengyouyi163 2008-07-23
  • 打赏
  • 举报
回复
看起来没问题啊。。。
luhao 2007-12-21
  • 打赏
  • 举报
回复
当然可以啊

最好真机测试一下

790

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 其他移动相关
社区管理员
  • 移动开发其他问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧