一个servlet是否可以处理多个表单?

gsromanza 2001-11-07 09:49:09
做的表单是八个(需要分开).每个表单上有"上一页""下一页"--目的
是为了能让客户端能够来回改变数据.
但到最后一页,如何得到前面的表单的数据呢?
是不是要用hidden对象?
...全文
157 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
karma 2001-11-08
  • 打赏
  • 举报
回复
if you are targeting IE users, you can put all the contents in a single page and hide and show different content at different time and submit them together when the user clicks on submit button
java99666 2001-11-08
  • 打赏
  • 举报
回复
如果用Frame可能会有一些问题:
1,网页的上方有一条空白。
2,有很多用户不关心的信息公开了。
YbbIhAtj君有什么好的方法解决吗?
请附简单的代码说明,多谢多谢。
YbbIhAtj 2001-11-08
  • 打赏
  • 举报
回复
这个问题我碰到过我处理的方法是用FRAME+SERVLET
nielinjie 2001-11-08
  • 打赏
  • 举报
回复
why not just use one form looks like 8 forms, hide ohter 7 parts when a part is in use. when click next page,display the next part and hide this one. when then 8 parts' inputing have finished,submit the form
gsromanza 2001-11-08
  • 打赏
  • 举报
回复
谢谢诸位,但如何给分呢?faint,不知道.哪里有使用说明?
gsromanza 2001-11-07
  • 打赏
  • 举报
回复
java 里的session我不知道怎么用,和ASP中的一样吧.
这样你还是用了server端的程序,用script无法提交给你的(因为我只在最后一个页面提交).
karma 2001-11-07
  • 打赏
  • 举报
回复
you can use hidden form elements or save them in session variables or save them in cookies

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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