answersLogoWhite

0


Best Answer
  1. package com.kmg.services;
  2. public class Employee {
  3. private String empNo;
  4. private String password;
  5. private String fName;
  6. private String mName;
  7. private String lName;
  8. private String dept;
  9. private String desig;
  10. private String address;
  11. public String getempNo() {
  12. return empNo;
  13. }
  14. public void setempNo(String empNo) {
  15. this.empNo = empNo;
  16. }
  17. public String getpassword() {
  18. return password;
  19. }
  20. public void setpassword(String password) {
  21. this.password = password;
  22. }
  23. public String getfName() {
  24. return fName;
  25. }
  26. public void setfName(String name) {
  27. fName = name;
  28. }
  29. public String getmName() {
  30. return mName;
  31. }
  32. public void setmName(String name) {
  33. mName = name;
  34. }
  35. public String getlName() {
  36. return lName;
  37. }
  38. public void setlName(String name) {
  39. lName = name;
  40. }
  41. public String getDept() {
  42. return dept;
  43. }
  44. public void setDept(String dept) {
  45. this.dept = dept;
  46. }
  47. public String getDesig() {
  48. return desig;
  49. }
  50. public void setDesig(String desig) {
  51. this.desig = desig;
  52. }
  53. public String getAddress() {
  54. return address;
  55. }
  56. public void setAddress(String address) {
  57. this.address = address;
  58. }
  59. }
User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you retrieve data from database using struts 2?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you validate and retrieve data from database?

How do you validate and retrieve data from database?" How do you validate and retrieve data from database?"


How do you retrieve data stored in the database into the textarea using ASP?

To retrieve data stored in a database and display it in a textarea using ASP, you can use a server-side script to query the database and fetch the data. Then, you can populate the value of the textarea with the retrieved data by echoing it within the textarea tag during the rendering of the page.


What software tool can be used to create a database add change and delete data in the database sort and retrieve data and create forms and reports using the data in the database?

datebase management system


How do retrieve data from database in c?

nbbmnbmn


How do you retrieve data from database with struts 2 and hibernate without touching the source code?

One way to retrieve data from a database using Struts 2 and Hibernate without modifying the source code is by writing queries in the Hibernate Query Language (HQL) directly in your configuration files, such as the Hibernate configuration XML file. You can also use criteria queries or named queries defined in the Hibernate mapping files (hbm.xml). Additionally, you can utilize Struts 2 tags and OGNL expressions in your JSP pages to display the retrieved data without altering the Java source code.


How do you print using the Rollmaster software?

First you have to retrieve the data from the database by using the 'records view', 'Query' or 'report' menus. Then select print.


How do you retrieve the data from database?

To retrieve data rfrom a mysql database you first need to connect to the database using the mysql connection string(mysql_connect) after that, it's just a matter of executing a query of "SELECT `field1`, `field2` FROM `tablename`" Obviously replacing field 1 and 2 with the fields you want to replace and tablename with the table the data is stored


What database objects allows you to search for and retrieve data?

SQL queries allow you to search for and retrieve data from a database. By writing SELECT statements with specific criteria, you can search for information in tables and retrieve the results based on your query.


Data conversion and loading in database?

By data conversion we mean the data is first processed. The data after processing is ready to store in database. And from the database we can retrieve it for our use.


When you request specific data from a database what is it called?

When you request specific data from a database, it is called a query. A query is a request for information from a database that matches certain criteria. This is commonly done using Structured Query Language (SQL) commands to retrieve the desired data.


What is the purpose of the SLQ database?

SQL (Structured Query Language) is a programming language used in database management to manipulate and retrieve information. Its purpose is to interact with relational databases, allowing users to create, modify, query, and manage data efficiently. SQL is widely used in various applications and systems to store and retrieve data in a structured manner.


What is the select element?

To retrieve or modify data in the database query are used. There are four types of commands in SQL. Select command is data retrieval language command and is used to retrieve data from a database.In database there Four types of languages which contains various commands. Select command is the only command that is used for retrieval of data.