From 2 variables in servlet adf

Hello

I use jdeveloper 11.1.2.4.0

If I go through a variable fine

/DownloadFile? Ref_no = #{backingBeanScope.download_upload_bean.pdfUrl}

but in passing two variables I get an error

Internal server error 500

/DownloadFile? Doc_type = #{backingBeanScope.download_upload_bean.my_doctype Ref_no = #{backingBeanScope.download_upload_bean.pdfUrl}}

Kind regards

Steve

I wasn't looking for it, but what happens if you use the same construction as when using query parameters in a URL.

In other words, use "&" to add additional parameters. In your case that add to the following

/downloadfile?Ref_no=#{backingBeanScope.download_upload_bean.pdfUrl}&doc_type=#{backingBeanScope.download_upload_bean.my_doctype}

Luke

Tags: Java

Similar Questions

  • Select a choice from the table of the ADF

    Hello

    does anyone know how to convert a column in a table in the ADF to display a list of values in a control of first choice select?

    I want to allow the user to select a value from a drop-down inside the table.

    Thank you

    Hello
    Welcome to OTN forum and always mention your version JDev,.
    Hope that follows will be useful

    SelectOneChoice and ADF Table
    http://www.gebs.ro/blog/Oracle/Oracle-ADF-selectonechoice-table-filter-for-lov-column/

  • How to set the rendering = true only when the variable = Y? #ADF

    Hi all

    I'm developing a simple ADF jspx to contain the data in the table and a few questions. One of my requirements is to make a real group of Panel if a variable dispGroup is set to Y.

    I tried to use this EL: rendered = "#{bindings.dispGroup.inputValue?" 'Y' : 'N'}" .

    I would understand if this the correct way to approach it. Is there a better solution. I am open to any suggestions or best practices.

    JDev Version: 11.1.1.4

    Concerning
    JB.

    "#{bindings.dispGroup.inputValue == 'Y'? 'real': 'false'} '.

  • From js Variable to CF

    I need to be able to pass a variable from javascript data to Cold Fusion. Is it possible to do? Something like the ToScript in Coldfusion that allows to transmit a CF variable to javascript.

    Or, is it possible to write data values to a database using javascript directly? I have a set of data, which is collected and transmitted via javascript. So, my thought is to move these data values in js to Coldfusion to rewrite them in the database. But I would like to know if there is a better way to do it.

    Thank you
    Ros

    Before CF8 you would be using CFAjax and AjaxCFC or roll your own.

    http://www.indiankey.com/cfAjax/

    http://www.robgonda.com/blog/projects/AjaxCFC/

    Your on your own to roll your own.

  • From Session variables

    OK quick question. To enable session variables you must first do the < application sessionmanagment = 'Yes '... Where is the appropriate place for them. For some reason any it won't let me not put inside the component itself. So should I put inside a method inside the component? If Yes, should it be a certain kind of like an onrequest method or something like that. And when I allow inside of the methods, the session starts only when some method with the application tag is called?


    allow them. For some reason, it wont let me being put inside the
    the component itself.

    ...

    You start them in the file of the application. Either CFAPPLICATION. Ft3/min or
    CFAPPLICATION. CFC Tho, I don't know why you could not start their
    elsewhere, it's the normal way.

    ...

    You can place the tag in any .cfm file that you like.
    Put in the application.cfm file is for the convienance having
    It automatically included every any cfm file in the same and the Sub -
    directories in the form of application.cfm files.

    But when you use the application.cfc file, this is handled a bit
    differently. Basically, the application.cfc IS the
    tag. To set things like sessionmanagement, use you this scope in
    the constructor of the application.cfc file.

    It is covered in the documentation of the application.cfc file.


    The following code example from the top of an Application.cfc defines the
    the application name and properties:








  • calling the function of query of VO from bnd variables as parameters

    Hi all

    I Package SQL pack1 with 2 functions (par1, par2) funct1 return funct2 (par1, par2) R2 return R1.

    I have VO, vo1 query

    Select pack1.funct1 (bind1, bind2) as attr1,

    (bind3, bind4) funct2 as attr2 value

    See criteria VC1, like af:query. application of vo1 results as table results

    When the search button is touched

    get the error

    java.sql.SQLException: parameter IN or OUT to missing index: 1.

    Is this way of the function call?

    Thank you

    -shiva

    This indicates that DB schema on which the application is connected at run time does not recognize the

    Pack1. "" funct2.

    To verify your actual DB plan (which application uses running - may differ from the design schema time!) to see if there is pack1.funct2

  • Changing the values of abbreviation from the database to the ADF object

    I useADFJDeveloper 11g Release 2


    I use Entity object called Project referring to the actual database table. This table contains fields that contain values of the abbreviation; for example this table filed called STATUS that describe the current state for the project. this filed will be values such as: 'A' approved for, 'X' for rejected and so on.

    In the interface ( JSPX , or JSF Pages) I just drag / move the View object which refers to the Project Entity object . and the page displays the project files with their status as specified.

    It is:

    Is it possible to change the values of this observation to the real value of somewhere; It's like instead of the values (A, X,...) I want to have (approved, rejected,...)

    You can write in an el in the value of the State field as "#{binding.status.inputValue == 'A'? '} '. {Approved ': "Rejected"}

  • Invoke VMScript and escape from the variables

    Hello, VMTN,.

    I have what is probably a simple question.  I have a set of functions that are passed to two variables; the name of a virtual computer and NIC to enable\disable in Windows in this VM.  The name of this NETWORK adapter has spaces, which is the Network Interface 4.  The service continues to set the command to inject as:

    $cmd = "game of the name of the interface c:\windows\system32\netsh.exe interface =""$NICtoEnable" "admin = ENABLED"

    It then calls the cmdlt invoke-vmscript as follows:

    ScriptType bat - invoke-VMScript - VM $VMName GuestCredential - $GuestCredential - $cmd ScriptText

    and it does not return the output, but I get "Invalid parameter" in return.  What that tells me, that is it runs netsh in the virtual machine, but on parameters is not set correctly.  I don't know that it is because I have not properly escaped the $NICtoEnable variable in $cmd of the GET passed to-ScriptText.  I also tried, instead of double quotes, using single quotes ('... ") does not.

    Any help would be greatly appreciated and thanks in advance.

    Best,

    @dboftlp

    Try your $cmd like this

    $cmd = "c:\windows\system32\netsh.exe interface set interface name=" + '"' + $NICtoEnable + '"' + " admin=enabled"
    

    The trick is to move the quotes around the name of the NIC, where single quotes around the double quotes.

  • The ADF tree fades after adding a button after the tag from the tree of the ADF

    I have a tree ADF that will have a few Groups (parent) and issues (child), it displays the content properly, now I have to add a button at the end of the page, so when I added a button on the page is shrunk and I see two bars vertical and horizontal scrolling for the part Questions and groups. but I want the content to be displayed correctly, and at the end the button should available.

    I tried width ADF Stretch and addition of the tree and the key to all the different types of components, but they did not work.

    Can you please suggest me a way to do this?

    The jsp page looks like this:

    < af:form >
    < af:tree - >
    < f: facet name = "nodeStamp" >

    < af:outputText value = "#{node." GrpDesc}"id ="ot1">

    < af:outputText value = "#{node." QstnDesc}"id ="ot2">


    <!- and I have a few components of selectOneRadio here, which will be displayed for each question >

    < / af:tree >

    <! Here, I added a button and I have actions defined for it >

    < text af:commandButton = "save and continue".
    ID = "cb2" / >

    < / af:form >






    Thank you
    Jean Lou

    Published by: user12217808 on April 27, 2012 04:55

    Before adding a status bar button, you will need to place a toolbar item.

    PanelCollection is a naming container. If you try to access your tree by ID, you need to add ID of panelCollection and: entry. As "tree1"-> "pc1:tree1".
    I think that panelCollection itself cant' break the queried data.

  • running application module (AM) from a secure application of ADF

    Hello gurus,


    If you can put some lights on the following problem on which I'm stuck, then I have will greatly appreciate it.

    After the security application in my application of ADF, when I try to launch the application module (AM) she prays for principal and credentials. I don't understand what I should give here. Do you have a solution to this?

    Thanks in advance.

    Hello

    find the menu, choose Application--> Secure--> users and create a user account. If you have enabled not only authentication but authorization too, you must also create roles. The main thing is the user name.

    Frank

  • From a variable scenario

    Hello gurus,


    I have a table that contains the names of my scenario and the frequency of their spear.


    Scenario_name | On a daily basis. Weekly | Monthly
    Scen1 |    1    |     0      |    0
    Scen2 |    1    |     0      |    0
    Scen3 |    0    |     1      |    0


    I have to make a package that will run every day and which is to be launched all the scenarios with 1 as the value for the daily column. In this example, Scen 1 and 2 Scen must be executed.
    Same thing for the weekly and monthly frequency.


    Do you know how I can achieve this? Is this possible in a package?


    I tried to use a variable to ODI to set 'the scenario name' of my object of OdiStartScen, but it did not work. The name of the scenario: MyProject.MyVar



    Thanks in advance for your help.



    Concerning

    You should be able to pass the name of the script as a parameter to the ODIStartScen tool. Try surrounding your variable between single quotes, e.g. ' #MyProject.MyVar '.

  • Use of global variable from local variables for business rules

    Someone at - it guidelines on the use of overall compared to the local variables for the business rules? I really don't like the world no matter what, so if someone has a compelling reason to use overall.

    If I use a local variable in the world, is there a single character required for the local variable or no problem with the help of the same name local var in all of business rules.

    Thank you

    Hello

    I bet you have a background in programming. Don't let the 'global' nomenclature lure you into thinking that "bad design - not encapsulated, etc" with regard to business rules. According to John, this area, variable overall are a vehicle to reduce maintenance.

    For example if you have a variable in which all its used BR called CurrMonth and its always the current month, it create once, maintain his assignment in one place and use it anywhere. In this case 'global' is in fact less.

    Kind regards
    Robb Salzmann

  • reading data from a variable, separated by "|" and insert into the table

    Hi experts,

    I have a file on FTP and I read the file. Now what I have to do is to separate the data and insert them into a table. I have already created the table with the required fields.

    How can I get data from str?

    code below

    declare
    File1 UTL_FILE. TYPE_DE_FICHIER;
    VARCHAR2 (1000) filename: = "GTECHFILES";
    Long str;
    Start
    File1: = UTL_FILE. FOPEN (filename, 'agent_dump_csv.rep', 'r', 32767);
    loop
    UTL_FILE. GET_LINE (File1, str);
    -dbms_output.put_line (' value is :'|| to_char (STR));
    end loop;
    UTL_FILE. FCLOSE (file1);
    exception
    When no_data_found then
    dbms_output.put_line ("END OF FILE");
    UTL_FILE. FCLOSE (file1);
    while others then
    UTL_FILE. FCLOSE (file1);
    dbms_output.put_line (' ERROR: ' |) SQLCODE |': ' | SQLERRM);
    end;

    You must use ' \ [^ |] +' like regexp:

    SQL> create table mytab (a varchar2(20), b varchar2(20), c varchar2(20));
    
    Tabella creata.
    
    SQL> declare
      2  str varchar2(100):= 'qwureer|iftsdfsuif|123134';
      3  begin
      4    insert into mytab
      5      values (regexp_substr(str,'[^|]+',1,1),
      6              regexp_substr(str,'[^|]+',1,2),
      7              regexp_substr(str,'[^|]+',1,3));
      8  end;
      9  /
    
    Procedura PL/SQL completata correttamente.
    
    SQL> select * from mytab;
    
    A                    B                    C
    -------------------- -------------------- --------------------
    qwureer              iftsdfsuif           123134
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/17/supporto-di-xml-schema-in-oracle-xmldb/]

  • Using the component from the tree of the ADF

    Hello!

    I wonder if someone could show me an example of a component of the tree with predefined columns.

    Thank you in advance for your help!

    You can get some code examples of the ADF Faces of WAR demo file tree:
    http://www.Oracle.com/technology/products/ADF/adffaces/11/doc/demo/adf_faces_rc_demo.html

  • Parsing XML from a Variable String

    I looked at the docs and spending the afternoon at the research on the web and can't understand this.  It's a question of combination SAX parser and java.io.  The SAX parser will be an InputStream or an InputSource, but I can't seem to find a way to transform a string containing the XML to one of them to move to the parser.  Someone knows how to do this?

    TIA,

    Allen

    Never mind!  I finally found it:

    String xml;
    ByteArrayInputStream ba= new ByteArrayInputStream(xml.getBytes());
    

    Thanks for watching!

    Allen

Maybe you are looking for