help on below coding solution-- 1. Struts 2 Web IDE View Debug Terminal EXPLORER Run Struts Test.ja
Fantastic news! We've Found the answer you've been seeking!
Question:
help on below coding solution--
Transcribed Image Text:
1. Struts 2 Web IDE View Debug Terminal EXPLORER Run▸ Struts Test.ja xe src main java com 123456 <% <!D <ht <he struts 7 <me action 8 <ti AddAction.java 9 <li *BooksAction.java 10 </h *DBAction.java 11 <bo 12 DeleteAction.java 13 LoginAction.java 14 15 </b 16 </h Build a basic Book Management MVC application using Struts 2 and Embedded Database (H2). Configure struts.xml with the following routes, and the JSP pages with the necessary elements, and integrate them with the required action routes. Routes "/dblnitialize" The DBAction class should be initiated by "/dbinitialize", and should redirect to Login.jsp when the result is successful. The DBAction class will create the required tables and a user record (username="admin", password="admin"), which is used across the application. It also inserts a book record. Login.jsp User Name: Password: Login ✓ PROJECTS "login" Login The "login" route invokes the LoginAction. It checks if the credentials provided are valid. If the credentials are valid, it will redirect to "booksAction". Else, it will remain in the same JSP page. Books.jsp *UpdateAction.java & UpdateDataAction.... dao BookManagement... * LoginDAO.java Вројо Book.java * Login.java *DbUtil.java resources <> struts.xml webapp WEB-INF addBook.jsp Welcome Add New Book Book ID Book Name Book Author book spring jhon Book Price 5000 Actions Update Delete Q0A4 Books.jsp error.jsp index.jsp login.jsp style.css updateProduct.jsp welcome.jsp > TYPE HIERARCHY 1. Struts 2 Web IDE View Debug Terminal EXPLORER Run▸ Struts Test.ja xe src main java com 123456 <% <!D <ht <he struts 7 <me action 8 <ti AddAction.java 9 <li *BooksAction.java 10 </h *DBAction.java 11 <bo 12 DeleteAction.java 13 LoginAction.java 14 15 </b 16 </h Build a basic Book Management MVC application using Struts 2 and Embedded Database (H2). Configure struts.xml with the following routes, and the JSP pages with the necessary elements, and integrate them with the required action routes. Routes "/dblnitialize" The DBAction class should be initiated by "/dbinitialize", and should redirect to Login.jsp when the result is successful. The DBAction class will create the required tables and a user record (username="admin", password="admin"), which is used across the application. It also inserts a book record. Login.jsp User Name: Password: Login ✓ PROJECTS "login" Login The "login" route invokes the LoginAction. It checks if the credentials provided are valid. If the credentials are valid, it will redirect to "booksAction". Else, it will remain in the same JSP page. Books.jsp *UpdateAction.java & UpdateDataAction.... dao BookManagement... * LoginDAO.java Вројо Book.java * Login.java *DbUtil.java resources <> struts.xml webapp WEB-INF addBook.jsp Welcome Add New Book Book ID Book Name Book Author book spring jhon Book Price 5000 Actions Update Delete Q0A4 Books.jsp error.jsp index.jsp login.jsp style.css updateProduct.jsp welcome.jsp > TYPE HIERARCHY
Expert Answer:
Answer rating: 100% (QA)
To create a basic Rook Management MVC application using Struts 2 and an Embedded Database H2 you need to configure the strutsxml file with the specified routes and integrate them with the required act... View the full answer
Related Book For
Intermediate accounting
ISBN: 978-0077647094
7th edition
Authors: J. David Spiceland, James Sepe, Mark Nelson
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Which of the following statements is true aboutschizophrenia? a. People throughout the world suffer fromschizophrenia b. The symptoms associated with schizophrenia are the sameacross cultures c....
-
Marketing Docs prepares marketing plans for growing businesses. For 2017, budgeted revenues are $1,500,000 based on 500 marketing plans at an average rate per plan of $3,000. The company would like...
-
DomCo (a domestic corporation) owns 100% of ForCo (a foreign corporation), which operates outside of the United States. Which of the following statements is correct? a. ForCo is not considered a...
-
Jerome M. Eisenberg is an antiquities dealer and a self-proclaimed expert in classical antiquities with a doctorate in Roman, Egyptian, and Near Eastern art. Maurice E. Hall Jr. is an art dealer who...
-
In Parts I (pp. 245-247) and II (pp. 287-288) of this case you performed preliminary analytical procedures and assessed acceptable audit risk and inherent risk for Pinnacle Manufacturing. In Part III...
-
As the plane began its descent, Quackenbos knew he would face the following questions during his presentation: Is Brazil the right market for JET expansion?
-
Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative integers as input, and outputs the max and average. A negative integer ends...
-
determine the break-even analysis to cover your fixed costs. The information you have is the following... Fixed costs: $40,000 Variable cost per unit: $4.50 Total units sold: 20,000
-
The gas-phase dimerization 2A B follows an elementary rate law and takes place isothermally in a PBR charged with 1 kg of catalyst. The feed consists of pure A and enters the reactor at a pressure...
-
The Harbor Square Athletic Club is running a special, and charges a $15 initiation fee plus $93 per month to be a member. The local YMCA charges $125 to join, and charges $75 per month. a. Find the...
-
Hudaverdi Ltd pay current dividends of $0.96 per share with these dividends expected to grow at a rate of 4.6% per year in perpetuity. Hudaverdi Ltd shares are currently trading at $7.47 per share....
-
Consider the following information for Evenflow Power Co., Debt: 3,000 6.5 percent coupon bonds outstanding, $1,000 par value, 18 years to maturity, selling for 103 percent of par; the bonds make...
-
Please answer the following questions in an essay What do you think about the aggressive price reduction strategy taht P&G followed? Is market share/volume or profit more important? It seems that...
-
The following table shows the rates of total return in successive years from 2004 to 2008 for the Sprott Canadian Equity Fund and for the benchmark Toronto Stock Exchange S&P/TSX Composite Index. By...
-
On September 17, 2013, Ziltech, Inc. entered into an agreement to sell one of its divisions that qualifies as a component of the entity according to generally accepted accounting principles. By...
-
For each of the following inventory errors occurring in 2013, determine the effect of the error on 2013s cost of goods sold, net income, and retained earnings. Assume that the error is not discovered...
-
On January 1, 2013, the Mason Manufacturing Company began construction of a building to be used as its office headquarters. The building was completed on September 30, 2014. Expenditures on the...
-
True or False: When dealing with multiple alternatives having unequal lives, the planning horizon equals the least common multiple of lives.
-
For each of the following categories, describe some of the difficulties that you would face in estimating appropriate values to be used in conducting an economic analysis. a. Cash flows b. MARR c....
-
Given the following information about sources of capital, what is the appropriate weighted average cost of capital to use in determining MARR? a. 9.87 percent b. 10.55 percent c. 12.42 percent d....
Study smarter with the SolutionInn App