Question 1:
Create a Servlet that does the following (please provide us the code):
- takes a parameter 'money', which represents a dollar amount > 0.00
- calculates 5% of 'money' (safely), and outputs this as a dollar amount
(eg. two decimals)
- outputs message 'error' if there is a problemQuestion 2:
What does Struts typically use to map out the relationship between code
components (eg. Controllers, JSPs, etc)
Create a Servlet that does the following (please provide us the code):
- takes a parameter 'money', which represents a dollar amount > 0.00
- calculates 5% of 'money' (safely), and outputs this as a dollar amount
(eg. two decimals)
- outputs message 'error' if there is a problemQuestion 2:
What does Struts typically use to map out the relationship between code
components (eg. Controllers, JSPs, etc)
解决方案 »
- java项目,jsp用的utf-8,静态页面用的也是utf-8,可是静态页面用ie啥也不显示
- response.redirect与response.setHeader("Refresh","0;URL="+path);的区别
- testjpa.book.WebBookstoreBooks cannot be cast to testjpa.book.WebBookstoreBooks
- 过滤器问题
- 熟悉jacob的朋友进来帮一下忙
- 请教关于DisplayTag的中文参数问题
- 用JSP实现图形验证码
- 有关session,请帮忙指点一下,谢谢!
- Applet 和 WindowsXP 的问题?
- ??????????????????????????数据库问题
- 求助:向表中插入数据时出错(在线等待)
- struts 的 action-mappings 映射问题?
你找本Struts的书 看看就晓得了
第一题是存servlet 可以不用继承Action