Using Action Classes in a Struts2 Application
- In your Java Resources/src/main/java replace the file named struts.xml with
this one.
- Here are the TestAction.java and MessageStore.java classes for you to start your implementation
- In Deployed Resources/webapp/web-inf create the directory jsp/example
- 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 .
- Run the command http://localhost:8080/strutsapp/form and you should see Sign On which is the form.jsp file
- Run the command http://localhost:8080/strutsapp/initial2¶meter1=dog¶meter2=cat and you should see the encrypted value of parameter 1 and 2 as in
Class Task 7
- Run the command localhost:8080/strutsapp/initial3¶meter1= with your encrypted value to see if you can decrypt it
- Make sure you understand how everything connects and explain to me in order to get your mark.