Here we will discuss about the how we can create a web application using struts2 without database. For creating a web application using struts we need to follow some basic step which is given below:
Step 1. Take a project by going in File Menu Wizard -> New Project -> click on Java Web and then web application next -> put the name of the project on the required place and next -> select server on which we want to build the project and then next -> now select to struts2 (if not available then select to struts and attatch the jar file of the struts2) -> click on finish.
Step 2. Now Design The Jsp Page. For Creating A Jsp Page Go In File Menu Wizard -> Click On New File -> Click On Web And Then Jsp -> Put The Required Name On The Given Field For The Name -> Finish.
Step 4. Now again we need to create a jsp page. follow the above step(Step no 2) instruction.
Above selected code is shown here:
<H1>This is an error page......</H1>
Step 5. Now we need to create a package. for this we need to go in the file menu wizard then click on new file -> java and then package as shown in image then next -> put the required name of the package on the place and then finish.
Step 6. Now we need to create a java class. for this we need to go in the file menu wizard -> click on new file and -> java and then click on java class -> put the required name on the place of name of the file -> select the package and then finish.
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!