How to transfter data from one page to another one

Hi everybody,
I have got a page index.jsp which includes menswear button, chirldrenswear button and womenswear button, but user click one of them , it will go to another page called display.jsp to display all products information, if button mensware is clicked , it will display menswear, childrenswear clicked to display childrenswear. I
I want to do this way : >/display?ID=menswear< or id is integer
and in display.jsp, it will get ID and use it to get the menswear from database. But I dont know how to do in JSP, Thanks in advanced

Let's say for simplicity's sake, you have them as links on images...
<img src="mens.gif" border="0" alt="Menswear" />
<img src="womens.gif" border="0" alt="Womenswear" />
<img src="childrens.gif" border="0" alt="Childrenswear" />
Then in the display.jsp page, to read the ID:
String id = request.getParameter("ID");
or
int id = Integer.parseInt(request.getParameter("ID"));

Similar Messages

  • How to move a file from a page to another one in a wiki?

    Is it possible to move a file from a page to another one in a wiki (wiki server 4)?

    Files uploaded via "+" button and "Upload File to "My wiki name"" can be moved just like normal wiki pages by clicking the "sprocket" button and selecting "Move to Wiki"
    Fils attached via the "paperclip" button when editing a page, must be downloaded first, deleted from the initial page and reattached to the new page.

  • Problems when copying item from a page to another one

    I am copying a value of an item, from a page to another one in branch, and it cuts the value to me in ' : '
    ej: item a = 08:00 Hs
    item b = 08
    thanks
    Juan Pablo

    I had to deal with the same thing and I know at least two solutions - one is "dirty" and the other one is a "clean":
    1. dirty - replace ':' (colon) with ';' (semicolon) and pass that value using URL. On the page, where your item(s) is, create a computation using REPLACE(P1_ITEM, ';', ':') on load and before header.
    2. clean - as Scott says and it works in many cases - pass only a primary key and a request to your target page and create there a procedure to fetch the values you need and populate the items
    If you use the documentation and search on keywords "COMPUTATION" and "REQUEST", you will find a lot of usefull information.
    Denes Kubicek

  • How to transfer data from an IFrame to another page

    Hi,
    I had a search page with a search selection and an interactive report region for the result.
    Then, via a button, I submitted the data from the search results to another page (plsql process).
    Now we have changed that and the interactive report with the results is located in an own page, this page is 'embedded' in my old Search page within an IFrame.
    If I want to use the button to transfer the data --> no data is transferred. I guess this is because the button and the process is not on the new page but in the old search page.
    How should I handle that now? Any suggestions are appreciated!
    Thank you!
    BR
    Lena

    Hi,
    You could try moving the process to the report page and have a hidden button on the page as well. Your existing button could call some javascript that does something like:
    document.frames("iframe_ID").document.doSubmit("report_page_button_name");I don't use IFRAMEs myself any more as some functionality is not available "for security reasons" in javascript, so the above is just a theory!
    Andy

  • How to get data from BW Cube to Another File system?

    Hi,
    I have a requirement to get the sales data from BW system(infoCube) to another file system as XML file using XI as a middleware. Can anybody give the suggestions on this please?
    Thanks & Regards,
    Satish

    Take a look at the following document. You will get a fair idea how to integrate BW and XI.
    BW > XI
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/integrate bw via xi.pdf
    XI> BW
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how to push data into bw from xi.pdf
    regards
    SKM

  • How can I jump from a portlet to another one in other page?

    Hi
    I'm doing a tasks list porltet, when the user makes a click over a task, the user
    has to see another porlet in other page. How can I activate a porlet residing
    in other page?
    Thanks for All

    In all portal versions you need to add the pageLabel param to the URL and the application
    automatically go the good page (for synthax look at the URL in the browser)
    For exemple in portal 8.1 using the bea tags add the following link in the jsp
    of the portlet one : go
    to the second portlet page
    You can also use a form instead just add the "_pageLabel" param to the form using
    directly
    an <input> tag not a <netui:param> tag that would prefix your parameter with the
    current portlet instance label.
    We did it for our project and it works.
    "David Uribe" <[email protected]> wrote:
    >
    Hi
    I'm doing a tasks list porltet, when the user makes a click over a task,
    the user
    has to see another porlet in other page. How can I activate a porlet
    residing
    in other page?
    Thanks for All

  • Programming logic, passing data from a page to another

    Hi,
    I just began with developing with APEX 4.1.1, and I think I don't get how I should use it efficiently, I am more used to C-like programming.
    I have a table which contains the state of some electricity meters taken at some non-regularly spaced dates. I want to make a chart of the electricity consumption, e.g for each month. This (I think) implies that the application must do that (I used this logic for the same application made with php and sqlite and it worked):
    - User chooses a meter
    - Application tells him the available range of dates and the mean interval between measurements
    - User chooses the range of dates and the interval
    - Application verifies that the range of dates is valid (not outside the real data)
    - Interpolate the state of the meters at the requested regular interval
    - Calculate the consumption for each interval (simply a difference)
    - Draw the chart
    For now, I created some procedures which should pass a custom data type containing all the meta-data about the chart and a PL/SQL table containing the actual data to be charted, but I'm stuck at the point of interacting with the user (meaning writing the output of the procedures on a page and passing them to the next procedure and also charting that pl/sql table).
    Maybe should I create a temporary table ? But of what I read, this is a "real" table stored on the disk, and I just need this data once (and it is a small dataset, at most 20 points or so) for drawing a chart. This table should also be specific to the chart currently being created, it could happen that the same user or different users make multiple charts at the same time (like in two firefox tabs).
    I hope my post is not too confused..
    Ben

    940065 wrote:
    Hi,
    I just began with developing with APEX 4.1.1, and I think I don't get how I should use it efficiently, I am more used to C-like programming.Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "940065".
    APEX is intended for the development of database centric applications. It's a physical implementation of Tom Kyte's philosophy of database application development&mdash;possibly replacing Java with JavaScript ;-) .
    To use it efficiently you need to stop thinking procedurally in C-like terms and think in terms of the set operations that SQL uses effectively.
    I have a table which contains the state of some electricity meters taken at some non-regularly spaced dates. I want to make a chart of the electricity consumption, e.g for each month. This (I think) implies that the application must do that (I used this logic for the same application made with php and sqlite and it worked):
    - User chooses a meter
    - Application tells him the available range of dates and the mean interval between measurements
    - User chooses the range of dates and the interval
    - Application verifies that the range of dates is valid (not outside the real data)
    - Interpolate the state of the meters at the requested regular interval
    - Calculate the consumption for each interval (simply a difference)
    - Draw the chart
    For now, I created some procedures which should pass a custom data type containing all the meta-data about the chart and a PL/SQL table containing the actual data to be charted,
    but I'm stuck at the point of interacting with the user (meaning writing the output of the procedures on a page and passing them to the next procedure and also charting that pl/sql table).It seems that you don't really get APEX yet: have you read the introductory documentation and taken the <i>Oracle® Database 2 Day + Application Express Developer's Guide</i> tutorial in order to understand basic APEX techniques and terminology?
    You should be aiming to collect and validate the required parameters in APEX session state values and use the built-in charting capability with SQL data sources that use these parameter values in query predicates.
    If you really can't generate the chart series from queries run on the original table, generate the chart data using an APEX collection rather than a "PL/SQL table" (preferred terminology is "collection type", but it's even better to specifically say "associative array", "nested table" or "varying array") or temporary database table.
    Maybe should I create a temporary table ? But of what I read, this is a "real" table stored on the disk, and I just need this data once (and it is a small dataset, at most 20 points or so) for drawing a chart. This table should also be specific to the chart currently being created, it could happen that the same user or different users make multiple charts at the same time (like in two firefox tabs).Temporary tables are rarely required in any Oracle application, but standard Oracle Global Temporary Tables are database-session specific and so have no concurrency issues. However there are issues when using them in APEX, so APEX collections are the preferred method for temporary, session-based storage.

  • How can transfer data from a dialog to another panel?

    Will anyone help me?Thanks.
    In our project,When the user need to fill some data into the textfield in a panel,he can simplify this action by click a button,when the button is clicked,then a dialog which contains a table of all the imformation of all customers will show,then the user can select one customer's information from the table,after click a button such as "OK",the selected information will show in corresponding textfiled in another panel.Because the dialog and the panel are two
    different object,so how can I transfer the data selected from the dialog to the panel and show the updated information timely??

    try this program. it exchanges some data between s adialog and a frame.
    akz
    * @version 1.20 01 Sep 1998
    * @author Cay Horstmann
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DataExchangeTest extends JFrame
    implements ActionListener
    {  public DataExchangeTest()
    {  setTitle("DataExchangeTest");
    setSize(300, 300);
    JMenuBar mbar = new JMenuBar();
    setJMenuBar(mbar);
    JMenu fileMenu = new JMenu("File");
    mbar.add(fileMenu);
    connectItem = new JMenuItem("Connect");
    connectItem.addActionListener(this);
    fileMenu.add(connectItem);
    exitItem = new JMenuItem("Exit");
    exitItem.addActionListener(this);
    fileMenu.add(exitItem);
    public void actionPerformed(ActionEvent evt)
    {  Object source = evt.getSource();
    if (source == connectItem)
    {  ConnectInfo transfer= new ConnectInfo("yourname", "pw");
    if (dialog == null)
    dialog = new ConnectDialog(this);
    if (dialog.showDialog(transfer))
    {  String uname = transfer.username;
    String pwd = transfer.password;
    Container contentPane = getContentPane();
    contentPane.add(new JLabel("username=" + uname + ", password=" + pwd),"South");
    validate();
    else if(source == exitItem)
    System.exit(0);
    public static void main(String[] args)
    {  JFrame f = new DataExchangeTest();
    f.show();
    private ConnectDialog dialog = null;
    private JMenuItem connectItem;
    private JMenuItem exitItem;
    class ConnectInfo
    {  public String username;
    public String password;
    public ConnectInfo(String u, String p)
    { username = u; password = p; }
    class ConnectDialog extends JDialog implements ActionListener
    {  public ConnectDialog(JFrame parent)
    {  super(parent, "Connect", true);
    Container contentPane = getContentPane();
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(2, 2));
    p1.add(new JLabel("User name:"));
    p1.add(username = new JTextField(""));
    p1.add(new JLabel("Password:"));
    p1.add(password = new JPasswordField(""));
    contentPane.add("Center", p1);
    Panel p2 = new Panel();
    okButton = addButton(p2, "Ok");
    cancelButton = addButton(p2, "Cancel");
    contentPane.add("South", p2);
    setSize(240, 120);
         //custom method to create and buttons to a container
    JButton addButton(Container c, String name)
    {  JButton button = new JButton(name);
    button.addActionListener(this);
    c.add(button);
    return button;
    public void actionPerformed(ActionEvent evt)
    {  Object source = evt.getSource();
    if(source == okButton)
    {  ok = true;
    setVisible(false);
    else if (source == cancelButton)
    setVisible(false);
    public boolean showDialog(ConnectInfo transfer)
    {  username.setText(transfer.username);
    password.setText(transfer.password);
    ok = false;
    show();
    if (ok)
    {  transfer.username = username.getText();
    transfer.password = password.getText();
    return ok;
    private JTextField username;
    private JTextField password;
    private boolean ok;
    private JButton okButton;
    private JButton cancelButton;

  • How to read data from select Options in another view without using context

    I have 2 views, one for selection screen and another for displaying result.
    In selection screen view I have define a select options with the help of webdynpro component.
    Now my object is display result in result view based on entry of selection screen.
    I don't want to do binding in context node, without that how I can read data of select option
    in result view?
    Regards,
    Rasmi Ranjan Mishra

    Solve by own.
    If I define the Select options in component controller, then it will be global in nature. so i can get the value of select options
    in another view also.
    Regards,
    Rasmi Ranjan Mishra

  • How to clear data from XY graph for another trial

    I have a XY graph of motor counts versus  intensity. I used shift registers for building Array VI. After terminating the program once using stop terminal. And I cleared the graph. When I start taking measurement second time, same data repeats before the first one. So how can  clear it. Please reply 
    Solved!
    Go to Solution.

    That's one very quick way of doing it : initialize your shift registers.
    What happens in your VI is that after the VI stops (when you clic the stop button) the data that is in the shift registers (your X and Y arrays) stays in memory, so if you run again the VI it will add data into those arrays.
    To initialize your shift registers you need to connect en empty array to them before the while loop. Like this :
    hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • How to get data from a DSO to another

    Hi!
    I have two DSO created:
    DSO_1
    DSO_2
    DSO_2 contains values that I need to transfer over to DSO 1 without any direct connection through a transformation.
    These are the field in DSO 1:
    CALL_ID
    REQ_ID
    REQ_DURATION
    These are the field in DSO 2:
    REQ_ID
    DURATION
    When the REQ_ID are the same in both DSO's, i need the value in DURATION (DSO_2) to transfer over to the Infoonbject called "REQ_DURATION" (DSO_1).
    Can anyone help me, please? Is this a "bad" way of doing ut (both DSO contains about 70000 records). Is it easier just to make a transformation from DSO_2 to DSO_1, and make a routine when transfering?

    Hi Helge,
    Below is the Code,modify this as per your requirement !!!!!!!!!!
    Declarations
    $$ begin of global - insert your declaration only below this line  -
      TYPES : BEGIN OF TY_DSO1,
                   REQ_DURATION TYPE DSO1-REQ_DURATION,
                   REQ_DURATION TYPE    DSO1-REQ_DURATION
                   REQ_ID TYPE DSO1-REQ_ID,
                   END OF TY_DSO1.
       DATA  :   IT_TEST    TYPE STANDARD TABLE OF TY_DSO1,
                      WA_TEST    TYPE TY_DSO1.
    $$ begin of routine - insert your code only below this line        *-
    Start Routines
        IF SOURCE_PACKAGE[] IS NOT INITIAL.
          SELECT    /BIC/DURATION
                     INTO CORRESPONDING FIELDS OF TABLE IT_TEST
                      FROM u201CDSO2u201D
                      FOR ALL ENTRIES IN SOURCE_PACKAGE
                      WHERE REQ_ID = SOURCE_PACKAGE-REQ_ID.
        ENDIF.
        IF NOT IT_TEST IS INITIAL.
          SORT IT_TEST BY REQ_ID.
        ENDIF.
    Transfer ROutine
    Source Field = DURATION
    Target Field = REQ_DURATION
        READ TABLE IT_TEST INTO WA_TEST WITH KEY REQ_ID =
        SOURCE_FIELDS-REQ_ID
        BINARY SEARCH.
        IF SY-SUBRC = 0.
          RESULT = WA_TEST-DURATION.
        ENDIF.
    The field Request_duration will be updated with Duration when req ID are same for both DSO's.
    You may have to change the code a bit.
    Rgds
    SVU123

  • How to move data from 2 internal table to 1 internal table

    Can any body send me code that how to move data from 2 internal table into one internal table.
    Moderator message : Read ABAP documentation. Thread locked.
    Edited by: Vinod Kumar on Jun 13, 2011 11:45 AM

    Hi Mohdarif92;
    I don't know your full needs. But general method should be as below code.
    Please check exam below code.
    Best regards.
    data : begin of gt_result.
                ... like mkpf-...
                ... like mkpf-...
                ... like mseg-...
                ... like mseg-...
              end of gt_result
    select *
    into table gt_mkpf
    from mkpf where ...
    select *
    into table mseg
    from mseg where ...
    loop at gt_mkpf.
         loop at gt_mseg where ... = mkpf-...
            move-corresponding gt_mkpf to gt_result.
            move-corresponding gt_mseg to gt_result.
            append gt_result
         endloop.
    endloop.

  • Internal table one page to another?

    Hi, shall we transfer internal table data of one page into another page?
    I am passing the variables, but interal table data is not shown? Is there any procedure to send data from obe page to another page?
    Thanks & Regards,
    Dhanunjay

    Its not good idea to pass the table via Navigation object.
    You can do this with the navigation object only if the table is very small. Overwise your URL will overflow
    Alternative ideas is to use server side cookies.
    cl_bsp_server_side_cookie=>set_server_cookie
    cl_bsp_server_side_cookie=>get_server_cookie
    If your BSP application is stateful & if you are using Application class then store the data in Application class so that it will be available to entire BSP Application.
    <b>*Reward each useful answer</b>
    Raja T

  • How to handle the date attribute,passing parameter from one page to another

    hi Friends,
    i want to pass data attribute from one page to another page-
    i am passing like below ,in jdev log window i am getting below error.
    String StatusUpdateDate = row.getAttribute("StatusUpdateDate");
    params.put("StatusUpdateDate",StatusUpdateDate)
    Error(121,50): incompatible types; found: java.lang.Object, required: java.lang.String
    Suppose i am passing like below , while moving one page to another i am getting below error in application
    String StatusUpdateDate = row.getAttribute("StatusUpdateDate").toString()
    Status Update Date - JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:26-MAR-2009
    please can any suggest me how to handle this error.
    Thanks and Regards,
    vamshi

    Hi Pratap, Thanks for your help
    it was my mistake that previously property it was varchar2, now i have changed as you suggested every thing. still i am getting error. this is my code-
    AM CODE-
    public void xxselection(String Name, String Email,String Product,String Region, DATE StatusUpdateDate)
    DetailVOImpl vo1=getDetailVO1();
    vo1.initQuery2(Name);
    Row detailRow = vo1.createRow();
    detailRow.setAttribute("Name", Name);
    detailRow.setAttribute("Email", Email);
    detailRow.setAttribute("Product", Product);
    detailRow.setAttribute("Region", Region);
    detailRow.setAttribute("StatusUpdateDate", StatusUpdateDate);
    vo1.last();
    vo1.next();
    vo1.insertRow(detailRow);
    detailRow.setNewRowState(Row.STATUS_INITIALIZED);
    Controller- Process Form Request- Source page
    if (pageContext.getParameter("Detail")!= null)
    String Name=row.getAttribute("Name").toString();
    String Email=row.getAttribute("Email").toString();
    String Product=row.getAttribute("Product").toString();
    String Region=row.getAttribute("Region").toString();
    DATE StatusUpdateDate =(DATE)row.getAttribute("StatusUpdateDate");
    HashMap params =new HashMap();
    params.put(" Name", Name);
    params.put("Email",Email);
    params.put("Product",Product);
    params.put("Region",Region);
    pageContext.putTransactionTransientValue("StatusUpdateDate",StatusUpdateDate); //As you suggested
    pageContext.forwardImmediately("OA.jsp?page=/xxm/oracle/apps/pos/stg/webui/DetailStagePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    another page Controller-Process request-Destination page-
    String Name = pageContext.getParameter("Name");
    String Email = pageContext.getParameter(" Email");
    String Product = pageContext.getParameter("Product");
    String Region = pageContext.getParameter("Region");
    DATE StatusUpdateDate=(DATE)pageContext.getTransactionTransientValue("StatusUpdateDate");
    Timestamp tstmpStatusDate=StatusUpdateDate.timestampValue();
    System.out.println("tstmpStatusDate"+tstmpStatusDate);
    Serializable[] parameters1 = {Name,Email,Product,Region,tstmpStatusDate};
    am.invokeMethod("xxselection", parameters1);
    Error - getting at while running the application page to page
    No method with signature - No method with signature - xxselection(class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String)
    every thing is getting passed except DATE Attribute, please check the code and update me
    Thanks in Advace-
    vamshi

  • How do i move an app from one page to another

    how do i move an app from one page to another? When I upgraded to the latest software on my 4s, the camera went to the last page rather than remaining on the home page

    What Rudegar says is true, but it's a lot easier to rearrange icons in iTunes:
    Connect your phone and open iTunes. 
    Click on the Apps tab. 
    You will see your home screen in the main window, with the other screens in a scrollable column on the right. Scroll down and click on the last page to put it in main window. 
    Now scroll the column so the home page is visible on the right.
    Click on the Camera and drag it onto the home page at the right. 
    Be careful not to accidentally insert it into another app, thereby creating a group.

Maybe you are looking for

  • Can I "delete" channels so I don't have to flip through them?

    On Comcast I could delete certain channels from my line up - like all the news, religious and foreign-language stations.  Verizon has 10x more of these channels and sometimes I just like to flip through the channels.  Is there a way to delete them so

  • Build usuccessful in LV8.0.1 and Report generation toolkit 1.1.1

    I am trying to build an executable. I had included _wordsub.llb and _exclsub.llb as dynamic VIs. This message is all what I get and no executable is created. The file already exists in the destination. C:\Program Files\National Instruments\LabVIEW 8.

  • Need to disable download in firefox, so i can use my download manager

    i want to save download links to my download manager, but firefox downloader is the only option i get

  • Writing server proxy in SAP BW

    Hi Experts,    I am new to SAP BW. I have one below requirement Third party ==> SAP PI ( JAVA STACK) 7.4 ==> SAP BW We are writing a server proxy in BW. Data from SAP PI will be sent across to SAP BW i.e. to data source. We have already got the DataS

  • How to persist change in finder sidebar width?

    Hello guys, I want to persist change in finder sidebar width once I change it. Now what happens is that I drag to resize then go to view->show view options->Use as defaults but next time I create a new folder, it resizes to wrong setting again. I eve