Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Explanation of 'it's just ending'-

Status
Not open for further replies.

penciled

Programmer
Sep 4, 2001
5
0
0
US
Something bizzare is happening in my code.
I am trying the same thing- using a PL/SQL procedure or not- and getting different results- actually- I'm getting the same results, to start with, but for some reason when I call the procedure my code ends abruptly. It begins displaying the results... lists a hundred or so then just stops- midword sometimes. No errors... no nothing. I don't understand why this is happening, nor how to make it stop...
I need to get the procedures to work because I have some other queries that are too long to call directly from the jsp.
My JSP (procedure calls commented):
while( rs2.next() ) {
out.println( &quot;<font font=\&quot;ariel\&quot; size=\&quot;+1\&quot;>Code: &quot; + rs2.getString( &quot;CODE&quot; ) + &quot;</font> - <i>&quot; + rs2.getInt( &quot;CCOUNT&quot; ) + &quot; user(s)</i></br>&quot; );
out.println( &quot;<table width=\&quot;90%\&quot;>&quot; + rHeader );

query = &quot;SELECT LNAME, FNAME, CODE, COMMENTS FROM TELCOMUSERS WHERE CODE = '&quot; + rCode + &quot;' AND DEPTNAME = '&quot; + rDept + &quot;'&quot;;
// cs = con.prepareCall ( &quot;{ call userByDept ( ?, ?, ? )}&quot; );
// cs.registerOutParameter( 1, oracle.jdbc.driver.OracleTypes.CURSOR );
// cs.setString( 2, rDept );
// cs.setString( 3, rCode );

// cs.execute();
// rs3 = ( ResultSet ) cs.getObject( 1 );
rs3 = stmt3.executeQuery( query );
while( rs3.next() ) {
rComments = rs3.getString( &quot;COMMENTS&quot; );
if ( rComments == null ) rComments = &quot;&quot;;
out.println( &quot;<tr>&quot; +
&quot;<td></td>&quot; +
&quot;<td>&quot; + rs3.getString( &quot;LNAME&quot; ) + &quot;</td>&quot; +
&quot;<td>&quot; + rs3.getString( &quot;FNAME&quot; ) + &quot;</td>&quot; +
&quot;<td>&quot; + rs3.getString( &quot;CODE&quot; ) + &quot;</td>&quot; +
&quot;<td>&quot; + rComments + &quot;</td>&quot; +
&quot;</tr>&quot; );
}
out.println( &quot;</table><br>&quot; );
}

Here's my procedure:
PROCEDURE userByDept(
rSet OUT reportC.rc,
rDep IN TELCOMUSERS.DEPTNAME%TYPE,
rCod IN TELCOMUSERS.CODE%TYPE
) AS
BEGIN
OPEN rSet FOR
SELECT LNAME, FNAME, CODE, COMMENTS
FROM TELCOMUSERS
WHERE DEPTNAME = rDep
AND CODE = rCod
ORDER BY LNAME;
END;

Any ideas why that would happen?
 
You may be running into a limitation on how large a table can be in your browser. Can you just put the output as plain HTML text instead of table entries and get all the results?

I've run into limits on how many items can be loaded in a <SELECT> list using IE5.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top