Paging with JSTL

Hi everyone. I'm new at the forum, a begginer programmer and I'm apologize for my english cuz is not very good ;). I'm making a project using only JSTL, I can't use the JSP embedded code, only JSTL, and a postgreSQL DB. Writing the paging I made the next code using only the JSTL and submit buttons which works very good.
<form action="/Paginaciones03/Consultas" method="POST">
            <table>
                <tr>
                    <input type="hidden" value="${limite}"/>
                    <%--Three first pages case--%>
                    <c:if test="${offset == 1}">
                        <td><b><c:out value="${offset}" /></b></td>
                        <c:if test="${paginas >= 2}">
                            <td><input type="submit" name="offset" value="${offset + 1}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${paginas >= 3}">
                            <td><input type="submit" name="offset" value="${offset + 2}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${paginas >= 4}">
                            <td><input type="submit" name="offset" value="${offset + 3}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${paginas >= 5}">
                            <td><input type="submit" name="offset" value="${offset + 4}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${paginas >= 6}">
                            <td><input type="submit" name="offset" value="${offset + 5}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${paginas >= 7}">
                            <td><input type="submit" name="offset" value="${offset + 6}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${paginas > 3 && offset < paginas}">
                            <td>Ultima:<input type="submit" name="offset" value="${paginas}" class="sbmt"></td>
                        </c:if>
                    </c:if>

                    <%--Remainin pages--%>
                    <c:if test="${offset >= 2}">
                        <c:if test="${offset - 3 > 0 }">
                            <td><input type="submit" name="offset" value="${offset - 3}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${offset - 2 > 0 && offset - 3 == 0}">
                            <td><input type="submit" name="offset" value="${offset - 2}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${offset - 2 > 1 }">
                            <td><input type="submit" name="offset" value="${offset - 2}" class="sbmt"></td>
                        </c:if>
                        <td><input type="submit" name="offset" value="${offset - 1}" class="sbmt"></td>
                        <td><b><c:out value="${offset}" /></b></td>
                        <c:if test="${offset + 1 <= paginas}">
                            <td><input type="submit" name="offset" value="${offset + 1}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${offset + 2 <= paginas}">
                            <td><input type="submit" name="offset" value="${offset + 2}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${offset + 3 <= paginas}">
                            <td><input type="submit" name="offset" value="${offset + 3}" class="sbmt"></td>
                        </c:if>
                        <c:if test="${paginas > 3 && offset < paginas}">
                            <td>Ultima:<input type="submit" name="offset" value="${paginas}" class="sbmt"></td>
                        </c:if>
                    </c:if>
                </tr>
                <tr>
                    <td><br/></td>
                </tr>
                <tr><td>
                        Resultados por p&aacute;gina: <select name="limite">
                            <option value="10">10</option>
                            <option value="20">20</option>
                            <option value="50">50</option>
                        </select>
                    </td>
                </tr>
                <tr><td>Mostrando: ${limite}</td>
                </tr>
            </table>
        </form>The question now is how I can reload the page with the select, using JSTL, and remains the limit number. Thank you very much. If you ask me, I can post the servlet.
Edited by: jFausto on Dec 11, 2008 11:06 AM

