How to wear the formhandler query parameter in jsp

I know that its very stupid question, but I don't get a query parameter. I don't know what mistake I make.

Here is my code snippet:

I created a formhandler


LoginFormHandler.java

public boolean handleLogin (request, response DynamoHttpServletResponse DynamoHttpServletRequest)

throws IOException, ServletException {}

Here the value of the user ID is available I checked using DD

request.setParameter ("userId", username);

handleFlag = checkFormRedirect (getCreateSuccessURL (), getCreateFailureURL(), request, response);

in CreateSuccessURL it redirects to LoginSuccess.jsp

LoginSuccess.jsp

< %

DynamoHttpServletRequest drequest = ServletUtil.getDynamoRequest (request);

% >

value: < %=drequest.getParameter("userId") % >

Once that LoginSuccess.jsp the display is showing the value null of userId

Please let me know how to wear the setting the Manager of jsp.

Application settings will be lost in the success page because the formhandler send a redirect to the success page.

It will be new demand for the success page.

As suggested, or you will need to put this in formhandler, or cookie or in the url

Peace

Shaik

Tags: Oracle Applications

Similar Questions

  • How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    WITH cte (col1, col2) AS
    (
    SELECT col1, col2
    FROM dbo. [tb1]
    WHERE col1 = 12
    UNION ALL
    SELECT c.col1, c.col2
    FROM dbo. [tb1] AS c INNER JOIN cte AS p ON c.col2 = p.col1
    )
    DELETE one
    FROM dbo. [tb1] AS an INNER JOIN b cte
    ON a.col1 = b.col1

    Hello
    Something like this maybe:

    DELETE FROM dbo.tb1 a
     WHERE EXISTS (
      SELECT 1
        FROM dbo.tb1 b
      WHERE a.co11 = b.col1
          AND a.col2 = b.col2
       START WITH b.col1 = 12
      CONNECT BY b.col2 = PRIOR b.col1)
    

    Although you need to do here is to check that CONNECT it BY SELECT, returns records you wait first, then the DELETION should work too.

  • How to get the sql query result?

    Hello

    Currently I use LV2012 to connect to an Oracle database server. After the Oracle Express and Oracle ODBC driver facilities/settings made.

    I managed to use the SQL command to query the data through my command prompt window.

    Now the problem is, how to do the same task in Labview using database connectivity tools?

    I have build a VI to query as being attached, but I have no idea of what range to use to get the result of the query.

    Please help me ~ ~

    Here is a piece of code that I use to test the SQL commands, you can use the part that retrieves the results of sql.

    It is also possible to get the rear column headers, but it's for the next lesson!

    ;-)

  • How to avoid the report query needs a unique key to identify each line

    Hello

    How to avoid the error below

    The report query needs a unique key to identify each row. The supplied key cannot be used for this query. Please change the report attributes to define a unique key column.

    I have master-detail tables but without constraints, when I created a query as dept, emp table he gave me above the error.

    Select d.deptno, e.ename

    by d, e emp dept

    where e.deptno = d.deptno

    Thank you and best regards,

    Ashish

    Hi mickael,.

    Work on interactive report?

    You must set the column link (in the attributes report) to something other than "link to display single line." You can set it to 'Exclude the column link' or 'target link to Custom.

  • How to call the &lt; af:query &gt; Search feature by clicking on an image?

    Hi all

    I created a test named and I dragged on my page .jspx as "ADF with Table query Panel. I put the display as 'Simple' Mode in the Properties Inspector, who will hide all the default components of < af:query >. Now I use < af:commandImageLink >. My question is how can I call the < af:query > Search feature when the user clicks on an image? Any suggestion would be appreciated.

    Thank U...

    If you want to invoke af:query search by program button, follow these steps:

    1 Select af:query--> Advanced--> connections and bind it to the back bean

      
    

    2. in the .jspx add af:link like this:

    
              
    
    

    3 - runQuerySearchAction should be like this:

      public String runQuerySearchAction()
      {
        QueryDescriptor queryDescriptor = getRichQuery().getValue();
        QueryEvent queryEvent = new QueryEvent(getRichQuery(), queryDescriptor);
        queryEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
        getRichQuery().queueEvent(queryEvent);
        return null;
      }
    
  • How to use the Date range parameter.

    Dear all,

    In the human resources Module, I developed a leave leave of synthesis report that gathers data from employees on.

    The end user will pass the parameter of date_start and date_end.

    The question is, if an employee only e-123 takes leave of 22 July 2013 to August 10, 2013

    and the user passes the parameter for the month of July date_start = 1 July 2013 "and date_end = July 31, 2013" for the sub condition

    "AND TRUNC (Pab.DATE_START) > =: Date_START - July 1, 2013.

    "AND TRUNC (Pab.DATE_END) < =: Date_END - July 31, 2013.

    Emp E-123 appears in the report.

    But if the user passes the parameter of the month August 1 August 2013 ", 31 August 2013", EMP - 123 does not...

    Please suggest how to write the condition he can for all conditions.

    Kind regards

    Afzal.

    Hello

    OR condition is to be enclosed with parentheses.

    If place you within the parenthesis, then take no time to deal with.

  • How to get the inline query which is drawn from the TAB specific Application.

    Hi all I use 10.2.0.4.0 oracle version.

    I want to capture the sql that is raised in my prod database when an applicaton tab is hit as it takes about 5 minutes for the tab to be loaded. So is it possible, for the inline sql, which is the origin of the problem, directly from the prod environment.

    (Note: I looked through the browser session in PROD DB for the query, but there, I found a lot of meetings and a lot of requests, I do not know how to distinguish the session being created by the specific tab I hit).

    >

    Hello

    I want to capture the sql that is triggered to my database of prod
    When an applicaton tab is hit as it takes about 5 minutes so that the tab
    to be loaded. So is it possible to get the inline sql, which is
    the origin of the problem, directly from the prod environment.

    Please, please tell us that you have a Test environment? Log into that, then run a trace.
    No doubt you can either descend all test for a few miinutes and/or
    easily distinguish sessions on your Test System? That's exactly what the test
    the environments are for.

    The SQL execution will be the same - you can go try to find
    the root cause of the problem.

    HTH,

    Paul...

  • How to make the simple query for this scenario... ?

    Hello:

    Dummy table provided for simplicity.

    It's my database table (Table_A)

    Date1 | Plane1 | Category | Duration | Fees
    01/01/2011 | A | Gold | 5. 2
    01/01/2011 | C | Money | 4. 11
    01/01/2011 | B | Gold | 6. 2
    01/01/2011 | D | Gold | 2. 4
    01/01/2011 | B | Gold | 3. 5
    01/01/2011 | A | Money | 4. 8
    01/01/2011 | B | Gold | 1. 3

    I need to write a query to get the result below:

    Date1 | Plane1 | Sum_Duration | Sum_Charge | Sum_Gold_Duration | Sum_Gold_Charge | Sum_Silver_Duration | Sum_Silver_Charge
    01/01/2011 | A | 9. 10. 5. 2. 4. 8
    01/01/2011 | B | 10. 10. 10. 10. 0 | 0
    01/01/2011 | C | 4. 11. 0 | 0 | 4. 11
    01/01/2011 | D | 2. 4. 2. 4. 0 | 0

    This query will provide the 1st four columns:

    SELECT Date1,
    base1,
    Sum (Duration) Sum_Duration,
    Sum (load) Sum_Charge
    FROM TABLE_A
    GROUP BY date1, rarateplan

    But I need to know how to get the rest of the columns (i.e. Summary according to categories; from 5 to 8 columns)? Is this can be done in a single query without writing subqueries?

    Please let me know, (with code), the best way.

    Thank you-
    Tanvir

    Use like this:

    SELECT Date1,
    base1,
    Sum (Duration) Sum_Duration,
    Sum (load) Sum_Charge,
    SUM (decode(Category,'Gold',duration,0)) Sum_Gold_Duration,
    SUM (decode(Category,'Gold',charge,0)) Sum_Gold_charge,
    SUM (decode(Category,'Silver',duration,0)) Sum_Silver_Duration,
    SUM (decode(Category,'Silver',charge,0)) Sum_Silver_charge
    FROM TABLE_A
    GROUP BY date1, rarateplan

    Published by: SANT007 on August 11, 2011 11:04

  • How to write the select query for it

    Hello

    I had an html form and the area I drop down and he needs to select several values in the drop-down box. When I select multiple values then I have to write the query to SQL select statement.

    When I try to write the select statement and trying to run I get the error message.

    Select * from Table

    where emo_no = '1,2,3 '.

    That's how I write the query please suggest me how to write the query to select several values in the drop-down box.

    Thank you

    Use the keyword sql 'in '.  If you don't know how, I've heard good things about the book Teach Yourself SQL in 10 Minutes by Ben Forta.

  • How to get the SQL query running of af: search?

    I use JDeveloper 11.1.2.3.0. I have a page where I've set up an af:query and an array of result. The problem is that I can't get the exact query that is used during the execution of this component in a managed bean method. Is it possible to get the query string that is run within the af: query?

    Thank you

    Hello

    Method of the ViewObject getQuery() returns what you need;

    You can replace the executeQueryForCollection(), and prior to calling super, you can print the result of getQuery() method:

    public void executeQueryForCollection (rowset Object,

    Object [] params,

    {int noUserParams)

    System.out.println ("SQL =" + getQuery());

    call the super method here...

    }

  • How to clear the search query result set

    I dropped a search with the table query. When I search a value it is the display of the result, but when I click on the reset button, only the query Panel is reset to zero and not the table. What can I do to reset the table component associated with the query?
    When I click on the reset button, only the query panel goes to zero and no table.

    It will be reset nt table.

    What can I do to reset the table component

    Use of the component range reset. to do so.

    http://jobinesh.blogspot.in/2009/10/reset-content-of-Web-page.html
    http://myadfnotebook.blogspot.in/2011/05/making-reset-button-in-afquery.html trickles you want
    http://andrejusb.blogspot.in/2009/09/programmatical-reset-for-query-results.html

    -edited lately

    Published by: ADF7 on February 22, 2012 12:58 AM

  • How to optimize the select query executed in a cursor for loop?

    Hi friends,

    I run the code below and clocked at the same time for each line of code using DBMS_PROFILER.
    CREATE OR REPLACE PROCEDURE TEST
    AS
       p_file_id              NUMBER                                   := 151;
       v_shipper_ind          ah_item.shipper_ind%TYPE;
       v_sales_reserve_ind    ah_item.special_sales_reserve_ind%TYPE;
       v_location_indicator   ah_item.exe_location_ind%TYPE;
    
       CURSOR activity_c
       IS
          SELECT *
            FROM ah_activity_internal
           WHERE status_id = 30
             AND file_id = p_file_id;
    BEGIN
       DBMS_PROFILER.start_profiler ('TEST');
    
       FOR rec IN activity_c
       LOOP
          SELECT DISTINCT shipper_ind, special_sales_reserve_ind, exe_location_ind
                     INTO v_shipper_ind, v_sales_reserve_ind, v_location_indicator
                     FROM ah_item --464000 rows in this table
                    WHERE item_id_edw IN (
                             SELECT item_id_edw
                               FROM ah_item_xref --700000 rows in this table
                              WHERE item_code_cust = rec.item_code_cust
                                AND facility_num IN (
                                       SELECT facility_code
                                         FROM ah_chain_div_facility --17 rows in this table
                                        WHERE chain_id = ah_internal_data_pkg.get_chain_id (p_file_id)
                                          AND div_id = (SELECT div_id
                                                          FROM ah_div --8 rows in this table 
                                                         WHERE division = rec.division)));
       END LOOP;
    
       DBMS_PROFILER.stop_profiler;
    EXCEPTION
       WHEN NO_DATA_FOUND
       THEN
          NULL;
       WHEN TOO_MANY_ROWS
       THEN
          NULL;
    END TEST;
    The SELECT inside the LOOP FOR cursor query took 773 seconds.
    I tried to use COLLECT in BULK instead of a cursor for loop, but it did not help.
    When I took the select query separately and executed with a value of the sample, and then he gave the results in a Flash of a second.

    All tables have primary key index.
    Any ideas what can be done to make this code more efficient?

    Thank you
    Raj.
    DECLARE
      v_chain_id ah_chain_div_facility.chain_id%TYPE := ah_internal_data_pkg.get_chain_id (p_file_id);
    
      CURSOR cur_loop IS
      SELECT * -- better off explicitly specifying columns
      FROM ah_activity_internal aai,
      (SELECT DISTINCT aix.item_code_cust, ad.division, ai.shipper_ind, ai.special_sales_reserve_ind, ai.exe_location_ind
         INTO v_shipper_ind, v_sales_reserve_ind, v_location_indicator
         FROM ah_item ai, ah_item_xref aix, ah_chain_div_facility acdf, ah_div ad
        WHERE ai.item_id_edw = aix.item_id_edw
          AND aix.facility_num = acdf.facility_code
          AND acdf.chain_id = v_chain_id
          AND acdf.div_id = ad.div_id) d
      WHERE aai.status_id = 30
        AND aai.file_id = p_file_id
        AND d.item_code_cust = aai.item_code_cust
        AND d.division = aai.division;         
    
    BEGIN
      FOR rec IN cur_loop LOOP
        ... DO your stuff ...
      END LOOP;
    END;  
    

    Published by: Dave hemming on December 4, 2008 09:17

  • How to run the procedure which parameter is in a single query

    Hi all

    Here's sinario

    create or repalce procedure proc1 (number, number xyz, sys_refcursor Prefcur abc)
    as
    Start
    ...
    ......
    ... do something...


    end;

    front end, all paramertes came as string...

    'proc1 (1,5,Prefcursor).


    now what I do is that I created an another procedure that accept this string as parameter.

    create or replace procedure proc2 (Vpstring varchar2, Prefcursor to sys_refcursor)
    as
    Start

    execute Vpstring;

    end;



    but it gives me error


    Please help me solve this problem.

    any help appriciated

    It looks like a very strange requirement for me.

    Try like this.

    SQL> create or replace procedure p1(a1 number, a2 number, a3 out sys_refcursor)
      2  as
      3  begin
      4     open a3 for select * from dual where a1 = a2;
      5  end;
      6  /
    
    Procedure created.
    
    SQL> create or replace procedure p2(str varchar2, rc out sys_refcursor)
      2  as
      3     lstr varchar2(100);
      4  begin
      5     lstr := 'BEGIN ' || substr(str,1,instr(str,',',1,2))||':1);' ||' END;';
      6
      7     execute immediate lstr using rc;
      8  end;
      9  /
    
    Procedure created.
    
    SQL> var rc refcursor
    SQL> exec p2('p1(1,1,rc)',:rc)
    
    PL/SQL procedure successfully completed.
    
    SQL> print rc
    
    D
    -
    X
    
    SQL> exec p2('p1(1,2,rc)',:rc)
    
    PL/SQL procedure successfully completed.
    
    SQL> print rc
    
    no rows selected
    
    SQL>
    

    Thank you
    Knani.

  • Estimate of the size of the dump file with the export query parameter

    Hi all

    I would like to ask questions about EXPORT utiliy. Can I estimate the size of the dump for export with the parameter file "application"? You can find my syntax exp on below?

    exp scwq/sCwq201 parfile = scw.par

    contents of the scw.par file.

    FILE ='/ u01/EXPDUMP/SCW. DMP ".
    TABLES IS MIMO. WFTRA
    JOURNAL ='/ u01/EXPDUMP/SCW. JOURNAL"
    CONSTRAINTS = NO.
    STATISTICS = NONE
    QUERY = "WHERE (Eurie > 8132560 AND IN (SELECT FROM mimo.objectcfg WHERE oname sobject = 'TICKET')) OR (Eurie > 188872 AND IN (SELECT FROM mimo.objectcfg WHERE objectname sobject = 'WORDER')) '"

    In fact, I know that without query to export file parameter. But I could not find a solution to my question...


    B.R

    Hello
    From what I've seen when you do 'query =' is not taken into account at all when estimating the size of the dumpfile no matter if you use blocks or statistics methods. All I can suggest you do is get the estimated size and then work manually on what percentage of lines you will be back and then just do a simple calculation.

    Kind regards
    Harry

    http://dbaharrison.blogspot.com

  • How to find the sql query generated by BI Publisher

    I'm looking for the physical sql query generated by BEEP when I send parameters as part of the data model.

    Of course, this can be noted in newspapers...

    Can anyone tell me the location of newspapers?

    Thanks in advance

    Have a look here http://gerardnico.com/wiki/dat/bip/log
    I explain a bit how you can get the newspaper.

    See you soon
    Nico

Maybe you are looking for

  • How can I change the background of the history and bookmarks in Firefox 24?

    The blue background by default history and bookmarks framed is too close in color to the gray used to a selected item, once I click on the Web site itself. How can I change so that there is more contrast?

  • Reduced demand XP to install on Windows 7

    I have a request that I installed on XP there are quite a few years. It was an upgrade that requires a "previous" install disk (floppy) and I Can't find that disk more. (I have the CD). The program was so expensive, but it is now about 6 times the pr

  • Program Windows Open Offscreen, XP

    MyComputer is a professional XP. Whenever I open a program or a dialog window opens, most of the time that it opens up out of the screen, Etudieeo I can't see it.  I right click on the item in the taskbar and then click on 'Move' the i press an arrow

  • Is it possible to back up a social site in a file

    Hello I'm on a social site and found that a few friends I have, two of them 'disappeared', I need to know if it's possible for me to this social backup Web site when I asked their friendship again so that I don't "loose" them and I ask them again. Th

  • Phone calls that would have been from Microsoft Windows

    I got a phone call from someone claiming to be Sarah Murray of Microsoft Windows Support. She said that she called because my PC was to make a large number of critical errors, which it might well be. She said she called 16 Hanover Street London and g