aspose file tools
The moose likes Struts and the fly likes Result sets in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Result sets in struts" Watch "Result sets in struts" New topic
Author

Result sets in struts

manikandan jayakumar
Ranch Hand

Joined: Aug 20, 2011
Posts: 41

Can any one suggest me a link to learn how to display the result set in a jsp using struts

Want to display multiple rows.
manikandan jayakumar
Ranch Hand

Joined: Aug 20, 2011
Posts: 41

i have added the following code to the respective files:

HelloWorldA.java(action class)

outBean.java

this my output jsp file


should i add anything in struts-config.xml?
what need to change in my code?
manikandan jayakumar
Ranch Hand

Joined: Aug 20, 2011
Posts: 41

Hi,

I some how i managed to display the result set by using String arraylist
but if i try it by using bean object

'm getting strange result
Sorted Average!!!
com.outBean@74b70648
com.outBean@1bfd9cd5
com.outBean@2743724e
com.outBean@3d057305

where com is my package where outBean is defined.

these are my codes


in Action class




outBean.java



this is my output jsp



also tried to have property attribute in bean:write tag got error
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Result sets in struts
 
Similar Threads
Struts 2.1 Need two different success results
JavaScript EXPAND/Collapse Table Row
Problem in Struts Dispatcher
Struts 2 welcome-file-list
database connection in struts 1.1