Pass parameters from JSP Dyn Page to WDJ Application

Hi,
I am trying to pass parameters from my JSPDyn Page to WDJ Application.
I am using NWDS 7.1 EHP1
My code is :
function to_WEBDYNHK()
      EPCM.relaxDocumentDomain();
      EPCM.doNavigate
    ('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');
This method is being called on click of a button.
hkparam is the parameter in question.
The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.
In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.
However I am getting null as the value of hkparam in my WDJ application.
The code used is :
IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
       String param1= request.getParameter("hkparam");
What seems to be missing here.
Please help.
I went through the documentation on SDN but it does not seem to help.
TIA,
Himanshu

Hi Himanshu,
Try this code.
EPCM.doNavigate("ROLES:portal_content/Himanshu.Himanshu/TestDynUIApp?hkparam=Dmypass1123")
if the parameter is hkparam and the value to be passed is Dmypass1123. You need not change any design time property of the WD page, and WDProtocolAdapter should retrive the parameter.
Regards,
Vishweshwara P.K.M.

Similar Messages

  • Passing parameters from JSP to JSP

    How can I pass parameters from one JSP to another JSP?
    JSP1 calls JSP2. I need to pass some values in JSP 1 to use in JSP 2.
    Please help.
    Thanks.

    use jsp:forward and param tags

  • Passing parameters from JSP to Batch file

    hi,
    i had a small problem regarding passing parameter from JSP to a batch file.
    My program is like this..........
    I wrote a batch file which opens and pings a remote system. Code looks like this......
    ping %1 -t
    which takes one argument and named this as "a.bat"
    The corresponding JSP page has lot of links which contains IP Addressess. From JSP page, i am calling "a.bat" so that it will open and start pinging corresponding IP Address. So i want to know how can i pass the corresponding IP from a JSP to batch file so that it start pinging remote machine........... can any body help me in this regard??
    Thanks in Advance.
    cheers,
    Sudhakar.

    it might be a permissions problem for the process itself. i once fought for some time with a java app that would mysteriously exit (no exceptions or any VM vomit) i finally discovered that the application was killed when the screen saver came on. just a regular screen saver mind you.
    at any rate i did see this issue and other strange ones like it reported here and there, i think i once say a bug report here on it but I can't seem to find it now. i believe this is fixed in 1.4.
    this of course may not be of much help to you.
    the two workarounds i found were 1) to turn off my screen-saver, 2) set up the program as an NT service. for the NT service i used this stuff http://www.kcmultimedia.com/
    so my suggestion for weird process permission problems on NT would be to try and make it into a service.

  • Issue with passing parameters from JSP to Backing bean

    hi ,
    I have an issue in passing parameters from my JSP to backing bean. I want to fetch the parameter from my URL in backing bean .This is how i am coding it right now. But the parameter companyID returns me null.
    URL http://localhost:8080/admin/compadmin.jsp?companyID=B1234.
    In my backing bean
    FacesContext context = FacesContext.getCurrentInstance();
    String companyID = (String)context.getExternalContext().getRequestParameterMap().get("CompanyID");
         public void setCompanyID(String companyID)
              this.companyID=companyID;
         public String getCompanyID()
              return this.companyID;
    faces-config.xml :
       <managed-bean-name>admincontroller</managed-bean-name>
              <managed-bean-class>com.admin.controller.AdminController</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>companyadminbean</property-name>
                   <property-class>com.admin.model.AdminBean</property-class>
                   <value>#{companyadminbean}</value>
                         </managed-property>
                        <managed-property>
                                 <property-name>companyID</property-name>
                              <value>#{param.companyID}</value>
                             </managed-property>Please let me know if iam missing something.Appreciate your help in advance
    Thanks

    Thanks very much for your input. I made changes to my bean accordingly. Actually the method getAdminType() is a not a getter of a property. It's just a method which iam calling in AdminController bean constructor to verify whether the person is System Admin or Client admin. So now the issue is inspite of making changes still the link "Copy Users" shows up for Client admin too which is incorrect.
    My Administrator bean:
    public class Administrator {
      boolean GSA=false;
      boolean SA=false;
      public Administrator(){}
    public boolean isGSA()
        return GSA;
      public boolean isSA()
        return SA;
      public void setGSA(boolean value)
        this.GSA=value;
      public void setSA(boolean value)
        this.SA=value;
    }My backing bean:
    public class AdminController {
    private AdminBean adminbean = new AdminBean();
    public AdminController(){
    int userID=1234;
    this.getAdminType(userID);           
    public void getAdminType(int userID)
             Administrator admin = new Administrator();
             if (userID<0) return;
             try{
                 if(Rc.isGlobalSystemAdmin(userID)){
                      admin.setGSA(true);
                              }else if(Rc.isClientSystemAdmin(userID)){
                      admin.setSA(true); // i could see these values setup correctly in the admin bean when i print them
                 adminbean.setAdmin(admin);
                  } catch (Exception e){ }
    Admin Bean:
    public class AdminBean {
    private Administrator admin; 
    public Administrator getAdmin()
                        return this.admin;
              public void setAdmin(Administrator admin)
                        this.admin = admin;
    faces-config.xml
    <managed-bean>
              <managed-bean-name>admincontroller</managed-bean-name>
              <managed-bean-class>com.controller.AdminController</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>adminbean</property-name>
                   <property-class>com.model.AdminBean</property-class>
                   <value>#{adminbean}</value>
             </managed-property>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>adminbean</managed-bean-name>
              <managed-bean-class>com.model.AdminBean</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <managed-property>
                   <property-name>admin</property-name>
                   <property-class>com.model.Administrator</property-class>
                   <value>#{admin}</value>
                             </managed-property>
         </managed-bean>     My JSP:<h:outputLink id="ol1" value="/companyadmin/copyusers.jsp">
               <h:outputText id="ot1" value="Copy Users" rendered="#{adminbean.admin.isGSA}" /><f:verbatim><br/></f:verbatim>
               </h:outputLink>    so now the issue is thelink copy users is displayed even #{adminbean.admin.isGSA} is FALSE. please advise.
    Thanks
    Edited by: twisai on Oct 15, 2009 7:06 AM

  • Passing parameters from one OAF page to another OAF PAge

    Hello
    I was wondering, if there is a possibility of passing request parameters from one page to another page in EBS ( E-Business Suite).
    I tried using the following
    a) PageContext.putParamater ( "MyParamater", "ParamaterValue")
    b) I addded the above line of code by extending an page controller of the OAF page and personalized the page
    When I am trying to retrieve the value by getParameter() in the next page. I am also unable to get access to the parameter in the next page.
    I am trying the above code while trying to create expenses in I-Expense module...I would like to pass the ReportHeaderId from one page to another page for customization purposes. I Am not able to get ReportHeaderId in the ReviewPAge...There are no Business Objects in the Review page...hence trying the putParameter idea.
    Any help will be highly appreciated
    Thank You

    What is the source of the parameter? If the source is a VO, you can use the method I have specified in my previous post regarding updating the button properties. For example, you can include the param in the destination URL of the button as such:
    OA.jsp?page=/xyz/oracle/apps/.../myPG&retainAM=Y&addBreadCrumb=Y&myParam={@ParamSource}
    where ParamSource is an attribute from a VO.
    You can get this value via oapagecontext.getParameter()
    Can you please give details as to the source of your params (param-1, param-2, etc.). This will help in providing you suggestions.
    Regards,
    LC

  • Passing Parameters from JSP with Drill Down Graphs

    Hello,
    I have 2 JSP's where when user clicks on the bar graph it drill down and goes to next JSP, it is hyperlink. How can I pass parameters using HttpPortletRendererUtil.portletParameter
    My JSP code is something like this which is pasted below.
    StandardCategoryURLGenerator("xy_chart.jsp","series","section")) is the function, I need to use for drill down.
    Kindly help me with this and any help is highly appreciable.
    Thanks
    ************ JSP**************
    CategoryAxis categoryAxis = new CategoryAxis("Site");
    ValueAxis valueAxis = new NumberAxis("Value");
    StackedBarRenderer3D rend = new StackedBarRenderer3D();
    StandardCategoryToolTipGenerator tt = new StandardCategoryToolTipGenerator();
    rend.setItemURLGenerator(new StandardCategoryURLGenerator("xy_chart.jsp","series","section"));

    Trenton,
    One way to pass parameters to other portlets on the page while using a form is to create a hidden form field and assign it the value that you need to pass to it. If the hidden field has an unqualified name (i.e. not created by using the portletParameter method) then it will be seen by all portlets on the page.
    Since all the form fields are passed on to the query string as part of the URL, you can then use request.getParameter(paramName) to take different actions in your portlets.
    You could use different techniques where based on the values you pass on to parameters of the portlets, some portlets make specific updates to themselves. Though the whole page would be refreshed, you could allow portlets to decide based on the incoming parameter value whether they need to change or not.
    So given the functionality you desire - here's something you might try.
    1) Create hidden form field that gets populated when you select values from the drop-down lookup.
    One way to do this would be to add a onChange ="populateMyHiddenParam(this.form)" to your form item that changes.
    And you could add a small JavaScript function that populates the parameter.
    e.g.
    function populateMyHiddenParam(thisForm){
    thisForm.myHiddenParam.value=thisForm.elements[4].value;
    2)In the other JSP portlet (on the same page) where you need to populate a table based on the value selected, just get the parameter value passed by using request.getParameter("myHiddenParam").
    Since you want this parameter to be read by other portlets, you need to create it as an unqualified parameter. So dont call the HTTPPortletRendererUtil.portletParameter while assigning the name to the form component for the hidden field.
    Hope this helps.

  • Pass Parameters from JSP to PL/SQL

    I have a JSP portlet which consists of a few pages.
    Meaning, I move from one page to the next by using the "next_page" param from the JPDK.
    In one of my JSP pages, in its <form> tag, I have the action set to call a PL/SQL procedure
    (in the form of "pls/portal30.portal30.myPackage.myProcedure").
    The procedure is called, and everything works just fine.
    However, now I want to recieve some of the parameters I set in the URL in my PL/SQL.
    Meaning, just like I can do in the JSP "myRequest.getAttribute('itemID')", I want to do the same in PL/SQL.
    The way I'm doing it right now is not too great: in my JSP form I have a hidden field which, using javascript ("location.href") contains the current URL.
    Then, when the JSP is submitted, I start parsing the URL for the parameters I need.
    There MUST be a better way!
    Oh, and also, a very similar question -- what I've asked above speaks about passing the params through a "get" request to the PL/SQL. Can I also pass params in a "post?" Meaning, get session variables that were set in JSP context, into a PL/SQL procedure?
    Thanks,
    Dan

    Dan,
    mod_plsql enables you to pass any number of parameters to a PL/SQL procedure. The procedure should 'expect' the parameters (by having the right signature). You can use both GET and POST methods to pass the parameters.
    I'd pass the plain portal page URL (pr.getRenderContext().getPageURL() or something like this) in a hidden field, just like you do (but wouldn't use the JavaScript). All the additional parameters (you have at the end of the page URL as a result of the JavaScript) can be passed through hidden (or not hidden) fields.
    I'm not sure about the last paragraph of your question... The only way you can pass any information to the PL/SQL procedure is using parameters. So the JSP should read the session store and put the values into hidden fields of your form.
    Hope this helps a bit,
    Peter

  • Passing parameters from jsp to xslt

    Hi all,
    I am trying to pass a variable string from a jsp to xslt .
    This is the code in the jsp which passes the variables .
    <c:set var="xsl">
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:import href="<%= "service_attribute.xsl" %>"/>
    <xsl:variable name="ItemId"><%= ItemId %></xsl:variable>
    <xsl:variable name="pos"><%= pos %></xsl:variable>
    <xsl:variable name="lineInfoTn"><%= lineInfoTn %></xsl:variable>
    </xsl:stylesheet>
    </c:set>
    <x:transform xmlSystemId="foo.xml" xslt="${xsl}">
    <%= FM.getOrderBean().getXml("ActivationRequest") %>
    </x:transform>
    In the service_attribute.xsl I would like to be able to check the lineInfoTn variable for content .
    something like this .
    <xsl:if test="$lineInfoTn='10pt'">
    <!-- Do something -->
    <xsl:value-of select="$lineInfoTn"/>
    </xsl:if>
    The first problem is that it complains that the $lineInfoTn is not declared .
    So I added the variable as a global variable .
    <xsl:param name="lineInfoTn">10pt</xsl:param>
    Note I have been switching between variables and parameters to try and get this working .
    I can use the itemId variable like this and I dont have a problem .
    <xsl:for-each select="q:RequestItem/q:ItemId[text() = $ItemId]/..">
    Any ideas on how to get this working .
    Thanks for your help

    Thanks for the input

  • How to pass parameter from SSO login page to ADF application page?

    We have ADF-JSF application (running on AS 1013) that is being protected by OID running on AS 1012. SSO login page contains (among others) paramter ssousername and I wish to pass this to my ADF application. For the testing purpose I created ADF application entry point page that has something like this:
    <h:outputText value="#{param.ssousername}"/>and my sso login page has:
    <input type="text" size="30" maxlength="50" name="ssousername" value="<%=str_user%>">OID and ADF OC4j are running on two different servers, same network.
    So after successful login, when my page displays param passed is NULL?!
    Why?

    I solved it with the following....when my page loads, I execute test method:
        public void processLogin(String ssousername) {
             Object o  = JSFUtils.getUserFromSSOLogin();
             if (o!=null) System.out.println(o.toString());
        public static Object getUserFromSSOLogin(){
            FacesContext ctx = FacesContext.getCurrentInstance();
            return ctx.getExternalContext().getRemoteUser();
        }

  • Urgent! pass parameters between jsp pages

    Does anyone can give an example about how to pass parameters between jsp pages?
    This is what I do:
    pageContext.forward("pag_loginc.jsp?p_idusr=" + strUsr + "&c_password=");
    But when deployed is not working.
    Help is needed.

    can you put that stuff in the session context in the first page, then pull it out in the second page?

  • Getting error , while passing parameters from one page to another page

    Hello friends,
    i am getting error, while passing parameters from one page to another page, below code i wrote.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    ArrayList arl=new ArrayList();
    EresFrameworkAMImpl am=(EresFrameworkAMImpl)pageContext.getApplicationModule(webBean);
    ERecordImpl ERecordObj=new ERecordImpl();
    HashMap hMap = new HashMap();
    hMap.put("1",ERecordObj.getTransactionName());
    hMap.put("2",ERecordObj.getTransactionKey());
    hMap.put("3",ERecordObj.getDeferredMode());
    hMap.put("4",ERecordObj.getUserKeyLabel());
    hMap.put("5",ERecordObj.getUserKeyValue());
    hMap.put("6",ERecordObj.getTransactionAuditId());
    hMap.put("7",ERecordObj.getRequester());
    hMap.put("8",ERecordObj.getSourceApplication());
    hMap.put("9",ERecordObj.getPostOpAPI());
    hMap.put("10",ERecordObj.getPayload());
    // hMap.put(EresConstants.ERES_PROCESS_ID,
    if(pageContext.getParameter("item1")!=null)
    pageContext.forwardImmediately(EresConstants.EINITIALS_FUNCTION,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    hMap,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES
    Error(71,2): method forwardImmediately(java.lang.String, byte, null, java.util.HashMap, boolean, java.lang.String) not found in interface oracle.apps.fnd.framework.webui.OAPageContext
    Thanks
    krishna.

    Hi,
    You have imported the wrong class for HashMap.
    Import
    com.sun.java.util.collections.HashMap; instead of java.util.HashMap
    Thanks,
    Gaurav

  • Passing parameters from URL to multiple iViews on a page.

    Hi Everyone,
    Could you please point me to a guide or howto, which explains on passing parameters from URL to multiple iViews on a page. I already know how to pass parameters from URL to a single iView (wiki).
    Thanks!
    Indy

    Hi Indy,
    Currently, passing parameters to the page which contains VC iViews is not supported, only directly in the iView's URL.
    Regards,
    Natty

  • Passing value from JSP to JApplet

    Hello,
    I am stuck up with a problem, can anyone please tell me how do i pass a value from a JSP page
    to a JApplet,
    and the parameter passed through JSP should be displaed in the JTextArea.
    It would be kindful if any of you could help.
    Thanks
    Sanam

    hello,
    thanks for reply.
    I know how to pass parameters from html,
    I want to pass values from jsp page,
    and i dono how to do it, may be we cann pass values through url connection but i dono how.
    if anone knows plz help me in solving this.
    i hvae posted my applet code.
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.JToolBar;
    import javax.swing.JButton;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    <applet code = "DocApplet" width = 500 height =5000>
    </applet>
    public class DocApplet extends JApplet
         private JPanel jp;
         private Container cp;
         private JTextArea jt;
         private JToolBar tb;     
         private JScrollPane sp;
         private String annotation;
         private String url;
         private Connection con;
         private Statement stmt;
         public void init()
              jp = new JPanel();
              cp = getContentPane();
              jt = new JTextArea();
              tb = new JToolBar();
              sp = new JScrollPane(jt);
              repaint();
         public void start()
              jp.setLayout(new BorderLayout());
              jp.add(tb, BorderLayout.NORTH);
              jp.add(sp, BorderLayout.CENTER);
              jt.setBackground(Color.BLACK);
              jt.setForeground(Color.WHITE);
              setContentPane(jp);
              addButtons(tb);
              repaint();
         public void run()
              repaint();
         public void paint()
         private void addButtons(JToolBar tb)
              JButton button = null;
              button = new JButton("Save");
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
              tb.add(button);
    }

  • Automatically Pass Parameters From Crystal To SAP B1

    So, I've searched extensively, and haven't been able to find an answer to my unique issue.
    This question pertains to linking a Crystal Report by parameter values to the OWOR table in SAP B1, and automatically passing those parameter values from the active record in SAP. Several other tables are used in sql joins, but the report is generated from an OWOR production order. I should start by stating that the report works great when manually populating the parameter fields when SAP calls for them.
    Overview:
    I've written a report in Crystal that contains several sub reports, some of which are looking to the DocEntry field as the parameter (DocKey@) and others that do not look to the DocEntry field at all - but rather use another field on the form to pull up information that spans more than just that one production order. I've chosen to upload as a layout in SAP (as that is all I've worked with up to this point, and it seems it needs to be to automate from a production order); but as I continue to research, it appears DocKey@ is mandatory when uploading as a layout, and in order to view the report from the actively selected production order, it must be a layout. Does that mean the parameter is required in all sub reports? Is it required in any sub report?
    I have two main issues that I need to hurdle for this report to work how I would like it to:
    1. Three of the eight Commands (one main command and seven sub-report commands) use the DocKey@ as the parameter to pass from SAP back to Crystal. The main report command, as well as four of the sub reports/commands are looking to another field in the OWOR record - which happens to be a re-seller defined field (UDF). For all intensive purposes, let's call this field BatchID. I'm assuming the sub report commands run in succession, one after the next. The reason I need to use BatchID as the parameter to pull from the record, rather than DocEntry, is there are other records that contain the same BatchID, and I want all of the info pertaining to that BatchID to populate on the report.
    Q1: The first command containing DocKey@ is automatically populated by SAP, and the user does not have to key that one in. However, the next two DocKey@ parameters do not automatically populate, and the user is asked for those values. How can I fix this?
    Q2: How can I automate the passing of BatchID so the user does not have to fill it in 5 times when they wish to preview the report(layout)? Can I link ObjectID@ to any field in OWOR? Is there any other way like creating a stored procedure or something , to automate the passing of that variable from the SAP active record to the crystal report - so the user doesn't have to key it in several times just to pull up the report?
    Thank you so much for even reading, let alone helping me with this issue!!
    Cheers,
    Nick

              Hi
              I had the same problem. Take a look at this newsgroup article on the businessobjects
              website :
              http://support.businessobjects.com/library/kbase/articles/c2015264.asp
              Grieg
              "Rada Pickens" <[email protected]> wrote:
              >
              >Hi,
              >
              >I'm getting the same error message, I was wondering if you fixed the
              >problem.
              > I'm stumped, can you help?
              >
              >Rada
              >
              >
              >"JAI" <[email protected]> wrote:
              >>
              >>I am passing parameters, from the JSP page to Crystal Report, i took
              >>the code from
              >>the below mentioned url, i dont know, it is something wrong with the
              >>jsp page
              >>or crystal report.
              >>i have created parameter field in crystal report to receive the value
              >>from the
              >>jsp page.
              >>If u r not clear with the error, please reply to me.
              >>
              >>i took the code from the below mentioned page
              >>
              >>reference page:
              >>----------------------
              >>http://dev2dev.bea.com/trainingevents/webinars/012804_faq.jsp
              >>parameterFieldsViewReport.jsp
              >>
              >>
              >>error displaying in the jsp page
              >>-----------------------------------
              >>com.crystaldecisions.report.web.viewer.CrystalReportViewer
              >>Some parameters are missing values
              >
              

  • URGENT: Passing Array from JSP to a Stored Procedure

    Hi,
    Can some one please help me understanding how can I pass array from JSP page to a stored procedure in database.
    Thanks in advance.
    Jatinder

    Thanks.
    I tried ArrayExampla.java and was successful in passing array values to the stored database procedure.
    How can I use this class in JSP? Like I have first JSP where in I will collect input from the user and then submit it to the second JSP - that needs to call the ArrayExample.java to pass the values as array to the database.
    How should I call this java code in my second JSP?
    Thanks in advance.

Maybe you are looking for

  • Error while downloading Contacts from R/3 to CRM system

    Hi All, I am trying to download Contacts from R/3 to CRM system. Through Initial Download. For this i have set filters through Tcode: R3AC1 as on KNVP and KNVV for the field VKORG. As we have our requirement to download contacts based on or different

  • How to find out local or home interface  was used ?

    Hi ! are there any ways in the code of methods ejbCreate and ejbRemove in my entity EJB to find out were they called via local or home interface provided that my bean has both local or home interfaces ? Thenks in advance.

  • ITunes Installation Error 7 (Windows Error 126) for Windows 8

    I attempted to reinstall iTunes on my PC, and now iTunes won't run. I tried uninstalling and reinstalling the program again but get the same error messages: "The program can't start because MSVCR80.dll is missing from your computer" and "iTunes was n

  • UDP PORT 445 Not listed in System Process

    Hi! Can you help me? I need the UDP PORT 445 listed on SYSTEM Process.  I open UDP PORT 445 on Firewall (WSBS 2011), but in Syshelp (symatech validation too) the result is: Title: One or more network services, ports, protocols or associated processes

  • Adobe Creative Suite CS2 Universal?

    Hello! I've installed my an old version of Photoshop recently on my MacBook Pro and I noticed a lot of lag and slow downs when I'm drawing with my Wacom tablet on the canvas. I was just wondering if Adobe released a universal version of Photoshop and