TeRRoRByteZ2007
Well-Known Member
Hi there all, can anyone help me please.
I'm busy with a project, creating an Auction web site. I'm using JSP's and Web Services. What I want to know is, is it possible for a Web Service to return a ResultSet to a JSP? (After it made the query) If it is, does anyone maybe have an example, a very simple one just so that I can understand how to do it.
Ok so in short, the Web Service is located on the server, client makes use of the web service when wanting to view the products, the web service queries the database for products and returns the ResultSet.
I'm using NetBeans and Sun Java System Application Server. I must use these for the project.
I have tried returning an ArrayList from the web service, but get an error "collection cannot be used in literal mode" when deploying the project.
When I use ResultSet as I would want to iterate through it on the JSP I get a error on the JSP, "found : java.sql.ResultSet required : auctionservice.ResultSet". If I cast it to java.sql.ResultSet, there is nothing in the ResultSet, and if I use auctionservice.ResultSet, there are no methods.
I've been sitting a few days now trying to figure this out and guess it is time now to ask
Any help and recommendations would really be appreciated! 
I'm busy with a project, creating an Auction web site. I'm using JSP's and Web Services. What I want to know is, is it possible for a Web Service to return a ResultSet to a JSP? (After it made the query) If it is, does anyone maybe have an example, a very simple one just so that I can understand how to do it.
Ok so in short, the Web Service is located on the server, client makes use of the web service when wanting to view the products, the web service queries the database for products and returns the ResultSet.
I'm using NetBeans and Sun Java System Application Server. I must use these for the project.
I have tried returning an ArrayList from the web service, but get an error "collection cannot be used in literal mode" when deploying the project.
When I use ResultSet as I would want to iterate through it on the JSP I get a error on the JSP, "found : java.sql.ResultSet required : auctionservice.ResultSet". If I cast it to java.sql.ResultSet, there is nothing in the ResultSet, and if I use auctionservice.ResultSet, there are no methods.
I've been sitting a few days now trying to figure this out and guess it is time now to ask