Not displaying decalritive component in my jsp page

i delete my adf libarary jar in my deploy folder and it works fine,but now
not able to dislay decalartive components in my jsp page
hi i have decalarative components page which am calling from another jsp page,the thing is when irun my jsp page am not able to display my decalartve components but in design of my jsp page i can see my decalartive components
my decalaritive components xml is
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:f="http://java.sun.com/jsf/core">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<af:componentDef var="attrs" componentVar="comp" definition="public">
<af:panelGroupLayout id="dc_pgl1" inlineStyle="width:736px;" layout="horizontal" valign="middle"
halign="center">
<af:panelFormLayout id="dc_pfl1" rows="1" maxColumns="10"
inlineStyle="width:376px; height:33px; border-color:Navy; border-style:ridge;">
<af:commandLink text="Home" id="dc_cl1" action="Home"/>
<af:commandLink text="TaskPool" id="dc_cl2" action="toPool"/>
<af:commandLink text="LogOut" id="dc_cl3" action="logout"/>
<af:selectOneChoice label="Skin" id="dc_soc1" value="#{SkinHelper.currentSkin}">
<f:selectItems value="#{SkinHelper.currentSkin}" id="dc_si1"/>
</af:selectOneChoice>
<af:commandButton text="Select" id="dc_cb1" action="#{SkinHelper.switchSkin}"/>
</af:panelFormLayout>
</af:panelGroupLayout>
<af:xmlContent>
<component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
<display-name>SmscomponentDef</display-name>
<component-class>component.SmscomponentDef</component-class>
<component-extension>
<component-tag-namespace>component</component-tag-namespace>
<component-taglib-uri>/componentLib1</component-taglib-uri>
</component-extension>
</component>
</af:xmlContent>
</af:componentDef>
</jsp:root>
when i drag and drop my decalaritive components from my components platter i get the below xml in my jsp page
<sms:SmscomponentDef id="sd1"/>
reference
error running running application with decalaritive components

timo
Please be patient and wait for an answer in the other thread...
how can i display the declarative components on the jsp page, am not able to diplay in runtime but can see decalarative components in design
Edited by: Tshifhiwa on 2012/06/26 8:26 PM

