Params

Hi all
create or replace FUNCTION getResultID(  INPUT_ID NUMBER, IN_QUERY_ID NUMBER  ) 
RETURN VARCHAR2 
AS 
RESULT_ID VARCHAR2(256); 
query_str VARCHAR2(256); 
BEGIN 
  select CONSTRUCTOR INTO query_str from query_str_ref   where QUERY_ID=IN_QUERY_ID; 
  EXECUTE IMMEDIATE query_str INTO RESULT_ID  USING INPUT_ID; 
  ETURN Result_ID; 
END getResultID;
declare
  l_getResultID varchar2(20);
  l_INPUT_ID number:=100;
  l_IN_QUERY_ID number:=200;
begin
l_getResultID:=getResultID(l_INPUT_ID,l_IN_QUERY_ID);
end;
my req is pass the in param dynamically ,instead of passing the multiple in params can i club all the params and send it as a single param is it possible, is there any alternative please do me a favour.

f3665bb6-1b11-4d8f-ba83-befd00bfce5e wrote:
my req is pass the in param dynamically ,instead of passing the multiple in params can i club all the params and send it as a single param is it possible, is there any alternative please do me a favour.
The alternative is to stop storing queries in tables; to stop using dynamic queries, and to start properly designing your database and orchestrating your code instead.
There's very few reasons to ever store queries in tables and use dynamic queries in this way.  It is often done by people trying to write 'generic' code to handle multiple queries and multiple results... and the very fact they're trying to make things 'generic' is becuase they think it is clever and will save them writing more code, but the truth is that it makes code that is hard to maintain, is prone to bugs and sql injection, and in most cases doesn't provide a performant system.
So... step back... re-evaluate what you are actually trying to achieve and determine if doing this 'dynamic query' route is really the best way.  99.99% of the time it isn't.