Similar Messages

  • Client side paging with jstl or xslt

    Is there any way to provide client side paging with jstl or xslt/xpath. I have a jsp page with a limited amount of data, say less than 30 rows of data. I want to display 10 rows at a time. The data is returned to the page in xml format and I am currently using xslt to display the data (currently displays all rows on the page). I am looking for a way to update my xpath variables so I can provide paging capabilities. Is there any way to get the information from the request from the jsp to the xpath variables? Or does anyone have any other suggestions for implementing client side paging using either xslst - xpath or jstl? Thanks Vic.

    I am loading the entire xml stream in the client and formatting using xslt. I only want to initially display 10 rows. I would like to implement client side paging. Is there any way to communicate with the xpath variables? Javascript?

  • Problem with formatting date with JSTL ans swedish locale

    Hi,
    I have a strange problem with JSTL fmt:formatDate -tag and swedish locale.
    -------------------------- Extract from the JSP ------------------------------
    <jsp:useBean id="date" class="java.util.Date" />
    <fmt:formatDate value="${date}" pattern="dd.MM.yyyy HH:mm" />
    With en_US and fi_FI locales date is printed just the way I want: 29.04.2005 13:28 but in se_SE locale it is printed: Fri Apr 29 13:30:09 EEST 2005
    Has anyone had this problem before?
    Thanks in advance!

    Hi
    Try using "sv_SE" locale.

  • How to populate a form based on values in a database with JSTL?

    I know how to write Java code to connect to a database, but where exactly (and how) in my JSP page , using JSTL tags will I actually call the function that connects to the database?
    Should the code to connect and populate the Java Bean fields go into the JavaBean constructor or anther method ( but from what I understand I can't really call the Java Bean's methods through JSTL - unless I did it througha scriplet)

    I know how to write Java code to connect to a
    database, but where exactly (and how) in my JSP page
    , using JSTL tags will I actually call the function
    that connects to the database?You won't. The point of writing JSPs with JSTL is to realize that the purpose of JSP is to produce HTML, and not to do extraneous things like accessing databases. You would write a servlet that connects to the database, extracts the data, and puts it somewhere the JSTL can find it. (Most likely in a List object in request scope.)
    Then the servlet forwards to a JSP, where you use JSTL simply to scan through that List and convert the objects in it into HTML.

  • Problem with JSTL 1.0.6 in WLS 8.1.4 - Please Help

    I am trying to use JSTL 1.0.6 in WLS 8.1.4. Here are the steps I followed:
              <br>
              Step 1:
              Copied the following jar files to WEB-INF/lib directory:<br>
              - jaxen-full.jar<br>
              - jdbc2_0-stdext.jar<br>
              - jstl.jar<br>
              - saxpath.jar<br>
              - standard.jar<br>
              - xalan.jar<br>
              - xercesImpl.jar<br>
              - xml-apis.jar<br>
              <br>
              Step 2:
              Imported JSTL into my one-and-only JSP page as follows:<br>
              <%@ page contentType="text/html;charset=UTF-8" language="java" %>
              <%@ taglib prefix="c"<br>uri="http://java.sun.com/jstl/core" %>
              <%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt" %>
              <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"%>
              <%@ taglib prefix="x_rt" uri="http://java.sun.com/jstl/xml_rt" %>
              <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
              <%@ taglib prefix="fmt_rt" uri="http://java.sun.com/jstl/fmt_rt" %>
              <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
              <%@ taglib prefix="sql_rt" uri="http://java.sun.com/jstl/sql_rt" %>
              <br><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
              <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
              <br>
              <br>
              (I am also using struts, hence the last two page directives)
              <br>
              <br>
              Step 3:
              Finally I tried to build an EAR (which used to build OK before I added JSTL) using a slightly modified version of the build.xml that comes with the Medrec tutorial. wlcompile went OK, but <b>wlappc</b> failed with the following message:
              <br>
              java.lang.NoClassDefFoundError: javax/servlet/jsp/el/VariableResolver
              <br>
              <br>
              What am I doing wrong? I followed the instructions given in the JSTL 1.0.6 package. Is wlappc not the right tool for translating/compiling the JSP?
              <br>
              Please help!
              <br>
              <br>
              Regards,
              Nadeem

    I can't be sure about exactly what's happening here, but I can point out several things.
              The class "javax.servlet.jsp.el.VariableResolver" is associated with JSTL 1.1.x, and JSP 2.0. It's not part of JSTL 1.0.x. Make sure you really have version 1.0.6, and don't have 1.1 somewhere.
              If you're just trying to use the JSTL, you shouldn't need several of those jars that you're presently including. You only need jstl.jar and standard.jar.
              Why are you using the "rt" versions of these taglibs? Those don't even use the expression language. I would remove "_rt" from all of those references.
              Note that if you're using Struts and the JSTL, you probably want to use Struts-EL, which is a version of the Struts jar that uses the EL to evaluate attribute values. Check the struts-user archive for some information about this. You'll find the struts-el distribution in the "contrib" directory of the Struts distribution.

  • Issue with JSTL ( c:import ) tags in Weblogic 9.2

    Hi,
    I'm trying to migrate a struts (1.2.9) application from Weblogic 8.1 to Weblogic 9.2. This application has JSPs with JSTL (1.0) tags.
    I have a JSP page that has multiple (around 7) c:import statements. When I launch my application, only the content from the last c:import statement is being displayed and rest of the c:import tags statements is simply ignored by Weblogic.
    I don't find any errors in the logs. When I comment out last c:import statement in this JSP then the content from the above c:import statement is being displayed. Only one (last one) c:import statement's content is being displayed in that whole page.
    This app worked just fine Weblogic 8.1.
    Any resolutions, hints, insights or workarounds on this issue is appreciated.
    Thanks in advance,
    Mani
    Edited by: mayyalas on Aug 10, 2009 6:13 PM

    Hello,
    You should not need to edit the wlp-light-web-lib.war weblogic.xml file. There are many places where other classes in wlp-light-web-lib are dynamically loading classes (using Class.forName()) from "higher-level" shared library modules (such as wlp-framework-full-web-lib), so I am certain that it works in general. There may just be an issue with how your shared library is set up, or how your webapp deployment descriptors are set up.
    So you mention that you have a shared library module containing your implementation of the AnalyticEventHandler; is this a .war file? And in the webapp you are trying to deploy this in, does your weblogic.xml explicitly include your shared library? If so, is your shared library being included before or after the standard WLP shared libraries?
    If you would like, posting your webapp's weblogic.xml may help to find the problem.
    Kevin

  • Paging with JDBC

    Hi
    What is the best way to do paging with JDBC when using PL/SQL Cursor. I want to create DAOs that access PL/SQL Cursors with a paging mechanism. The DAO must be stateless.
    Regards,
    Nestor Boscan

    Nestor,
    While I'm not trying to take away from Mikael's suggestion, the way I do it (which was implemented before the existence of "OracleCachedRowSet") is to maintain a scrollable "ResultSet" on the server, and send "Collection"s to the client. But beware of very large "ResultSet"s, because the Oracle JDBC driver implements scrollable "ResultSet"s via client memory.
    In any case, paging has been discussed previously in this forum. Did you try searching the forum archives?
    Good Luck,
    Avi.

  • Database Listing And Paging With Flash Builder

    Hello ;
    i trying to develop an android application with flash builder.
    i have a database and connected it, selected a table and created a service.
    my table have a four coloumn. id - img - tag - date
    id : as you know. table id coloumn auto increment.
    img : long text area. i want to listed to page when clicking the menu item.
    tag : tag is title of the img.
    date : standart date coloumn.
    i want to listing all data with menu style. i added to spinner list and it get to value at database tag (title) .
    how can i listing to text (long text area) in to the img coloumn when selected the tag (title) at spinner list. 
    thanks
    bye.

    i researched a many document but still can't find a insert data grid.
    it seems to under Components Panel all documents and videos
    but i can't see it?
    Anirudh SasikumarRangoraTodd_KoprivaJason San JoseSunilAdobeAmy_WongDatabase Listing And Paging With Flash BuilderUsing Flash BuilderFlex
    somebody help me please?
    thanks
    bye

  • Accessing objects with jstl

    Hello forum,
    A question about JSTL - one of the things I have not figured out until now. How can you access an object declared by a specialized tag? Generaly you c:set the variable you wish and you use EL to malipulate it. But how can you access a locale object or resource bundle object? Let's take the bundle object for example:
    The code that would declare it would be:
    <fmt:setLocale value="theLocale"/>
    <fmt:bundle basename="thebasename"/>
    Suppose that later in the code you want to access the created resource bundle object - how can you do that? Obviously a resource bundle object has been created, but how can you call one of its methods?
    Thanks in advance,
    Michael

    "and I really I am not that willing to decide that I will revert them to JSTL, at least not if they are really long"
    Well, right there is your problem. You will need to decide to do it, or not. You are experiencing one of the major problems of NOT using JSTL... when scriptlets get long they are difficult to maintain and change (which is why you shouldn't use them from the beginning.. but that is not pertinent to this topic).
    The issue is that some JSTL and some custom Tags have their own means of working with objects without sharing those objects with the application (it preserves encapsulation.. they can only be sure something is kept correct if they handle it themselves and don't let others mess with it).
    "This is a major problem for using jstl."
    This isn't a problem with JSTL, it is a problem of combining JSTL with scriptlets. JSTL should be used as a replacement for scriplets, in my opinion, not alongside them. It makes it much easier to
    1) plan what you are doing when coding
    2) read the code and understand it later when maintaining.
    So my advice would be to stick with one or the other (further I would suggest going all the way with JSTL, but the time of converting old scriptlet code is a negative that you will have to measure yourself...)

  • Problem when iterating with JSTL

    hi ,
    i have occured a problem when iterating with JSTL
    althought this error,my application works fine but i would like to know why this error:
    ther is my iteration code:
    <c:forEach items="#{sWIMmoduleStatistiques.listeModules}" var="m">
               <h:panelGroup>
                <br>
                 <div class="connectorChartHeader" onclick="toggleImage('${m.nomChart}');" >
                <span class="headerTitle">${m.nom}</span>
            </div>
                   <br><br>
                   <img src="${m.nomChart}" id="${m.nomChart}" />
               </h:panelGroup> 
           </c:forEach>       
         the error is:
    javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in <forEach>
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.toForEachIterator(ForEachSupport.java:274)
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.supportedTypeForEachIterator(ForEachSupport.java:238)
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.prepare(ForEachSupport.java:155)
         at javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:256)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_c_005fforEach_005f0(modulesStatistiques_jsp.java:434)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_h_005fpanelGrid_005f0(modulesStatistiques_jsp.java:399)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_f_005fview_005f0(modulesStatistiques_jsp.java:181)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspService(modulesStatistiques_jsp.java:109)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
         at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at TimeoutFilter.doFilter(TimeoutFilter.java:60)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:595)

    that line generated an error:
    java.lang.NumberFormatException: For input string: "class"
         java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         java.lang.Integer.parseInt(Integer.java:447)
         java.lang.Integer.parseInt(Integer.java:497)
         javax.el.ListELResolver.coerce(ListELResolver.java:166)
         javax.el.ListELResolver.getValue(ListELResolver.java:51)
         javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
         com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
         org.apache.el.parser.AstValue.getValue(AstValue.java:118)
         org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
         org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
         javax.faces.component.UIOutput.getValue(UIOutput.java:184)
         com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:284)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154)
         javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:946)
         javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
         javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
         org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
         com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         TimeoutFilter.doFilter(TimeoutFilter.java:64)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)

  • How to save an object with JSTL

    I have an object, how to save it with JSTL?
    I have this
    public class Auto{
    private AutoBomba a;
    public AutoBomba getA()
    return this.a;
    public AutoBomba setA(AutoBomba a)
    this.a = a;
    How can I set the from a JSP page a AutoBomba? The objects name is only for example

    There is of course the JSTL c:set tag
    This relies on the appropriate variables being in JSTL scope.
    <jsp:useBean id="auto" class="com.mypackage.Auto" scope="request"/>
    <jsp:useBean id="bomba" class = "com.mypackage.AutoBomba"/>
    <c:set target="auto" property="a" value="${bomba}"/>Cheers,
    evnafets

  • Overhead Paging with a Hosted VOIP system using Linksys SPA942 phones

    Anybody have any experiance with providing Overhead Paging with a Hosted VOIP system using Linksys SPA942 phones?  I currently use a hosted service called Vocalocity and need to  now provide overhead paging to one of our sites.

    I don’t think this is possible since usually this paging opting is used with accordance with the registration from the SPA9000. I am not quite certain if this will be able to work with certain VoIP providers but if it does they should have paging capability and the paging code might also change. I suggest contacting your VoIP provider and Cisco Tech support to further look into your concern. I believe this unit belongs to the business series devices that Cisco is now supporting. Try to go to this link for the other business series devices and the site where you can get hold of Cisco for support: 
    http://forums.linksysbycisco.com/linksys/board/message?board.id=Switches&message.id=4273&query.id=27...

  • Displaytag: paging WITH external sort

    I'm doing a paging with external sort on my list as described in http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html
    I'm getting the correct results with my paging, but when i click the sort headers, it always shows the FIRST page sorted. When I mouseover the sort header on any page, it shows the encoded page number to be 0, even if i'm on other pages. I have specified the total list size using the size property on the table tag, how do I tell displaytag which page it's currently displayed so that the sort header sorts the correct page?
    This is my table tag:
    <disp:table name="requestScope.sysProps" pagesize="10" requestURI="Results.do" defaultsort="1" id="results"
    sort="external" partialList="true" size="requestScope.sysPropsSize">

    To get the number of the current page, you can do this:
    request.getParameter(new ParamEncoder(tableId).encodeParameterName(TableTagParameters.PARAMETER_PAGE))
    tableId is the value of id attribute of display:tag at your jsp.
    But we still have a problem, because if you try to do:
    request.setAttribute(new ParamEncoder(tableId).encodeParameterName(TableTagParameters.PARAMETER_PAGE), pageToGo)
    The displaytag don't care about attributes and render the 1st page.

  • Replace % with jstl tags

    Hi
    i am trying to convert the following code to jstl
    <OPTION <% if (rpt.equals("none"))   { %> selected <% } %> value="none" id="none">       </OPTION>i am doing something like this with jstl but it isnt correct
    <OPTION value="none" id="none"
    <c:if test="${pageScope.rpt_local == 'none'}">
         selected >//gives error here sayin option tag not closed
    </c:if>how would i do this in jstl?
    null
    Message was edited by:
    bhaarat_java

    1) The URI you are using suggests that you
    removed/copied the tlds into the WEB-INF directory,
    and that your web.xml uses them. You should not do
    this. The tlds are in the JSTL jar files. By
    maintaining the proper URI, the one defined in the
    JAR, you will be sure to be using the proper version
    of the TLD and tag library.Thanks, I must have missed this important bit while scanning the docs. It's probably an old feature I've never investigated - so much to read and do :-)
    >
    2) Outputting the ${scope} string instead of a
    representation of the scope object suggests that EL
    is not being interpreted. This may be because you
    are using an old version of the web descriptor
    (web.xml) xmlns, or because you are using a non RT-EL
    version of JSTL.Yep, after I fixed my web.xml things started working.
    regards,
    Keith S.

  • How do I add strings together with JSTL?

    How do I add strings together with JSTL?
    Thanks,
    JN

    Just include them together in an expression string.
    For printing
    <c:out value="${user.lastName}, ${user.firstName}"/>
    or with a set statement
    <c:set var="fullName" value="${user.lastName}, ${user.firstName}"/>

Maybe you are looking for

  • Error while creating Function.

    Hii All, I'm currently working on 10gR2 .I'm trying to dynamically pass a column and parse it but I've encountered following error.Please help me. Create or replace Function r_return_col                      p_table_name          in          varchar2

  • How to run command line tool in my program???

    Hi,all,I've got some tools that are usually,or take JDK for example,if we are not using an IDE,we need to open the command prompt,and then use the javac command to compile the source files and the "java "command to run the program,and both of them ac

  • How to convert paramater to select option in appcreate tcode

    Hi Friends, after execution of standard transaction APPCREATE, once i will select proper object one screen is coming that screen is having field like Appraiser and appraisee at a time we can select one value. But requirement is like have to convert i

  • How to download apple loops for Garageband 10.0.1 ?

    How to download apple loops for Garageband 10.0.1 ?

  • VO Extensions

    Hai All, I unable to Extend an EO Based VO. All the XML files from the MDS repositary are FTPed to My Projects and the Class file to the My Classes. But, when trying to Extend the VO, I am getting error message with EO's. The attributes of the EO's a