Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retrieve the data from the database table and display it on a jsp using struts

 
Vidya Gupta
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to struts. I want to display all the details from a table on a jsp to user. Please help in doing these.

thanks in advance,
Lucky

Logindao.java
------------------

After getting the data from the above Logindao.java i want to forward data to my Action class i.e LoginActionClass.java.

LoginActionClass.java
----------------
 
Prabhakar Reddy Bokka
Ranch Hand
Posts: 197
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the retrieved values into a bean, and put the been into session.
Now you can access the bean in JSP and display the values on the screen.
 
Vidya Gupta
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

first i want to know whether the code in Logindao.java class is correct or not to retrieve the data. If it is correct i want to return that result set in the form of list to my action class and from my action class to jsp. please help me..
 
tyte kyat
Ranch Hand
Posts: 40
 
Vidya Gupta
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

please suggest me in doing this..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic