What should we do to return a ResultSet to the client HTML through JSP?
Hi friends,
Greetings.
How do we pass the query Results from one function to another function?
Actually i have a database in the server and i am the client.
Client sends the id to the server as an argument. From HTML file this goes to the JSP file(which i am using as a link between HTML and EJB) and then this goes to the RemoteInterface and then to the Bean itself. The functions are written in the bean. Bean connects to the database using jdbc:odbc driver and then a query is written and executed as follows:
In the Stateless Session Bean, there is one function with the following query.
public ResultSet check(String id)
//other code
ResultSet rs = Statement.("select * from table1 where id=123");
if(!rs.next)
// print no such id exists. other ids are
rs=Statement.("select * from table1");
return rs;
}I have written it approximately only because the problem is not with the query :(
Now, in rs there's a resultset. Now how do i display it in a tabular format in HTML? This should obviously be done using JSP. How can we do it?
In JSP file if i write
ResultSet rs1=Remote.check(12);
i get NullPointerException
Thank you in anticipation to your reply!
Regards
Crossposted over all places:
[http://forums.sun.com/thread.jspa?threadID=5336533]
[http://forums.sun.com/thread.jspa?threadID=5336534]
[http://forums.sun.com/thread.jspa?threadID=5336532]
[http://forums.sun.com/thread.jspa?threadID=5336519]
[http://forums.sun.com/thread.jspa?threadID=5336510]
Stop crossposting. It's very rude.
Similar Messages
-
I want to play a song I bought but when I press play it says I need to authorize my PC but when I put in my Apple ID it says its already authorized. What should I do to be able to play the song?
Delete and redownload it if doing so is free in your country.
(94038) -
My iPod got stolen and I just want to get my visa card off of it. What should I do? I don't have the serial number for my iPod anymore either cause I got it along time ago... I never saw this happening.
Sorry to hear that.
Lost or Stolen -
My ipod touch will not hare no matter what and I've tried many different cables and different ways to charge it. What should I do? If I complain to the Apple store co. will they replace my ipod for free?
- See:
iPod touch: Hardware troubleshooting
- Try another cable
- Try another charging source
- Look at the dock connector on the iPod. Look for abnormalities like bent or corroded contacts, cracked or broken plastic.
- Make an appointment at the Genus Bar of an Apple store.
Apple Retail Store - Genius Bar -
I would like to buy an iPhone for my friend in Iceland. Two questions: will the phone work with complete utility in Iceland, and if so, what should I do to confirgure it while in the USA so that it can have full utility in Iceland?
Bad idea. There are no supported iPhone carriers in Iceland, thus some features may or may not work. Further, there will be no warranty or support for a US purchased iPhone in Iceland...your friend will be on their own. If you still want to go down this road, make sure you purchase an officially unlocked iPhone(GSM model) directly from Apple.
-
I have Mac OS X Version 10.6.8 ,I want to buy the updated operating system that puts iMessage and Facetime on my Macbook Pro. What should I search for, and then purchase, in the App Store?
FaceTime can run in the version of OS X that you currently have. To get Messageyou need Mountain Lion. The protocol used by Messages is iMeassage.
The question is does your MBP meet the specs for Mountain Lion.
iMac (Mid 2007 or newer)
MacBook (Late 2008 Aluminum, or Early 2009 or newer)
MacBook Pro (Mid/Late 2007 or newer)
MacBook Air (Late 2008 or newer)
Mac mini (Early 2009 or newer)
Mac Pro (Early 2008 or newer)
Xserve (Early 2009)
Your Mac needs:
OS X v10.6.8 or OS X Lion already installed
2 GB or more of memory
8 GB or more of available space -
What's wrong to my ipod touch when i have setup my mail, contact, calendar?What should i do? I can't access my yahoo mail through my ipod touch
Try deleting the Yahoo account stuff from the iPod and reenter the settings. Some users have had to reset their Yahoo password to get it to work. Many users have problems with their Yahoo account on the iPod.
-
when i go to settings>general> i have not found any update option .... in iphone 3gs.. what should i do??? i m unable to update through itunes,
Since there is no "Software Update", you are not yet up to iOS 5. That is where that feature was introduced.
So your only choice is to use iTunes to update your software. -
The app store keeps on crashing after i updated to ios6. What should i do to fix that prob? I cant browse through the apps because it crashes as soon as i select an app that i want to view
Try Restoring it in iTunes.
-
How can I check what version of Java Web Start is installed on the client ?
hi,
Can anyone tell me how can I check what version of java web start is installed on the client and display a message if the client has not the good version ?
I mean:
I'd like all people running my application use java 5 and if someone using java 1.4 try to run the application get a nice screen telling him to download the latest version of Java Web Start.
Is this possible ?
Thanks in advance.Of course, I put this on my jnlp file,
<resources>
<j2se version="1.5+"/>
<jar href="..... "/>
</resources> But even with that, it doesn't display a nice message but a kind of exception instead.
Thanks in advance. -
Can not enter my apps store or itunes store. What should i do?
Turn the tables on the iTunes Store. Try this.
Go to Settings>General>Date and Time>Set Automatically>Off. Set the date one year ahead. Try to download the apps again. If you get an error message, go back to the settings. Correct the date and time (set automatically) then go back and try again. -
What should be specified in object reference field in the first step of sequence file in test stand
Test stand object Reference field- <The expression cannot be empty>
It is showing an error like "The .Net property can not be accessible
Object Reference not set to an instance of an object".
How it can be resolved?
Attachments:
ex1.jpg 2305 KBI am
using Singleton Class in .Net. So I need not create object in TestStand. The Get
property of the class will return its own class object. So the Class Reference
should be empty only.
When I
choose the property manually, I am getting this error. This I am getting only
when I create this step through C# TestStand APIs. Please help me to remove this
error in the Class Reference field using TestStand
APIs.
Attachments:
ex2.jpg 24 KB -
Hello everyone, I recently installed Windows XP in my computer but now it does not start my Ipod classic information even I just have installed Itunes. What should I do if I do not have my CD to get it from there?
Try using Firefox. Flash usually works on Firefox when it won't on Safari. I noticed that the Safari does not show the same version as Firefox does. Iwonder if that could be the problem. Safari on the left shows 10.1, Firefox show 10.3
-
What file was requested when play() is ran on the client
I have been looking for a way to tell what file was requested from within a VOD app when a video is played. I want to use the file name for something else but I dont want to have to send it with a second argument in connect().
Is it possible to tell what file is requested??? If so how can I do this??well to do so you will have to write server side code to look at the stream and then request
the name its in the serverside language refrence.....after you get the name you will have to call to the client with the name.....sending the name through oncConnect probably has the least over head. -
What do I need to return with it besides the modem and AC adapter?
Basically what the title of this post says. I bought my own DOCSIS 3.0 modem and would like to return the one I rented from Comcast. (It will pay for itself in 7 months.) I just want to know which cables and other hardware I need to return with it. I don't know if I'll be able to locate the original receipt. I have the modem, AC power supply, a white ethernet cable, a length of coaxial cable (I think this came with the package because I found an Xfinity branded cable wrap that says "Coaxial" on the tab. But, this may have been used to bundle one of the other cables...), and a two-way splitter. Like I suggested above, The splitter and coaxial cable may be mine outright, I just don't remember. So... What all do I need to return?
Just return the modem and its power cord/power pack. When they provide Ethernet cables, coax, and splitters, those items become yours.
Maybe you are looking for
-
How do i force safari 7 to always download all PDFs
Whenever i click a pdf, i want it to merely download to my downloads directory. until mavericks this was a matter of simply setting a boolean operator, but now that operator does not work and the code in the pdf file displays on the screen instead o
-
Asking the mod to lock this thread.
I don't know where to turn to. I don't think it belongs to fissue at microsoft dot com, and I can't use the Abuse button as no one is in violation of COC. So, I am posting my " lock this thread " request here. The thread in question has gone through
-
Migrating NWDI server to another
Hi experts, Here is my objective: I have a SLD, DTR, CBS and CMS in one NWDI server. I need to migrate all of this to another NWDI server. My original server is a NWDI 7.1 windows, my target is a NWDI 7.4 Linux. Mt problem: All the sources, activitie
-
How do I retrieve photos off Adobe Photoshop Album Starter Edition to include in my new Adobe Photoshop Elements 11 album?? The trial period has long run out an the product is no longer available to purchase? thanks
-
How do in import google and yahoo contact to mail?
how do in import google and yahoo contact to mail?