Some dummies need help in master detail jsp page

We don't know how to use data control to generate a jsp master detail page in case of many-to-many relationships. We didn't find any info about this and our testcase never display the data of the last iterator.
We have
a collection that contains department object.
a collection that contains the relationship between department and employee (the many-to-many relationship)
an object that represent the employee
The structure is correct in the data control.
We are able the create our page for both first and second collection but it is not possible to display the detail of the corresponding employee in the detail table. When the table is generated from this level no data is displayed.
Is it somewhere described how to solve such problem ?
Does somebody know how to do ?

Hm, your requirements sound like homework assignment from classroom. If so, is itn't better that you find the answer youself? There are plenty of very relevant references for how to use jsp to handle html forms or talk to a rdbms through a jdbc connection. For example, for jsp and html forms, you can google "jsp html forms"; for jsp and sql query, search for "jsp jdbc".
Tell me if this is not helpful.

Similar Messages

  • Help needed to create a master-detail JSP page using OAF.

    I like to create a master-detail JSP page using OAF. If any help or guide will be appreciate.
    - Kausik

    A Master Detail Page is a basically a game between two VOs(Master and Detail mostly connected through a View Link). You can also have a look at the View Link section in the Dev guide. Page Layouts is one thing which you can take a call yourself.
    Regards
    Sumit

  • Need help with master detail from different datasets

    I have xml data from three different datasets that I want to use in a master detail region. 
    So initially, a list of model codes is displayed. When the user clicks on a specific model, the model inputs appear in the detail region.  One of these inputs is a list of map units. I also want a real name description of the map unit to be displayed.  It's working for one map code, but not for all of them. 
    My question is: "How do I get the description to disply for each of the map codes?"
    Here is my code: 
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="/SpryAssets/SprySpotlightColumn.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    var DSpresence = new Spry.Data.XMLDataSet("/SpeciesReview/Copy of tblSppMapUnitPres.xml", "dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres");
    var DSancillary = new Spry.Data.XMLDataSet("/SpeciesReview/ModelingAncillarywname.xml", "dataroot/Sheet1", {sortOnLoad: "CommonName", sortOrderOnLoad: "ascending"});
    var DSpresence2 = new Spry.Data.XMLDataSet("/SpeciesReview/Copy of tblSppMapUnitPres.xml", "dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres[strSpeciesModelCode='DSancillary::strSpec iesModelCode']");
    var dsMUDescription  = new Spry.Data.XMLDataSet("/SpeciesReview/tblMapUnitDesc.xml", "dataroot/tblMapUnitDesc");
    var dsMUDescription2= new Spry.Data.XMLDataSet("/SpeciesReview/tblMapUnitDesc.xml", "dataroot/tblMapUnitDesc[intLSGapMapCode='{DSpresence2::intLSGapMapCode}']");
    </script>
    </head>
    <body>
    <div style="width: 100%">
    <div id="Species_DIV" spry:region="DSancillary DSpresence dsMUDescription" width="50%" style="float:left">
      <table id="DSancillary">
      <tr>
      <th>Species Code</th>
      </tr>
      <tr spry:repeat="DSancillary" "DSpresence" "dsMUDescription" spry:setrow="DSancillary" >
      <td>{strSpeciesModelCode}</td>
      </tr>
      </table>
        </div>
      <div id="Species_Detail_DIV" spry:detailregion="DSancillary DSpresence dsMUDescription" style="float:right; margin-top:20px; width: 40%">
        <table id="Species_Detail_Table"  >
          <tr width="100%">
          <th style="font-family:Verdana, Geneva, sans-serif; font-size:14px; background-color:#CCCCCC; font-weight:bold">Modeling variables used for {strSpeciesModelCode}</th>
          </tr>
            <tr>
              <td spry:if="'{memModelNotes}' != ''">Hand Model Notes: {DSancillary::memModelNotes}</td></tr>
               <tr>
                <td spry:if="'{DSancillary::ysnHydroFW}' == 1">HydroFW: {DSancillary::ysnHydroFW}<br />Buffer from flowing water:  {DSancillary::intFromBuffFW}<br />
                Buffer into flowing water:  {DSancillary::intIntoBuffFW}
                </td></tr>
                <tr>
                <td spry:if="'{DSancillary::ysnHydroOW}' == 1"> Buffer from open water: {DSancillary::intFromBuffFW}<br />Buffer into open water:  {DSancillary::intIntoBuffOW}</td></tr>
          <tr><td><br /></td></tr>
           <tr><th>Mapcode:</th></tr>
        <tr spry:repeat="DSpresence">
                <td spry:if="'{DSpresence::ysnPres}' == '1'">{DSpresence::intLSGapMapCode}</td><td spry:if= "'{DSpresence::intLSGapMapCode}'=='{dsMUDescription::intLSGapMapCode}'">{dsMUDescription: :strLSGapName}</td>
            </tr>
            <tr><td><ul>
                <li spry:repeat="DSpresence" spry:if="'{DSpresence::ysnPres}' == '1'">{DSpresence::intLSGapMapCode}{dsMUDescription::intLSGapMapCode}</li>
            </ul></td></tr>
        </table>
        </div>
    </div>
    </body>

    The best way to do this is to use xPath filtering. This http://labs.adobe.com/technologies/spry/samples/data_region/FilterXPath_with_params.html example will give you the general idea.
    The example uses a URL variable but there is no need for that if you use a procedure similar to
    function newXPath(cat){
      DSpresence.setXPath("dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres[strSpeciesModelCode=' {DSpresence::strSpeciesModelCode}']");
        DSpresence.loadData();
    The function can be triggered with an onclick event placed on {strSpeciesModelCode}
    Gramps

  • Need help in writing a .jsp page

    Hi Guys,
    I am new to JSP. My requirement is " I have a link on my webpage. When the user clicks that link, a HTML page is displayed which has parameters to be entered (for ex: from_date , to_date). When the user clicks the submit button, a jsp page should be displayed in which a query is run to display the output. For example, the user enters the from_date and to_date parameter values to know the employees employed within those dates in their company. The query is "select empname,empno,sal,dept,comm from emp where employed_date between from_date and to_date" . The following should run and display in the jsp page.
    How can i write a .jsp to extract the parameters that are entered in the HTML form in to a .jsp and run the query with those parameters to display the output. Help needed in making me write this .jsp for this query.
    Help Aprreciated.
    Thanks

    Hm, your requirements sound like homework assignment from classroom. If so, is itn't better that you find the answer youself? There are plenty of very relevant references for how to use jsp to handle html forms or talk to a rdbms through a jdbc connection. For example, for jsp and html forms, you can google "jsp html forms"; for jsp and sql query, search for "jsp jdbc".
    Tell me if this is not helpful.

  • Need help on sharing a jsp page between clients?

    Hi,
    Let me explain this:
    In my jsp application I have two jsp pages that work as a find dialog like applet find dialog.One of those shows the columns from rowset(which user can enter the criteria ) and the other gets the values from first one, makes the sql query and execute the query against the rowset and retrieve the data. There is no pure servlet, both are jsp pages.
    This application is deployed on AS9i-oc4j.
    Problem is : When this find dialog is working for a client. The other client could not load this find dialog until the work for the first one be done. I mean only one client could load and fire the sql statement via this jsp pages(find dialog) at the same time. Which is not acceptable in web applications. Seems only one instance of these pages created by oc4j . if I am right on this then
    Question is : Why oc4j doesn’t create the number of instances based on the number of clients that call these pages? Did I miss something. Or any property in Application module need to be set?
    I would appreciate to share me your idea on this.
    Thanks.

    In my primary mind maybe the bottleneck is where the execution of rowset happens. Since that portion of code takes time to retrieve data for business components. If this is the case then Is this problem goes away if I define a thread for this portion of code?
    Thanks in advance for any idea.

  • Need help using JSTL on JSP pages

    Kindly let me know what should be done in order to get the following JSP to work:
    <jsp:useBean id="subtypes" class="com.jsptest.Code.Subtypes"/>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                   <td width="15%" valign="top" align="center" bgcolor="#009999"><table width="149" border="0" cellpadding="0" cellspacing="0" bgcolor="#009999">
                            <tr>
                                 <th scope="row"> </th>
                               </tr>
                               <c:forEach var="val" items="${subtypes.allSubtypesDescriptions[0]}" varStatus="status">
                               <tr>
                                    <th width="117" scope="row"><a href="/jspteste/testpage3.jsp?subtypeDesc=<c:out value="${val}"/>>"><font face="Courier New, Courier, monospace"><c:out value="${val}"/></font></a></th>
                             </tr>
                             <tr>
                                  <th>----</th>
                             </tr>
                             </c:forEach>
                               <tr>
                                 <th scope="row"> </th>
                               </tr>
                        </table>
              </td>
    </table>I keeps giving me the following error:
    exception
    org.apache.jasper.JasperException: org.apache.jasper.el.JspPropertyNotFoundException: /testjstl.jsp(32,7) '${subtypes.allSubtypesDescriptions[0]}' Property 'allSubtypesDescriptions' not found on type com.jsptest.Code.Subtypes
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    root cause
    org.apache.jasper.el.JspPropertyNotFoundException: /testjstl.jsp(32,7) '${subtypes.allSubtypesDescriptions[0]}' Property 'allSubtypesDescriptions' not found on type com.jsptest.Code.Subtypes
         org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:104)
         org.apache.jsp.testjstl_jsp._jspx_meth_c_005fforEach_005f0(testjstl_jsp.java:199)
         org.apache.jsp.testjstl_jsp._jspService(testjstl_jsp.java:119)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    The Subtypes class is above:
    import com.jsptest.dbAccess.DbConnection;
    public class Subtypes extends DbConnection{
         private char[] categoryCode;
         private char[] subtypeCode;
         private String subtypeDescription;
         private String[][] allSubtypesDescriptions;
         public void setCategoryCode(char[] categoryCode){
              this.categoryCode  = categoryCode;
         public void setSubtypeCode(char[] subtypeCode){
              this.subtypeCode = subtypeCode;
         public void setSubtypeDescription(String subtypeDescription){
              this.subtypeDescription = subtypeDescription;
         public char[] getSubtypeCode(){
              String sqlStmt;
              sqlStmt = "SELECT category_subtype FROM category_subtypes WHERE subtype_description =\'" + subtypeDescription + "\'";
              subtypeCode = pullSingleStringRecord(sqlStmt).toCharArray();
              return subtypeCode;
         public char[] getCategoryCode(){
              String sqlStmt;
              sqlStmt = "SELECT category_code FROM category_subtypes WHERE subtype_description = \'" + subtypeDescription + "\'";
              categoryCode =  pullSingleStringRecord(sqlStmt).toCharArray();
              return categoryCode;
         public String[][] getAllSubtypeDescriptions(){
              String sqlStmt;
              sqlStmt = "SELECT subtype_description FROM category_subtypes ORDER BY subtype_description";
              allSubtypesDescriptions = pullAllRecordsAsString(sqlStmt);
              return allSubtypesDescriptions;
    }Appreciate your inputs.
    T. San.

    You are calling ${subtypes.allSubtypesDescriptions[0]} and not ${subtypes.allSubtypeDescriptions[0]}
    note the difference in your method name and your variable name.
    m

  • Master-detail jsp for bc4j using JBO tags

    I have created a master-detail jsp for bc4j using JBO tags. However, I can not get the correct result. There are some examples on OTN, but they are about jsp programs. How to define the relationship of the master view-object and the detail view-object?
    Thanks for your help.

    I know you're having a problem upgrading, but...
    Could you upgrade to 9.0.3 and tell us what problems you're encountering?
    Thanks.
    Sung

  • How do I - MASTER -DETAIL JSP

    Hi -
    How do I create a simple Master-Detail page in JSP like Oracle Forms type.
    I want to show/enter one master record and multiple child records and let the users enter data. I DO NOT WANT TO CREATE SEPERATE MASTER AND SEPERATE DETAIL JSP PAGE. I want the basic Master-Detail Form like Oracle Forms.
    I am using JDeveloper 3.2
    Thanks for your help !
    Fahim

    In our current release, we dont generate a single-page master-detail editing page. You would are missing an editable data-grid tag for this to be possible. You can create this control yourself using the provided datatags.

  • Need help to master ABAP

    I need help to master ABAP.
    Please email me....if u can help me : [email protected]
    I am looking for help with IDOC, ALE, RFC and BAPI.
    Please send me mail. We can talk more.

    Jeff,  please ask specific questions here.  The answer will come.  Try to not ask for material to be sent directly to you.  This is not in the community spirit as it will only benefit you.  Also you might want to try the search functionality on this site.  There is plenty of info out there.
    Regards,
    RIch HEilman

  • I need help verifying the details of a used ipad mini I'm about to buy. Is this possible by just providing the serial

    I need help verifying the details of a used ipad mini I'm about to buy. Is this possible by just providing the serial

    It depends on what you mean by "verifying the details".  sberman gave you the best place to look to research the technical specifications of the device you are thinking of purchasing. If, however, you're asking how to check if the device is Activation Locked, then you can check the status here: https://www.icloud.com/activationlock/

  • Developer Mode Error: Stale Data -- Master Detail OAF Page

    Dear Members,
    I have created a simple master detail OAF Page by following the below steps:-
    1/ Created a MasterEO
    2/ Created a DetailEO
    3/ Created a MasterDetailAO
    4/ Created a MasterVO based on MasterEO
    5/ Created a DetailVO based on DetailEO
    6/ Created a MasterDetailVL (view link) based on MasterDetailAO
    7/ Created an AM
    7/ Attached the MasterVO and MasterDetailVL to the AM
    8/ Created a simple Master Detail Page in which user can enter the master and detail records. After entering the details user can click on the save button.
    Code in AM_
    public void createHeader()
    +{+
    OAViewObject vo = getMasterVO1();
    if (vo.getFetchedRowCount() == 0)
    +{+
    vo.setMaxFetchSize(0);
    +}+
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    +}+
    public void createLines()
    +{+
    OAViewObject vo = (OAViewObject)getDetailVO1();
    if(!vo.isPreparedForExecution())
    +{+
    vo.setWhereClause("1=2");
    vo.executeQuery();
    +}+
    vo.setWhereClause("1=2");
    vo.setWhereClauseParams(null);
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    +}+
    Code in ProcessRequest method of CO_
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createHeader");
    am.invokeMethod("createLines");
    I am facing the below error when trying to save the master detail records in the respective OAF Page_
    Developer Mode Error: Stale Data_
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example). If the browser's navigation buttons were not used, this error could have been caused by coding mistakes in application code. Please check Supporting the Browser Back Button developer guide - View Object Primary Key Comparison section to review the primary causes of this error and correct the coding mistakes.
    Cause:
    The number of displayed records, 1, exceeds the actual number of records, 0, in view object AstfAM.DetailVO1. Some of the displayed records may have been deleted.
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    I request the members to help me in resolving the above error.
    Many thanks in advance.
    Regards,
    R4S.

    Hi user11991972,
    I just faced the same issue and I managed to fixed it using this thread:
    Developer Mode Error: Stale Data
    In my case, I amended the "Change indicator" checkbox on some of EO attributes.
    One of the master attributes was updated by the AM from the detail page, but when navigating back, the master page was not refreshed due to a customer requirement.
    But I wonder if it could be of any help in your case...
    Regards,
    Olivier

  • Need help accessing the router web page.  I have been tol...

    Need help accessing the router web page.  I have been told my router is acting like a switch and the IP address is not in the proper range.  I have tried reseting the router (hold for 30 sec and unplug for 5 mins).  Didn't work.
    thanks

    What router are you using?  Almost all Linksys routers use 192.168.1.1 as the default local IP address, but there is at least one that uses 192.168.16.1 , namely the WTR54GS  (not the WRT54GS).
    You need to try again to reset the router to factory defaults.
    To reset your router to factory defaults, use the following procedure:
    1) Power down all computers, the router, and the modem, and unplug them from the wall.
    2) Disconnect all wires from the router.
    3) Power up the router and allow it to fully boot (1-2 minutes).
    4) Press and hold the reset button for 30 seconds, then release it, then let the router reset and reboot (2-3 minutes).
    5) Power down the router.
    6) Connect one computer by wire to port 1 on the router (NOT to the internet port).
    7) Power up the router and allow it to fully boot (1-2 minutes).
    8) Power up the computer (if the computer has a wireless card, make sure it is off).
    9) Try to ping the router. To do this, click the "Start" button > All Programs > Accessories > Command Prompt. A black DOS box will appear. Enter the following: "ping 192.168.1.1" (no quotes), and hit the Enter key. You will see 3 or 4 lines that start either with "Reply from ... " or "Request timed out." If you see "Reply from ...", your computer has found your router.
    10) Open your browser and point it to 192.168.1.1. This will take you to your router's login page. Leave the user name blank (note: a few Linksys routers have a default user name of "admin" (with no quotes)), and in the password field, enter "admin" (with no quotes). This will take you to your router setup page. Note the version number of your firmware (usually listed near upper right corner of screen). Exit your browser.
    If you get this far without problems, try the setup disk (or setup the router manually, if you prefer), and see if you can get your router setup and working.
    If you cannot get "Reply from ..." in step 9 above, your router is dead.
    If you get a reply in step 9, but cannot complete step 10, then either your router is dead or the firmware is corrupt. In this case, use the Linksys tftp.exe program to try to reload your router with the latest firmware. After reloading the firmware, repeat the above procedure starting with step 1.
    If you need additional help, please state your ISP, the make and model of your modem, your router's firmware version, and the results of steps 9 and 10. Also, if you get any error messages, copy them exactly and report back.
    Please let me know how things turn out for you.
    Message Edited by toomanydonuts on 01-21-2008 04:40 AM

  • Urgent! Simple master detail jsp without ADF.

    We need to develop a master detail page. personal and detail process record for that personal.
    This will work on the web so We are using jsp technology.
    (We are using tomcad so We can't use ADF because of deployment problem. maybe the fallowing phase ADF will be used.)
    We can't find these kind of sample java and web. Especially data grid type interface on the web.
    This is very important program and we need urgently finish.
    Thanks for your help.

    You can use ADF with Tomcat, you just need to install the ADF runtime libraries on your tomcat.
    There is a toole->install ADF Runtime option for this.

  • Need help w. viewing a jsp

    Hi all, I am steve Burrus, and I need some pretty immediate help/assistance with being able to see a basic jsp called "Date.jsp" in my web browser, with the help of the Apache Project's Jakarta Tomcat application server!! I always seem to get a damned 404 server error page which indicates that the requested resource wasn't found on the server!! Can anyone help me out with this most persistent problem that I have all the time?

    "sarathy", I think (but don't quite KNOW just yet!!!) that I need to type into my browser's location bar as a part of the url for the jsp the "webapps" folder which is under the main installation for Tomcat! And, to quote your last posting to me "hey before you test your clock.jsp... can you see the examples of tomcat ?.. if not there is a problem in tomcat installation.. may be setting paths and stuff. Do you know on which port you installed ?.. the def is 8080 try http://localhost:8080/", I can answer with a resounding YES to being able to see and execute all of the various jsp and servlets, so maybe I will counter what I earlier indicated in my last post that there is something basicly wrong with my Tomcat installation, like it being installed into the wrong folder.
    No, like I said up above, i think that if I only make sure I type into the web browser's location bar the "webapps" folder first, then the "jsp" folder, then finally the name of the particular jsp file which I choose to work with, then I will be quite okay on being able to consistently see my jsp whenever I want to. Please respond back to me if you agree/concur with my analysis or maybe you don't and wanna give me an alternative method of doing this. I will gladly even listen to a different approach to doing this because I am getting pretty desperate with my efforts to "get it right" with being able to execute either a jsp or a servlet.

  • Help! Master-Detail-Detail problem!

    Dear all,
    I am using Jdev.10.1.3, ADF + BC.
    I have 3 tables: table1(Master), table2(Detail, foreign key set, reference to tabel1) and table3(Detail, foreign key set, reference to table2).
    I created an edit form by the following steps:
    1) Selected table1 from the Data Control Palette --> Forms --> ADF Form....
    2) Selected table3 from the Data Control Palette --> Master-Details --> ADF Master Table, Detail Table
    3) Delete the "Submit" button in Master Table
    4) Change the "Submit" button to "Delete" (with backing bean) in Detail Table
    5) Added 3 buttons (with backing bean) at the bottom of the form (i.e. Save, Delete, Cancel)
    6) There is a menu at the top of the form
    7) e.g. there are 2 records in Master table and each record contains 3 Detail records
    The data retrieve is no problem.
    When I clicked the radio button for the first record in the Master table, and then click the Save/Delete button at the bottom of the form. No problem.
    However, when I clicked the radio button for the second record in the Master table, and then click the buttons at the bottom of the form.
    Duplicate Menu was displayed. Sometimes duplicate buttons were displayed. And the button didn't go to the backing bean.
    I don't know why and how to solve the problem??
    Hope someone can help me.
    Thanks for any suggestion.
    Regards.

    Hi All,
    Just in case anyone has same problem. Since I was not able to get help here I created a tar and we figured that the problem was with the system when I upgraded. System created triggers that were fighting with the sequences that I had manually created.
    Disabled triggers and all is working fine. You still need to watch future applications just in case.
    Later,
    d.

Maybe you are looking for

  • Media exported M4p  from a CS5 HDV 11 MINUTE project

    Hi and thanks again for your help: I exported a 4 gb HDV CS5 video & audio project to Media/h.264, hdtv 1080p 29.97 hi quality - expecting an fully realized MP4 with video and audio - when the Export/media window opened  the output shows up as ntsc,

  • Fastest way to activate the camera?

    What is the fastest way to activate the camera on the iPhone 3GS? (rather than pressing the on key; going to camera app;etc).

  • My tabs will not delete when I hit the x. why not?

    my tabs are collecting at the top of my page. they will not x out. it will open the page but I can not make the page go away. I don't want to collect a gazillion tabs. why is this happening and how can I make it stop?

  • Ipod wont play music on any dock

    my ipos will not play music on any of the docks i have tried. but it will charge on all of them, i am wondering is it the docks or my ipod? if its my ipod what do i do?

  • Regarding Invoice ( MIRO ) item info.

    Hi all, Can anyone tell me in which table MIRO line item will be maintained? Actually i wanna pickup POTEXT field from MIRO transaction. Thx & Rgrds, Pawan