Unable to retrieve values from request.getAttribute()

I had a JSP file called targetJspPage.jsp that contains the following statement within a set of <form> tags:
<% request.setAttribute "url","/myProj/targetJspPage.jsp");%>This information is then submitted to a servlet using POST method which will use a RequestDispatcher to retrieve the the url from the request attribute that I had set just now. The statement is as follows:
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher((String)request.getAttribute("url"));
          if (dispatcher != null)
               dispatcher.forward(request, response);The purpose of this procedure is to let the servlet know which JSP file it is suppose to forward the processed results. The url is always the url of the page that is calling the servlet. Eg. In this case, my JSP file is targetJspPage.jsp which resides in myProj folder. So, in this JSP file, the url set for the servlet will be /myProj/targetJspPage.jsp. But my problem now is that the (String)request.getAttribute("url") statement in the servlet always returns null. Why is that so?
This type of question was asked numerous times in the forums but the solutions aren't working. I do not want to use a session to store the value. However, I also tried using session before and the result is the same.

Hi Sad,
1.
Is it possible that you post the codes that we can see clearly what is going on? (If possible only).
(Unless I'm wrong, it may be that the request.setAttribute is used to pass object on the server side only, ie you can't use the request.setAttribute to keep data like the session object during the client-server trips of request/response.
The fact that you get null for (String)request.getAttribute("url") is because the Browser send a new request object which is different from the old one (request.setAttribute which is gone once we down the client)
(2. I want to learn too, and hope some one will find a solution for you)
-- Paul.

Similar Messages

  • Unable to retrieve values from a table

    I have created a table called ct_temp and it's structure is:
    create table ct_temp(id char(2),srs number(3),amt number);
    Result : Table Created
    I now insert the following rows into the table:
    id  srs  amt
    1 62 30000
    2 65 50000
    3 65 70000
    4 65 80000
    5 62 16000
    6 65 10000
    7 65 100000
    8 65 10
    Commit
    Then I issue the following query to retrieve data based on a specific criteria (Actually I have condensed the table and data because in Production, I have large number of rows; so for simplicity I am using 8 rows with one table)
    criteria : I then want to retrieve the following:
    for srs = 62, all values that is greater than 10,000
    Answer: select decode(srs,62,ab.amt)temp1 ,decode(srs,65,ab.amt)temp2 from ct_temp ab
    where decode(srs,62,ab.amt)>10000
    Works like a charm and retrives the results.
    Now comes the big issue
    I want to retrieve the values for srs = 62 which is greater than 10,000 and at the same time I also want to retrieve the values for srs = 65 which is less than srs = 62.
    Typically I wrote the query as:
    select decode(srs,62,ab.amt)temp1 ,decode(srs,65,ab.amt)temp2 from ct_temp ab
    where decode(srs,62,ab.amt)>10000
    and decode(srs,65,ab.amt)<decode(srs,62,ab.amt)
    Expected results should be:
    srs amt
    62 30000
    62 16000
    65 10
    I should atleast get one row for srs = 65 which is id # 8 but it displays blank rows or "no rows returned".
    I am actually preparing a ad-hoc report for the business analyst and stuck at this step due to which I am unable to proceed any further. I have used DECODE function because of the requirement specified by Business Analyst.
    I have tried the following in the office:
    using EXISTS operator = no luck
    using INLINE VIEW = no luck
    using UNION operator = No luck
    Is there any way around? Please help me guys.
    Sandeep
    NOTE: The reason why I have used DECODE function is because in Production environment there are columns called
    a) return line item which has numerous values like '001', '002', '062', '067'
    b) there is another column called amount
    c) so for every return line item there is an amount
    so the business wants:
    d) if the line item number = 62 then the amount should be dispplayed and it should be displayed as "AB Taxable income"
    e) if the linte item number = 65 then the amount should be retrived and displayed as "Amount taxable in AB"
    So seeing these multiple conditions for a "SELECT" statement, I used DECODE fuction.

    user11934091 wrote:
    What I have not been able to understand is why you have taken "0" there? Nulls! You need to use a number and not a null for a maths predicate.
    The following is ALWAYS false:
    and decode(srs,65,ab.amt) < decode(srs,62,ab.amt);
       is in fact: 
    and NULL < numberNull is not smaller than any number. Null is not larger than any number. Null is not equal to any number. Null is null. When it is not, that condition using Null is FALSE!!! Always.
    So look at your data. You are introducing 2 new derived values called TEMP1 and TEMP2 using decode(). So let's add these to derived values as columns to the table so that you can see how the data set now looks like:
    // add the 2 new columns
    SQL> alter table ct_temp add( temp1 number, temp2 number );
    Table altered.
    // populate these new columns using your decode statements
    SQL> update ct_temp
      2  set     temp1 = decode(srs,62,amt),
      3          temp2 = decode(srs,65,amt);
    8 rows updated.
    SQL> commit;
    Commit complete.This is how the data set now looks like:
    SQL> select * from ct_temp;
    ID        SRS        AMT      TEMP1      TEMP2
    1          62      30000      30000
    2          65      50000                 50000
    3          65      70000                 70000
    4          65      80000                 80000
    5          62      16000      16000
    6          65      10000                 10000
    7          65     100000                100000
    8          65         10                    10
    8 rows selected.Here are your 2 queries on this data set:
    // 1st query finds 2 rows
    SQL> select * from ct_temp where temp1 > 10000;
    ID        SRS        AMT      TEMP1      TEMP2
    1          62      30000      30000
    5          62      16000      16000
    // 2nd query finds the same 2 rows and then test
    // whether TEMP2 is smaller than TEMP1 - as TEMP2
    // is NULL for those 2 rows, this smaller than condition
    // is FALSE. Thus no rows are found.
    SQL> select
      2          temp1,
      3          temp2
      4  from       ct_temp ab
      5  where      temp1 > 10000
      6  and        temp2 < temp1;
    no rows selected
    // You thus need to change NULLs into a number - this is done
    // below using the NVL function. In my original example I did
    // this in the DECODE itself by returning 0 instead of NULL.
    SQL> select
      2          temp1,
      3          temp2
      4  from    ct_temp ab
      5  where   temp1 > 10000
      6  and     nvl(temp2,0) < nvl(temp1,0);
         TEMP1      TEMP2
         30000
         16000Bottom line. YOU CANNOT EVALUATE NULLS USING MATHEMATICAL PREDICATES.
    So - change the NULL to a number and the do the evaluation. Or determine what the business rule is for when there is no value to evaluate in the predicate and apply that rule.
    That simple.

  • Error :Unable to retrieve data from iHTML servlet for Request2 request

    I open bqyfile to use HTML in workspace.
    When I export report to excel in IR report.
    Then I press "back" button I get error"Unable to retrieve data from iHTML servlet for Request2 request "
    And I can not open any bqyfiles in workspace.
    Anybody gat the same question? Thanks~

    Hi,
    This link will be helpful, the changes is made in the TCP/IP parameter in the registry editor of Windwos machine. I tried the 32 bit setting for my 64 bit machine (DWORD..) and it worked fine for me..
    http://timtows-hyperion-blog.blogspot.com/2007/12/essbase-api-error-fix-geeky.html
    Hope this helps..

  • Unable to access values from database in login page..

    Hey all,
    Friends I have a login.jsp page and I want if i enter username and password then it will be accessed from database and after verifying the details it will open main.jsp.I made a database as "abc" and created DSN as 1st_login having table 1st_login. But the problem is that I am unable to access values from database.
    So Please help me.
    Following is my code:
    <HTML>
    <body background="a.jpg">
    <marquee>
                        <CENTER><font size="5" face="times" color="#993300"><b>Welcome to the"<U><I>XYZ</I></U>" of ABC</font></b></CENTER></marquee>
              <br>
              <br>
              <br>
              <br><br>
              <br>
         <form name="login_form">
              <CENTER><font size="4" face="times new roman">
    Username          
              <input name="username" type="text" class="inputbox" alt="username" size="20"  />
              <br>
         <br>
              Password          
              <input type="password" name="pwd" class="inputbox" size="20" alt="password" />
              <br/>
              <input type="hidden" name="option" value="login" />
              <br>
              <input type="SUBMIT" name="SUBMIT" class="button" value="Submit" onClick="return check();"> </CENTER>
              </td>
         </tr>
         <tr>
              <td>
              </form>
              </table>
    <%
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connection = DriverManager.getConnection("jdbc:odbc:1st_login");
    Statement statement = connection.createStatement();
    String query = "SELECT username, password FROM 1st_login WHERE username='";
    query += request.getParameter("username") + "' AND password='";
    query += request.getParameter("password") + "';";
    ResultSet resSum = statement.executeQuery(query);
    //change: you gotta move the pointer to the first row of the result set.
    resSum.next();
    if (request.getParameter("username").equalsIgnoreCase(resSum.getString("username")) && request.getParameter("password").equalsIgnoreCase(resSum.getString("password")))
    %>
    //now it must connected to next page..
    <%
    else
    %>
    <h2>You better check your username and password!</h2>
    <%
    }catch (SQLException ex ){
    System.err.println( ex);
    }catch (Exception er){
    er.printStackTrace();
    %>
    <input type="hidden" name="op2" value="login" />
         <input type="hidden" name="lang" value="english" />
         <input type="hidden" name="return" value="/" />
         <input type="hidden" name="message" value="0" />
         <br>
              <br><br>
              <br><br>
              <br><br><br><br><br>
              <font size="2" face="arial" color="#993300">
         <p align="center"> <B>ABC &copy; PQR</B>
    </BODY>
    </HTML>
    and in this code i am getting following error
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:93: cannot find symbol_
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:93: cannot find symbol_
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:94: cannot find symbol_
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:95: cannot find symbol_
    4 errors
    C:\Project\SRS\nbproject\build-impl.xml:360: The following error occurred while executing this line:
    C:\Project\SRS\nbproject\build-impl.xml:142: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 6 seconds)

    As long as you're unable to compile Java code, please use the 'New to Java' forum. This is really trival.
    To ease writing, debugging and maintenance, I highly recommend you to write Java code in Java classes rather than JSP files. Start learning Servlets.

  • Retrieve values from a HTML table !!!

    Hi.
    How can i retrieve values from a HTML table using javascript ?
    I´m trying to use the command "document.getElementsByTagName" without success.
    Thanks in advance.
    Eduardo

    Hi, Deepu.
    I´m still with trouble in retrieving the value in HTML.
    In debug the C_CELL_ID seems to be correctly updated but
    when using the command "document.getElementById" the value is always "null".
    I implemented in the method DATA_CELL the code :
      if i_x = 3 and i_y = 2.
      C_CELL_ID             = 'zs'.
      C_CELL_CONTENT = 10. 
      endif.
    And in HTML :
    var ztest = document.getElementById('zs');
    alert(ztest);
    Could you help me please.
    Many regards
    Eduardo S.
    Message was edited by: Eduardo   Silberberg

  • Retrieving values from Database in Excel Task Pane App

    So far,
    I created a website with a database on Azure, I then published my App to Azure. My problem is that I'm not sure how I retrieve values from the database (in SQL: SELECT * FROM EXAMPLE_TABLE WHERE date = str). If someone could provide me with sample code,
    that would be amazing! :D
    It would also be very helpful if anyone knew a method to automatically update the database using information from a xml stream on another website, once a day.
    Thank you!

    Hi,
    >> My problem is that I'm not sure how I retrieve values from the database
    You can use jquery ajax call to call your webserivce or REST API, which will query the database and return a json result.
    Sample:
    Apps for Office: Create a web service using the ASP.NET Web API
    >> It would also be very helpful if anyone knew a method to automatically update the database using information from a xml stream on another website
    For the database sync-up question, I suggest you posting them on the forums like SQL Server Forum.
    Thanks for your understanding.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Retrieving values from a table

    Hi all,
    I need to retrieve values from CSKS-KOSTL for values containing the pattern entered by the user. For example, if the user enters 1, need to retrieve all the KOSTL values starting with 1. But when i write a SELECT statement mentioning where kostl in '1', it is ignoring all the values like (0000001, 00001034, 0012334, and others). Only values starting with 1 is only retrieved as this is a character field and due to conversion routine, zeroes are prefixed while storing in the database.
    Could any one let me know how to retrieve the values from the database in this situation?

    If you want to use IN operator in your where clause then you should define a range variable(R_KOSTL) which refers to CSKS=KOSTL and populate the range as below
    R_KOSTL-SIGN = 'I'.
    R_KOSTL-OPTION = 'CP'.
    R_KOSTL-LOW = '1*'.
    APPEND R_KOSTL.
    and then write your select statement as .... WHERE kostl IN r_kostl.
    The approach suggested by Amit should also work fine.
    Thanks
    Kiran

  • Unable to retrieve tables from this connection

    I have been using Dreamweaver for over 5 years. I have been
    using an Access database and ASP the entire time. I am using a
    Windows 2000 server for the database and web site. I have used
    every verson of Dreamweaver since Ultra Dev. When I bought verson 8
    and upgraded to 8.0.2, I began getting the following message when I
    try to edit or create a recordset.
    "Unable to retrieve tables from this connection, click on the
    'Define...' button to test this connection."
    I don't know what to do. Is this a widespread problem? Is it
    a Windows problem? Is it a Dreamweaver problem? Is it a network
    problem?
    Please HELP!

    Did you ever get an answer for this ?
    I am having the same issue but using XP professional.

  • How to retrieve value from xml file

    hi all,
    can somebody pls tell me how to retrieve value from xml file using SAXParser.
    I want to retrieve value of only one tag and have to perform some validation with that value.
    it's urgent .
    pls help me out
    thnx in adv.
    ritu

    hi shanu,
    the pbm is solved, now i m able to access XXX no. in action class & i m able to validate it. The only thing which i want to know is it ok to declare static ArrayList as i have done in this code. i mean will it affect the performance or functionality of the system.
    pls have a look at the following code snippet.
    public class XMLValidator {
    static ArrayList strXXX = new ArrayList();
    public void validate(){
    factory.setValidating(true);
    parser = factory.newSAXParser();
    //all factory code is here only
    parser.parse(xmlURI, new XMLErrorHandler());     
    public void setXXX(String pstrXXX){          
    strUpn.add(pstrXXX);
    public ArrayList getXXX(){
    return strXXX;
    class XMLErrorHandler extends DefaultHandler {
    String tagName = "";
    String tagValue = "";
    String applicationRefNo = "";
    String XXXValue ="";
    String XXXNo = "";          
    XMLValidator objXmlValidator = new XMLValidator();
    public void startElement(String uri, String name, String qName, Attributes atts) {
    tagName = qName;
    public void characters(char ch[], int start, int length) {
    if ("Reference".equals(tagName)) {
    tagValue = new String(ch, start, length).trim();
    if (tagValue.length() > 0) {
    RefNo = new String(ch, start, length);
    if ("XXX".equals(tagName)) {
    XXXValue = new String(ch, start, length).trim();
    if (XXXValue.length() > 0) {
    XXXNo = new String(ch, start, length);
    public void endElement(String uri, String localName, String qName) throws SAXException {                    
    if(qName.equalsIgnoreCase("XXX")) {     
    objXmlValidator.setXXX(XXXNo);
    thnx & Regards,
    ritu

  • Unable to retrieve collections from the Search Service.

    Hi,
    I have a user trying to upload a collection. She gets the
    following error:
    Unable to retrieve collections from the Search Service.
    Please verify that the ColdFusion MX Search Server is
    installed and running.
    Obviously, I checked the service. It was running. I restarted
    the service. That did nothing. I restarted all the CF services.
    Didn't fix the issue. I also rebotted the server, not expecting
    that to work. It didn't.
    Checking the server logs, I see this:
    The description for Event ID ( 105 ) in Source ( ColdFusion
    MX 7 Search Server ) cannot be found. The local computer may not
    have the necessary registry information or message DLL files to
    display messages from a remote computer. You may be able to use the
    /AUXSOURCE= flag to retrieve this description; see Help and Support
    for details. The following information is part of the event:
    ColdFusion MX 7 Search Server.
    Also, after talking to my co-worker more, it turns out this
    occurred right after she uploaded a new collection to the
    administrator. This link sounds similar to what I'm experiencing:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=6c6881a9
    Maybe it's a corrupt collection?
    but I don't see any errors in the log
    (:\CFusionMX7\verity\Data\services\ColdFusionK2_indexserver1\log\status.log)
    Finally, there are some errors in the Verity service, and it
    looks like the Verity service Verity K2Server (Version 2.20pr6)
    points to D:\CFusionMX\lib\k2server.exe, which doesn’t exist
    anymore because we’ve upgraded to MX7.I'm not sure if this is
    an old service left over from before we upgraded from CFMX to
    CFMX7.
    We are running CFMX7 on a Windows 2003 Server SP1 if that
    matters.
    Thanks in advance for any help.

    In the left hand panel of the ColdFusion Administrator expand
    the Data & Services link. Then select the Verity K2 Server
    link. Change localhost to 127.0.0.1 in the Verity Host Name
    textbox.
    Ted Zimmerman

  • AAE - Error -  Unable to retrieve MappingInterfaceLocalHome from JNDI while

    Hi Friends,
    We have an interface which runs in AAE.  (Advanced Adapter Engine, PI 7.1, EHP1)
    Sender is SOAP, Async Call.
    We have used the condition to determine receiver. One Receiver is SOAP (by remove proxy) and another one receiver is RFC.
    When we check the messages, in message monitoring, database overview, those are failed with error "
    Unable to retrieve MappingInterfaceLocalHome from JNDI while invoking the mapping"
    Detailed error is as below:
    Execution of mapping "http:/bigbiz.com/xi/MDM/IM_MATERIALUPDATE" failed. Reason: MappingException: Unable to retrieve MappingInterfaceLocalHome from JNDI while invoking the mapping, NamingException: Exception during lookup operation of object with name localejbs/MappingBean, cannot resolve object reference., javax.naming.NamingException: Error occurs while the EJB Object Factory trying to resolve JNDI reference Reference Class Name: Type: clientAppName Content: sap.com/com.sap.xi.services Type: interfaceType Content: local Type: ejb-link Content: MappingBean Type: jndi-name Content: MappingBean Type: local-home Content: com.sap.aii.ibrun.sbeans.mapping.MappingAccessLocalHome Type: local Content: com.sap.aii.ibrun.sbeans.mapping.MappingAccessLocal com.sap.engine.services.ejb3.runtime.impl.refmatcher.EJBResolvingException: Cannot start applicationsap.com/com.sap.xi.services; nested exception is: java.rmi.RemoteException: [ERROR CODE DPL.DS.6125] Error occurred while starting application locally and wait.; nested exception is: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5106] The application .....
    I confuse why suddenly this error comes, since it was working fine earlier. The message status is now 'To Be Delivered'.
    Can you kindly clarify friends how to fix this ?
    Kind regards,
    Jegathees P.

    Hi,
    PI 7.1 Ehp1 receiver determination can be done conditionally by selecting operation specific...
    I don't think this error is related to AAE ...looks like this error is related to server ...
    check other mappings also whether they are executed with out any error ?
    this is related to module lookup error...need to check with the basis
    HTH
    Rajesh

  • I have been unable to retrieve emails from my external disk.  I entered the Time Machine and tried to go to April 2013, but could not find emails.  I have Lion OS X 10.7.5 .Thanks!

    I have been unable to retrieve emails from my external disk.  I entered the Time Machine and tried to go to April 2013, but could not find emails.  I have Lion OS X 10.7.5 .Thanks!
    Cecilia

    I have been unable to retrieve emails from my external disk.  I entered the Time Machine and tried to go to April 2013, but could not find emails.  I have Lion OS X 10.7.5 .Thanks!
    Cecilia

  • 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

  • Retrieving values from table control using DYNP_VALUES_READ

    Hi all,
    I am trying to retrieve the values from the table control using the FM DYNP_VALUES_READ. I have a situation where user enter values in table control in T.code FB60 in Withholding tab for validation purpose. There i'll have to check based on some entries maintained in SET.
    I am unable to get the values when i scroll to the next page in the table control. FM raising an exception invalid_dynprofield.
    Expecting reply...

    You have to populate the dynpfields internal table before calling the function,
    data: repid like sy-repid.
    dynpfields-fieldname = 'PNAME'.
    append dynpfields.
    repid = sy-repid.
    call function 'DYNP_VALUES_READ'
    exporting
    dyname = repid
    dynumb = sy-dynnr
    tables
    dynpfields = dynpfields
    exceptions
    others.
    read table dynpfields index 1.
    pname = dynpfields-fieldvalue.
    Now you will have the field value in pname
    Hope this helps
    Vinodh Balakrishnan

  • Retrieving values from a table in ADF

    Hi All,
    Can any one give me the code or an example as how to retrieve the values associated with the table in jspx page.
    I am working in ADF10.1.3.
    Thanks,

    Hi,
    I am using ADF10.1
    I have a table with multi selection in my jspx page.
    I have to get the table particular row and using that need to get other values associated with the table.
    I have used the floowing code..but this is not functioning properly
    SelectedRowSet = this.getTable1().getSelectionState().getKeySet();
    rowSetIter = selectedRowSet.iterator();
    // Get the Selected Row Values from
    if (selectedRowSet.size() > 0)
    for (int counter = 0; counter < selectedRowSet.size(); counter++)
    int index = (Integer) rowSetIter.next();
    JUCtrlValueBindingRef currentRow =
    (JUCtrlValueBindingRef) getTable1().getRowData(index);
    Row row = currentRow.getRow();
    if (row!=null)
    variable name = ((String) row.getAttribute());
    Debugger is raising an exception at JUCtrlValueBindingRef line.
    Do share some ideas on it.
    Thanks,

Maybe you are looking for

  • Blank Values in XML Publisher

    Hi all, I'm generating a report in xml publisher 5.6.2, i have 4 datamodels inside the report and i'm using the Concatenated SQL Data Source option, then i generate the xml file to add it to the rtf template, the problem is that when i preview the re

  • JSP + JAVA Beans +Torque

    Hey, I am using Torque to connect MySQL DB to JSP page, so I am using JAVA Beans, which is created by torque, I wish to use pagination to retrieve the entries from database, plz tell me how can I implement it here.

  • Security Questions are getting cached

    Hi, We recently discovered that our security authentication answers are frequently cached by web browsers. Is there something we can do on the server side to stop this? We have several public terminals used for claiming accounts and changing password

  • Create shape and motion tween of a line

    I am trying to create a line graph in which the line is following a certain path over time like in a simulation. The line starts with a point in frame 1 and ends with a smooth not straight line in e.g. frame 50. The line has to "run" like in an elect

  • Content Aware unavailable

    I am new to PS and was working on the lasso tool for removing unwanted objects.  I first used the Content Aware in the edit/fill menu but then after experimenting with background as fill, I could no longer access Content Aware.  How can I find that a