Similar Messages

  • Could not display Alert component in Visualweb JSP page

    Hi All,
    I am having difficulty getting the Ajax Autovalidation Alert Component to work in Netbeans Visualweb 6.5 on Windows XP with the following steps:
    ( i ) Set autoValidate attribute of firstnametextField and lastnametextField to "true" from property windows of Page1.jsp.
    ( ii ) Drag the Alert component of Page1.jsp and modified it's default id attribute to "form1:autoValidateAlert". Some how Netbeans change this attribute in the property window to "form1_autoValidateAlert" instead.
    ( iii ) Add notify="form1:autoValidateAlert" to Page1.jsp file for both firstnametextField and lastnametextField as follows:
    <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <webuijsf:page id="page1">
                <webuijsf:html id="html1">
                    <webuijsf:head id="head1">
                        <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                    </webuijsf:head>
                    <webuijsf:body id="body1" style="-rave-layout: grid">
                        <webuijsf:form id="form1">
                            <webuijsf:button actionExpression="#{Page1.button1_action}" binding="#{Page1.button1}" id="button1"
                                style="left: 130px; top: 144px; position: absolute" text="Submit"/>
                            <webuijsf:textField autoValidate="true" binding="#{Page1.firstNametextField}" columns="10" id="firstNametextField" label="First Name"
                                notify="form1:autoValidateAlert" required="true" style="left: 52px; top: 48px; position: absolute" text="#{SessionBean1.page1FirstName}"/>
                            <webuijsf:textField binding="#{Page1.middleNametextField}" columns="10" id="middleNametextField" label="Middle Name"
                                style="left: 47px; top: 71px; position: absolute" text="#{SessionBean1.page1MiddleName}"/>
                            <webuijsf:textField autoValidate="true" binding="#{Page1.lastNametextField}" columns="10" id="lastNametextField" label="Last Name"
                                notify="form1:autoValidateAlert" required="true" style="left: 53px; top: 94px; position: absolute" text="#{SessionBean1.page1LastName}"/>
                            <webuijsf:dropDown id="salutationdropDown" items="#{Page1.salutationdropDownDefaultOptions.options}" label="Salutation"
                                selected="#{SessionBean1.page1Salution}" style="left: 75px; top: 118px; position: absolute"/>
                            <webuijsf:alert id="autoValidateAlert" style="position: absolute; left: 96px; top: 216px"/>
                        </webuijsf:form>
                    </webuijsf:body>
                </webuijsf:html>
            </webuijsf:page>
        </f:view>
    </jsp:root>However, the Alert Component does not pop up after leaving First Name or Last Name text field blank prior to entering the field such as middlenametextField...
    Your suggestion would appreciated.
    Thanks,
    Jack

    timo
    Please be patient and wait for an answer in the other thread...
    how can i display the declarative components on the jsp page, am not able to diplay in runtime but can see decalarative components in design
    Edited by: Tshifhiwa on 2012/06/26 8:26 PM

  • The graph dose not shown after running the Customize JSP Page.

    Hi All,
    While creating customize JSP I am facing one problem - The graph dose not shown after running the Customize JSP Page.
    What are the possibilities ? any body has any Idea Please help me

    Hi all,
    I have the same issue! Any solution??
    Thanks
    BI Beans Diagnostics(v1.0.2.0) 11/10/06
    =========================================================
    JDEV_ORACLE_HOME .......................... = D:\jdev1012b1913
    JAVA_HOME ................................. = D:\ORDB10gR2Home\jdk
    JDeveloper version ........................ = 10.1.2.1.0.1913
    BI Beans release description .............. = BI Beans 10.1.2 Production Release
    BI Beans component number ................. = 10.1.2.67.0
    BI Beans internal version ................. = 3.2.2.0.24.2
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 10.1.0.4.2
    JDBC JAR file location .................... = D:\jdev1012b1913\jdbc\lib
    Database version .......................... = 10.2.0.2.0
    OLAP Catalog version ...................... = 10.2.0.2.0
    OLAP AW Engine version .................... = 10.2.0.2.0
    OLAP API Server version ................... = 10.2.0.2.0
    BI Beans Catalog version .................. = 3.2.2.0.24
    OLAP API JAR file version ................. = "10.1.0.5.0"
    OLAP API JAR file location ................ = D:\jdev1012b1913\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    Number of metadata folders ................ = 1
    Number of metadata measures ............... = 23
    Number of metadata dimensions ............. = 8

  • Displaying Crystal reports in a JSP Page

    hello,
    Can anybody help me out in displaying Crystal reports on a JSP page.
    which needs to be deployed on weblogic server and oracle database.
    i am new to crystal report and dont have much idea how to proceed.
    if you can give me a pointer how to start then i can proceed.
    waiting for the reply eagerly

    Start with the Crystal reports site.
    [url http://www.businessobjects.com/products/dev_zone/java/default.asp?ref=devzone_main] Java zone has some documentation and basic examples on how to do it

  • OLE Objects are not displayed properly-overlap characters and empty page

    I'm using CR4E 12 Runtime libraries to load and view reports that are created in CR designer  v10. Some of the OLE Objects (not all) are not displayed properly.
    1) A full page contains terms and conditions as ole object is not at all displayed and just shown as black image.
    2) Some data in a table (OLE Object) shown as overlapped characters.
    Any body know the reason and is there any workaround to solve this issue?
    Thankyou very much for your time.

    Your problem seems to be with the character encoding you are using for your text.  A quick google search for ColdFusion character encoding should turn up the answer.  In case you are interested in learning more:
    http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=ColdFusion_Documentation&file=00001201.htm
    Hope that helps!
    - Michael

  • Help!!! How to make quicktime plugin do not display on top of the web page?

    Any one knows how to make quicktime plugin do not display on top of the web page??? I've tried to change the zIndex property using javascript, but it doesn't work.
    Because we have some widgets which are required to be moved to anywhere on the page, we use iframe to implement that, so it can display on top of quicktime plugin, but the plugin flickers sometimes when we do some operation on the widget which is on top of it.
    Anyone can helps me? Thanks in advance!!!
      Windows XP Pro  

    > Can you tell me how to set the script so that the
    lightbox image is
    > displayed
    > on mouseover instead of mouse click.
    Check the docs. Trent is usually very thorough in his
    instructions.
    Hint: I haven't studied it but it probably involves modifying
    one of DW's
    built-in Behaviors.
    Walt
    "ducati1" <[email protected]> wrote in
    message
    news:gkb906$qrd$[email protected]..
    > Wow that DW extension is just what I needed.
    > Thanks..
    > Can you tell me how to set the script so that the
    lightbox image is
    > displayed
    > on mouseover instead of mouse click.
    > I currently have the thumbnails set to insert the ALT
    text into a text box
    > on
    > mouse click.
    >

  • How can I display the date on a jsp page??

    Is there anyway to display the current date when someone views a jsp page??? Can I get it from the server or something like that?
    Thx
    Rich

    is there any type of formatting that goes witth
    that.....Most definitely -- check out the java.text.DateFormat object and its cohort java.text.SimpleDateFormat.
    For example, if you wanted to display the current date in MM/DD/YYYY format, you could do the following:
    <%-- This could go somewhere near the top of the JSP %>
    <%
    SimpleDateFormat f = new SimpleDateFormat("MM/dd/yyy");
    %>
    <% And later on, you could have... %>
    <%= f.format(new Date()); %>Note that I've omitted the proper <%import%> directives.
    -Navin

  • How to display a document content in JSP page

    Hi friends,
    I am trying to display a document's content in a JSP page after user authentication.For that I mapped a jsp file with extension .sens in Content Management SDK manager,and put it the file in the directory '/ifs/jsp-bin' of webstarterapp,but it is not working.Down I am giving the code snippet,please help me.I need this to be done fast.
    <HTML>
    <HEAD>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="oracle.j2ee.connector.Login" %>
    <%@ page import="oracle.ifs.adk.filesystem.IfsFileSystem"%>
    <%@ page import="oracle.ifs.adk.http.HttpUtils"%>
    <%@ page import="oracle.ifs.beans.LibrarySession"%>
    <%@ page import="oracle.ifs.beans.DirectoryUser"%>
    <%@ page import="oracle.ifs.beans.PublicObject"%>
    <%@ page import="oracle.ifs.beans.Document"%>
    <%@ page import="java.io.*"%>
    <jsp:useBean id="login" scope="page" class="oracle.j2ee.connector.Login">
    <TITLE>FileExtension.jsp</TITLE>
    </HEAD>
    <BODY BGCOLOR="SILVER">
    <%
    String theDisplay = "initialized";
    String theHidden = "initialized";
    boolean theAdminRights = false;
    try
    login = (Login) request.getSession(true).getValue("IfsHttpLogin");
    LibrarySession ifsSession = login.getSession();
    IfsFileSystem ifsFile = new IfsFileSystem(ifsSession);
    DirectoryUser du = ifsSession.getDirectoryUser();
    String path = HttpUtils.getIfsPathFromJSPRedirect(request) ;
    PublicObject po = ifsFile.findPublicObjectByPath(path);
    if(po instanceof Document)
    Document doc =(Document) po;
    InputStream in= ifsFile.getDocumentContent(doc);
    int i=in.read();
    while(i!=-1)
    out.write(i);
    in.close();
    out.flush();
    out.close();
    theAdminRights = du.isAdminEnabled();
    theDisplay = po.getAttributeByUpperCaseName("DISPLAY").toString();
    theHidden = po.getAttributeByUpperCaseName("HIDDEN").toString();
    catch (Exception e)
    e.printStackTrace();
    %>
    Here is some static content.
    <P>
    The Display Value: <%= theDisplay %>
    <P>
    <%
    if (theAdminRights)
    %>
    The Hidden Value: <%= theHidden %>
    <%
    %>
    </jsp:useBean>
    </BODY>
    </HTML>

    these may help you.
    Google map integration to EBS

  • Displaying a report in a jsp page

    Hi,
    I want to display my report (pdf or html) in a jsp page ,so can someone help me
    note that I am using NetBeans & JasperReports 2.0.5
    Thanking in advance

    That is a Client side configurtion and you cant control it using Javascript.

  • Displaying an Integer in a JSP page

    Hi, i have a small problem which i'm not sure how to solve.
    I'm developing a small application in Spring/Hibernate. Now, one of the classes i mapped to a table has some fields which are of Integer type. My problem is that when i try to display these fields directly in a JSP page i get a NumberFormatException. Is there any tag that knows how to "extract" the intValue() from an Integer and display in in a JSP without me having to resort to custom getters?

    A NumberFormatException would occur if the to-be-formatted value is actually not a numeric. But you're saying that it is an Integer. Aren't you storing it as String? How exactly are you displaying it in JSP and how exactly are you storing the value?

  • Are not interpreted JSTL tags in a JSP page including in a servlet.

    Hi people,
    I have a project where una page (index.jsp) includes a servlet (MyServlet), that consult a persistence class and get a List of objects (Users),      
    then the servlet passes the List to a Request object and includes another JSP page (showUsers.jsp). And this is conceptually correct, but don´t works, the JSTL tags are not interpreted in showUsers.jsp.
    This is my code...
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <c:out value="Show me some things index.jsp"/>
    <div style="border-color:red; border:solid; padding-left:60px">
          <jsp:include flush="true" page="pepe/MyServlet"/>
    </div>
    </body>
    </html>...and the Servlet...
    public class MyServlet extends HttpServlet
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
              UserManager um = new UserManager();
              List users = um.getUsers(); //This use Hibernate to return a Users List
              request.setAttribute("users", (ArrayList) um.getUsers());
              request.getRequestDispatcher("/showUsers.jsp").forward(request, response);
    }...Finally, we have the showUsers.jsp file....
    <c:out value="Show me some thing showUsers.jsp"/>
    <table>
         <tr>
              <th>ID</th>
              <th>Name</th>
              <th>e-Mail</th>
              <th>Type</th>
         </tr>
         <tr>
              <c:foreach items="${requestScope.users}" var="user">
                   <td><c:out value="${user.id}" /></td>
                   <td><c:out value="${user.name}" /></td>
                   <td><c:out value="${user.email}" /></td>
                   <td><c:out value="${user.type}" /></td>
              </c:foreach>
         </tr>
    </table>This i get as result page...
    ID       Name       e-Mail       TypeFinally, this is the code of showUsers.jsp...
    <c:out value="Show me some thing showUsers.jsp"/>
    <table>
         <tr>
              <th>ID</th>
              <th>Name</th>
              <th>e-Mail</th>
              <th>Type</th>
         </tr>
         <tr>
              <c:foreach items="[src.User@18f729c, src.User@ad97f5, src.User@d38976, src.User@1e5c339, src.User@17414c8, src.User@7a17]" var="user">
                   <td><c:out value="" /></td>
                   <td><c:out value="" /></td>
                   <td><c:out value="" /></td>
                   <td><c:out value="" /></td>
              </c:foreach>
         </tr>
    </table>Somebody can help me?
    Many thanks,
    Gonzalo

    Thanks you all guys,
    I appreciate very much your help. In response to everyone ...
    BalusC wrote:
    Is JSTL taglib declared in top of that JSP page? I don't see it back in the posted code snippet. In this example I stuck...
    request.getRequestDispatcher("/showUsers.jsp").forward(request, response);By mistake, but this is just a test, the original line of my servlet is...
    request.getRequestDispatcher("/showUsers.jsp").include(request, response);As you can see, both (the servlet and the showUser.jsp file) are included in the index.jsp file. So the header...
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>...in the index.jsp file should works (I hope so).
    njb7ty wrote:
    I assume in your web.xml, you have ''pepe/MyServlet' defined as a servlet tag and servlet map tag? Without that, I don't think your JSP will find the servlet. I'm >not sure you need it in web.xml since I never call a servlet from a JSP page.
    I suggest putting System.out.println() throughout your servlet code and out.println() in your JSP pages to see exactly what is called and when.
    As a general rule, JSP files are to display data only, and submit back to a servlet. The servlet does all the business logic and dispatches to the appropriate >JSP page. The JSP shouldn't have any business logic. Including the servlet looks kinda like including business logic. Actually, in a MVC design, your >presentation, control, busines, and database layers have their own isolated responsibilities.
    I suggest the servlet put data as one java bean in request scope via request.setAttribute() and dispatch to the JSP page. The JSP page gets the data via ><useBean> tag. The JSTL gets the variables from the useBean tag and uses the data from there to display it. Really, this is my web.xml file...
    <web-app 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 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">
         <servlet>
              <servlet-name>MyServlet</servlet-name>
              <servlet-class>src.MyServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>MyServlet</servlet-name>
              <url-pattern>/pepe/MyServlet/*</url-pattern>
         </servlet-mapping>
    </web-app>Regarding putting System.out.println() and out.println(), i did it and thats works.
    Respect of your last comment, I am not a expert in MVC, but I understand that the view layer can make calls to the Controller layer, I am wrong?
    evnafets wrote:
    It's not. However thats not code, but the generated HTML.
    As Balusc pointed out it's the result of running this JSP page without importing the tag library at the top.
    Because the tag library is not declared, it treats the <c:forEach> and other tags as template text, and basically ignores them.
    It then evaluates the ${items} attribute as an expression in template text, calling toString() on it.
    Cheers,
    evnafets      The file showUsers.jsp are included into the index.jsp page, that's have the header taglib. Could this works?
    BalusC wrote:
    njb7ty wrote:
    By the way, I dont think this is the correct format for the foreach tag:
    <c:foreach items="[src.User@18f729c, src.User@ad97f5, src.User@d38976, src.User@1e5c339, src.User@17414c8, src.User@7a17]" var="user">You're right friend.
    And that's my problem. Any ideas?
    Thanks everyone,
    Gonzalo

  • How to export only the data displayed in table of a jsp page to Excel

    Hi All,
    I want to export only the data that is displayed in the table of a jsp page to excel. But with my current code everything is getting exported to excel.
    <input type="checkbox" name="download" onclick = "form.submit()"/> Export to Excel
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-disposition", "inline; filename=fileName.xls");
    the table is displayed in the jsp using the following code:
    <table cellspacing="2" cellpadding="3" border="1"
    width="100%"> <tr> <%for (int i = 2; i <= cols; i++) {%>
    <td>
    <%
    out.println( rsmd.getColumnName(i) + " ");
    } %>
    <% while (rsettaba.next ())
    out.println("<tr>");
    for (int j= 2; j <= cols ; j++) {
    //out.println("<td>"+rsetallcl.getString(j)+"</td>");
    String varnl = rsettaba.getString(j);
    if ( varnl == null )
    out.println("<td> Empty </td>");
    else
    out.println("<td>"+rsettaba.getString(j)+"</td>");
    out.println("</tr>");
    %>
    </td>
    </tr>
    </table>
    please can anyone help how to just extract only the data in the table of a jsp page to excel.
    Edited by: Ramky48 on Dec 9, 2009 9:51 PM

    Ramky48,
    Why did you open a new thread when you had gotten quite a few responses and suggestions on the [url http://forums.oracle.com/forums/thread.jspa?threadID=998411]thread where you asked the same question - seems the best thing to do would be to continue on the same thread?
    However, your question has nothing to do with JDeveloper/ADF. If you'd like to do it the ADF way, it's trivially easy - you can use the [url http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_exportCollectionActionListener.html]af:exportCollectionActionListener component, which does what you are asking for. If you want to use a straight JSP way, there were several good suggestions in the other thread you opened, or Googling "jsp export to excel" will get you about 4.6 million hits; the first 10 or so look pretty promising.
    John

  • Date can not display correctly in excel from .jsp

    Hi,
    I create a .jsp report to export the data to excel. the report run OK, except the date field can not display correctly.
    for example in database :start date ='01-oct-2003'
    in the except it displays to 02/06/02.
    It seem all the date field can not be control in the report, and control by somthing else
    Doese anyone come accross this problem?
    Thanks

    Hi Rong,
    Are you using the following demonstration to build your JSP?
    http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
    (Output to Excel with Oracle9i Report)
    I tried to do the same, and inserted a database date field in the JSP using Reports. I found the following:
    While making the template inside Excel, if I make sure that the format of the date cells is "Date" - some particular date format, the date field values from Reports does not get exported correctly.
    However, if you make sure that inside the template, the format of the date cells is not date, but "General", then the date field values are correctly exported to Excel.
    Pl try it and let us know.
    Navneet.

  • Display values from database in jsp page

    Hi,
    I need to display a list of options with checkboxes in a jsp page .The values are retrived from DB.
    formBean fb=new FormBean(request)
    <Input type="checkbox" name="xyz" value="<%=fb.getFormdata( "xyz")%>">
    should this"xyz" be the name of the column in the DB table?

    This is my FormBean
    public class FormBean {
    HttpServletRequest _request;
    public FormBean(HttpServletRequest request) {
    _request = request;
    public String getFormData(String abc) {
    return getFormData(abc, true);
    public String getFormData(String name, boolean filter) {
    String value = null;
    if (_request != null) {
    value = _request.getParameter(abc);
    if (value == null) value = "";
    if (filter) {
    value = Utils.filter(value);
    return value;
    * "Clears" parameters. Useful if you do wnat a form initialized with blanks rather than
    * current values;
    public void clear() {
    _request = null;
    }

  • Displaying pdf file in a jsp page...

    hi,
    I want to display a pdf document in a jsp page. i got that pdf file from a servlet class(MVC Architecture) through session. now my problem is to display that pdf file in my jsp page. can anyone give me a idea to solve this problem..

    hi,
    i used that code in scriplets. Actually my problem is I got one pdf file from session and i stored that file in a File object. the code is ..
    File pdfDocument = (File) session.getAttribute(CommonConstants.EBILL_PDF_DOCUMENT);
    now i have to display this pdf file in jsp..

Maybe you are looking for