This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have designed an action class which redirects the user according to the link clicked e.g. /action/employee.do?cmd=create redirects to insert employee page and /action/employee.do?cmd=edit redirects to Edit Employee page. the following lines shows the struts-config.xml entries
I cannot submit both the pages of Create employee as well as Edit Employee i have checked it by the following code in execute methods of CreateProfile as well as EditProfile
I can't get the line printed
and it shows the Insert and Edit Page back even after clicking the submit button
Please Help Me
In your config file, the path is /actions/employee and you are writing that you are saying that the request goes to /action/employee.do (there is no s in action here). Also are you returning create or edit mapping from the employee action. If yes, then that will take you directly to JSP page not to actions (as you've configured in your config file)...