How to set dynamic path in forwards action

Hi All,
i have a requirement to set my path dynamically in forward action
suppose i have
@Jpf.Action(forwards = { @Jpf.Forward(name = "success1", path =  "/output1.jsp") })
     public Forward testIpc1() {
          Forward forward = new Forward("success1");
          System.out.println("IN PageflowportletController :: testIpc1() method called");
          return forward;
Here the path="/output1.jsp" is hardcoded.is there any way to set the path dynamically in forwards action
@Jpf.Action(forwards = { @Jpf.Forward(name = "success1", path =  dynamic_path) })
how do i get the dynamic path set in my forwards action.
Suggestions provided would be really helpful
Thanks,
Deepak

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

Similar Messages

  • How to set dynamic parameter in list of values in parameter property

    Hi,
    I am using cr4e-all-in-one-win_2.0.1version.I have created .rpt file in that how to set dynamic parameters(from database) in list of values parameter property
    Regards,
    amol

    Hi,
    I am using cr4e-all-in-one-win_2.0.1version.I have created .rpt file in that how to set dynamic parameters(from database) in list of values parameter property
    Regards,
    amol

  • How to set the PATH in Terminal?

    As a newbie to Bash and the Terminal, in connection with installing a new version of Ruby and various add-ons, I have been messing around with changing the PATH via various methods I've found on the internet, and trying to add a new directory to my PATH. Unfortunately, I cannot figure out how to set the PATH correctly. Here is what I understand so far:
    1. Bash first looks to ".bash_profile" in the home directory for PATH settings.
    2. If none, Bash then looks to ".bash_login" for PATH settings.
    3. If none, Bash then looks to ".profile".
    4. If none, Bash then looks to a system file in "/etc/profile" for default PATH settings.
    5. For a new shell after login, Bash looks for a ".bashrc" file.
    I cannot find any of the above files (I have Finder set to show hidden files already). Somehow, following some instructions from the internet without really knowing what I was doing over the past week I have set my PATH as follows:
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/*****/src:/usr/X11/bin
    but I cannot find the file that is setting this PATH. I have tried creating a new ".bash_profile" shell file and putting it in various places such as "/bin" and "/usr/bin" but the file is not being read.
    * As a temporary workaround I tried using the command "source .bash_profile" upon login to set the PATH using the .bash_profile file that I created, but it does not work.
    * I am able to temporarily alter the path using the command "PATH=/usr/local/bin:$PATH" but this only lasts for an active shell; when I close out and reopen a new shell, it reverts to the default.
    So my questions are:
    Is it correct that there is a "/etc/profile" somewhere that is setting the default PATH? If so where is it? Should I alter it, or create a new ".bash_profile" somewhere to set the PATH? If not, where is my PATH being set? If I should create a new ".bash_profile", what exactly should go in it?
    Thanks in advance for any assistance.

    ... I created a new ".bash_profile" file directly under my home directory and it worked like a charm. Below is the content of the file:
    "PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/"
    What are the "..."'s? Is that just you, or is the contents of the file actually inside of double quotes?
    is there an 'export PATH' also in the file? As in
    PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/
    export PATH
    And did you either restart your Terminal session so your .bash_profile was read, or issue a 'source .bash_profile' command to execute the .bash_profile after your change?
    The only remaining problem is that from the home directory, I'm unable to directly run programs in the above-designated subdirectories (without first navigating to the subdirectory containing the file. Is there something wrong with the syntax or order of the directories I put in the path?
    For example: there is a file called "newprogram.rb" in the "Ruby" directory listed above. I should be able to execute it from the home directory using "ruby newprogram.rb" but it does not work. The same command works fine from within the "Ruby" directory.
    Does the 'ruby' command search PATH to find its scripts?
    Have you read the "man ruby" man page to see if it talks about PATH?
    A common Unix feature is that programs and scripts with the executable bit set, and are located in a PATH directory, will be run if you just type their names.
    For example, if the first line of newprogram.rb script starts with
    #!/usr/bin/ruby
    and if the script is executable
    chmod +x newprogram.rb
    And if it is in a directory in PATH, then just typing
    newprogram.rb
    should run your perl script using /usr/bin/ruby. If you want to use a different version of Ruby, then change the #! line so it point to your version of Ruby. Or if your version of Ruby is found earlier in PATH then the /usr/bin/ruby, you can use
    #!/usr/bin/env ruby
    as your script's first line which will search PATH for 'ruby' and use the first one it finds.
    Message was edited by: BobHarris

  • How to set the path variable on Windows ME?

    I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.

    Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.

  • How to set dynamic color , based on xml element

    Hi,
    We have a requirement, where based on certain conditions, a cell will be shown in a specific color. We would like the coloir to be based on an XML element. The xml element will have values like '#FF00FF' etc..
    We tried using xsl attribute with the following syntax ,
    <xsl:attribute xdofo:ctx="block"name="color"><?stdcolor?></xsl:attribute><?end if?>
    where stdcolor is the xml element, but when we use this , this is giving a syntax error.
    Let us know, if this is possible or is there any other alternate way to do this.
    Regards,
    - Vasu -

    Hi Vasu,
    http://winrichman.blogspot.com/2008/09/how-to-set-dynamic-color-based-on-xml.html
    use the following :)
    <xsl:attribute xdofo:ctx="block" name="color" ><xsl:value-of select="stdcolor" /></xsl:attribute>
    TO get the colors you wanted , you can refer to
    http://www.w3schools.com/Html/html_colors.asp

  • How to set dynamic file path in LSMW

    I am working on LSMW  object to upload say excel file from my desktop.. if someone runs my lsmw application on their system obviously it fails.. is there way where I can dynamically set the path..I mean whomsoever runs the application it picks the file from their location and execute the program.

    hi,,,
    change your code accordingly
    here i am  inserting data into ztable from excel .
    *& Report  ZBI_UPLOAD_DATA_MAST                                             *
    REPORT  zbi_upload_data_mast                        .
    DATA : it_tab TYPE filetable,
           gd_subrc TYPE i.
    TYPES : BEGIN OF wa_wrkctr,
            fictr TYPE zbi_fictr_mast-fictr,
            prctr TYPE zbi_fictr_mast-prctr,
            type TYPE zbi_fictr_mast-type,
            END OF wa_wrkctr.
    DATA : wa_save TYPE zbi_fictr_mast.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '1',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    DATA : it_datatab TYPE STANDARD TABLE OF wa_wrkctr WITH HEADER LINE INITIAL SIZE 0.
          it_phy_data TYPE STANDARD TABLE OF wa_energy WITH HEADER LINE INITIAL SIZE 0.
    *data : w_current_inv_no(5) TYPE n,
          w_pop_up_text LIKE  wfcsr_ui_popup_text.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_file LIKE rlgrap-filename OBLIGATORY
                 DEFAULT 'C:\Physical Stock.xls'  .
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Select File Name'
          default_extension       = '*.xls'
          default_filename        = '*.xls'
          file_filter             = '*.xls'
          initial_directory       = 'c:\'
       MULTISELECTION          =
       WITH_ENCODING           =
        CHANGING
          file_table              = it_tab
          rc                      = gd_subrc.
       USER_ACTION             =
       FILE_ENCODING           =
    EXCEPTIONS
       FILE_OPEN_DIALOG_FAILED = 1
       CNTL_ERROR              = 2
       ERROR_NO_GUI            = 3
       NOT_SUPPORTED_BY_GUI    = 4
       others                  = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        READ TABLE it_tab INTO p_file INDEX 1.
      ENDIF.
    START-OF-SELECTION.
    START-OF-SELECTION.
      PERFORM upload_excel_file TABLES   it_datatab
                                 USING   p_file
                                         gd_scol
                                         gd_srow
                                         gd_ecol
                                         gd_erow.
    PERFORM eventtab_build CHANGING lt_eventtab.
    PERFORM display_data.
    *&      Form  UPLOAD_EXCEL_FILE
          text
         -->P_IT_DATATAB  text
         -->P_P_FILE  text
         -->P_GD_SCOL  text
         -->P_GD_SROW  text
         -->P_GD_ECOL  text
         -->P_GD_EROW  text
    FORM upload_excel_file  TABLES   p_it_datatab
                            USING    p_file
                                     p_scol
                                     p_srow
                                     p_ecol
                                     p_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
    Has the following format:
                Row number   | Colum Number   |   Value
         i.e.     1                 1             Name1
                  2                 1             Joe
      DATA : ld_index TYPE i.
      FIELD-SYMBOLS : <fs>.
    Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = p_scol
          i_begin_row             = p_srow
          i_end_col               = p_ecol
          i_end_row               = p_erow
        TABLES
          intern                  = lt_intern
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'Error Uploading file'.
        EXIT.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
          MOVE lt_intern-col TO ld_index.
          ASSIGN COMPONENT ld_index OF STRUCTURE it_datatab TO <fs>.
          MOVE lt_intern-value TO <fs>.
          AT END OF row.
            APPEND it_datatab.
            CLEAR it_datatab.
          ENDAT.
        ENDLOOP.
      ENDIF.
      IF it_datatab[] IS NOT INITIAL.
        DELETE FROM zbi_fictr_mast.
        COMMIT WORK.
        LOOP AT it_datatab.
          wa_save-fictr = it_datatab-fictr.
          wa_save-prctr = it_datatab-prctr.
          wa_save-type  = it_datatab-type.
          INSERT INTO zbi_fictr_mast VALUES wa_save.
          IF sy-subrc = 0.
            COMMIT WORK.
            MESSAGE 'Data upload complete' TYPE 'S'.
          ENDIF.
          CLEAR wa_save.
          CLEAR it_datatab.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " UPLOAD_EXCEL_FILE
    i hope this will help .
    Regards
    Deepak

  • How to set dynamic where clause in ADF?

    Hi,
    I have a View object called BillInfoVO. This has
    all the information about who created the request, the time , status etc.,
    I need to display this VO in a jsp. But before I display, i need to fileter this
    VO results with different where clauses according to the role of the user.
    For example, if the role is admin, then
    where clause should be 'status = 'Completed, and created by = 'Current user'
    If the role is requestor, then
    the where clause should be
    sales manager id = 'Current user' and
    Status != Complete etc.,
    Could any one please let me know how I can
    dynamically set the where clause to filter the appropirate
    result row set in the jsp?
    Your help will be greatly appreciated.
    Thanks,
    venki

    You'll create a service method in your AM that will use the setWhereClause method of a viewobject.
    Then you'll expose it as a client method.
    Then you'll drag it from your data-control onto a button in your JSF page that will call your page for the query.
    More about service methods here:
    http://download.oracle.com/docs/html/B25947_01/bcservices003.htm#sm0206
    http://download.oracle.com/docs/html/B25947_01/bcquerying008.htm#sthref286

  • How to set class path for mysql

    hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java and run java abc.
    when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.

    hai, I have been trying to make a java program read
    from mysql database. but i don't know how to set the
    class path for mysql-connector-java-5_1_.0.6-bin. i
    set the class path in system variable as C:\Program
    Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-jav
    a-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java
    and run java abc.
    when run it come out error
    java.lang.ClassNotFoundException:
    com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
    Goto properties->advanced->environment variables.
    Look for 'classpath' under system variable.
    Select it and click edit.
    put ';' and path of the mysql connector jar at the end
    suppose if u have jar file under d:/driver/mysqlconnector.jar
    thn put this value in variable value text box
    ;d:/driver/mysqlconnector.jar
    or simply put ur driver jar file in jre/lib/ext folder
    D:\j2sdk1.4.2_03\jre\lib\ext
    [Servlet tutorial|http://www.jsptube.com]

  • How to set dynamic relevance in biee admin tool?

    Source: essbase cube
    purpose: realize dynamic relevance prompt in answer,
    For example: I have measure(price,sales quantity), dimension(city, product name), 'city' and 'product name' set as prompt, when I choose one city, the product prompt should only display the product name which the city sells, how to set it in admin tool? any idea will be welcome.

    Source: essbase cube
    purpose: realize dynamic relevance prompt in answer,
    For example: I have measure(price,sales quantity), dimension(city, product name), 'city' and 'product name' set as prompt, when I choose one city, the product prompt should only display the product name which the city sells, how to set it in admin tool? any idea will be welcome.

  • How to set dynamic name of the mail attachment according to source file ?

    Hi,gurus:
    Our scenario is like below:
    Sending files from an FTP server to another FTP server without using the integraiton repositary,and the file name is not changed .Now, we want to also send the file to some with by mail adapter.The scenario  now works by using two business services in receiver determination.But the name of the attachment is "untitled.xml".We know how to set the file name staticly,but how to set the name dynamicly according to the source file name ?
    I have checked miachel's blog "XI: Dynamic name in the mail attachment - pseudo "variable substitution"(/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution),but how can I get the source file name?
    And another question:Must we restart the adapter or j2ee engine to make the user defined module work?

    Hi,
    >>>but how can I get the source file name?
    form dynamicconfiguration (ASMA)
    >>>And another question:Must we restart the adapter or j2ee engine to make the user defined module work?
    no need for a restart
    Regards,
    Michal Krawczyk

  • How to set local path for load library

    Hi,
    How do i set local path for native dll as i dont want to set the path in the environment variable.
    can i do like this
    System.loadLibrary("c:\abc");
    Thanks

    I believe that System.load() does exactly the same thing, but accepts fully qualified filenames. So give that a try.
    Failing that.... maybe you can add -Djava.library.path=
    to your command line to explicitely override the path set ?
    regards,
    Owen

  • How to set up domain mail forwarding

    Greeting gurus.
    I am a BT Business Broadband custome and BT also host my domain.
    I am terminating my Boradband service next week but the domain is not for renewal until 2012.
    I have trying to find how to set  up mail forwarding for the domain.
    I would like all mail addressed to [email protected] -> [email protected]
    Replies can then be sent from the appropriate domain.
    The reason is that mydomain.com is effectively being mothballed, but I wish to ensure that any mail does not just get lost.
    I am on the support line but wanted to know if anyone can help me quicker.
    thanks.
    ps: this is my first post so be gentle with me!

    The business forums would be a better place for this.
    http://business.forums.bt.com/
    I've not hosted a domain with BT, but all the other domain registration/hosting companies I've used have a browser based control panel where these things are configured.
    You say the domain is being mothballed. You'll have to continue with the registration though, and BT claim to offer email with all domain registrations, so why not just carry on as you are ?

  • How to set Dynamic value to context variable

    hi all
    Can anyone suggest me how to change value of context variable.
    In short i need to set dynamic value to context variable
    here is my code in web.xml
    *<context-param>*
    *<param-name>sessionTimeOutValue</param-name>*
    *<param-value>200</param-value>*
    *</context-param>*

    ChintanPatel wrote:
    here is my code in web.xml
    *<context-param>*
    *<param-name>sessionTimeOutValue</param-name>*
    *<param-value>200</param-value>*
    *</context-param>*You can set the session time using httpsession.setmaxinactiveinterval

  • How to set dynamic table name in sql query?

    I want set dynamic table name by parameter in sql query,just like:
    select * from :tbname
    but run report is error,BI P report table name is invalidation.
    What can i do? Thanks!

    Hi,
    that's only possible inside a data template with a lexical parameter.
    Regards
    Rainer

  • How to set dynamic date in variant

    Hi,
    I'm going to create a variant for report RBDAPP01, I want to set the create on date dynamically, create on from should be one day before current day, to should be currently day, how to create this variant?

    Hi Rakesh,
    As sekhar explained, select options using F4 on date selection.
    There will be options like current date - days , current days + days , first day of current month, last date of current month like vise.
    Eg. Time evaluation should be run for 3 month back with ref to current date.
    Hence, select current date - days option using F4. Then system will ask for days. There we provided 90 days (3 Months).
    So if current date is 07/09/2014 then system will run from 7/6/2014 ( 90 Days ).
    Hope this will clear.
    Please let me know if further details required.
    Best Regards,
    Ketul

Maybe you are looking for

  • Fix: 10.5.2 (Windows 7 , I AGREE, does not start)

    I run on windows 7 and decided to upgrade my itunes software. After the install, the license agreement was displayed and I clicked I AGREE  but iTunes never started. I emailed Apple (hard to know where to direct it,and they sent me an emails with lot

  • I have a question about Actions in Adobe Pro XI

    When I run an Action in Adobe Pro XI, the document does not close and I also have to click on each and every document.  I thought Actions, like I recall Batch Processing, was supposed to automatically move to the next document in the list, and not le

  • Patch for  12.1.3

    Hi, we need Patch no to Upgrade 12.1.2.3 Oracle Application E-business Suite anybody know pleas Update will be Appreciate. Thank you.

  • Not able to access local path for script file

    Hi All, I am integration my application (built in Asp.Net/Vb.Net) with InDesign Server CS4. InDesignServer is installed on separte machine other than the machine on which application is running. All of the scripts and indd files are placed on the mac

  • Keyboard shortcut for creating new Desktop

    Switching from primarily using keyboard shortcut navigation on a PC, I've realized that the OS X is missing a keyboard shortcut for creating a new Desktop or Space. You need to use the mouse to do this, either by clicking the Add Desktop icon in the