DynamicStreamingResource bugfix request!

I've been losing hair over debugging auto MBR behavior just to realize that auto MBR indexing sometimes bugs out, when looking up streams by name sometimes it returns an incorrect index value when calling the internal 'indexFromName' on a DynamicStreamingResource instance. the reason for this is not being able to match the stream name. even though there is some logic added for appended mp4: prefixes, the prefix doesn't work for my stream names without and additional "/".
I was wondering if the existing code in DynamicStreamingResource on line 150 could be changed from
if (_streamItems[i].streamName.indexOf(name) == 0 ||
_streamItems[i].streamName.indexOf("mp4:" + name) == 0)
to
if (_streamItems[i].streamName.indexOf(name) == 0 ||
_streamItems[i].streamName.indexOf("mp4:" + name) == 0 ||
_streamItems[i].streamName.indexOf("mp4:/" + name) == 0)
I am sure this would eliminate a lot of headache for other developers as well, so they don't have to a) extend half the framework classes just to apply a bandaid on this or b) break framework code.
Let me know if there is any other alternative fix to this that's minimum invasive and I failed to recognize. Thanks!

The best way to make sure your bug report is seen:
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
In the mean time, you could use the naming convention and call it "1080i30_Anamorphic".

Similar Messages

  • BugFix request: output filename wrong if name has "."

    If you make a sequence called "1080i29.97_Anamorphic" and go to export you end up getting an output name of "1080i29." (+ the file extension of that exporter).
    Sure would be nice if that was fixed. It bugs me all the time.

    The best way to make sure your bug report is seen:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    In the mean time, you could use the naming convention and call it "1080i30_Anamorphic".

  • Releasenotes, bugfixes and enhancements

    Hello,
    I'm currently using Headstart version 6.5.1(.0). Can anyone send me the releasenotes, bugfixes or enhancements of all patches since then till version 6.5.3., or can anyone give me a good reason of upgrading.
    All can be send to [email protected]
    Thank you very much.

    Kristof,
    The release notes of all patches.
    Headstart Oracle Designer PATCH 6.5.3.0 FOR 9i
    ==============================================
    This patch is ready for use with Designer 9i, Forms 9i and Reports 9i.
    Also it addresses the following bugs and enhancement requests
    (mostly the same that are addressed in PATCH 6.5.3.0 FOR 6i):
    Bug No. Description
    ====== =======================================================================
    2309129 - ERROR IN UNLD_RPTS.SQL SCRIPT
    2309202 - NAVIGATOR FORMS DO NOT HAVE CG$STARTUP_MODE, CAUSES ERROR
    2441289 - SAVE BUTTON STAYING DISABLED WHEN IT SHOULD BE ENABLED
    2482013 - LOGGING INTO 9I SERVER AS SYS MUST BE DONE AS SYSDBA
    2483045 - CHANGE OBJECT LIBRARY USAGE STANDARD IN HEADSTART USER GUIDE
    2497339 - CALENDAR-LOV WITH TIME HAS EXTRA BUTTONS, PROBLEM WHEN NULL VALUE
    2499198 - USE CALENDAR LOV, GET FRM-40102: "RECORD MUST BE ENTERED OR DELETED
    FIRST"
    2504387 - SET QMSOLB65.OLB DISPLAY ONLY ITEMS (CGSO$%_DO) TO ENABLED=YES
    2520101 - OFGTEL65.PLL CANNOT BE COMPILED AGAINST HST65 TEMPLATE PACKAGE OWNER
    2520119 - GENERATION OF HEADSTART DEMO FORM HSD0034F GIVES CDG-01117 INVALID
    DISPLAY TYPE
    2520191 - MESSAGE QMS-00125 DOES NOT EXIST IN QMS_MESSAGE_PROPERTIES, USED IN
    QMSLIB65
    2521218 - HEADSTART 6I DOES NOT COMPILE WITH FORMS 9I
    2529003 - CAPI SHOULD NOT INCLUDE COLUMNS WITH COMPLETE = NO
    2570562 - 'SAVE OLD DATA' NOT GENERATED WHEN CAPI UTILITY PARAM
    'TAPI TRIGGERS' IS NO
    2600939 - IF SUBTYPE ATTRIBUTE MAPPED TO MULTIPLE TABLES, UTILITY CAN TAKE THE
    WRONG ONE
    2605551 - STILL HAVE CODE FOR '_CASDEL' IN QMSLIB65.PLL QMS$FORMS_ERRORS
    2635597 - HEADSTART 6.5 UTILITIES THAT CALL BLTEXT.DELETE_TAGGED_BLOCK FAIL
    2635613 - CALL TO QMS$BLOCK.GO('<BLOCK NAME>') IN QMSLIB65 IS CASE SENSITIVE!!
    2635789 - CAPI VALIDATED BUSINESS RULE AGAINST WRONG ROW FROM INTERNAL ROW
    STACK
    2651107 - CHANGE_CONNECTION DOES NOT UPDATE ENTIRE INFO ABOUT APPLICATION
    Headstart Oracle Designer PATCH 6.5.3.0 FOR 6i
    ==============================================
    This patch addresses the following bugs and enhancement requests:
    Bug No. Description
    ======= ======================================================================
    2309129 - ERROR IN UNLD_RPTS.SQL SCRIPT
    2309202 - NAVIGATOR FORMS DO NOT HAVE CG$STARTUP_MODE, CAUSES ERROR
    2482013 - LOGGING INTO 9I SERVER AS SYS MUST BE DONE AS SYSDBA
    2441289 - SAVE BUTTON STAYING DISABLED WHEN IT SHOULD BE ENABLED
    2483045 - CHANGE OBJECT LIBRARY USAGE STANDARD IN HEADSTART USER GUIDE
    2497339 - CALENDAR-LOV WITH TIME HAS EXTRA BUTTONS, PROBLEM WHEN NULL VALUE
    2499198 - USE CALENDAR LOV, GET FRM-40102: "RECORD MUST BE ENTERED OR DELETED
    FIRST"
    2504387 - SET QMSOLB65.OLB DISPLAY ONLY ITEMS (CGSO$%_DO) TO ENABLED=YES
    2520101 - OFGTEL65.PLL CANNOT BE COMPILED AGAINST HST65 TEMPLATE PACKAGE
    OWNER
    2520119 - GENERATION OF HEADSTART DEMO FORM HSD0034F GIVES CDG-01117 INVALID
    DISPLAY TYPE
    2520191 - MESSAGE QMS-00125 DOES NOT EXIST IN QMS_MESSAGE_PROPERTIES,
    USED IN QMSLIB65
    2529003 - CAPI SHOULD NOT INCLUDE COLUMNS WITH COMPLETE = NO
    2570562 - 'SAVE OLD DATA' NOT GENERATED WHEN CAPI UTILITY PARAM
    'TAPI TRIGGERS' IS NO
    2600939 - IF SUBTYPE ATTRIBUTE MAPPED TO MULTIPLE TABLES, UTILITY CAN TAKE
    THE WRONG ONE
    2605551 - STILL HAVE CODE FOR '_CASDEL' IN QMSLIB65.PLL QMS$FORMS_ERRORS
    2635597 - HEADSTART 6.5 UTILITIES THAT CALL BLTEXT.DELETE_TAGGED_BLOCK FAIL
    2635613 - CALL TO QMS$BLOCK.GO('<BLOCK NAME>') IN QMSLIB65 IS CASE SENSITIVE!
    2635789 - CAPI VALIDATED BUSINESS RULE AGAINST WRONG ROW FROM INTERNAL
    ROW STACK
    2651107 - CHANGE_CONNECTION DOES NOT UPDATE ENTIRE INFO ABOUT APPLICATION
    Headstart Oracle Designer 6i PATCH 6.5.2.3
    CDM RuleFrame Performance Improvement
    ==========================================
    The main purpose of this patch is to improve the performance of the
    CDM RuleFrame engine when large transactions are involved.
    The functionality of CDM RuleFrame is only slightly changed by this patch:
    - The utility 'Create CAPI Custom Service' makes it possible to include
    a CAPI Custom Service (i.e. your own package or function) in more
    than one CAPI (see "BUG 2419371" below)
    - The utility 'Create VAPI Definition' can now also create VAPI's for
    subtypes (controlled by new utility parameter)
    This patch addresses the following bugs and enhancement requests:
    Bug No. Description
    ======= ======================================================================
    2070417 - PERFORMANCE ENHANCEMENT SUGGESTION FOR DISABLING CDM
    RULEFRAME IN BATCH MODE
    2204246 - USE NATIVE DYNAMIC SQL FOR RULEFRAME RUNTIME
    SOFTWARE
    2220682 - IMPROVE RULEFRAME RUNTIME PERFORMANCE WITH NOCOPY
    IN TRANSACTION MANAGEMENT
    2220697 - RULEFRAME STACK: USE TEMPORARY DATABASE TABLES INSTEAD
    OF PL/SQL TABLES
    2220707 - STORE ROWS IN RULEFRAME ROW STACK ON AN INDEX CALCULATED BY
    A HASH FUNCTION
    2220908 - ELIMINATE ROW STACK FROM CAPI AND MAKE OLD ROW STACK SMALLER
    2227746 - ENHANCE RULEFRAME PERFORMANCE BY MINIMIZING CAPI USE OF
    FIND_ON_STACK
    2249250 - WHEN CREATING CAPI FOR TABLE WITH MANY COLUMNS: ORA-06502 VALUE
    ERROR
    2259418 - IMPROVE RULEFRAME PERFORMANCE BY ENFORCING CERTAIN RULES
    IMMEDIATELY
    2394119 - RUNNING UTILITIES ERR.SQL GIVES ORA-20000: ORU-10028: LINE
    LENGTH OVERFLOW
    2394166 - WHEN BUSINESS RULE ALREADY EXISTS, UTILITY STILL TRIES TO
    INSERT TRIGGER
    2396132 - UTILITY JOURNALLING BUSINESS RULES ORA-01401: INSERTED VALUE
    TOO LARGE IN BLTEXT
    2419371 - POSSIBILTY TO USE SAME CUSTOM SERVICE IN MORE THAN ONE CAPI
    PACKAGE
    2441447 - REMOVE WORKAROUND FOR BUG 1347738 IN CAPI GENERATOR (HSU_CAPF)
    2481957 - DEFAULT IN SPECIFICATION OF HSU_BRTR.RUN AT WRONG PARAMETER
    2485658 - CDA-01305 COLUMN UID - WHEN SAVING RESULTS OF REFRESHING JOURNAL
    TABLE UTILITY
    Headstart Oracle Designer 6i PATCH 6.5.2.2
    ==========================================
    This patch addresses the following bugs and enhancement requests:
    Bug No. Description
    ======= ======================================================================
    2283093 - RUNNING REPORTS USING DESTYPE=CACHE FROM REPORT LAUNCH FORM
    2283122 - ERROR WHEN CLOSING WINDOW AFTER DUPLICATE RECORD KEY
    2285936 - PROBLEMS WITH REPORT LAUNCH FORM IN 6.5.2.1 SUPPLEMENT OPTION
    2303927 - QMS0012 REPORT LAUNCH FORM NO DEFAULT VALUES IN PARAMETERLIST AFTER
    STARTUP
    Headstart Oracle Designer 6i PATCH 6.5.2.1
    ==========================================
    This patch addresses the following bugs and enhancement requests:
    Bug No. Description
    ======= ======================================================================
    1696475 - ONLINE HELP FOR REPORTS HAS STRANGE URL
    1702857 - ORA-00600 WHEN TRYING TO RUN HEADSTART FORM USING FORMS DEBUGGER
    1727439 - POOR PERFORMANCE IN UTILITY 'CREATE CAPI DEFINITION'
    1727886 - ERRORS IN 'CREATE CAPI DEFINITION' UTILITY ARE IGNORED
    1747626 - RULEFRAME 6I BUS. RULE VIOLATION ON DELETED RECORD GIVES ORA-01403
    OR QMS-00100
    1754565 - PROCEDURE QMS$ABOUT_THIS_APPLICATION IS MISSING IN YOUR APPLICATION
    LIBRARY...
    1754740 - SETUP PART OF USER GUIDE SHOULD MENTION ACCESS TO HEADSTART DATABASE
    OBJECTS
    1754906 - CREATE FIND WINDOW(S) - SAVING CHANGES FAILED WITH CDA-01151
    1764270 - CHAPTER 17 REFERS TO SCRIPT HSU_USER.GRT, WHICH IS NOT AVAILABLE
    1769077 - SERVER SIDE INSTALLER SAYS USER ALREADY INSTALLED WHEN MANUAL IMPORT
    UTILITIES
    1769234 - LONG BLOCK.ITEM NAME RESULTS IN QMS-00100: ORA-06502:
    PL/SQL: NUMERIC/VALUE ERR.
    1769321 - VALUE ERROR IN HTML ONLINE HELP GENERATOR WHEN ITEMS HAVE LONG HINT
    TEXTS
    1781424 - CDM RULEFRAME: TRIGGER ALREADY EXISTS ERROR EVEN IF TRIGGER IS IN
    OTHER FOLDER
    1781454 - CREATE DOMAINS FOR DISCRIMINATOR COLUMNS TRIES TO UPDATE DOMAIN IN
    WRONG FOLDER
    1802399 - WHEN VIEWING LOG: UNHANDLED EXCEPTION IN VIEW_LOG_MESSAGES:ORA-06502
    1832171 - DROP THE PK ON QMS_TRANSACTIONS FOR PERFORMANCE REASONS
    1869480 - REPORTS MODULES NOT SHOWN IN MULTI SELECT LIST OF UTIL SET
    IMPLEMENTATION NAME
    1877521 - ORA-06502 WHEN MAINTAIN BUSINESS RULE DESIGN DEFINITIONS FOR STATIC
    DOMAINS
    1885204 - BUSINESS RULE TRANSFORMER: TRIGGERING EVENT <X> IS INVALID.
    IT HAS NO ENTITY...
    1890011 - UNABLE TO GENERATE DEFAULT NULL PARAMETER IN CAPI CUSTOM SERVICE
    1890029 - HSD 65 USER GUIDE MENTIONS STFFMB PREF.INST. OF PREF.
    SET QMS65_LOV_MODULE
    1890035 - SMALL OMISSIONS AND TYPOS IN HEADSTART 65 USER GUIDE
    1891637 - REDIRECT HEADSTART REFERENCED OBJECTS: INVALID VALUE FOR OLD QMS
    APP VERSION
    1978916 - WITH OLD DB TRIGGER, SEE 'ORA-20998'IN FORM INSTEAD IF THE ACTUAL
    MESSAGES
    1979278 - F9 DOES NOT WORK FOR LIST OF VALUES ON MODAL DIALOG FORM
    (ALSO UP/DOWN)
    1985903 - APPLICATION CLOSES WHEN USING MULTI-SELECT FEATURES IN MODAL DIALOG
    WINDOW
    1987743 - ORA-06508: PL/SQL: COULD NOT FIND PROGRAM UNIT.. <TAPI PACKAGE>.INS
    2093405 - WHEN INSTALLING HEADSTART IN A 9I DATABASE, CG$ERRORS WON'T COMPILE
    ANYMORE
    2101690 - ONLINE HELP FOR REPORTS (QMS0012F) DOESN'T WORK
    2148764 - CG$ERRORS WON'T COMPILE ON 9I DATABASE
    2148774 - ENABLED PROPERTY SET YES ON CGSO$..._DO OBJECTS IN OBJECT LIBRARY
    2176331 - ERROR WITH ORDER BY CURRENT FIELD
    2176348 - GET ERROR IF LAST REPORT PARAMETER IS TYPE DATE
    2176364 - CREATE VIEW DEFINITION DOESN'T UPDATE WHERE CLAUSE OF DOMAIN KEY
    CONSTRAINT
    2185321 - COMPILATION ERRORS ORACLE 9I: DIFFERENCES PARAMETER DEFAULTS PACKAGE
    SPEC/BODY
    Regards,
    Marcel

  • Get all values from request.getParameter

    In ASP, I can do something like that...
    For each item in Request.Form
    Response.write "Name is:" & item & " value is:" & Request(item)
    Next
    How about in JSP? How do i get the names and values of the form using a loop?

    You can use request.getParameterNames() which will return an enumeration, then you can iterate through the enumeration and use request.getParameterValue(String paramName) method to get the values.

  • Error while releasing a request.

    Hi All,
    I'm facing an error while releasing a request.
    The request contains an ABAP programs along with two INCLUDDE programs as well as a TCode to run the same.
    It is running successfully in dev. server. But, while releasing ths request it shows me the following error :
    " Object REPT ZBAPI_SD_SERV_SALES_ORDER is inactive " ,
    where ZBAPI_SD_SERV_SALES_ORDER is the program name. When I checked out in ABAP editor it shows the program active.
    But, I'm unable to understand why its showing me an inactivation error.
    Guys, help me out in this.

    Hi,
    Check if the INCLUDE program are also ACTIVE. They must be in inactive state. Try activating them and release the request.
    Regards,
    Vikranth

  • Error:  "Could not complete your request because of a program error" (photoshop CS2 9.0.2 on MAC OSX

    Today I started my program (photoshop CS2 9.0.2) and opened a JPG file. When I went to print the file the program crashed and closed. When I restarted the program and went to open the file I got this error message, "Could not complete your request because of a program error".
    I have tried several different file types/sizes and all result in the same error message since the program crashed. It will not open any file I try to open. As I indicated above I am using Photoshop CS2 9.0.2 it is on a MAC with OSX 10.4.11.
    I called Adobe and the Rep directed me to Tech Note 331307 and told me to Re-create the Photoshop preferences files. Which I did and restarted the program, but when I tried to open a file (any file) I still get the same error message so it doesn't appear to be the preferences.
    Does anyone have any info as to what the problem may be and how to correct it.
    Thanks

    Thanks for the response. OK... This is the first day I have been able to get back to the problem.
    My system I am running Photoshop on is a Power Mac G4, AGP Graphics ATY Rage 128Pro chip set 16MB VRAM LCD 1280x1024 32-bit color, 500MHz, 1.75GB of memory, 1 MB L2 Cache, 100 MHz Bus Speed. I had installed the latest security update and repaired the permissions the day the problem started.
    Now to day I started the system and went in and created a Guest Account. I logged into the guest account and started Photoshop. Low and behold it worked just fine. So I logged out of guest and logged into my main user account And started Photoshop. Wouldn't you know it.... It works just fine. I can open any file I want with now problems.
    I got to thinking after I had done all of this that I wished I had tried to open a file in Photoshop today prior to creating the guest account to see if it still had the problem in my main user account.
    I did not change anything else on the system and all seems to work fine now. So at his point I am really not sure what the problem was.
    Again thanks for taking the time to respond to this issue.

  • Can not view data in a request from psa

    Dear experts,
    I have a problem with data in psa. If a select a mange of PSA, I see some request. I select one of them to see data. But there is no data. How is it possible?
    If you delete a reques from psa, that request desappears from the psa, doesn't it?
    Thanks in advance,
    yeberri

    it dosn't work. The problem is that you can see  different green requests in manage from psa, but it is not possible to see internal data.
    If I try to see data with se16 and the psa table, there are data for one request, but not for request that i need.
    any idea? is very important to rescue this request.
    thanks for your help.

  • Unable to capture the Data Source into a Transport Request

    Hi All,
    We have a product hierarchy and we are using the data source :4R_PRODH_D_LGEN_HIER for the hierarchy.
    Now we need to transport this structure to the quality environment but we were not able to capture the datasource:4R_PRODH_D_LGEN_HIER into a transport request.
    When ever we activate the data source:4R_PRODH_D_LGEN_HIER it is asking for the Package and the Transport Request Number.If we give these details and save it, data source is not getting captured in the request, only the "bject Directory Entry" is getting captured.
    Can someone please guide me on how to capture the datasource under "Data Sources in BW" in a transport request.
    Regards,
    Sachin Dehey.

    Hi Sachin,
    Hierarachy datasource is not captured as Attributes and Text Datasource. So what ever you have done is correct.
    What ever is captured in Object Directory Entry is correct. So go ahead with your transports, once transport is done check the Hierarchy Infopackage with Available OLTP hierarchies and load the data.
    Most important thing first see that the all Master & Transactional Datasources are transported in R/3 Dev to QA to PRD
    In BW, datasources are not transported, only their replica is transported.
    Transportation of Datasource is done in R/3. Only their replica is transported in BW.
    So wht ever you have done till now is correct. So go ahead.
    While attaching Hierarchy Datasource it is captured only in "Object Directory Entry"
    Regards,
    Vishnu.

  • EH&S WWI for GLM print request processing

    Hi all,
    we installed EH&S WWI for GLM print request processing scenario, following the note:"1394553", but when we try to print we receive this error from WWI:
    Start Function 'WWI_PRINTREQUEST_CREATE'
      Initializing parameters
      Receiving data from client
       calling RfcGetData returned 0
        receiving data lasted: 0.0 sec.
        Retrieving print request data from RFC interface
        Using Temp Directory E:\WWI\TEMP\BSV100000000000062
       Delete files in E:\WWI\TEMP\BSV100000000000062
        Creating text file E:\WWI\TEMP\BSV100000000000062\r000000000062.val
        Writing data to text file 39 lines, 1009 characters
        Updating print request status from 0 to 1
        [DB time] Writing print request lasted 9 ms
      Start processing command 'Create print request' in synchronous mode
      Creating print request 000000000062
    WwiSapDms::retrieveDocument: RFC error when calling ABAP function moduleRFC connection is not Unicode
    WwiSapDms::retrieveDocument: RFC error when calling ABAP function module
    key     : RFC_ERROR_SYSTEM_FAILURE
    message : See RFC trace file or SAP system log for more details
    Reading SBV document IB0120510 from Cache failed
        WwiCacheRead resulted with -1
        Updating print request status from 1 to 5
        [DB time] Writing print request lasted 4 ms
      ##### Command 'Create print request' finished with status E #####
        Storing ERR file E:\WWI\TEMP\BSV100000000000062\l000000000062.err into DMS succeeded
        22 lines
      Sending data to client
       calling RfcSendData returned 0
        sending data lasted: 0.0 sec.
    Elapsed time : 0.1 sec.
    We don't understand what kind of RFC or what part of customizing we have to check, could you please help us?
    Thanks,
    Christian

    Dear Pugal
    we are not using GLM + and I am not sure about the technqiue used there to handle load balancing. Regarding general WWI setup I assume you know this Note: EH&amp;amp;S: Availability and performance of WWI and Expert servers
    On the top there is a further SAP Note abvailable which might be of interest. This is referenced here:
    http://de.scribd.com/doc/191576739/011000358700000861002013-e
    May be check OSS note: 1958655; OSS Note 1155294 is more related to normal WWI stuff; but may be check it as well. May be 1934253 might help better
    May be this might help.
    C.B.
    PS: may be check as well: consolut - EHS_MD_140_01 - EH&amp;amp;S-Management-Server einrichten
    The load balancing of synchron WWi servers is donein the "RFC" layer, therefore you have no inffluence here, for asynchron WWI servers you can do a lot to manage the WWI load balancing by using "exits" etc.

  • (Request for reporting available) is not coming in Cube

    Hi All,
    I have Cube & DSO.
    I  added fields in DSO & Cube.
    Cube1 has Aggregrates built on it.i added 5 infoobjects on it, Now when i load data from DSO to Cube(Request for reporting available) is not coming up. i cant do reporting on it. can anyone help.
    thanks in advance,
    Kiran.

    Hi ....
    Have you done the Roll up ?
    Since aggregates are there on that cube....until and unless you do the roll up that request will not be available for Reporting...
    Regards,
    Debjani....

  • My iphone wont let me play songs that I bought from iTunes. It says "The requested URL was not found on this server" How can i play my music also my music videos again?

    I bought a few songs and music videos from iTunes, then all of a sudden it wouldn't play and would just skip to the next song. With the music videos it would do the same. Also, this message would show up " The Requested URL could not be found on this server" What does that exactly mean? And what do I need to do to play my music/videos again?

    This previous discussion has a solution:
    https://discussions.apple.com/message/16527576#16527576

  • Retriving only hidden parameters from request.getParameter

    Hi,
    I want to retrive only the hidden parameters from previous JSP page into current JSP page. The problem here is that my hidden parameters in privious page are dynamically generated (parameter names are decided based on values retrived from the database) and I cannot retrive them using "request.getParameter(<parametername>)"
    Can I find the parameter type (i.e. text box, text area, checkbox, radio or hidden) from the request.getParameter() or request.getParameterNames() methods? or is there any other way to find it.
    Thanks in advance for any help

    You can use the getParameterNames() or getParameterMap() methods from javax.servlet.ServletRequest to get all the parameters in the request. Even if they're dynamically generated, and you don't know the names in advance, these methods will ferret them out.
    getParameterMap() returns name String, values String [] pairs, so you'll have to work with String arrays to get the input out. It's got to be that way to accomodate checkboxes and other HTML form elements that can send more than one value for a given name.
    I prefer getParameterMap, because I don't like using Enumerations as much. - MOD

  • Help with getting values from request. Very Strange!!

    Hello,
    My very strange problem is the following.
    I have created three dynamic list boxes. When the user select
    the first list box, the second becomes populated with stuff
    from a database. The third becomes populated when the second
    is selected. Now, I have used hidden values in order for
    me to get the selected value from the first listbox. The
    following code is my first listbox:
    <SELECT NAME="resources" onChange="document.hiddenform.hiddenObject.value = this.option [this.selectedIndex].value; document.hiddenform.submit();">
    <OPTION VALUE =""> Resource</OPTION>
    <OPTION VALUE ="soil"> Soil </OPTION>
    <OPTION VALUE ="water"> Water </OPTION>
    <OPTION VALUE ="air"> Air </OPTION>
    <OPTION VALUE ="plants"> Plants </OPTION>
    <OPTION VALUE ="animals"> Animals </OPTION>
    </SELECT>
    I use the getRequest method to get the value of hiddenObject.
    At this time I am able to get the value of hiddenObject to populate
    the second list box.
    But, when the user selects an item from the second list box
    and the second form is also submitted,
    I lose the value of hiddenObject. Why is this??
    The code to populate my second listbox is the following:
    <SELECT NAME ="res_categories" onChange="document.hiddenform2.hiddenObject2.value = this.options[this.selectedIndex].value; document.hiddenform2.submit(); ">
    <OPTION VALUE ="" SELECTED> Category</OPTION>
    Here I access a result set to populate the list box.
    Please help!!

    Form parameters are request-scoped, hence the request.getParameter("hiddenObject"); call after the submission of the second form returns a null value because the hiddenObject parameter does not exist within the second request.
    A solution would be to add a hiddenObject field to your second form and alter the onChange event for res_categories to read
    document.hiddenform2.hiddenObject.value=document.1stvisibleformname.resources.option[document.1stvisibleformname.resources.selectedIndex].value;
    document.hiddenform2.hiddenObject2.value = this.options[this.selectedIndex].value;
    document.hiddenform2.submit();You will then come across a similar problem with your third drop-down if indeed you need to resubmit the form...
    A far better approach would be to create a session scoped bean, and a servlet to handle these requests. Then when the servlet is called, it would set the value of the bean property, thus making it available for this request, and all subsequent requests within the current session. This approach would eliminate the need for the clunky javascript, making your application far more stable.

  • Problem getting arraylist values from request

    Hi All,
    I am trying to display the results of a search request.
    In the jsp page when I add a scriplet and display the code I get the values else it returns empty as true.Any help is appreciated.
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
    <head>
         <%@ include file="/includes/header.jsp"%>
         <title>Research Results</title>
    </head>
    <body>
    <div class="ui-widget  ui-widget-content">
        <%  
        ArrayList<Research> research = (ArrayList<Research>) request.getAttribute("ResearchResults");
         Iterator iterator = research.iterator();
              while(iterator.hasNext()){
              Research r = (Research) iterator.next();
              out.println("Result Here"+r.getRequesterID());
              out.println("Result Here"+r.getStatus());
        %> 
         <form>
         <c:choose>
         <c:when test='${not empty param.ResearchResults}'>
         <table cellspacing="0" cellpadding="0" id="research" class="sortable">
         <h2>RESEARCH REQUESTS</h2>
                   <tr>
                   <th><a href="#">RESEARCH ID</a></th>
                   <th><a href="#">REQUESTOR NAME</a></th>
                   <th><a href="#">DUE DATE</a></th>
                   <th><a href="#">REQUEST DATE</a></th>
                   <th><a href="#">CLIENT</a></th>
                   <th><a href="#">STATUS</a></th>
                   <th><a href="#">PRIORITY</a></th>
                   </tr>
              <c:forEach var="row" items="${param.ResearchResults}">
                        <tr title="">
                             <td id="researchID">${row.RESEARCH_ID}</td>
                             <td>${row.REQUESTER_FNAME}  ${row.REQUESTER_LNAME}</td>
                             <td><fmt:formatDate pattern="MM/dd/yyyy" value="${row.DUE_DATE}"/></td>
                             <td><fmt:formatDate pattern="MM/dd/yyyy" value="${row.CREATED_DATE}"/></td>
                             <td>${row.CLIENT}</td>
                             <td>
                             <c:choose>
                               <c:when test="${row.STATUS=='10'}">New Request</c:when>
                               <c:when test="${row.STATUS=='20'}">In Progress</c:when>
                               <c:when test="${row.STATUS=='30'}">Completed</c:when>
                              </c:choose>
                             </td>
                             <td>
                             <c:choose>
                               <c:when test="${row.PRIORITY=='3'}">Medium</c:when>
                               <c:when test="${row.PRIORITY=='2'}">High</c:when>
                               <c:when test="${row.PRIORITY=='1'}">Urgent</c:when>
                              </c:choose>
                             </td>
                             </tr>
              </c:forEach>
         </table>
         </c:when>
         <c:otherwise>
         <div class="ui-state-highlight ui-corner-all">
                   <p><b>No results Found. Please try again with a different search criteria!</b> </p>
              </div>
         </c:otherwise>
         </c:choose>
         </form>
              <%@ include file="/includes/footer.jsp"%>
         </div>
         </body>
    </html>

    What is ResearchResults?
    Is it a request parameter or is it a request attribute?
    Parameters and attributes are two different things.
    Request parameters: the values submitted from the form. Always String.
    Request attributes: objects stored into scope by your code.
    They are also accessed slightly differently in EL
    java syntax == EL syntax
    request.getParameter("myparameter") == ${param.myparameter}
    request.getAttribute("myAttribute") == ${requestScope.myAttribute}
    You are referencing the attribute in your scriptlet code, but the parameter in your JSTL/EL code.
    Which should it be?
    cheers,
    evnafets

  • Reading Null Values From Request Object

    For a proof-of-concept, I wrote a mini program that has 2 files. File #1 is main.html. There's a javascript function called addNewRowToThisTable that isn't displayed but it basically allows the user to create as many rows in the table as user desires. When the "Submit" button is clicked the file ReadIt.jsp is called and it's supposed to display on the first and last names of the people who had the checkbox for that row checked. The best way to illustrate the problem I'm having is through an example. Let's say there are 3 rows:
    [x] Alan Anderson [Add New Row]
    [ ] Bob Brady [Add New Row]
    [x] Carl Chadwick [Add New Row]
    [Submit]
    Let's assume that only rows 1 and 3 are clicked. After the form is submitted the JSP will print...
    firstNameArr .length = 3
    lastNameArr .length = 3
    isSelectedArr.length = 2
    firstNameArr[0] = Alan
    lastNameArr[0] = Anderson
    firstNameArr[1] = Bob
    lastNameArr[1] = Brady
    Unfortunately firstNameArr[1] and lastNameArr[1] should be "Carl", and "Chadwick" respectively. I know the reason why it's failing is because my program relies on the array index of the "isSelected" field to perfectly match up with the "firstName" and "lastName" fields. It's unreliable because if the checkbox for a row is not checked then it won't show up in the JSP String array isSelectedArr. I'm not really sure how to get around this problem. I have 2 ideas at the beginning of solutions but I'm not sure how to follow through on either and I'm also not sure if either is the proper approach to take. My guesses are...
    1) There's some way in JSP to use "getParameterValues('isSelected')" to retrieve the full array of "isSelected" items regardless of whether or not they're checked. That would guarantee that my arrays would match up correctly. Unfortunately, I haven't been able to find this.
    2) Maybe I can put in some sort of ID in the "isSelected" field that would relate the checkbox to the rest of the data in the row. The problem with this is that I've got a dynamic # of rows due to my addNewRowToThisTable method.
    So the bottom line is that I'm thoroughly stumped. If anyone can offer advice I'd be very grateful.
    main.html
    <html><head><title></title></head><body>
    <form method="get" action="ReadIt.jsp">
    <table>
    <tr>
         <td><input type="checkbox" name="isSelected" /></td>
         <td><input type="text" name="firstName" /> </td>
         <td><input type="text" name="lastName" /></td>
         <td><input type="button" value="Add New Row" onClick="addNewRowToThisTable(this)" />
    </tr>
    <tr>
         <td colspan=4><input type="submit" value="submit"></input></td>
    </tr>
    </table>
    </form>
    </body></html>
    ReadIt.jsp
    <%
    String[] isSelectedArr = request.getParameterValues("isSelected");
    String[] firstNameArr = request.getParameterValues("firstName");
    String[] lastNameArr = request.getParameterValues("lastName");
    if (firstNameArr != null) System.out.println("firstNameArr .length = " + firstNameArr .length);
    if (lastNameArr != null) System.out.println("lastNameArr .length = " + lastNameArr .length);
    if (isSelectedArr != null) {
         System.out.println("isSelectedArr.length = " + isSelectedArr.length);
         for (int i=0; i < isSelectedArr.length; i++) {
              System.out.println("firstNameArr["+i+"] = " + firstNameArr);
              System.out.println("lastNameArr["+i+"] = " + firstNameArr[i]);
    %>

    it's sort of a kludge, but try this:
    your javascript function adds new for fields that get submitted to the servlet. name the checkboxes uniquely with a patterm with said function, say isSelected-1, isSelected-2, isSelected-3... now also name the first and last name fields the same way. fname-1, fname-2, fname-3... lname-1,lname-2,lname-3.
    when you get to the page that is supposed to match them up, go through all the request parameters looking for those that start with "isSelected-" take the last char (the index), convert it to an int, and then from your request do:
    String first = request.getParameter("fname-" + indexThatWasFound);
              String last = request.getParameter("lname-" + indexThatWasFound);in looping over the request for each index recovered from the searching of the request for the isSelected-n values, you will get the matching first and last name.
    I TOLD you it was a kludge.

Maybe you are looking for

  • How to delete an  element in an array...(simple way)

    hi, Newbie here... please help how to delete an element in an array list? there are alot of codes but they're complicated for a newbie like me.. (simple codes would be better ..:) thank you...

  • Issues in retrieving the Planning profiles in CRM from BW while doing CRM-BI Integration

    Dear Folks, We are in the process of doing the SAP CRM & BI Integration wrt Trade Promotion Mangement. For testing purposes, we tried to create a planning profile in BPS end i.e BW SEM system & trying to retrieve it from the CRM system using the belo

  • SCCM 2012 Client issues

    Hi, I am having issues with not all the SCCM client actions appearing in my clients. So it might start at 11 actions - then drop down the 5 actions then go back up to 6 and then after a day go to 11. So this happens after an OSD build. So I might bui

  • Add a node to Oracle 11g RAC

    Good Morning. Can somebody give a short and good guide to add a node to Oracle 11g RAC running on Suse Linux 10.? Thanks

  • Renaming files in LR5

    So I rename my files on import into LR. After I edit the session I sometimes have gaping holes in the sequence. And undoubtedly the client will ask "hey were are image numbers blah, blah, blah?" So I would rename on export right? Now I have a linear