Learn Java for Web Development
CHAPTER 4: Building a Web Application Using Struts 2 177 Listing 4-18 illustrates index.jsp. Listing 4-18. index.jsp Hello Wor ...
178 CHAPTER 4: Building a Web Application Using Struts 2 When you submit an HTML form in a Struts 2 web application, the input i ...
CHAPTER 4: Building a Web Application Using Struts 2 179 Listing 4-19 illustrates the form that allows the user to enter a name ...
180 CHAPTER 4: Building a Web Application Using Struts 2 6. 7. 8.<package name="basicstruts2" extends="struts-default" 9.name ...
CHAPTER 4: Building a Web Application Using Struts 2 181 Listing 4-22 illustrates hello.jsp. Listing 4-22. hello.jsp 1.<%@ pa ...
182 CHAPTER 4: Building a Web Application Using Struts 2 To use Struts 2 annotations, you need the plug-in called struts 2-conve ...
CHAPTER 4: Building a Web Application Using Struts 2 183 Listing 4-25. actionPackages Init Parameter actionPackages com.apress. ...
184 CHAPTER 4: Building a Web Application Using Struts 2 When the user submits a valid name and password combination, the user w ...
CHAPTER 4: Building a Web Application Using Struts 2 185 Figure 4-17 illustrates the directory structure of the application. You ...
186 CHAPTER 4: Building a Web Application Using Struts 2 You can add the struts 2-core dependency to your pom.xml file, as illus ...
CHAPTER 4: Building a Web Application Using Struts 2 187 Listing 4-29. struts.xml 1.<?xml version="1.0" encoding="UTF-8" ?> ...
188 CHAPTER 4: Building a Web Application Using Struts 2 25.public void setPassword(String password) { 26.this.password = passwo ...
CHAPTER 4: Building a Web Application Using Struts 2 189 Figure 4-19 illustrates the login screen with the header. When the auth ...
190 CHAPTER 4: Building a Web Application Using Struts 2 Figure 4-20. Menu displayed on successful login Figure 4-21. Login fail ...
CHAPTER 4: Building a Web Application Using Struts 2 191 When the user is logged in, the user’s name is displayed on the header, ...
192 CHAPTER 4: Building a Web Application Using Struts 2 Listing 4-34 illustrates the struts.xml file. Listing 4-34. struts.xml ...
CHAPTER 4: Building a Web Application Using Struts 2 193 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25 ...
194 CHAPTER 4: Building a Web Application Using Struts 2 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. Listing 4-37 il ...
CHAPTER 4: Building a Web Application Using Struts 2 195 Listing 4-38 illustrates the web.xml file. Listing 4-38. web.xml 1.< ...
196 CHAPTER 4: Building a Web Application Using Struts 2 As you can see in the directory structure there is a single BookControl ...
«
5
6
7
8
9
10
11
12
13
14
»
Free download pdf