Getting env variables into servlet

I am making a call to a servlet http://3.70.201.210/servlets/basic?cmd=Attach
Apparently, the servlet is not getting some of the environment variables it needs to make use of due to which it fails to load and the browser times out.
In httpd.conf, I use
PassEnv TARGET_ROOT
PassEnv PRODUCT
but they dont seem to get passed
It was working before. All I did was upgrade Apache from 1.3.28 to 1.3.29. jserv version has been the same in both versions.
Any pointers.
Thanks in advance for any help or suggestions.

Found it .. adding
wrapper.env=var=value
in jserv.properties fixed it !

Similar Messages

  • How to get a variable into another block?

    Hello,
    (I am from Germany, so be patient due my english please)
    We do a project at our University where we have to do with wordfrequencies. The app works fine, but it cannot works with the variable wich contains the information to analyse.
    Look, I am more or less new in Java and I found a code and modyfied that. So I had to initalize the variable with the data from another class. I did the following thing.
    Thats is the class, where the variable is come from:
    class Lesen extends HTMLEditorKit.ParserCallback                                        
         String zeile;                                                                           
         String fileName;                                                                
         Wortfrequenz aha;                                 // name of the class where I need the variable                                                                                                                                                                      public Lesen (String fileName)                                                          
              this.fileName = fileName;                                                      
    public void handleText(char[] data, int pos)                                            
                    String strom = new String (data);                                       
                    aha = new Wortfrequenz ();                                              
                    aha.verb(strom);                // "strom" is the variable here in this class which caontains the data
    ....and within the class "Wortfrequenz" I tryed to do the following thing:
    import java.util.*;                                                                     
    import java.io.*;                                                                       
    public class Wortfrequenz
         static String flus;                                                                     
         public void verb (String o)                                                             
              flus = o;                                                                       
    HashMap words = new HashMap();                                                         
    HashMap stopWords = new HashMap();                                                      
    String delim = " \t\n.,:;?!-/()[]\"\'";                                                 
    String file;                                                                            
    String word;               
    Count count;                                                            
                    try
                            FileReader kl = new FileReader("stopwords.txt");                
                            BufferedReader mk = new BufferedReader(kl);                     
                            String einlesen;
                            Lesen eins = new Lesen(flus);                                   
                            while ((einlesen = mk.readLine()) != null)                      
                                    stopWords.put(einlesen, einlesen);                      
                            mk.close();  if I test the app and do a "System.out" direktly after
    flus = o;then I can see that the information is within the variable, but when I test the variable within the next block where I need it, for example after
    Count count;or anywhere in this block, then I get
    null
    null
    null
    null
    null
    ...if anyone tell me how I can get the information of this variable into the nex block, that would be great.
    Thanks a lot for helping...
    Stephan

    This: public void verb (String o)                                                             
      flus = o;                                                                       
    }Is the whole verb method. That's all it does is assign the flus variable. This:{               
    HashMap words = new HashMap();   
    // etcIs an initializer, which runs as soon as the object is created, ie before the verb method.

  • Get "#"  from URL into servlet

    Hi
    I am writing a servlet which can check that the requested URL is having "#" or not.?
    Let's say my URL is like, http://abc.com/#/efg/hij.jsp
    As it is having "#' sign in the URL string, So I need to check the existence of "#" in requested URL.
    My problem is when I write ..
    StringBuffer url = request.getRequestURL();
    String requestedURL = url.toString();
    requestedURL only provides me the string before "#" i.e. http://abc.com/
    I need to check if it has "#" or not with whole URL string.
    Is there any way to check that into servlet.?

    The # sign is a client side sign telling it to go to a bookmark with the name following the # sign. The # sign is not part of the requested URL, so you can't get it on the server side.
    If you are generating URLs with the # sign and trying to make it do something you should re-think the design since the # sign is reserved for client side use.
    Alternatively you could try to pass any URL that does have the # sign through java.net.URLEncoded.encode(theURL, "UTF-8") to see if you can then get it back on the server.

  • Issue with getting flash variables into PHP to mail

    Hi there,
    Is anyone able to take a look at this forum post and assist
    please?
    http://www.actionscript.org/forums/showthread.php3?t=193471
    Really at a loose end on this one!
    Many thanks.

    Hey Nasia.A.
    Sending information from flash to php, then from php to
    flash is simple once you get the hang of it.
    Tut1
    tut2
    There are thousands of tutorials on the internet. Just google
    -> send data to php from flash or vice versa.
    Good luck!

  • Need to get select result into a shell variable.

    Hi,
    I want to get below command output into a OS variable. Which will be used later in the shell script. Can you please advice how to go about it?
    VAR v_tool_execution_id NUMBER;
    EXEC :v_tool_execution_id := trcanlzr.trca$p.get_tool_execution_id;
    SELECT TO_CHAR(:v_tool_execution_id) tool_execution_id FROM DUAL;
    I can't do following
    VAR1=`sqlplus -s $unpwd <<EOF
    VAR v_tool_execution_id NUMBER;
    EXEC :v_tool_execution_id := trcanlzr.trca$p.get_tool_execution_id;
    SELECT TO_CHAR(:v_tool_execution_id) tool_execution_id FROM DUAL;
    EOF`
    Since tool execution is specific to session and exiting will not server my purpose since i need to run another command which generates a file name using tool execution id.
    Thanks for your time.
    Regards,
    Nagendra Chillale

    Actually the idea is the same. Instead of getting the variable into a shell script, call the shell script which use the variable from sqlplus. I attempted to include the line to call a shell script but had a mistake :P
    The last line should be
    SQL> host /path/to/second/part.sh &exec_idAnother way is to spool the variable into a file, then read the file into a variable in your shell script. You need to use head / tail command to extract the desired row, because Oracle adds blank lines, headers, etc in its spool output
    In your SQL script
    SQL> spool tool_execution_id.txt
    SQL> SELECT TO_CHAR(:v_tool_execution_id) tool_execution_id into :vtemp FROM DUAL;
    SQL> spool offIn your shell script (the desired line appeared in the second last line in my case)
    tool_execution_id=`tail -2 tool_execution_id.txt|head -1`
    echo $tool_execution_idEdited by: thtsang on Mar 30, 2010 11:43 AM

  • Get CGI env variables in a database procedure using new APEX Listener

    I already posted this question in the Apex Listener forum and still no replies after one week. The original post is here:
    Get CGI environment from APEX Listener within database procedure
    So please forgive me for posting in this forum as well, but there is a lot more activity here.
    I'd like to know how I can get the CGI environment from the APEX Listener. For example, if I want to write a procedure that inserts into a table the originating IP Address of the client making the web request, how do I get it?
    I am familiar with the Oracle Http Server and mod_plsql, and I know how to call OWA_UTIL.GET_CGI_ENV to get this sort of information. How do I do it using the APEX Listener?
    In particular, how do I do this when calling a custom procedure (not in an Apex workspace)? When I try it now, I get an error from owa_util. The cgi env seems to be empty or not initiated (owa.num_cgi_vars is null or zero).
    Specific set-up:
    I have a web server running the latest JDK, Glassfish, and 1.1.4 Apex Listener. It connects to another server running the latest 11.2 database. Apex is installed and running, but I am not really developing a traditional Apex application in a workspace. I mainly use it like you would use mod_plsql. In other words, I have custom pl/sql packages that are called directly via URL. The requests are forwarded by the listener to the database, and the DB executes the procedure and returns output using htp.p to send text back to the browser. And it works just fine for this purpose. But if I want to call GET_CGI_ENV to get information like the IP Address, web browser making the request, etc. I can't seem to get it with the OWA packages.
    Can anyone shed some light on this? If Apex Listener is not designed to do this, is there some kind of workaround I can use to forward this sort of information to the database for each request?

    I have not tried owa_util.print_cgi_env from SQL Workshop yet, as I have not created an APEX workspace. I have had no need for a workspace because of the way I am using APEX as a method for calling custom packages and stored procedures. In other words, I am using APEX strictly for the mod_plsql functionality. I just use it to forward requests to the database to execute pl/sql code, but I don't develop anything in APEX. My application is a web service with no screens and no direct user interface, which is why I did not need to create APEX forms. The front end is a mobile app that makes calls to the web service.
    But I have tried calling owa_util.print_cgi_env in one of my stored procedures and it returns no data, even when calling it from the web front-end.
    So I am beginning to believe that if the OWA toolkit works with APEX, then it must only be enabled when invoked within a workspace. Stand-alone procedures can be called via APEX, but apparently doing so does not initiate the CGI env variables. This set-up used to work under the OHS with mod_plsql. The embedded pl/sql gateway also works this way.
    Is there a procedure call that APEX is making to set the environment before each SQL Workshop request?
    My security model currently blocks access to all packages and procedures except for my custom packages. I am using the APEX Listener configuration to allow only the packages listed by name in a white list. But I thought I allowed all access when I first tried calling the OWA packages. I'll have to try that again.

  • Inserting user variables into MYSQL database using servlet

    I have a servlet that recieves user entered parameters from an html form and inserts them into a user table in MYSQL, or at least is supposed to. I can get it to update the table with specific values but not with the user variables. I know the single quote marks are for inserting specific values but without them it doesn't properly work.
    The parameters are parsed correctly into the variables, so I just can't figure out how to ge tthe variables into the database. Any help would be wonderful
    register.html:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
      <TITLE>Register</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <CENTER><IMG SRC="dvdti.jpg" ALIGN=middle >   </CENTER>
    <HR>
    <H1 ALIGN="CENTER">Please enter your registration details:</H1>
    <FORM ACTION="http://localhost:8080/examples/servlet/Assignment1.register">
      <BR>First Name: <input type="text" NAME="Ufirst_name"><BR>
      <BR>Last Name: <input TYPE="TEXT" NAME="Ulast_name"><BR>
      <BR>Address: <INPUT TYPE="text"  name="Uaddress"><BR>
      <BR>E-mail:     <INPUT TYPE="TEXT" NAME="Uemail"><BR
      <BR>Password: <INPUT TYPE="password" NAME="Upassword"><BR>
      <CENTER>
        <INPUT TYPE="SUBMIT" VALUE="Register">
      </CENTER>
    </FORM>
    </BODY>
    </HTML>
    register.java:
    package Assignment1;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    // Connects to a database to retrieve music data
    public class register extends HttpServlet {
      public void doGet(HttpServletRequest request,
                        HttpServletResponse response)
          throws ServletException, IOException {
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
    // Database connection code starts here
         Connection conn = null;
         // loading jdbc driver for mysql (help in mysql.jar file in classpath)
         try{
             Class.forName("com.mysql.jdbc.Driver").newInstance();
         } catch(Exception e) {
             System.out.println(e);
         // connecting to database
         try{
              // connection string for demos database, username demos, password demo-pass
             conn = DriverManager.getConnection
            ("jdbc:mysql://mudfoot.doc.stu.mmu.ac.uk:3306/roddiea?user=roddiea&password=");
              System.out.println("Connection to database successful.");
           catch(SQLException se) {
             System.out.println(se);
    // Create select statement and execute it
      try        { Statement stmt2 = conn.createStatement();
              // Get the regdetails from the reg form
               String Ufirst_name = request.getParameter("Ufirst_name");
               String Ulast_name = request.getParameter("Ulast_name");
               String Uaddress = request.getParameter("Uaddress");
               String Uemail = request.getParameter("Uemail");
                  String Upassword = request.getParameter("Upassword");
              stmt2.executeUpdate("INSERT INTO customer(first_name, last_name, address, email, password)" + "VALUES('Ufirst_name', 'Ulast_name', 'Uaddress', 'Uemail', 'Upassword')");
              System.out.println (stmt2);
              out.println(stmt2);
              out.println(Ufirst_name + Ulast_name + Uaddress + Uemail + Upassword);
        // close the html
        out.println("</BODY></HTML>");
              stmt2.close();
             conn.close();
         }catch(SQLException se) {
             System.out.println(se);
    }Message was edited by:
    Altered_Carbon
    Message was edited by:
    Altered_Carbon
    I also realise that this is a more MYSQL titled problem, but those forums look rubbish <_<

    Investigate PreparedStatement.
    Currently you're trying to insert a value "Ufirst_name" instead of the value of the variable called Ufirst_name.
    It's possible to do this (you could do something like this: "... '" + UfirstName + "' ...") but DEFINITELLY NOT RECOMMENDED. Instead use a prepared statement.
    D.

  • Is it possible to get post or Get variables into a flex applicaition without messing with the flashvars?

    Is it possible to get post or Get variables into a flex
    applicaition without messing with the flashvars?

    Probably externalInterface, and maybe BrowserManager.
    But both of those are much harder and messier than flashvars.
    Why are you trying to avoid the easy way?

  • How can i get this variable value into second page IN BSP

    Hi friends
    I have variable wk_matnr value 'ABC' in first page of BSP.
    How can i get this variable value into second page.
    Moosa

    Hi,
    you can define variable (page attribiue) on the second page with the same name. You can realise the Navigation with Button ther started onInputProcesing routine. In onInputProcesing you have to call navigation->set_parameter with attribut name as parameter and then starting the navigation. If you have checked the auto property on the variable on second page and varable have same name, the value of variable should be transported.
    [See this tutorial|http://help.sap.com/saphelp_erp2005/helpdata/DE/1a/c5133a62983c0ae10000000a114084/frameset.htm]
    Best regards
    Bogdan

  • CFHTTP to get response variable

    Hi all,
    I am integrating the HSBC CPI to a site at the moment, and am
    having some difficulty in getting the value of the CPI hash. I am
    attempting to use CFHTTP to post form variables to a page to get
    the variables converted to a hash then returned to my page to
    submit.
    I am using the following code:
    <!--- GET ORDER --->
    <cfinvoke component="cfc.shoppingCart"
    method="getSavedOrder" returnvariable="getSavedOrder">
    <cfhttp method="get" redirect="yes"
    url="OrderHash.cfm">
    <cfhttpparam type="formfield" name="OrderId"
    value="#getSavedOrder.orderRef#">
    <cfhttpparam type="formfield" name="TimeStamp"
    value="">
    <cfhttpparam type="formfield" name="CpiReturnUrl"
    value="https://www.mysite.com/results.cfm">
    <cfhttpparam type="formfield" name="CpiDirectResultUrl"
    value="https://www.mysite.com/results.cfm">
    <cfhttpparam type="formfield" name="StorefrontId"
    value="UK12345678GBP">
    <cfhttpparam type="formfield" name="OrderDesc"
    value="Online Shop">
    <cfhttpparam type="formfield" name="PurchaseAmount"
    value="#replace(decimalFormat(getSavedOrder.orderTotal), ".", "",
    "All")#">
    <cfhttpparam type="formfield" name="PurchaseCurrency"
    value="826">
    <cfhttpparam type="formfield" name="TransactionType"
    value="Auth">
    <cfhttpparam type="formfield" name="UserId" value="">
    <cfhttpparam type="formfield" name="Mode" value="T">
    <cfhttpparam type="formfield" name="MerchantData"
    value="">
    <cfhttpparam type="formfield" name="BillingFirstName"
    value="#getSavedOrder.uFirstName#">
    <cfhttpparam type="formfield" name="BillingLastName"
    value="#getSavedOrder.uLastName#">
    <cfhttpparam type="formfield" name="ShopperEmail"
    value="">
    <cfhttpparam type="formfield" name="BillingAddress1"
    value="#getSavedOrder.billAddr1#">
    <cfhttpparam type="formfield" name="BillingAddress2"
    value="#getSavedOrder.billAddr2#">
    <cfhttpparam type="formfield" name="BillingCity"
    value="#getSavedOrder.billAddr3#">
    <cfhttpparam type="formfield" name="BillingCounty"
    value="">
    <cfhttpparam type="formfield" name="BillingPostal"
    value="#getSavedOrder.billPoco#">
    <cfhttpparam type="formfield" name="BillingCountry"
    value="826">
    <cfhttpparam type="formfield" name="ShippingFirstName"
    value="#getSavedOrder.delFirstName#">
    <cfhttpparam type="formfield" name="ShippingLastName"
    value="#getSavedOrder.delLastName#">
    <cfhttpparam type="formfield" name="ShippingAddress1"
    value="#getSavedOrder.delAddr1#">
    <cfhttpparam type="formfield" name="ShippingAddress2"
    value="#getSavedOrder.delAddr2#">
    <cfhttpparam type="formfield" name="ShippingCity"
    value="#getSavedOrder.delAddr3#">
    <cfhttpparam type="formfield" name="ShippingCounty"
    value="">
    <cfhttpparam type="formfield" name="ShippingPostal"
    value="#getSavedOrder.delPoco#">
    <cfhttpparam type="formfield" name="ShippingCountry"
    value="826">
    </cfhttp>
    To post to a page that consumes tyhose fields to create a
    hash.
    How can I return the hash to my page using cfhttp? Is it
    possible?
    TIA,
    Paul

    Mark,
    I currently have all the cart side of the site on non ssl,
    and when an order goes through the checkout it loops through the
    cart and creates an order total and saves the order into the db. A
    cflocation sends the user to the https with a URL variable relating
    to the order id. A query pulls that order from the database, uses
    cfhttp to post the data to OrderHash.cfm, receives the order hash
    back - I did this by altering the output of OrderHash.cfm so that
    the hash is the last thing to output, stuck a listLast() around it
    to pull back just the key - , and submits it to the HSBC Servlet.
    It has fallen down at this point on the HSBC site saying that there
    is a communication error.
    I have spoke to their tech support and have someone from
    their senior support team calling me tomorrow as the lady I spoke
    with said that the communication error is usually a browser
    setting.
    I will post more as I get it fixed.
    Paul

  • Env variable confusion - newbie install

    Hello,
    I have completed the installation sequence for db 10g (10.2.0.1) on RHEL 4.3 (x86_64). I am somewhat confused by this installation procedure wrt env. variables such as ORACLE_HOME, ORACLE_SID, ORACLE_BASE, etc.
    The pre-installation guidelines are clear in saying that .bash_profile (in this case) for user 'oracle' should NOT set these variables prior to installation:
    8. If the ORACLE_SID, ORACLE_HOME, or ORACLE_BASE environment variable is set
    in the file, then remove the corresponding lines from the file. (Preinstallation Tasks 2-41)
    User 'oracle's .bash_profile does not get updated during installation; subsequent login as 'oracle' shows that the env. variables are not set via other means. Is there a post-installation step I'm missing?
    Thank you again,
    Scott

    oraenv uses the ORACLE_SID to set the ORACLE_HOME and PATH - including making sure the ORACLE_HOME/bin is unique in the PATH
    But ... unless there is a database instance involved, ORACLE_SID is meaningless. It really does not have meaning until dbca is used to create a database, or the manual counterpart to dbca is invoked and oratab is updated.
    I have found there is a Catch-22 related to the oratab/oraenv which seems to have caused oraenv to be undervalued.
    However, due to the possibility of several ORACLE_HOMEs and several databases, since Oracle7 I have used the following sequence in my .profile
    export PATH=$PATH:/usr/local/bin # if not already done
    export ORAENV_ASK=NO
    ORACLE_SID=orcl
    . orenv
    export ORAENV_ASK=
    and then I am able to source /usr/local/bin/oraenv on demand to set te SID, HOME and PATH for any database.
    It's so useful, I add entries for each ORACLE_HOME into the oratab, regardless of whether it represents a database or not. For example, I will have entries for GridAgent, OMS, and so on.
    I can not explain why the oraenv is not better discussed in the documentation. It misses a major 'feature'.

  • Getting all variables from a session

    I can put and get variables into the session no problem, however I would like to get a list of all the objects stored in the session - is their a quick way to do this ?

    You can use the getAttributeNames() method of HttpSession, which returns an enumeration of the names of all the objects in the session

  • How to SIMPLY use the %DIMENSION_TO_SET% variables into logic scripts

    hello,
    I'm using a prompt of type "COPYMOVE" or "COPYMOVEINPUT". In this type of prompt, there are 2 columns of dimension members list, one for defining the "source zone" and one for defining the "target zone" of logics.
    The left colum of the prompt (for source zone) feeds the variables %DIMENSION_SET% : %ACCOUNT_SET%, %ENTITY_SET%, %CATEGORY_SET%, etc...and these variables can be used in the logic scripts in *XDIM_MEMBERSET instructions for example.
    The right colum of the prompt feeds the variables %DIMENSION_TO_SET% : %ACCOUNT_TO_SET%, %ENTITY_TO_SET%, %CATEGORY_TO_SET%, etc...and I don't know how to SIMPLY use these variables in the logic scripts.
    I've found a tricky way to do that but I meet 2 problems :
    - it is complicated
    - the multi-info instruction (BEGININFO/ENDINFO) seems to be bugged as blank lines are added all the time in the code and sometimes I have to wait for minutes when I try to modifiy the package code through BPC for excel eData/modify package menu.
    So the question is how to SIMPLY get the %DIMENSION_TO_SET% variables into logic scripts and use them ? Thanks, R.
    Here is the tricky package code I use at this time (I build one function for each %DIMENSION_TO_SET% variable and I pass these functions to the logic) :
    PROMPT(COPYMOVE,,,,"ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
    TASK(Execute formulas,USER,WS-WW\PlauchuR)
    TASK(Execute formulas,APPSET,US)
    TASK(Execute formulas,APP,SV)
    TASK(Execute formulas,SELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\FROM_1561_.TMP)
    TASK(Execute formulas,TOSELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\TO_1561_.TMP)
    BEGININFO(%FSS%)
    *FUNCTION TARGETACCDETAIL=%ACCDETAIL_TO_SET%
    *FUNCTION TARGETACCOUNT=%ACCOUNT_TO_SET%
    *FUNCTION TARGETCATEGORY=%CATEGORY_TO_SET%
    *FUNCTION TARGETDATASRC=%DATASRC_TO_SET%
    *FUNCTION TARGETENTITY=%ENTITY_TO_SET%
    *FUNCTION TARGETTIME=%TIME_TO_SET%
    *FUNCTION TARGETYEARS=%YEARS_TO_SET%
    ENDINFO
    TASK(Execute formulas,FORMULASCRIPT,%FSS%)
    TASK(Execute formulas,LOGICFILE,D:\BPC\Data\WebFolders\US\SV
    ..\AdminApp\SV\_TEST.Lgf)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    Edited by: ALEXANDRE BEDIER on Jun 16, 2010 3:15 PM

    hello,
    finally I've discovered that there is no need of BEGININFO instruction.
    One can pass several functions to a logic with one FORMULASCRIPT task. The functions definitions have to be separated by instructions. See below :
    PROMPT(COPYMOVEINPUT,%FTARGETS%,,"select source and target zone for category and datasource.","ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
    TASK(Execute formulas,FORMULASCRIPT,*FUNCTION TACCDETAIL=%ACCDETAIL_TO_SET% *FUNCTION TACCOUNT=%ACCOUNT_TO_SET% *FUNCTION TCATEGORY=%CATEGORY_TO_SET% *FUNCTION TDATASRC=%DATASRC_TO_SET% *FUNCTION TENTITY=%ENTITY_TO_SET% *FUNCTION TTIME=%TIME_TO_SET% *FUNCTION TYEARS=%YEARS_TO_SET%)
    TASK(Execute formulas,USER,%USER%)
    TASK(Execute formulas,APPSET,%APPSET%)
    TASK(Execute formulas,APP,%APP%)
    TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
    TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\_TEST.LGF)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    Then one will be able to use the functions TACCDETAIL, TCATEGORY, TACCOUNT,... in the logic script.
    Edited by: ALEXANDRE BEDIER on Jun 24, 2010 10:31 AM
    Edited by: ALEXANDRE BEDIER on Jun 24, 2010 10:33 AM

  • How to pass a variable into a cfc?

    prior to calling the cfinvoke, I have coding that determins a
    variable "X"
    I need to pass X into a cfc so it can complete the query held
    there.
    So I tried
    <cfinvoke component="A"
    method="AList"
    returnvariable="AResults">
    <cfinvokeargument name="x" value="#X#"
    /></cfinvoke>
    correct so far?
    Now over on the cfc page is where I'm getting stuck
    Inside my cffunction I'm adding <cfargument name="X" />
    But how do I get the value in?

    I don't quite understand your question. Can you rephrase?
    But before all that, bear in mind that one doesn't pass a
    variables into a
    *CFC*, one passes it into a function within the CFC. And as
    with all
    functions, one passes values into the function by passing it
    as an
    argument. But - of course - the function has to be coded to
    expect the
    argument.
    Your own sample code demonstrates this in action:
    <cfinvokeargument name="abbrCode"
    value="#companyAbbrCode#" />
    (NB: lose the trailing slash: this is CFML, not XML).
    So you know how to do that.
    Hence me not quite understanding what you're actually asking.
    Adam

  • How to pass a jsp variable into javascript??

    <p><%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
    <p><%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <p><html>
    <p><c:set var="binrmapi" value="http://localhost/paas-api/bingorooms.action;jsessionid=XXXXXX?userId=TEST2&sessionId=1&key=1" />
    <p><c:import var="testbinrm" url="${fn:replace(binrmapi, 'XXXXXX', jsessionid)}"/>
    <p><c:set var="tuples" value="${fn:split(testbinrm, '><')}" />
    <p>Time until next game
    <p><c:forEach var="tuple" items="${tuples}">
    <p><c:if test="${fn:contains(tuple, 'row ')}">
    <p> <p><code>
    <p> <c:set var="values" value="${fn:split(tuple, '=\"')}" />
    <p> <font color="blue">
    <p> <c:out value="${values[17]}" />
    <p><c:set var="remainingtime" value="${values[17]}" />
    <p> </font>
    <p> </code>
    <p></c:if>
    <p></c:forEach>
    <p><form name="counter"><input type="text" size="8" name="d2"></form>
    <p><script>
    <p>var milisec=0
    <p>var seconds=eval("document.myForm.remaining").value;
    <p>function display(){
    <p> if (milisec<=0){
    <p> milisec=9
    <p> seconds-=1
    <p>}
    <p>if (seconds<=-1){
    <p> milisec=0
    <p> seconds+=1
    <p> }
    <br>else
    <p> milisec-=1
    <p> document.counter.d2.value=seconds+"."+milisec
    setTimeout("display()",100)
    <p>}
    <p>display()
    <p></script>
    <p></body>
    <p></html>
    <p>This is my code that i was working on, in the jsp part of the script, i get a api call and save a value of time in the variable remainingtime.. and in the javascript, i try to have a countdown clock counting down the remaining time.. but i guess it doesnt work.. how can i get that working? thanks alot
    Message was edited by:
    hamham3001
    Message was edited by:
    hamham3001
    Message was edited by:
    hamham3001
    Message was edited by:
    hamham3001

    Re: How to pass a jsp variable into javascript??Here is the sameple one, hope it will solves your problem.
    <html>
    <body>
    <form name=f>
    <%!
    String str = "A String"
    %>
    <script>
    var avariable = <%=str%>
    <script>
    </form>
    </body>
    </html>
    Let me know if you face any problem

Maybe you are looking for

  • Issue using Super LOV within Skillbuilders Modal page

    Hi, I have an app that has an Interactive Report which opens a form using the Skillbuilders Modal page when you click Create button. Within the Modal Page I have a few items that are using the Skillbuilders Super LOV. It all initially works great but

  • RemoteUpdateManager problem... and other questions

    Hi. We are trying to evaluate which update solution to use. We package the apps with CCP, and the users should never get prompted about updates and they are not able to download/upgrade by them self, and they are not admins on their computers. So far

  • Invalid Application Path

    Hello, While creating a new FDM application I am currently recieving a message that states that the application path is invalid. Path statement currently being used_ \\SeverName\D$\Hyperion\products\FinancialDataQualityData\AppName Can someone please

  • How: create keyboard shortcuts in Lion-Safari and Preview

    I've been trying to create a keyboard shortcut for Preview (and perhaps it would work in Safari) so that when I click command and arrow up, the cursor will jump to the top of the document. For example, I'm reading on page 450 of a pdf file and want t

  • How do I find out if I have the plastic or the glass screen

    I got my 4gb Iphone used off Craigslist and it was pretty much impeccable by the guy I purchased it from and He had it for I don't know how long. I have the thing for a couple weeks and the bezel gets the **** scratched out of it, the aluminum back h