Display Tag for JDeveloper 10g. "Nothing found to Display"

Hello everyone. I am currently using JDeveloper 10g. I already add the display tag in the library but when I try to use it always shows nothing to display.
Can someone help me?
this is my code
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>untitled</title>
</head>
<body>
<%
String method = request.getParameter("method");
if (method == null) {
List testData = new ArrayList();
Map map1 = new TreeMap();
map1.put("id","1");
map1.put("firstName","Bill");
map1.put("lastName","Gates");
testData.add(map1);
Map map2 = new TreeMap();
map2.put("id","2");
map2.put("firstName","Scott");
map2.put("lastName","McNealy");
testData.add(map2);
Map map3 = new TreeMap();
map3.put("id","3");
map3.put("firstName","Bill");
map3.put("lastName","Joy");
testData.add(map3);
session.setAttribute( "test", testData);
} else {
// grab the testDate from the session
List testData = (List) session.getAttribute("test");
String useMe = request.getParameter("id");
if (useMe != null && method.equals("Delete")) {
// figure out which object it is and delete it
for (int i=0; i < testData.size(); i++) {
Map m = (TreeMap) testData.get(i);
String id = m.get("id").toString();
if (useMe.equals(id)) {
testData.remove(m);
%><div class="message">Delete succeeded!</div><%
break;
} else if (method.equals("Save")) {
// figure out which object it is and update it
for (int i=0; i < testData.size(); i++) {
Map m = (TreeMap) testData.get(i);
String id = m.get("id").toString();
if (useMe.equals(id)) {
m.put("firstName", request.getParameter("firstName"));
m.put("lastName", request.getParameter("lastName"));
testData.set(i, m);
%><div class="message"><h2>
<b><c:out value=" "/></b> updated successfully!
</h2></div><%
break;
} else if (method.equals("Add")) {
Map map4 = new TreeMap();
// generate a random number
Random generator = new Random();
String id = String.valueOf(generator.nextInt());
pageContext.setAttribute("id", id);
map4.put("id", id);
map4.put("firstName", "");
map4.put("lastName", "");
testData.add(map4);
%><c:redirect url="request.jsp">
<c:param name="id" value=""/>
<c:param name="method" value="Edit"/>
</c:redirect>
<%
session.setAttribute( "test", testData);
%>
<c:set var="checkAll">
<input type="checkbox" name="allbox" onclick="checkAll(this.form)" style="margin: 0 0 0 4px" />
</c:set>
<form name="editForm" action="request.jsp">
<c:if test="false">
<input type="button" onclick="location.href='request.jsp'" class="button"
value="Reset List" />
</c:if>
<c:if test="false">
<input type="submit" name="method" value="Save" class="button" />
</c:if>
<input type="submit" name="method" value="Edit" class="button"/>
<input type="button" name="method" value="Add" class="button" onclick="location.href='?method=Add'" />
<input type="submit" name="method" value="Delete" class="button" />
<display:table name="{firstName=Bill, id=3, lastName=Joy}" id="test" class="list">
<display:column style="width: 5%" title="checkbox">
<input type="checkbox" name="id" value="<c:out value='${test.id}'/>" <c:if test="${param.id==test.id and param.method!='Save'}">checked="checked"</c:if> style="margin: 0 0 0 4px" onclick="radio(this)" />
</display:column>
<display:column title="First Name">
<c:choose>
<c:when test="${param.method == 'Edit' and param.id == test.id}">
<input type="text" name="firstName" style="padding: 0"
value="<c:out value="${test.firstName}"/>" />
</c:when>
<c:otherwise><c:out value="${test.firstName}"/></c:otherwise>
</c:choose>
</display:column>
<display:column title="Last Name">
<c:choose>
<c:when test="${param.method == 'Edit' and param.id == test.id}">
<input type="text" name="lastName" style="padding: 0"
value="<c:out value="${test.lastName}"/>" />
</c:when>
<c:otherwise><c:out value="${test.lastName}"/></c:otherwise>
</c:choose>
</display:column>
</display:table>
</form>
<table>
<c:forEach items="${test}" var="test" >
<tr>
<td>
<c:out value="${test.id}"/>     
<c:out value="${test.firstName}"/>
<c:out value="${test.lastName}"/>
</td>
</tr>
</c:forEach>     
</table>
</body>
</html>
Edited by: 856423 on May 3, 2011 11:48 PM
Edited by: 856423 on May 4, 2011 12:07 AM

thanks for your reply.
I am pretty sure that the list where I get the data contains values. I tried it by outputting the in ordinary table as shown here:
<table>
<c:forEach items="${test}" var="test" >
<tr>
<td>
<c:out value="${test.id}"/>     
<c:out value="${test.firstName}"/>
<c:out value="${test.lastName}"/>
</td>
</tr>
</c:forEach>     
</table>
It outputs properly but when I tried this, it just output NOTHING FOUND TO DISPLAY.
<display:table name="{firstName=Bill, id=3, lastName=Joy}" id="test" class="list">
<display:column style="width: 5%" title="checkbox">
<input type="checkbox" name="id" value="<c:out value='${test.id}'/>" <c:if test="${param.id==test.id and param.method!='Save'}">checked="checked"</c:if> style="margin: 0 0 0 4px" onclick="radio(this)" />
</display:column>
<display:column title="First Name">
<c:choose>
<c:when test="${param.method == 'Edit' and param.id == test.id}">
<input type="text" name="firstName" style="padding: 0"
value="<c:out value="${test.firstName}"/>" />
</c:when>
<c:otherwise><c:out value="${test.firstName}"/></c:otherwise>
</c:choose>
</display:column>
<display:column title="Last Name">
<c:choose>
<c:when test="${param.method == 'Edit' and param.id == test.id}">
<input type="text" name="lastName" style="padding: 0"
value="<c:out value="${test.lastName}"/>" />
</c:when>
<c:otherwise><c:out value="${test.lastName}"/></c:otherwise>
</c:choose>
</display:column>
</display:table>

Similar Messages

  • Is there a suitable porlet-addin for JDeveloper 10g 10.1.3EA

    Is there a suitable porlet-addin for JDeveloper 10g 10.1.3EA and if so where might I find it.
    The one I found produces the following error:
    Severe(2,369): No class def found for addin oracle.webdb.jdev.PortletDevelopmentAddin
    OR
    Is there a workaround this problem?
    Thanks in advance.

    JDeveloper10.1.2 supports the portlet addin.
    http://www.oracle.com/technology/products/ias/portal/html/jdev.addin.install.guide.html
    A portlet may also be created in JDeveloper 10.1.3 by adding a portlet.xml configuration file to a web application.

  • S there a suitable porlet-addin for JDeveloper 10g 10.1.3EA

    Is there a suitable porlet-addin for JDeveloper 10g 10.1.3EA and if so where might I find it.
    The one I found produces the following error:
    Severe(2,369): No class def found for addin oracle.webdb.jdev.PortletDevelopmentAddin
    OR
    Is there a workaround this problem?
    Thanks in advance.

    JDeveloper10.1.2 supports the portlet addin.
    http://www.oracle.com/technology/products/ias/portal/html/jdev.addin.install.guide.html
    A portlet may also be created in JDeveloper 10.1.3 by adding a portlet.xml configuration file to a web application.

  • Any Portlet Addin for JDeveloper 10g 10.1.3EA ?

    Is there a suitable porlet-addin for JDeveloper 10g 10.1.3EA and if so where might I find it.
    The one I found produces the following error:
    "Severe(2,369): No class def found for addin oracle.webdb.jdev.PortletDevelopmentAddin"
    OR
    Is there a workaround this problem?
    Thanks in advance.

    I have JDeveloper 10.1.3 and installed in a Directory with no spaces, I also have JDK 1.3.1_02
    accedentally I chose "Yes" when the migrate message appeared to me.
    what is the reason behind the Error Message that appears every time I start JDeveloper which is:
    "Severe(2,369): No class def found for addin oracle.webdb.jdev.PortletDevelopmentAddin".
    any Ideas
    for saving time please email me on "[email protected]"
    thanks everybody
    Ramadan Ahmed

  • Classroom Courses for JDeveloper 10g

    I'd like you all to know that the first teaching events for our JDeveloper 10g production courses are now scheduled. You can register for the new "Java Programming" course (May 17-21 in Mississauga, Canada) and the "Build Applications with ADF" course (May 24-28 in Reston, VA).
    These first production teaches are "proving" events; a regular schedule at various global locations will follow, after these events are completed. But the above events are an early chance to grab a full week of training.
    You can find details (and register) for JDeveloper 10g classes through this link:
    http://education.oracle.com/web_prod-plq-dad/plsql/show_desc.redirect?redir_type=13&group_id=1128&p_org_id=1001&lang=US&media=1&source_call=
    Regards,
    Glenn. JDeveloper team.

    Hi there,
    I have tried to created a Java Portlet using the Wizard with jdev10G and it did not work. I am welling to try 903 but I cannot find the PDK for it. Yes I have looked all over PortalStudio.oracle.com. Is anyone have the link to download the PDK for jdev903?
    Also I have tried for two days to make the Java Portlet Wizard work with 10G with no luck. Why are they posting somehting that doesn't work? This is really frustrating.

  • [Reports]   The best reporting tool for JDeveloper 10g

    Hi,
    Which is the best reporting tool for JDeveloper 10g: JasperReports, Crystal Reports or something else? I want to build parametric and rather complex reports but I don't know which tool offers more features, flexibility, ease of use , ... . I've built some simple parametric reports using JasperReports and JDeveloper 10g but I think it's not so productive and may need something more, maybe iReport. Does anyone have any ideas?
    S/\EE|)

    Hi Saeed,
    I'lm using Jasper too, and here is an example of how i pass to it some variables:
         <parameter name="theWantedId" isForPrompting="false" class="java.lang.Integer"/>
         <queryString><![CDATA[SELECT field1, field2 from table1 WHERE table1.field1 = $P!{theWantedId}]]></queryString>And in a bean (or other java code from which the template is called)
            Map parameters= new HashMap();
            parameters.put("theWantedId", findSelectedId()); // return the ID of the object to print
            JasperDesign design =
                JRXmlLoader.load(myTemplate); // First load template from the Blob table in an inputstream
            JasperReport report =
                JasperCompileManager.compileReport(design);
            InitialContext initialContext = new InitialContext();
            DataSource ds = (DataSource)initialContext.lookup("java:comp/env/jdbc/MYDATASOURCEConnectionDS");
            Connection conn = ds.getConnection();
            JasperPrint print =
                JasperFillManager.fillReport(report, parameters, conn);Hope that can help, if you need more information please ask,
    Best regards,
    Tif

  • Ann: New MapViewer Extensions for JDeveloper 10g

    We are pleased to annouce the availability of a new MapViewer extension kit for JDeveloper 10g (9.0.5.1 or later versions).
    Please download the kit from the following MapViewer page:
    http://otn.oracle.com/software/products/mapviewer/index.html
    Thanks
    LJ

    Yes currently the extension is strictly a top-level browsing tool with no mapping metadata drill down/editing capabilities.
    Those features are being planned for the next major release of this extension kit, as part of our major effort to rewrite the map definition tool. there is however no ETA yet.

  • Errors to use JSTL Tag in JDeveloper 10g

    Hi, folks in JDeveloper:
    I have a problem to use JSTL in JDeveloper 10g.
    In jsp file: detail.jsp, I include tag library like this:
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    When I compile/run, the system complain the following errors:
    Error(4): java.io.FileNotFoundException: /http:/java.sun.com/jstl/core
    Error(4): Unable to load taghandler class: http://java.sun.com/jstl/core
    I already put standard.jar and jstl.jar file in WEB-INF/lib directory. I use jakata-struts jstl 1.0
    Anybody know how to fix that?
    Many thanks.
    Zhiyi Li
    Project: C:\MZhongProject\WFUBMC\MESA\genelist\code\Catalog\ViewController\ViewController.jpr
    C:\MZhongProject\WFUBMC\MESA\genelist\code\Catalog\ViewController\public_html\detail.jsp
    Error(4): java.io.FileNotFoundException: /http:/java.sun.com/jstl/core
    Error(4): Unable to load taghandler class: http://java.sun.com/jstl/core
    C:\MZhongProject\WFUBMC\MESA\genelist\code\Catalog\ViewController\public_html\banner.jsp
    Error(3): java.io.FileNotFoundException: /http:/java.sun.com/jstl/core
    Error(3): Unable to load taghandler class: http://java.sun.com/jstl/core

    User,
    You should configure the taglibs using the project->libraries option in JDev. If that doesn't help, try adding the taglib URI mappings to web.xml as detailed [url http://forum.java.sun.com/thread.jspa?threadID=650000&messageID=3823804]here
    John

  • [PM] Looking for JDeveloper 10g preview users

    The JDeveloper Product Management team is looking for people who are currently using the preview version of Oracle JDeveloper 10g to develop their soon to be production applications.
    We want to get your feedback on a some questions.
    If you are using JDeveloper 10g Preview to develop what would become a production application please email us at:
    Jdeveloperbeta_us@ oracle.com , with the subject: Currently Using JDeveloper 10g.
    Thanks,
    Shay.
    Oracle Corporation.

    I am using JD 10g!
    I am following the steps to the tutorial: Developing J2EE application using EJB, Struts, JSP and ADF Databinding.
    JD10g does not bring up the New Gallery as the step labeled: Reverse engineer tables as CMP beans instructs.
    How can I can if my install in correct?
    How can I solve this issue?
    Thanks
    Patrick

  • OAF tutorial for Jdeveloper 10g is showing 9i version options

    Hi,
    I have been finding so hard to cope up with the OAF tutorial with Jdeveloper 10g. It does not include the options in the screenshots which are in 10g. I think they haven't updated it for this version and they are from 9i. It is very hard to find the same option in 10g version for example, i am not able to find out "Business Component Package wizard" in 10g. Please help me in finding out the right tutorial for 10g version.
    Thanks,

    Yes, the tutorials for 10G Jdev are not the updated ones and menus to work with are a bit changed now.
    We have discussed this earlier also. Check on the old threads and you will find the correct navigation for BC4J components. Right now I don't have a r12 based jdev on my system and don't remember the exact navigation.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Adf faces jar  for jdeveloper 10g

    Hi,
    i m using jdeveloper 10, i want to use adf (af componant) in my jsf page, so i need adf jar, but i m not able to download them from
    "How To Use ADF Faces With JDeveloper 10g" kindly help me how i can download these jar, so that i can use them in my code

    Trinidad is a JavaServer Faces component library that is a subproject of Apache MyFaces. (It was formerly known as ADF Faces.)
    Refer http://wiki.apache.org/myfaces/from_ADF_to_Trinidad

  • JPDK Wizard for JDeveloper 10g

    I've been using the JPDK Wizard for JDev9i for some time and after trying to make the switch to JDev10g (10.0.1.5) I found out quickly that the PDK Wizard does not work in JDev 10g. Is there a workaround for this or will I have to wait?

    Hi there,
    I have tried to created a Java Portlet using the Wizard with jdev10G and it did not work. I am welling to try 903 but I cannot find the PDK for it. Yes I have looked all over PortalStudio.oracle.com. Is anyone have the link to download the PDK for jdev903?
    Also I have tried for two days to make the Java Portlet Wizard work with 10G with no luck. Why are they posting somehting that doesn't work? This is really frustrating.

  • [ANN] Portlet Extensions for JDeveloper 10g are availble

    Need to develop portlets - use these extension to build, test, and run JSR 168 compliant portlets inside JDeveloper.
    Check them out on the extension exchange-
    http://otn.oracle.com/products/jdev/htdocs/partners/addins/exchange/index.html
    To get notified of new extensions and other JDeveloper news get the RSS News Feeder extension from the same place.
    Enjoy.

    Yes currently the extension is strictly a top-level browsing tool with no mapping metadata drill down/editing capabilities.
    Those features are being planned for the next major release of this extension kit, as part of our major effort to rewrite the map definition tool. there is however no ETA yet.

  • Perforce plugin for Jdeveloper 10G

    Hi,
    On August 2004, Oracle have promised to release such a plugin soon.
    Do you know when it will be released?
    We are still forced to use Jdeveloper 9i due to this fact.
    Thanks,
    Shay

    Robert.
    "We are planning" I don't think this is the kind of answer I would expect from Oracle after I have been told that perforce would be supported in jdeveloper 9.0.5.
    Due to this "planning" stuff we are still forced to use jdeveloper 9.0.3!
    It's been a long time since we planned to upgrade our suite of product IAS, jdeveloper and db, But we would like to upgrade them together to the same working version (not a beta or a preview) and the only missing part is the perforce plugin.
    for your consideration
    Shay

  • JDeveloper 10g and Table Viewer

    For JDeveloper 10g, after creating a connection under the database node, right-clicking on a synonym or table does not provide a Table Viewer option in the popup menu. Additionally, double-clicking the synonym or table does not open the table viewer, "No Structure" is displayed in the structure window. However, when creating the same connection in JDeveloper 9i I am able to view the table structure... so the problem doesn't appear to be database rights. Is there some configuration setting in JDeveloper 10g that I have overlooked?

    What version of the database are you using?
    In JDeveloper 10g, you won't see "Table Viewer" on the context menu (you should just see "Open" instead). However, you should definitely be able to see the structure when the table is selected, and you should see the table viewer when double-clicking on the table.
    Also, can you check in the console window (run jdev.exe to see the console window) to see if there are any exceptions being thrown?
    -- Brian

Maybe you are looking for

  • A600 Won't Wake Up - Help!?

    I have an ideacentre a600 that I upgraded to Windows 7 Ultimate.  Randomly, the computer will just go into sleep/hibernate mode and it won't wake up.  I've tried all the usual methods to wake it up, like moving the mouse or hitting keys on the keyboa

  • Navigation problem on 6110 navigator

    I have experience a search problem with my Nokia 6110 navigator, whenever i search Broome, Australia, or move the cursor on the map to Broome, my navigation application will automatically shut down, and will lose my previous successful map point. Can

  • Role of Appliances?

    Do appliances have a role in your integration strategy? If so, for what purpose? Will appliances displace ESB's as integration hubs? If so, why?

  • Trial version of CC

    Using trial version of Id CC, can I export a file to CS6?

  • Outlook Express database corruption

    The database has become corrupted and I can't open/read email.  Are there step by step instructions for me to fix this myself?