Similar Messages

  • Using a variable as a value in jsp:param

    I was wondering, I have a String variable, vid_1, and want to use a jsp:include and pass that in as one of the parameters. How can I do this? I have to do some testing to make sure vid_1 is valid and set a default if not. It contains a number referring to which video needs to be displayed.
    Is there anyway I can get this value to be used in jsp:param value?
    John

    RahulSharna wrote:
    Well,First thing you haven't pharsed your question properly.
    Anyways as per my understading.
    The first thing is make use of in this case as your defined requirement states you need to make use of variables of both the JSP's which need compile time include not at the runtime.use of
    <%@ include file="url" %>would be more appropriate as you want to use the variable of parent jsp to the child one.
    Anyways if you are thinking to apply a solution using <jsp:include/>
    <jsp:include page="url">
    <jsp:param name="paramName" value="<%=stringVariable>"/>
    </jsp:include>and extract the paramName's corresponding value as a request parameter in other JSP.
    Hope that might answer your question :)
    REGARDS,
    RaHuLRaHul,
    Thanks for the reply. The second example you gave is what I was trying to do. I thought I did exactly what you have there and it was not working. I will check it over again and post back on here when I have a chance.
    For now I was trying to use c:set to save the variable in the request and then using the EL expression ${requestScope.variable} to put it in the <jsp:param> element. I had some things working and others not when I quit. Hopefully tomorrow I can give you a full report and we can get this worked out.
    Maybe my problem is something else? Look at this post of mine:
    http://forum.java.sun.com/thread.jspa?threadID=5236252&tstart=10
    Thanks so much for the help.
    John

  • How to generate param-prefix in web-services.xml

    Hello I am using source2wsdd to generate my WSDL and my web-services.xml. For sake
    of interoperability I would like to have the type param-prefix in the web-services.xml
    file. From my Bean class what kind of javadoc comments would help me generate
    the type param-prefix ?
    I also would like the location="header" in the param list.
    Thanks,
    Aswin.
    <param xmlns:param-prefix="http://tempuri.org/"
    type="param-prefix:SOAPCredentials"
    location="header"
    class-name="com.xyz.webservices.SOAPCredentials"
    name="SOAPCredentials"
    style="in">
    </param>
    <return-param xmlns:param-prefix="http://tempuri.org/"
    type="param-prefix:GetFileProfileInformationResponse"
    class-name="com.xyz.webservices.GetFileProfileInformationResponse"
    name="parameters">
    </return-param>
    </params>

    Please try this:
    * @wlws:part p_SOAPAuthToken location="header"
    * type="typeNS:p_SOAPAuthToken"
    * class-name="com.xyz.webservices.SOAPAuthToken"
    * style="inout"
    * xmlns:typeNS=http://namespace/of/the/type
    * @wlws:part p_SOAPCredentials location="header"
    * type="typeNS:p_SOAPCredentials"
    * class-name="com.xyz.webservices.SOAPCredentials"
    * style="in"
    * xmlns:typeNS=http://namespace/of/the/type
    * @ejbgen:remote-method
    public void login(SOAPAuthToken p_SOAPAuthToken,
    SOAPCredentials p_SOAPCredentials)
    I did not try this one out. So i can only hope that it works.
    Regards,
    -manoj
    http://manojc.com
    "Aswin Dinakar" <[email protected]> wrote in message
    news:40aeeb5d$1@mktnews1...
    >
    I tried this
    * @wlws:part p_SOAPAuthToken location="header"
    * @wlws:part p_SOAPAuthToken type="param-prefix:p_SOAPAuthToken"
    * @wlws:part p_SOAPAuthTokenclass-name="com.xyz.webservices.SOAPAuthToken"
    * @wlws:part p_SOAPAuthToken style="inout"
    * @wlws:part p_SOAPCredentials location="header"
    * @wlws:part p_SOAPCredentials type="param-prefix:p_SOAPCredentials"
    * @wlws:part p_SOAPCredentialsclass-name="com.xyz.webservices.SOAPCredentials"
    * @wlws:part p_SOAPCredentials style="in"
    * @ejbgen:remote-method
    public void login(SOAPAuthToken p_SOAPAuthToken,
    SOAPCredentials p_SOAPCredentials)
    and I got the following error -
    [source2wsdd] source2wsdd: In doclet classweblogic.webservice.tools.ddgen.Servi
    ceGen, method start has thrown an exceptionjava.lang.reflect.InvocationTargetE
    xception
    [source2wsdd] weblogic.xml.stream.XMLStreamException: Attribute QNamevalue "par
    am-prefix:p_SOAPAuthToken" does not map to a prefix that is in scope
    [source2wsdd] atweblogic.webservice.dd.NSAttribute.getValueAsXMLName(NSAttrib
    ute.java:45)
    [source2wsdd] atweblogic.webservice.dd.DDLoader.processParamElement(DDLoader.
    java:1252)
    "manoj cheenath" <[email protected]> wrote:
    Check out this example:
    http://manojc.com/?sample3
    You can find more details regarding the tags here:
    http://manojc.com/tutorial/sample3/source2wsdd.html
    Regards,
    -manoj
    http://manojc.com
    "Aswin D" <[email protected]> wrote in message
    news:[email protected]...
    Hello I am using source2wsdd to generate my WSDL and my
    web-services.xml.
    For sake
    of interoperability I would like to have the type param-prefix inthe
    web-services.xml
    file. From my Bean class what kind of javadoc comments would help megenerate
    the type param-prefix ?
    I also would like the location="header" in the param list.
    Thanks,
    Aswin.
    <param xmlns:param-prefix="http://tempuri.org/"
    type="param-prefix:SOAPCredentials"
    location="header"
    class-name="com.xyz.webservices.SOAPCredentials"
    name="SOAPCredentials"
    style="in">
    </param>
    <return-param xmlns:param-prefix="http://tempuri.org/"
    type="param-prefix:GetFileProfileInformationResponse"
    class-name="com.xyz.webservices.GetFileProfileInformationResponse"
    name="parameters">
    </return-param>
    </params>

  • Using jsp:param

    hi,
    i am new to java and jsp programming and i am trying to use jsp:param nested in my
    jsp:forward statement.
    if i specify a value in jsp:param my page would display properly. however when i passed a variable in my jsp:param i get the error:
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\star\jsp\Meeting_CreateMinutes_jsp.java:135: cannot resolve symbol
    symbol : method encode (long)
    location: class java.net.URLEncoder
    pageContext.forward("Meeting_ActionItems.jsp" + "?" + "docno=" + java.net.URLEncoder.encode( carno ) + "&" + "formmode=" + "Add");
    ^
    1 error
    this is the snippet in my jsp page that (i suspect) caused the error:
    <% long carno = newcar.getDocno(); %>
    <jsp:forward page="Meeting_ActionItems.jsp">
    <jsp:param name="docno" value="<%= carno %>"/>
         <jsp:param name="formmode" value="Add"/>
    </jsp:forward>
    my question is : does jsp:param do not accept variables as values?
    thanks in advance.
    best regards,
    noynoy

    <% long carno = newcar.getDocno(); %>Change this part as
    <% String carno = ""+newcar.getDocno(); %>
    Hafizur Rahman
    SCJPhi Hafizur,
    Thanks a lot. It solved my problem on the jsp:param error
    More power!!!
    rgds,
    noynoy

  • How do I supress the encoding of UTF-8 characters in a f:param element

    Hello,
    I have a keyboard displayed on my page, which won't work properly because of the used german characters.
    I have an icon for every button embedded in a link, which adds the selected character to the searchstring.
    For example adding an a works like this:
    from keyboard.xhtml:
    <s:link><f:param name="#{keyname}" value="#{keyword}a"/><h:graphicImage value="key_a.png"/></s:link>keyname and keyword are parameters submitted by the including form:
    from myform.xhtml:
    <ui:param name="keyword" value="#{end}"/>
    <ui:param name="keyname" value="end"/>This works great as long as the character is a standard one, but on as soon as I have a german umlaut in the string, the umlaut gets encoded/escaped with every single character that i add to the searchstring:
    The string makes it's way correctly to the keyboard-template, I can use a h:outputText to show it on the page and it doesn't get escaped.
    So, how can I prevent the escaping of my characters in the f:params elements?
    I really need to get this to work. so any hint or even solution would be fabulous.
    Thanks in advance, Peter
    PS: maybe my web server is doing something nasty, so it would be nice, if someone can check this code:
    <s:link><f:param name="test" value="�"/>INIT</s:link><br/>
    <s:link><f:param name="test" value="#{test}"/>REPEAT</s:link><br/>
    INFO: <h:outputText value="#{test}" /><br/>here is the same one with h:outputLink
    <h:outputLink><f:param name="test" value="�"/>INIT</h:outputLink><br/>
    <h:outputLink><f:param name="test" value="#{test}"/>REPEAT</h:outputLink><br/>
    INFO: <h:outputText value="#{test}" /><br/>EDIT: I found the solution, it was my beloved jboss application server, after adding a parameter to the server.xml, everything worked as expected:
    use page settings:
    <Connector port="8080" .....
    useBodyEncodingForURI="true" ..../>hardcoded:
    <Connector port="8080" .....
    URIEncoding="UTF-8" ..../> Edited by: pete007 on Mar 12, 2008 1:47 PM

    "Encoding" refers to the charset used to convert the Unicode data into bytes. But since you're writing to a String, you aren't converting the data to bytes and therefore UTF-16 is the appropriate encoding. It doesn't make sense to ask for your data to be encoded in UTF-8 when you aren't producing bytes.
    You could read this tutorial about XML and Unicode and encodings for more information:
    http://skew.org/xml/tutorial/

  • Handling quotes with ${param.CurrentName}

    I've read many posts on this topic, but cannot find a solution that works for my problem. I have 2 JSP pages. JSP 1 has text field CurrentName. JSP2 tries to capture that value and store it:<input type="hidden" name="CurrentName" id="CurrentName" value="${param.CurrentName}"> This of course works great, unless the user types in double quotes, like Joe "Cool" Johnson. If that happens, JSP2 contains <input type="hidden" name="CurrentName" id="CurrentName" value="Joe "Cool" Johnson"> Of course, the real data is cut off after Joe<space> because of the quote around "Cool." If I use single ticks like value='${param.CurrentName}', it works great with double quotes but not with single quotes, like Suzie's Kitchen, as we get the same data cutoff error after Suzie.
    So, of course the answer is to encode the value, replacing \" with ". But when I'm using default param and not a bean, I can't do this in a Java POJO. If I try calling a JavaScript method like fixquote(${param.CurrentName}); the result thows an error as fixquote(Joe "Cool" Johnson); If I try to capture the param in a variable first, it also throws an error.String paramname1 = ${param.CurrentName};results in String paramname1 = Joe "Cool" Johnson; and I can't pass paramname1 on the next line because it's already errored. I tried ${fn:replace(${param.CurrentName}, "a", "b")}; and that failed too.
    I'm not sure how I can actually pass that data to any method, Java, JSTL or JavaScript, because it translates the real value causing an error before I can pass it. I thought about using a bean from JSP1 to JSP2, but in this application I inherited, there are about 100 parameters on this page I'd need to add, so am hoping to avoid that work.
    Thanks.

    That last one was the closest to what you need to do. You just had some nested ${ expr } braces which doesn't work so well.
    // fixed example
    ${fn:replace(param.CurrentName, "a", "b")};
    // I think it should look something like this
    ${fn:replace(param.CurrentName, "\"", "\\\"")};Alternatively you could create a class wraps the parameter map, and escapes values for you.
    You could then replace all instances of "param" with references to this bean instead.
    cheers,
    evnafets

  • How can i pass more than 1 param to servlet to show blob image

    Hi
    my servlet expects 2 param to SELECt an image from a blob column
    public class ImageBlobServlet extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    response.setContentType(CONTENT_TYPE);
    String ImageId = request.getParameter("id");
    String TipImg = request.getParameter("tip");
    OutputStream os = response.getOutputStream();
    Connection conn = null;
    try {
    Context ctx;
    ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:/comp/env/jdbc/rhDS");
    conn = ds.getConnection();
    PreparedStatement statement = conn.prepareStatement("select FIT from " +
    "RHH_FOTOS IMG " +
    "where IMG.IDASSO = ? and IMG.TIM_COA = ?");
    statement.setInt(1, new Integer(ImageId));
    statement.setString(2, TipImg);
    To display the image i tried to use:
    <af:image id="ot1"
    *source="/imageblobservlet?id=#{bindings.Con.inputValue}?tip=#{"EMP"}"*
    shortDesc="Foto"/>
    but i receive all content in the get of first param.
    String ImageId = request.getParameter("id");
    How can i pass one more then 1 param in EL.
    Thanks in advance

    Hello,
    seems to me you're using wrong separator for the second param into your URL:
    <af:image id="ot1" source="/imageblobservlet?id=#{bindings.Con.inputValue}
    tip=#{"EMP"}" shortDesc="Foto"/>
    I think it should be:
    <af:image id="ot1" source="/imageblobservlet?id=#{bindings.Con.inputValue}
    tip=#{"EMP"}" shortDesc="Foto"/>
    Jack

  • How to read the param in an URL with an applet???

    I will like to read the in an URL with an applet param (after the ?)
    I need the equivalent of: String parm1 = request.getParameter("param"); but for applet
    I think the HttpServletResponse doesn't work in an applet ???
    Tell me if I'am right
    Thanks for your help
    Benoit

    Hi
    What you can do is, just get that URL in the web page. Like as we can get in the ASP. Store the required information in the variables and pass this information as parameters to the applet.
    Hope this helps!

  • How to get two out param which is used in Procedure

    hi experts,
    Am keep on thinking, but not yet answer myself.. so am here
    Using Jdev11.1.1.5.0-adfbc.
    I had in db, procedure like this
    PROCEDURE proc_find_x_cal_year_period
         p_bu                    VARCHAR2,
         p_date                    DATE,
         p_year           OUT          NUMBER,
         p_period             OUT           NUMBER
    ).................i wrote like this in My AM, Procedure is execution and printing out param values Perfect
        public void ProcFindxCalYearPeriod(String pbu,
                                        oracle.jbo.domain.Date pdate)
                CallableStatement st = null;
                try{
                String sql = "begin proc_find_x_cal_year_period" +
                    "(:pbu," +
                    ":pdate," +
                    ":pyear," +
                    ":pperiod)" +
                    ";" +
                    "end;";
                st=getDBTransaction().createCallableStatement(sql,this.getDBTransaction().DEFAULT);
                st.setObject("p_bu",pbu);
                st.setObject("pdate",pdate);
                st.registerOutParameter("pyear",Types.VARCHAR);
                st.registerOutParameter("pperiod",Types.VARCHAR);
                st.execute();
                System.out.println("pyear" +(String)st.getObject("pyear"));
                System.out.println("pperiod" +(String)st.getObject("pperiod"));
                catch(SQLException e)
                throw new JboException(e);
                finally
                if(st!=null)
                try{
                st.close();
                catch(SQLException e){}
                }what i did/my need:
    i paste this ProcFindxCalYearPeriod in my one of the Eo and while am validating one of the field,this procedure should call at the time of calling, two out parameters set into two of the corresponding setter methods.
    (String)st.getObject("pyear")
    (String)st.getObject("pperiod")value is here i want to set into setAttributeInternal("x",(String)st.getObject("pyear") );
    setAttributeInternal("x1",(String)st.getObject("pperiod") );
    i hope you all understood.

    In your procedure you should create an object to hold the outputs and return this object
    public ProcResult ProcFindxCalYearPeriod(String pbu, oracle.jbo.domain.Date pdate)
                CallableStatement st = null;
                try{
                String sql = "begin proc_find_x_cal_year_period" +
                    "(:pbu," +
                    ":pdate," +
                    ":pyear," +
                    ":pperiod)" +
                    ";" +
                    "end;";
                st=getDBTransaction().createCallableStatement(sql,this.getDBTransaction().DEFAULT);
                st.setObject("p_bu",pbu);
                st.setObject("pdate",pdate);
                st.registerOutParameter("pyear",Types.VARCHAR);
                st.registerOutParameter("pperiod",Types.VARCHAR);
                st.execute();
                System.out.println("pyear" +(String)st.getObject("pyear"));
                System.out.println("pperiod" +(String)st.getObject("pperiod"));
                //assuming that you are getting the desired outputs
                *ProcResult outputs=new ProcResult();*
                *outputs.setOutParam1((String)st.getObject("pyear"));*
                *outputs.setOutParam2((String)st.getObject("pperiod"));*
                *return outputs;*
                catch(SQLException e)
                throw new JboException(e);
                finally
                if(st!=null)
                try{
                st.close();
                catch(SQLException e){}
                }Now you call this procedure like this
    ProcResult execProc= ProcFindxCalYearPeriod(paramValue1, paramValue2);
    //you can get the proc outputs by calling
    String firstOutput = execProc.getOutParam1();
    String second = execProc.getOutParam2();But the question is why you are calling setAttributeInternal() while you are validating an attribute?
    I think this is not correct.

  • Using LoaderInfo to get params from HTML

    Hi All
    Working my way throught the new things in AS3. One problem is
    getting <params> passed to the .swf from the HTML file. I can
    make it work if the code is embedded via Actions on frame 1, but
    not when the code is in an external .as file! The example I'm
    playing with is the 'Dynamic video playlist'...
    http://www.adobe.com/devnet/flash/articles/video_playlist.html
    and the amendments I've made in the VideoPlaylist.as file are
    as <=====ADDED below...
    ALL HELP/COMMENTS MUCH APPRECIATED, thank you
    ROBERT
    package {
    import flash.display.MovieClip;
    import flash.display.LoaderInfo; <=====ADDED
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import fl.controls.listClasses.CellRenderer;
    import fl.controls.ScrollBarDirection;
    public function VideoPlaylist():void {
    // Load the playlist file, then initialize the media player.
    xmlLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
    //xmlLoader.load(new URLRequest("playlist.xml"));
    <=====ADDED commented out
    var playlist = this.loaderInfo.parameters.xmlfile;
    <=====ADDED
    xmlLoader.load(new URLRequest(playlist)); <=====ADDED
    argument change
    etc etc...
    The error report is...
    TypeError: Error #2007: Parameter url must be non-null.
    at flash.net::URLStream/load()
    at flash.net::URLLoader/load()
    at VideoPlaylist()
    And the HTML code is this for the xmlfile parameter I'm
    trying to read in...
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
    width="538" height="290" id="VideoPlaylist" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="true" />
    <param name="movie" value="VideoPlaylist.swf" />
    <param name="loop" value="false" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="xmlfile" value="playlist.xml">
    <embed src="VideoPlaylist.swf" width="538" height="290"
    loop="false" align="middle" quality="high" bgcolor="#ffffff"
    name="VideoPlaylist" allowscriptaccess="sameDomain"
    allowfullscreen="true" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    xmlfile="playlist.xml" />
    </object>

    Many thanks for both your replies. I used Dreamweaver's
    Parameters 'helper' to put the params in, and they were placed in
    AC_FL_RunContent() correctly. I also tried the FlashVars variations
    with the same result. As said I have made it work when the
    retreival code is in the main swf file, but it just won't work for
    me when the coding is in an external .as file.
    Thanks again
    ROBERT

  • List View filtered by multiple params (one from cookie) - works fine when groups are expanded initially, but hides filtered items when collapsed and then expanded.

    Hello!
    I have a page with a list view web part. I am applying multiple filter parameters to it: I have to display documents for all US locations (general) and also filtered view of documents for user's office location. I am setting the user location Cookie and
    i have configured webpart with Param to read it. Second filter value is hard-coded (Non-specific location). It all works FINE when i set the list View to expand all groups by default.  The problem starts when I set it to be collapsed from the start: 
    Collapsed group shows correct number of items to be inside but when i expand it, the 1 extra LOCAL item filtered by {PARAM}  is missing from inside this expanded group. Only items filtered by a "hardcoded text param" are being shown.  And
    again - when i change the view and set it to be expanded by default - ALL items are being shown without any problem! Only thing that breaks it - setting of collapsed-expanded for this view groups. nothing else.
    Any suggestion on how to work with this thing?
    I can't make all groups expanded by default - too many documents, but it only time when it works.
    I tried changing view design, other characteristics, but nothing makes it change the behavior so far.
    I really want o avoid creating custom "hardcoded" views for each location where location is predefined instead of dynamically read it from cookie. For me it looks like something is connected with PARAM as only these items are affected by this weird
    behavior. Thank you in advance!

    Hi Olga
    I have tried the method you have mentioned, but the jquery function is not working to collapse the groups.
    I have tried 2 approaches, but none of them is working fully:
    1) Raising the Click event as follows
    for (var i = 0; i < links.length; i++)
                         if (links[i].href == "javascript:" && links[i].onclick.toString().indexOf("ExpCollGroup")
    > -1)
                               links[i].click();
    2) ExpCollGroup()
    Please suggest or send the correct method to collapse

  • Why does #{param.testParam} stop working after a pageDefinition is created?

    Hi there,
    Environment:
    JDeveloper 11.1.1.7
    Setup:
    I have a task flow with a simple view that takes one input page parameter, namely
      <task-flow-definition id="simpleTaskFlow">
        <view id="view1">
          <page>/my/test/view/myView.jsff</page>
          <input-page-parameter>
            <from-value>#{param.testParam}</from-value>
            <to-value>#{pageFlowScope.testParam}</to-value>
          </input-page-parameter>
        </view>
      </task-flow-definition>
    My page fragment /my/test/view/myView.jsff then just simply tries to af:outputText the input parameter:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:outputText value="#{pageFlowScope.testParam}" id="ot1"/>
    </jsp:root>
    Problem
    All is good UNTIL I generate a page definition for the page fragment, the input page parameters that I have set fail after this. I think it is a problem with #{param.testParam}.
    I can access it via the page definition using a parameter who's value is #{param.testParam}, e.g.
      <parameters>
        <parameter id="testParam" value="#{param.testParam}"/>
      </parameters>
    and then use #{bindings.testParam} in my page fragment instead
    BUT that I want to avoid, can anyone advise on why this is so? And can I still get #{param.testParam} from a view with a page definition?
    Regards

    Hi,
    this may have to do with the partial data fetching, which basically issues follow-up requests to fetch data. However, a view in a bounded task flow should not read parameters from the request. Instead the task flow should have an input parameter passing this information into the pageflow bean
    Frank

  • &param lexical variable in SELECT clause

    Is there a way to get Oracle*Reports to accept a lexical variable in the SELECT clause? The example is:
    SELECT
    table.column1,
    table.column2,
    &PARAM as column3
    FROM
    table
    I am already using lexical variables in the WHERE clause, but getting one to work in the SELECT clause has thus far failed.
    The SQL is accepted if :PARAM is used in place of &PARAM, but I am unable to actually vary the selected column this way.
    The bind variable PARAM has the following code behind it in a BeforeReport trigger:
    IF :ANOTHER_PARAM := 'ALL' THEN
    :PARAM = 'ALL'
    ELSE
    :PARAM = 'table.column3'
    When using :PARAM in the SELECT clause, the literals 'table.column3' are returned, not the contents of table.column3.

    Sorry for the wasted bandwidth. I found a solution. Here it is:
    SELECT
    table.column1,
    table.column2,
    CASE :P_USER
    WHEN 'ALL' THEN 'ALL'
    ELSE table.column3
    END as column3

  • Access custom variable value in web.xml context-param?

    My requirement or need is to access a variable value either in a class in my Model project or a backing bean in my View project. For example, one variable I need to access is an application server I am integrating with - 'testserver' or 'productionserver' - I want to be able to configure this within an external file so that I do not have to re-compile my application to change the variable.
    I was thinking about placing this variable in the web.xml <context-param> section as:
    <context-param>
    <param-name>servername</param-name>
    <param-value>testserver</param-value>
    </context-param>
    I need to access this value within a class (not a servlet) on an Application Module service method, though if needed, I could access it from a backing bean and pass it to the service method (less desirable.) Is this a good approach and how do access this variable from within a Java class including any imports I need to do (code example)?
    Thanks and Happy New Year!
    Hopefully most everyone is out spending time with friends and family versus stuck trying to complete a project like me...

    I found an example from SRDemo that provides what I was looking for:
    String serverhostaddress =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("param-name-var-in-webxml");

  • Java-Application send a param value to a JSP

    Hi All
    I'd like to ask you if can possible to send a param value from Java-Application to JSP file, If yes please provide me with any example or notes. I know that there are a contribution for a communication with an applet to JSP, but with application i don't know.
    Thank you

    Check this out...
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets5.html#73895

  • Passing javascript value to jsp param

    Hi all,
    I want to be able to pass the return value of function getUrl() to jsp param...Is this a correct way? it's not working.... What should I assign to the value of param?
    <HTML>
    <HEAD>
    </HEAD>
    <script language="javascript">
    function getUrl()
         var url=window.location;
         return url;
    </script>
    <BODY>
    <jsp:include page='GetFileServlet' flush="true" >
    <jsp:param name="url" value= "return getUrl()"/>
    </jsp:include>
    </BODY>
    </HTML>
    thank you for your time and assistance

    Hi all,
    I want to be able to pass the return value of
    function getUrl() to jsp param...Is this a correct
    way? it's not working.... What should I assign to
    the value of param?
    <HTML>
    <HEAD>
    </HEAD>
    <script language="javascript">
    function getUrl()
         var url=window.location;
         return url;
    </script>
    <BODY>
    <jsp:include page='GetFileServlet' flush="true" >
    <jsp:param name="url" value= "return getUrl()"/>
    </jsp:include>
    </BODY>
    </HTML>
    thank you for your time and assistanceThis can't be done, since the jsp call will be exercised on the server, before the page gets sent to the user, while the javascript gets performed on the client (well after the jsp is done its job).
    An all server-side solution would be what you needed:
    <HTML>
        <HEAD>
        </HEAD>
        <BODY>
            <jsp:include page='GetFileServlet' flush="true" >
                <jsp:param name="url" value= "<%=request.getRequestURL()%>"/>
            </jsp:include>
        </BODY>
    </HTML>

Maybe you are looking for

  • Does an external hard drive have to stay plugged in with Time Machine?

    I have an external hard drive but I do not always leave it plugged in.  I usually back up my computer every week or so and am just now getting around to using Time Machine. If i plug in my external hard drive and press "Back up now" will Time machine

  • ICloud not listed in Edit smpt in Mail preferences

    Hi all-I have been having issues with Mail lately. I am running Mavericks (latest version) and Mail is 7.3. First it keeps asking me for my password. I have lost count the number of times I have reentered it! But it keeps on asking. I enter the passw

  • Trading in old AT&T iPhone4: do I need to mail  the original headset, usb cable and wall charger?

    I received Verizon's prepaid mail-back envelope, but it's so small that it looks like designed for the iPhone4 only, there is not much space to squeeze in the original, but old accessories. The FAQ section does not answer this question.  

  • Monitor or TV for laptop

    Hello,   I am looking to buy a bigger monitor for my work computer, its a laptop, compaq presario F700.  I am hoping to get something around 32" or bigger.  I saw a good deal on 32" TV's on the website but I'm not sure if they will work or not.  I us

  • Changing selectindex in AS of a datagrid doesn't work!?

    I'm having a real problem changing the selectedindex of a datagrid on the fly after a re-sort (Using AS3 with Flex4). See below. Particularly the function call comments. My sort works and it gets assigned to ldimmer_checkChannel.selectedIndex with th