Java的问题关于STRUCT的一道题

来源:百度知道 编辑:UC知道 时间:2024/05/24 20:21:59
5. Please use struts(struts1 or struts2 whatever you prefer) to fulfill a sayHello system.
It should include:
Home.jsp

Success.jsp

Error.jsp

When you open home.jsp, input ‘Cynovo’ in the name field, submit it, the page will forward to success.jsp. if you input not the specified string ‘Cynovo’, it will show error.jsp.

You don't need to make it a complete web application. Just write the action and how to configure. The action method should be ‘sayHello’, don’t use default action method.

注: Home上要显示 NAME 和SUBMIT按钮

struts说来话长啊,基本步骤是:
1.在web.xml中配置struts2的过滤器
2.写action
3.在struts.xml中配置action跳转

你直接call我百度直接发个struts2的helloworld给你

你的标题写错了,是struts不是struct 只有C#才有struct。

这个你可以找一本struts入门的数照着做一下的吗