Java Basics pulling the values
i have two fields integer values gross Salary and deduction开发者_如何学运维s and i am calculating net salary from that(Gross-deductions).I do these steps in one class and i need to set the net salary in my action class to show as result in my jsp page.I have all the setter and getter methods in place. How can i achieve that.
Please Help.Thanks in advance
After you calculate the salary,why don't you pass the information as request parameters Variables to the jsp page. Following is an example of jsp:
<html>
<body>
Salary: <%= request.getParameter("salary") %>
</body>
</html>
精彩评论