Want to add a jsp inside pager tag library

Hi,
I want to add pagination in my web center application, for This I am using pager tag lib
But I am not able to add jsp page inside *<pg:index >* tag
I tried it with different ways: e.g.
A. <jsp:include page="/WEB-INF/jsp/altavista.jsp" flush="true"/>
b> <f:subview id="subview1">
<jsp:include page="inc.jsp" />
</f:subview>
When I add JSP  inside <pg:index > tag and run my jsp i am getting noting in my UI and also not seeing any error in console.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:pe="http://xmlns.oracle.com/adf/pageeditor"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:tr="http://myfaces.apache.org/trinidad"
xmlns:pg="http://jsptags.com/tags/navigation/pager"
xmlns:trh="http://myfaces.apache.org/trinidad/html"
xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:pageTemplate viewId="/oracle/webcenter/portalapp/pagetemplates/nowTemplate.jspx"
id="pt1">
<f:facet name="content">
<af:group id="g1">
<af:panelGroupLayout id="pgl1">
<div class="line topMargin20">
<div class="unit size1of4">
<div class="mod mod-sectionTitle">
<span>Search Results</span>
</div>
</div>
<!-- /unit -->
<div class="unit size3of4 lastUnit"></div>
<!-- /unit -->
</div>
<!-- /line -->
<div>
<pg:pager items="${backingBeanScope.searchClient.searchResults.totalResults}"
maxPageItems="${backingBeanScope.searchClient.searchResults.maxPageItems}"
maxIndexPages="${backingBeanScope.searchClient.searchResults.maxIndexPages}"
isOffset="${backingBeanScope.searchClient.searchResults.isOffset}"
export="offset,currentPageNumber=pageNumber"
scope="request">
<pg:param name="maxPageItems"/>
<pg:param name="maxIndexPages"/>
<input type="hidden" name="pager.offset" value="${backingBeanScope.searchClient.searchResults.isOffset}"></input>
*<pg:index >*
*</pg:index>*
<c:forEach items="${backingBeanScope.searchClient.searchResults.results}"
var="result">
</c:forEach>
</pg:pager>
</div>
</af:panelGroupLayout>
</af:group>
</f:facet>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
<!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_oracle_webcenter_portalapp_pages_untitled1-->
</jsp:root>

PeterBreis0807 wrote:
Are you having trouble with tabs in a list?
You haven't said so.
In lists you have to use option tab, otherwise it just changes the list level.
Peter
I guess what you were hoping but you missed the point.
Yvan KOENIG (VALLAURIS, France) vendredi 20 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
My iDisk is : http://public.me.com/koenigyvan

