You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Andrea Grittini <an...@Cdesign.it> on 2002/04/12 10:45:56 UTC

getRowsCount

I beg you pardon, (I promise this is my last question) but,
What is the method to know the size of a recordset??
I tried with myrec.getRowsCount  and this is the exception trace.
Then I tried with: size, getRowCount, getSize with or without the name of the recordset, and I got  the same result.
Could you help me ??
Thank you
Andrea Grittini

An error occurred while evaluating custom action attribute "value" with value "${myRec.getRowsCount}": Unable to find a value for "getRowsCount" in object of class "javax.servlet.jsp.jstl.sql.ResultImpl" using operator "." 
Oops! Your request cannot be completed. The server got the following error. 

      An error occurred while evaluating custom action attribute "value" with value "${epNews.getRowsCount}": Unable to find a value for "getRowsCount" in object of class "javax.servlet.jsp.jstl.sql.ResultImpl" using operator "."
	at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:206)
	at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:143)
	at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:364)
	at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:109)
	at org.apache.taglibs.standard.tag.el.core.ExprTag.doStartTag(ExprTag.java:137)
	at JspPage_actCercaEpNews_jsp_Impl._jspService(JspPage_actCercaEpNews_jsp_Impl.java:4657)
	at com.hp.mwlabs.j2ee.containers.servlet.jsp.AbstractJspPage.service(AbstractJspPage.java:551)
	at com.hp.mwlabs.j2ee.containers.servlet.jsp.JspServlet._service(JspServlet.java:766)
	at com.hp.mwlabs.j2ee.containers.servlet.jsp.JspServlet.service(JspServlet.java:424)
	at com.hp.mwlabs.j2ee.containers.servlet.WebApplicationBean$ServicePrivilegedAction.run(WebApplicationBean.java:4493)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:558)
	at com.hp.mwlabs.j2ee.containers.servlet.WebApplicationBean.service(WebApplicationBean.java:1977)
	at com.hp.mwlabs.j2ee.containers.servlet.RequestDispatcherImpl.forwardOrInclude(RequestDispatcherImpl.java:405)
	at com.hp.mwlabs.j2ee.containers.servlet.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:134)
	at com.hp.mwlabs.j2ee.containers.servlet.ServletContainerBean.processRequest(ServletContainerBean.java:772)
	at com.hp.mwlabs.as.services.servlet.ServletContainerService.processRequest(ServletContainerService.java:542)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.hp.mw.common.util.PolymorphicInvocationHandler.invoke(PolymorphicInvocationHandler.java:223)
	at com.hp.mwlabs.csf.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:184)
	at $Proxy87.processRequest(Unknown Source)
	at com.hp.mwlabs.as.services.listeners.http.HttpRequestHandler.executeImpl(HttpRequestHandler.java:229)
	at com.hp.mw.as.services.listeners.BaseRequestHandler.execute(BaseRequestHandler.java:124)
	at com.hp.mwlabs.common.util.ExecutorPool$Entry.execute(ExecutorPool.java:400)
	at com.hp.mwlabs.common.util.PeriodicExecutor.run(PeriodicExecutor.java:630)
	at java.lang.Thread.run(Thread.java:484)



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: getRowsCount

Posted by Henri Yandell <ba...@generationjava.com>.

On Fri, 12 Apr 2002, Andrea Grittini wrote:

> I beg you pardon, (I promise this is my last question) but,

Noooo! More questions :) I enjoy reading the answers.

> What is the method to know the size of a recordset??
> I tried with myrec.getRowsCount  and this is the exception trace.
> Then I tried with: size, getRowCount, getSize with or without the name of the recordset, and I got  the same result.
> Could you help me ??
> Thank you
> Andrea Grittini


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: getRowsCount

Posted by Shawn Bayern <ba...@essentially.net>.
The property is now called "rowCount":

 ${result.rowCount}

-- 
Shawn Bayern
Author, "JSP Standard Tag Library"  http://www.jstlbook.com
(coming this summer from Manning Publications)

On Fri, 12 Apr 2002, Andrea Grittini wrote:

> I beg you pardon, (I promise this is my last question) but,
> What is the method to know the size of a recordset??
> I tried with myrec.getRowsCount  and this is the exception trace.
> Then I tried with: size, getRowCount, getSize with or without the name of the recordset, and I got  the same result.
> Could you help me ??
> Thank you
> Andrea Grittini
> 
> An error occurred while evaluating custom action attribute "value" with value "${myRec.getRowsCount}": Unable to find a value for "getRowsCount" in object of class "javax.servlet.jsp.jstl.sql.ResultImpl" using operator "." 
> Oops! Your request cannot be completed. The server got the following error. 
> 
>       An error occurred while evaluating custom action attribute "value" with value "${epNews.getRowsCount}": Unable to find a value for "getRowsCount" in object of class "javax.servlet.jsp.jstl.sql.ResultImpl" using operator "."
> 	at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:206)
> 	at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:143)
> 	at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:364)
> 	at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:109)
> 	at org.apache.taglibs.standard.tag.el.core.ExprTag.doStartTag(ExprTag.java:137)
> 	at JspPage_actCercaEpNews_jsp_Impl._jspService(JspPage_actCercaEpNews_jsp_Impl.java:4657)
> 	at com.hp.mwlabs.j2ee.containers.servlet.jsp.AbstractJspPage.service(AbstractJspPage.java:551)
> 	at com.hp.mwlabs.j2ee.containers.servlet.jsp.JspServlet._service(JspServlet.java:766)
> 	at com.hp.mwlabs.j2ee.containers.servlet.jsp.JspServlet.service(JspServlet.java:424)
> 	at com.hp.mwlabs.j2ee.containers.servlet.WebApplicationBean$ServicePrivilegedAction.run(WebApplicationBean.java:4493)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAsPrivileged(Subject.java:558)
> 	at com.hp.mwlabs.j2ee.containers.servlet.WebApplicationBean.service(WebApplicationBean.java:1977)
> 	at com.hp.mwlabs.j2ee.containers.servlet.RequestDispatcherImpl.forwardOrInclude(RequestDispatcherImpl.java:405)
> 	at com.hp.mwlabs.j2ee.containers.servlet.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:134)
> 	at com.hp.mwlabs.j2ee.containers.servlet.ServletContainerBean.processRequest(ServletContainerBean.java:772)
> 	at com.hp.mwlabs.as.services.servlet.ServletContainerService.processRequest(ServletContainerService.java:542)
> 	at java.lang.reflect.Method.invoke(Native Method)
> 	at com.hp.mw.common.util.PolymorphicInvocationHandler.invoke(PolymorphicInvocationHandler.java:223)
> 	at com.hp.mwlabs.csf.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:184)
> 	at $Proxy87.processRequest(Unknown Source)
> 	at com.hp.mwlabs.as.services.listeners.http.HttpRequestHandler.executeImpl(HttpRequestHandler.java:229)
> 	at com.hp.mw.as.services.listeners.BaseRequestHandler.execute(BaseRequestHandler.java:124)
> 	at com.hp.mwlabs.common.util.ExecutorPool$Entry.execute(ExecutorPool.java:400)
> 	at com.hp.mwlabs.common.util.PeriodicExecutor.run(PeriodicExecutor.java:630)
> 	at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>