tag:blogger.com,1999:blog-18313336.post1367117144872782677..comments2024-03-28T03:16:25.176-04:00Comments on Abhi On Java: Paging in JSP with Hibernateabhihttp://www.blogger.com/profile/05788965755655733389noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-18313336.post-71295512267900442262009-12-16T02:27:09.596-05:002009-12-16T02:27:09.596-05:00Hello Tamer..
I am facing the same issue...
"...Hello Tamer..<br />I am facing the same issue...<br />"org.apache.jasper.JasperException: /login.jsp(2,56) Could not add one or more tag libraries"<br /><br />can u tell me how did u solved it???<br /><br />Abhi- What may be the reason??Anshhttps://www.blogger.com/profile/04352115214737360435noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-73734432059448713312009-11-25T09:48:01.507-05:002009-11-25T09:48:01.507-05:00Hi Abhi,
Iam working on an app wic is quite simila...Hi Abhi,<br />Iam working on an app wic is quite similar to this post....<br />I am tryin to export data to CSV format...<br />Using flex as UI, I choose the component(thro a combo box) whose data has to be exported, and then send it to the Action class on the server. I retrieve wat ever data is to be retrieved, from a session bean and send it to a JSP file where a format data to presented as a downloadable file.<br /><br />When i access the action class thro the URL, i get the download pop-up.<br />But when i click the export button in Flex, there is no response. <br /><br />Plz find few code snippets and let me know what im missing:<br /><br />Flex:<br /><br />public function ExportData():void{<br /><br />exportData.send({id:DCSelect1.selectedItem.@id.toString(),<br />type:"ABC", from:dateFrom.text, dateto:dateTo.text});<br /><br />}<br /><br /> public function fileDownload(event:ResultEvent):void {<br />return;<br />}<br /><br /><br />HTTPService: id="exportData" showBusyCursor="true" concurrency="last"<br />url="http://111.22.66.111:8080/EPDD/exportData.action"<br />result="fileDownload(event)" fault="exportError(event)" <br /><br /><br /><br /><br />JSP:<br /><br />page language="java" contentType="application/csv; charset=ISO-8859-1"<br />import ----------------<br />-------------------------<br />pageEncoding="ISO-8859-1"<br /><br /><br /><br />response.setContentType("application/csv");<br /> response.setHeader("Content-Disposition","attachment;filename=<br />Report.csv");<br /><br />System.out.println("---- Getting the Data to Download ----");<br /> out.print("Date");<br /> out.print(",");<br /> out.print("value");<br /> out.print("\n");<br /><br />in a loop{<br />out.print(date);<br /> out.print(",");<br /> out.print(value);<br /> out.print("\n");<br />}<br /><br />//Finally<br />out.flush()<br /><br /><br /><br /><br /><br />I guess the connection btw JSP and Flex is missing, because it works fine when i access the action class through URL.<br />Should the FileDownload() function<br />in Flex have anything to recieve the proper content from the JSP file???praveenhttps://www.blogger.com/profile/04972753860882143769noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-21254267216806183192008-06-10T08:15:00.000-04:002008-06-10T08:15:00.000-04:00hi abhi,i am parveeni have been used your program ...hi abhi,<BR/>i am parveen<BR/>i have been used your program but when i compile the jsp i got an error<BR/>org.apache.jasper.JasperException: /pagingEmp.jsp(2,58) Could not add one or more tag libraries<BR/>what type of library i need please tell me. i need it very much. help me . i am waitng for ur responseAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-18313336.post-30498364783294520522008-05-22T07:19:00.000-04:002008-05-22T07:19:00.000-04:00I got it . please ignore my previous postI got it . please ignore my previous postUnknownhttps://www.blogger.com/profile/02383327497513135601noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-16266940311307885982008-05-21T08:26:00.000-04:002008-05-21T08:26:00.000-04:00Hi abhi i am new in hibernate,i want pagination in...Hi abhi<BR/><BR/> i am new in hibernate,i want pagination in my web application so i go through your Paging in JSP with Hibernate.but i did not get this code<BR/>session.setAttribute( "EmpList", data.DAO.getData(pageNumber));<BR/>particularly where data is coming.and <BR/>also i am trying package name instead<BR/>of data,then it giving error as<BR/>java.lang.NumberFormatException: For input string: "empId".<BR/><BR/>please help me in this topic.<BR/>thanks <BR/>BiswanathUnknownhttps://www.blogger.com/profile/02383327497513135601noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-24030599600302096092008-02-20T09:07:00.000-05:002008-02-20T09:07:00.000-05:00Hi,I am new to JSP and Hibernate. Can you please s...Hi,I am new to JSP and Hibernate. Can you please show an example on how to insert data into DB from JSP and how to view it from JSP.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-18313336.post-31158674642563263412007-11-07T22:54:00.000-05:002007-11-07T22:54:00.000-05:00Abhi - I got it to work now!! please ignore my pre...Abhi - I got it to work now!! please ignore my previous post. But I still have a favor to ask, can you please walk me through the logic to implement "previous page"?<BR/><BR/>Thanks,<BR/>TamerUnknownhttps://www.blogger.com/profile/16082984469061109461noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-34046203147206277652007-11-07T21:21:00.000-05:002007-11-07T21:21:00.000-05:00Abhi - Thanks for posting this it was very helpful...Abhi - Thanks for posting this it was very helpful, but unfortunately I still can't get it to work on my end. I'm getting the following exception:<BR/>org.apache.jasper.JasperException: /common/pagingEmp.jsp(1,121) Could not add one or more tag libraries.<BR/><BR/>Can you please specify which taglibs you are using? and how can I implement them in my web app? (I'm using Tomcat v6.<BR/><BR/>Thanks for your help!Unknownhttps://www.blogger.com/profile/16082984469061109461noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-54372854213767426292007-10-09T01:53:00.000-04:002007-10-09T01:53:00.000-04:00Hey Abhi, i thought ur article was excellent and v...Hey Abhi, i thought ur article was excellent and very informative!sabysonichttps://www.blogger.com/profile/06167574250736716427noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-21656588053835552832007-05-25T04:20:00.000-04:002007-05-25T04:20:00.000-04:00i have gone through your paging..it is really usef...i have gone through your paging..it is really usefull...sanjayhttps://www.blogger.com/profile/15885135861669622700noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-70251610977104625902007-05-25T04:19:00.000-04:002007-05-25T04:19:00.000-04:00actually i am interested in Jsp code which uses hi...actually i am interested in Jsp code which uses hibernate to store dta & retrieve...can u help me by posting related code.<BR/><BR/>Thanks in advance!<BR/>Sanjay Yadavsanjayhttps://www.blogger.com/profile/15885135861669622700noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-1105887563819022702007-03-15T13:15:00.000-04:002007-03-15T13:15:00.000-04:00To Piotr: actually, this depends on implementation...To Piotr: actually, this depends on implementation of JDBC driver. Oracle drivers do exactly as you said. I don't know if PG or MySQL drivers have the same behaviour. I believe MySQL works because it has a native "first/max" support (if you can do that with SQL, the driver should do the same).Eduardohttps://www.blogger.com/profile/04225169220107206884noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-69435770712446746192007-02-16T08:14:00.000-05:002007-02-16T08:14:00.000-05:00Once we implemented paging in Hibernate the same w...Once we implemented paging in Hibernate the same way, but we have found that using the setFirstResult function is not very fast on large tables. This is actually good for the first few pages. The database system scans the whole table from the beginning to the place you want to display. It is faster to have one column with sequential row numbers and an index on it. In some cases, if records are added only at the end or beginning - this is possible.<BR/><BR/>--<BR/><A HREF="http://www.dinf.pl/" REL="nofollow">our consulting company</A>stforekhttps://www.blogger.com/profile/04760867331615048475noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-35883704549343951072007-01-09T23:54:00.000-05:002007-01-09T23:54:00.000-05:00Not sure if you have seen this http://blog.hiberna...Not sure if you have seen this http://blog.hibernate.org/cgi-bin/blosxom.cgi/2004/08/14#pagination<br />Hibernate blog explaining how to implement pagination using hibernate.<br />I think one question still remains is how do we display the total number of results as well.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-18313336.post-37824194509961304982006-12-20T19:38:00.000-05:002006-12-20T19:38:00.000-05:00I was actually looking at this article today, and ...I was actually looking at this article today, and thinking if I can come up with any better idea <a href="http://www.devx.com/Java/Article/21383"> paging in J2EE</a>abhihttps://www.blogger.com/profile/05788965755655733389noreply@blogger.comtag:blogger.com,1999:blog-18313336.post-11126771814752773782006-12-20T18:26:00.000-05:002006-12-20T18:26:00.000-05:00You wrote: "Time permitting, I will soon post a hy...You wrote: "<i>Time permitting, I will soon post a hybrid of cache based and query based paging example.</i>"<br /><br />I would love to see this article. Perhaps, even if you don't get time to write the code, you could post some text explaining the design behind your solution?<br /><br />Chris.Anonymousnoreply@blogger.com