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)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货