一个Java练习 求助 急

来源:百度知道 编辑:UC知道 时间:2024/06/09 22:54:00
1
Lab Exercise 9

You are required to develop a dynamic website using a servlet to show recent IT news in the
world. The messages are organised into the following of categories.
Location: America, Europe, Asia, Australasia, Rest of World
Category: Security, Hardware, Internet, Telecommunications, Software, Business
All following requirements must be achieved in a single servlet:
􀁺 The first time this site is opened, the user should be prompted to select the state and
category by using appropriate HTML controls (e.g. dropdown lists). All matching messages
in data.txt must be displayed as clickable links based on the user selections. (2 marks)
􀁺 Cookies should be stored with life-time of 7 days allowing the user to view the messages in
the selected city and category directly in subsequent visits. (2 marks)
􀁺 In subsequent visits, users should be able to change the state or category, and the new

您需要建立一个动态网站使用一个servlet ,以显示它最近的新闻,在 世界。邮件主办分为下列几类。 位置:美洲,欧洲,亚洲,澳大利西亚,其余的世界 类别:安全,硬件,互联网,电信,软件,业务 所有下列条件必须实现在一个单一的servlet : 􀁺第一时间,这个站点是开放,用户应提示选择国家和 类别使用适当的HTML控件(例如,下拉清单) 。所有符合条件的邮件 在data.txt必须显示为可点击链接的基础上,用户的选择。 ( 2分) 􀁺的Cookie应存放与生命的时间, 7天内让用户可以查看的邮件 选定的城市和类别,直接在随后的访问。 ( 2分) 􀁺在随后的访问,用户应该能够改变国家或分类,和新 曲奇( )应存放。 ( 1分) 数据文件data.txt不应该修改,必须由所引用的,在Servlet的使用相对 路径,而不是绝对路径

--在Servlet的使用相对 路径,而不是绝对路径
是不是你form提交servlet时路径写错了??
action="servlet名"
问题描述不清楚,也不知道答得对不对