Using Action Classes in a Struts2 Application

  1. In your Java Resources/src/main/java replace the file named struts.xml with this one.
  2. Here are the TestAction.java and MessageStore.java classes for you to start your implementation
  3. In Deployed Resources/webapp/web-inf create the directory jsp/example
  4. In Deployed Resources/webapp/web-inf/jsp/example directory create three files named example-errors.jsp, example-test.jsp and form.jsp and replace example-errors.jsp with this one, example-test.jsp with this one and form.jsp with this one .
  5. Run the command http://localhost:8080/strutsapp/form and you should see Sign On which is the form.jsp file
  6. Run the command http://localhost:8080/strutsapp/initial2&parameter1=dog&parameter2=cat and you should see the encrypted value of parameter 1 and 2 as in Class Task 7
  7. Run the command localhost:8080/strutsapp/initial3&parameter1= with your encrypted value to see if you can decrypt it
  8. Make sure you understand how everything connects and explain to me in order to get your mark.