Similar Messages

  • Unable to add Custom JSP 1.2 Tag Library to Project

    I am trying to upgrade to a newer version of JDeveloper (10.1.3.0.4) but am having a problem with projects that use custom JSP tag libraries.
    After converting the project (.jpr) files to the new version, I double click and go to "JSP Tag Libraries." When I click on "Add" to add a new JSP Tag library, only JSP version 1.1 libraries are shown, I cannot choose any JSP 1.2 tag libraries.
    my TLD files are all JSP 1.2, so I am not quite sure why this isn't working in a newer JDeveloper after it has worked fine in the past. If I examine any JSP page that uses my taglibs, I see the following 2 kinds of error:
    the line:
    <%@ taglib uri="taglib.uri" prefix="mytag" %>
    is underlined in red and says "the tag library taglib.uri is referenced, but not installed"
    And for any lines that try to use the custom tag:
    <mytag:dosomething>
    there is a yellow/orange underline that says "no grammar available for namespace taglib.uri, contents of element dosomething cannot be validated"
    Note that I can add the taglib JAR file under Tools > Manage Libraries, but I cannot add the JSP tag library to my project. Is there some sort of compatibility issue when transferring project files from an old version of JDeveloper?
    Any help would be appreciated

    Yes any new project I create I can specify JSP 1.2 or 2.0 with the wizard and it works fine.
    But I don't want to re-create my entire project file again just to register my taglibs.
    Here's the JSP related section in web.xml:
    <!-- TagLibraries -->
    <taglib>
    <taglib-uri>taglib.uri</taglib-uri>
    <taglib-location>/WEB-INF/tlds/mytag.tld</taglib-location>
    </taglib>
    It's definately something in the project itself... but I am lost as to what it is.
    Edit: nvm I fixed it. It was the web.xml. I had to change the line:
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    into
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    and it worked. Thanks.
    Message was edited by:
    user523020

  • Support for jsp:include page tag

    Is there a support for the jsp:include page tag ?
    I get an exception when trying to include jsp's
    Thanks

    Hi
    I use a page with a one column template
    I print a JSP that include another JSP using <jsp:include page="my_shopping_cart.jsp"
    flush="true"/>
    i get this exception :
    java.lang.IllegalStateException: Can not set buffer size after writing data. at
    com.bea.portlet.container.HttpServletResponseImpl.setBufferSize(HttpServletResponseImpl.java:179)
    at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:66) at
    weblogic.servlet.jsp.PageContextImpl.(PageContextImpl.java:105) at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:37)
    at jsp_servlet._portlets._oci.__my_shopping_cart._jspService(my_shopping_cart.jsp)
    at com.bea.portlet.jsp.PortletJspBase.service(PortletJspBase.java:110) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:101)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:597)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:409)
    at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:155) at jsp_servlet._portlets._oci.__oci._jspService(oci.jsp:209)
    at com.bea.portlet.jsp.PortletJspBase.service(PortletJspBase.java:110) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:101)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:597)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:409)
    at com.bea.portlet.container.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:98)
    at com.cgi.poc.jsr168.MyAccountsPortlet.doView(MyAccountsPortlet.java:107) at
    javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:208) at javax.portlet.GenericPortlet.render(GenericPortlet.java:137)
    at com.bea.portlet.container.PortletStub.render(PortletStub.java:370) at com.bea.portlet.container.AppContainer.renderStub(AppContainer.java:501)
    at com.bea.portlet.container.AppContainer.invokeRender(AppContainer.java:436)
    at com.bea.portlet.server.PortletHttpServer.invoke(PortletHttpServer.java:218)
    at com.bea.portlet.server.PortletHttpServer.process(PortletHttpServer.java:162)
    at com.bea.portlet.server.PortletHttpServer.doGet(PortletHttpServer.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:101)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:597)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:409)
    at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireRender(JavaPortletContent.java:246)
    at com.bea.netuix.servlets.controls.content.JavaPortletContent.renderInternal(JavaPortletContent.java:146)
    at com.bea.netuix.servlets.controls.content.JavaPortletContent.beginRender(JavaPortletContent.java:108)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:424) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:427)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:172) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:380) at com.bea.netuix.nf.UIControl.render(UIControl.java:580)
    at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:341)
    at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
    at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
    at jsp_servlet._framework._skeletons._bellca.__gridlayout._jspService(gridlayout.jsp:29)
    at com.bea.portlet.jsp.PortletJspBase.service(PortletJspBase.java:110) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:101)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:597)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:409)
    at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:187)
    at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:90)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:420) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:427)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:436)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:172) at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:220)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:158) at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:363)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:207) at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:584)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Subbu Allamaraju <[email protected]> wrote:
    Could you please post more details of the exceptions?
    Thanks
    Subbu
    Carl Samson said the following on 12/09/2003 01:15 PM:
    Is there a support for the jsp:include page tag ?
    I get an exception when trying to include jsp's
    Thanks

  • Pagination using pager tag library (logical groupings)

    I'm currently trying to achieve pagination using the pager tag library provided by jsptags.com.
    Instead of the usual breaking up the records into a fix number to be displayed per page, I need to display these records by grouping per page. E.g., my records are grouped by countries, so each group varies in size.
    I would not be accessing the database directly from the JSP page, in fact, the JSP page will get a collection of the objects that I want to display per page.
    Has anyone done anything like this before? Would appreciate very much if you could share with me how you implement this.
    Thanks!

    Hi there,
    I am wondering if you found the solution for your question with paging in JSP. if so i will really appreciate if you can let me know, how you did it. I am using Pager tag lib from JSPTags as well and i used collection object to iterate through. But i have some problems. I am wondeinf if you can help me with this
    Thanks
    Vik

  • Help with Pager Tag Library

    I am developing a photo website with the JSP Pager Tag Library (http://jsptags.com/tags/navigation/pager/index.jsp). I have installed it and am using it successfully.
    I have one question.
    I have a page called view_fotos.jsp. This page has the pager tag to display the photos in a series of pages. view_fotos.jsp can accept a variety of parameters.
    For example:
    view_fotos.jsp?groupnum=10
    view_fotos.jsp?groupnum=10&user=john
    view_fotos.jsp?user=john&mode=view
    Now, I would like to add the QueryString to all the indexed page links.
    i.e. The page links should become...
    view_fotos.jsp?groupnum=10&pager.offset=0
    view_fotos.jsp?groupnum=10&pager.offset=6
    view_fotos.jsp?groupnum=10&pager.offset=12
    or
    view_fotos.jsp?groupnum=10&user=john&pager.offset=0
    view_fotos.jsp?groupnum=10&user=john&pager.offset=6
    view_fotos.jsp?groupnum=10&user=john&pager.offset=12
    depending on the request's QueryString. Can anyone please let me know how can I accomplish that?
    Thanks for your kind help!
    Regards,
    Joe

    Take a look at the docs on the pg:param tag. Those parameters will make it on the end of your URL. You might also have to export the offset variable in the pg:pager tag so that you can use it later with <%=offset%> but I think if you set the max items per page part of pg:pager to 6, it will do the offset stuff for you. The docs for the pager tag library should have more info though. That's found at http://jsptags.com/tags/navigation/pager/index.jsp along with the download.

  • Pager Tag Library & JSLT

    Hi
    I try to incorporate paging in my web application and I find Pager Tag Library in http://jsptags.com/tags/navigation/pager/index.jsp.
    Here is my code
    <%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
    <%-- Retrieve data--%>
    <sql:query var="date_data" dataSource="${ds}">
        select *
        from pdate
    </sql:query>
    <html>
    <pg:pager maxPageItems="2">
        <pg:item>
            <c:forEach items="${date_data.rows}" var="row">
                <c:out value="${row.product}"/>
            </c:forEach>
        </pg:item>
        <pg:index>
        <pg:first>
          <a href="<%= pageUrl %>">[ (<%= pageNumber %>) |< Previous ]</a>
        </pg:first>
        <pg:prev>
          <a href="<%= pageUrl %>">[ (<%= pageNumber %>) << Previous ]</a>
        </pg:prev>
        <pg:pages>
           <a href="<%= pageUrl %>"><%= pageNumber %></a>
        </pg:pages>
        <pg:next>
          <a href="<%= pageUrl %>">[ Next >> (<%= pageNumber %>) ]</a>
        </pg:next>
        <pg:last>
          <a href="<%= pageUrl %>">[ Last >| (<%= pageNumber %>) ]</a>
        </pg:last>
      </pg:index>
    </pg:pager>I don�t understand what values the pageUrl expression must have.
    I change all <%= pageUrl %> with numbers and string in order to experiment but the result is just the <c:out value="${row.product}"/> and no paging.
    What should be done in order to work?
    Thanks

    You could rewrite the component's renderer class

  • Pager tag library

    The Pager Tag Library is the easy and flexible way to implement paging of large data in JavaServer Pages (JSP). and we can display something like
    1 2 3 4......
    How can we display
    A B C D E.....
    instead of
    1 2 3 4 .....

    You could rewrite the component's renderer class

  • Paging using page tag Library

    My JSP is using page tag Library. When I click the Next page it returns next page. How can I change my JSP using page tag so that when the next/previous link is clicked, I should see the next/previous 10 records and so on.
    Thanks in advance

    Unfortunately my mind reading powers are not working so well right now.
    Which page tag library are you using? There are several.
    I would suggest that you look at the documentation for that library.
    Unless you show us what the code you are currently using is, we can't suggest changes.
    Oh, and please don't just copy paste your whole JSP here. A relevant excerpt of how you are using the tag library and how you create the links should be more than enough. And please use code tags.

  • How to get the JSP Name calling the Tag Library inside the Tag Library

    Hi guys,
    I have defined a Tag Library PenStart:
    import javax.servlet.jsp.tagext.*;
    public class PenStart extends TagSupport
      public int doStartTag()
        return EVAL_BODY_INCLUDE;       
      public int doEndTag()
        return EVAL_PAGE;
    }I have also defined the pentags.tld:
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
              version="2.0">
         <description>My Tag Library</description>
         <tlib-version>1.0</tlib-version>
         <short-name>pentags</short-name>
         <tag>
              <name>penstart</name>
              <tag-class>com.srh.tag.PenStart</tag-class>
              <body-content>empty</body-content>
         </tag>
    </taglib>I am calling the tag library in my JSPs:
    <%@ taglib uri="WEB-INF/pentags.tld" prefix="pen"%>
    <pen:penstart/>Now in the doStartTag() I want to know the JSP which is using the tag. How can I do that?
    Thanks

    pageContext.getRequest().getRequestURI()

  • Sorting,  polls, ratings, - want to add to my html page

    How's the best way using HTML, CSS and JavaScript and libraries to add sorting, polls and ratings.  Here is what i have and the center content part is just an image.  The image is what I need to create.
    http://www.tammyfarringtoncreative.com/test/index.html#
    Thanks, Tammy

    Do a Google search for star ratings scripts.  There are various methods with jQuery, Ajax, PHP & MySql.
    Nancy O.

  • How use the pager tag library for multi pagin

    hi,
    in fact i be new in the Jsp World so i want to use the multi pagin in my jsp can you help me.
    best regards

    So, what do you mean by "multi pagin"? Could you please explain
    it a little clearly?
    Regards
    greenidiot

  • HT1349 I am completely lost. I have bought a new Windows 8 PC and want to add it for my i-tunes library. All I get is go to the Store menu for add a new device, but I cannot find it. Help. Please note I am an elderly man who is computer literate but not a

    I have no idea if anyone will read this request, as I am now just pressing buttons, very few of which apply to my query, but have to be completed in order to get the posting processed. Apple is continuing to be rubbish, as I understand very little of what it tells me. My original query is very simple.

    If using iTunes 11... See this Discussion...
    https://discussions.apple.com/thread/4631735?tstart=0

  • JSP with Custom tags error during verify.

    Hi, i am new to JSP and Custom tag Library. The tools that i am using to deploy is "Sun Deploy Tool 8.2" with Sun Application Server. When i try to verify my JSP page i get this error message
    tests.web.AllJSPsMustBeCompilable . I guess there is nothing wrong for my code, will it be path problem, because
    i already check that i had included all the path that i need. Any idea what might cause this problem? Thank You.
    Assertion:All the JSPs that are bundled inside a web application must be compilable using a J2EE compliant JSP compiler that does not have any proprietary or optional features in it.
    For [ /tag/tag.war ]
    Error: Some JSPs bundled inside [ tag ] could not be compiled. See details below.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 12 in the jsp file: /currentTime.jsp
    Here are my class file :
    Custom lib java Class timetag.java
    import javax.servlet.jsp.tagext.*;
    import javax.servlet.jsp.*;
    import java.text.SimpleDateFormat;
    public class timetag extends TagSupport{
         public int doEndTag() throws JspException
              SimpleDateFormat sdf;
              sdf = new SimpleDateFormat("HH:mm:ss");
              String time = sdf.format(new java.util.Date());
              try {
                   pageContext.getOut().print(time);
              }catch(Exception ex)
                   throw new JspException(ex.toString());
              return EVAL_PAGE;
    Tag file *.tld : examplesTag.tld
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    version="2.0">
    <tlib-version>1.0</tlib-version>
    <jsp-version>2.0</jsp-version>
    <short-name>ExamplesTags</short-name>
    <description>A set of example tag handlers.</description>
    <tag>
    <name>time</name>
    <tag-class>timetag</tag-class>
    </tag>
    </taglib>
    JSP File : currentTime.jsp
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ taglib prefix="examples" uri="/WEB-INF/examplesTags.tld" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Insert title here</title>
    </head>
    <body>
    <examples:time /> //If i remove this it will be fine.
    </body>
    </html>

    I am sorry for the double post because the format mess up..Please ignore this POST..Apologies again..Thanks

  • SharePoint 2010 Allow User to Add Comments to Files in a Library and to the Header of the Web-Page

    (1) I need to allow an end-user to be able to add comments to files either when they are added to a library or after they are added. I didn't see a Column available for adding to a Document Library for "Comments".
    (2) I need the same user to be able to add text/comments to the Header of the web-page that contains the library (above the library at the top of the screen).
    When I (the SP Admin) add the "Content Editor Web-Part" to the top of the web-page that contains the Document Library, the Toolbar disappears. The Content Editor Web-Part would be ideal to allow the end-user to add comments to the Header, but I
    really need the Toolbar available.
    Is there another Web-Part that I could use for allowing comments to be added to the Header of a web-page without disabling the Toolbar, or is there a known-fix for allowing the Toolbar to be available and functional after adding a Content Editor Web-Part?
    JCashon

    Hi,
    According to your post, my understanding is that you want to add Comments to Files in a Library and to the Header of the Web-Page.
    (1)If you use the document content type in the library, it will contain the “Comments” field automatically. When you add the document, you can enter the conments. You can also edit the “Comments” field after the document added.
    (2)If you add the add the "Content Editor Web-Part" to the AllItem.aspx Page, you can add the text to the web part as the Header.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Add another mail login page besides the default mail login page

    I want to add another mail login page besides the default mail login page(http://mail.mine.com). This should be accessed as:http://mail.mine.com/soo.htm.
    I will keep the default page available too.
    Is this possible? where to put this new page? How to config this?
    Thanks!!!

    If it works, then you have found it.
    I make no claims to be a javascript programmer, nor do I claim to program html code.
    If it doesn't work, you may need to remember that Messaging Express isn't really a web server, it's only a piece of one. . .

Maybe you are looking for

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All , Can you please provide me the step by step procedure to create the Sap script & Layout Set .(please provide sample code/links /docs for layout & print program). Regards Rahul

  • How to create dom treeof html page with java

    hi, all i met with a problem how to create dom tree of html page wih jave, that is, given a html page, how to create a dom tree of this page with java? thanks in advance. regards richard

  • I can not pay in,your software won't let me,why?

    my MC card expired last july,I never noticed. I now want to use my VISA card for payment.I have less than 2 bucks credit left.The software just will not take my money or new card,frustating.

  • Mixed Case tags in XML

    Is it possible to return mixed case tag names in the XML from Oracle? We are using mixed case column and table names in our database and have a requirement to produce the XML output in mixed case too.

  • Faces continually crashes iphoto

    Hi all, Since an upgrade to iPhoto 11 faces, and on occasion iphoto, crashes iphoto and restarts with an error. I must say since the upgrade to iphoto 11I have also suffered numerous crashes in general when trying to use the program.  On advice from