HTP package

Hi all,
maybe this is a naive question, maybe not for this forum, but please, can someone tell me where would I be able to find HTP package? Is it installed with the db server?
I use 9i database.
thanks in advance,
teo

thanks a lot ruhn..
ok I issue desc htp and it displays a list of functions. I think that means that it is installed doesn't it?
Just another quick question. Which is the most apropriate forum to ask a question about htp? I wan to know how would I be able to call a stored procedure from a browser's url in order to dynamically create a page with db data.
I think this is a common thing to do but I've never done it plus I don't know which is the right forum for the question.
Please if you can tell me where to ask or to show me a way into this.
Thanks for your time
regards,
teo

Similar Messages

  • Apex new installation - HTP package body has errors

    I installed apex on 10G. When i try to access the apex page, i get the following errors in log:
    [Sat Oct 28 08:39:25 2006] [error] [client 192.168.1.90] [ecid: 1162049964:156.153.112.151:9580:0:9,0] mod_plsql: /pls/apex/apex HTTP-404 ORA-04063: package body "SYS.HTP" has errors\nORA-06508: PL/SQL: could not find program unit being called: "SYS.HTP"\nORA-06512: at line 7\n
    When i recompile HTP package body, i get errors:
    SQL> alter package htp compile body;
    Warning: Package Body altered with compilation errors.
    SQL> sho errors
    Errors for PACKAGE BODY HTP:
    LINE/COL ERROR
    14/11 PLS-00323: subprogram or cursor 'TITLE' is declared in a package
    specification and must be defined in the package body
    15/11 PLS-00323: subprogram or cursor 'HTITLE' is declared in a package
    specification and must be defined in the package body
    1691/7 PL/SQL: Statement ignored
    1691/7 PLS-00307: too many declarations of 'PRINT' match this call
    1694/7 PL/SQL: Statement ignored
    1694/7 PLS-00307: too many declarations of 'PRINT' match this call
    1697/7 PL/SQL: Statement ignored
    1697/7 PLS-00307: too many declarations of 'PRN' match this call
    1700/7 PL/SQL: Statement ignored
    1700/7 PLS-00307: too many declarations of 'PRN' match this call
    1703/7 PL/SQL: Statement ignored
    1703/7 PLS-00307: too many declarations of 'PRINT' match this call
    1706/7 PL/SQL: Statement ignored
    1706/7 PLS-00307: too many declarations of 'PRINT' match this call
    1709/7 PL/SQL: Statement ignored
    1709/7 PLS-00307: too many declarations of 'P' match this call
    1712/7 PL/SQL: Statement ignored
    1712/7 PLS-00307: too many declarations of 'P' match this call
    1715/7 PL/SQL: Statement ignored
    1715/7 PLS-00307: too many declarations of 'P' match this call
    Any ideas...

    Please tell us your first name and update your forum profile with it to help us. Also, change your handle to something more reader-friendly. Thanks.
    If your imported applications are set up to use some kind of SSO authenticaiton and you haven't provided for that in your environment then you'll need to change those applications' authentication scheme to something you can deal with.
    Scott

  • HTP package question

    I have a feeling I'm in the wrong place for this question but maybe someone can help.
    I'm not so good with Oracle configuration and setup issues but I have created a package with a few procedures that output info using the HTP package. At my old place of employment we had a web server set up and we could use
    http://ouraddress.com/packagename.procedurename?p_param1=123&p_param2=456
    We have a web-based application server set up for Oracle Forms (eBusiness Suite) but I don't know if I'm able to do something like this or not. Where/what do I need to set up to use this type of functionality?
    null

    PL/SQL Web Development Tools: Oracle Database provides built-in tools and technologies that enable you to deploy PL/SQL applications over the Web. Thus, PL/SQL serves as an alternative to Web application frameworks such as CGI.
    The PL/SQL Web Toolkit is a set of PL/SQL packages that you can use to develop stored procedures that can be invoked by a Web client. The PL/SQL Gateway enables an HTTP client to invoke a PL/SQL stored procedure through mod_plsql, which is a plug-in to Oracle HTTP Server. This module performs the following actions:
    - Translates a URL passed by a browser client
    - Calls an Oracle Database stored procedure with the parameters in the URL
    - Returns output (typically HTML) to the client
    You got to start from here:
    Developing Applications with the PL/SQL Web Toolkit
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_web.htm#g1026380

  • Sending Binary Data using HTP package

    Has anyone been successful in using the HTP package and its PUTRAW procedure to send binary data to a browser?
    Example code shows basic idea:
    create or replace
    procedure test_raw as
    output VARCHAR2(20);
    begin
    OWA_UTIL.MIME_HEADER('application/x-gzip', TRUE);
    output := 'Hello World!';
    HTP.PUTRAW(UTL_RAW.CAST_TO_RAW(output));
    HTP.FLUSH;
    end test_raw;
    I receive an empty file when called from the browser.
    What gives?

    I found my answer. I should be using wpg_docload.download_file(BLOB) to "download" a the contents of a BLOB.

  • HTP Package and Oracle XE

    Hello Experts,
    I have just installed Oracle10g XE. I wanted to create package/procedure using Oracle HTP package. Would it be possible to use HTP package in XE. If so then how can I call that in browser? (Say package name is my_package_k and procedure id my_proc_p). I do not know what http://???? I have to use??
    Please help me.
    Thanks,
    B Adhvaryu
    London
    UK

    I'm running XE on an Asus 1000H eee netbook and all works fine. I installed 2GB though which is straighforward and relatively inexpensive to do, and also doesn't invalidate the warranty.
    PaulB

  • Reading html data & uploading a file in single html form using htp package

    Hi
    I have designed a html screen using htp package in which i have few text items and file upload button. I have to validate all forms data like text items and check box elements and upload file to unix. I am using java script for file validations and cgi script to upload file. With this I am able to either read form data or upload file but not both.
    At a time I want to insert a record to database with html form values and upload file to unix with htp package. Please suggest how can I read html form data + uploading a file to unix simultaneously in a single htp procedure.
    Thanks,
    Pradeep

    Have you ever considered using Application Express (APEX)?
    Oracle Application Express (APEX)
    Sounds like you're going the long way around to create a web based application.

  • How to incorporate Javscript into oralce htp packages?

    hello,
    I would like to know about the javascript how one can use in oracle HTP packages while creating the forms using HTP packages... are there any course offered by oracle or is there any documentation available on this? on i know the htp package are there but how one can use javascript in htp packages...
    Please do help me out...
    Thanks a lot.......

    Application Developer's Guide - Fundamentals Contents / Search / Index / PDF
    Chapter 18 Page 679
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96590.pdf
    You can enter too javacript code inside a Stored Procedure and use so:
    Example:
    <HTML>
    <HEAD>
    <TITLE>Metalink 2.0</TITLE>
    </HEAD>
    <FRAMESET COLS="152, *" NORESIZE BORDER="0" FRAMESPACE="0"
    FRAMESPACING="0" FRAMEBORDER="NO">
    <FRAME SRC="ml2_gui.checkJavascript?p_section_id=-1" SCROLLING="NO" SCROLLING="NO" MARGINWIDTH="0" MARGINHEIGHT="0" NAME="navbar">
    <FRAMESET ROWS="61,*" BORDER="0" FRAMESPACE="0" FRAMESPACING="0" FRAMEBORDER="NO" NAME="rightframe">
    <FRAME SRC="ml2_gui.queryform"SCROLLING="NO" NORESIZE MARGINWIDTH="0" MARGINHEIGHT=0 BORDER="0" NAME="query">
    <FRAME SRC="per_hom.startup" SCROLLING="AUTO" NORESIZE MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0" NAME="corner">
    </FRAMESET>
    </FRAMESET>
    Joel P�rez

  • Server side includes with htp package

    I have a few procedures that call the htp package and generate dynamic web pages, however the server side includes are being treated as comments; they are not interpreted correctly and hence are not reading the associated file.
    Has anyone encountered this before and found a solution?

    I have a few procedures that call the htp package and generate dynamic web pages, however the server side includes are being treated as comments; they are not interpreted correctly and hence are not reading the associated file.
    Has anyone encountered this before and found a solution?

  • HTP Package Help

    Can someone help me on " how do I export the output of a pl/sql program into a notepad file through HTP Package."
    The output is supposed to be a multibyte character.
    Thanks!!

    the htp package is a package used by the mod pl/sql for apache in the AS. I don't think you can redirect it to a file. Just use dbms_output instead...

  • Oracle XE htp-package limitations?

    Hello,
    I'm developing a web application on my laptop Windows XP pro, Oracle XE 10 + apache + mod_owa. I had some serious issues with htp.p -calls, I'd keep getting this error message, no matter how small I made the htp.p -arguments
    Error 6502 calling procedure:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "SYS.HTP", line 1536
    ....I then started to wonder about this, and so I copied my packages to another machine (Windows server 2003, Oracle 10g, apache + mod_owa), compiled them and my error disappeared !
    Now is this some sort of limitation in Oracle XE, or what?

    Funny.. I'm sure that I submitted my response to this yesterday - but it does not show.
    Anyway, here it is again. No, there is no limitation I'm aware of - having tested the code below in XE. I have a procedure called WebCall that simulates a mod_plsql call. I've used this to test:
    SQL> create or replace type TStrings is table of varchar2(4000);
      2  /                                                         
    Type created.
    SQL>
    SQL> /
    Type created.
    SQL> create or replace procedure WebTest is
      2          cookie  OWA_COOKIE.cookie;   
      3  begin                                
      4          OWA_UTIL.mime_header('text/html', TRUE );
      5          cookie := OWA_COOKIE.get( 'SOME_CUSTOM_COOKIE' );
      6                                                          
      7          HTP.prn( 'What do you want, universe? (Klingon for "hello world")' );
      8          HTP.prn( '<hr>' );                                                  
      9          HTP.prn( rpad('0',3000,'1') );                                      
    10          HTP.prn( '<hr>' );                                                  
    11                                                                              
    12          if cookie.vals.First is NULL then                                   
    13                  HTP.prn( 'Cookie [SOME_CUSTOM_COOKIE] is not set' );        
    14          else                                                                
    15                  HTP.prn( 'Cookie [SOME_CUSTOM_COOKIE] is set to "'|| cookie.vals( cookie.vals.First )||'"' );
    16          end if;                                                                                             
    17                                                                                                              
    18          HTP.prn( '<hr>' );                                                                                  
    19                                                                                                              
    20          HTP.prn( 'You are connection from web browser: '|| OWA_UTIL.get_cgi_env( 'HTTP_USER_AGENT' ) );     
    21  end;                                                                                                        
    22  /                                                                                                           
    Procedure created.
    SQL>
    SQL> create or replace function WebCall( procName varchar2, queryString varchar2 default null ) return TStrings pipelined is
      2          nameList        OWA.vc_arr;                                                                                   
      3          valueList       OWA.vc_arr;                                                                                   
      4          htpBuffer       HTP.htbuf_arr;                                                                                
      5          bufRows         integer         := 99999999;                                                                  
      6          rc              integer;                                                                                      
      7  begin                                                                                                                 
      8          -- name-value list (typical CGI variables)                                                                    
      9          nameList(1) := 'HTTP_COOKIE';                                                                                 
    10          nameList(2) := 'HTTP_HOST';                                                                                   
    11          nameList(3) := 'HTTP_USER_AGENT';                                                                             
    12          nameList(4) := 'QUERY_STRING';                                                                                
    13          nameList(5) := 'REMOTE_ADDR';                                                                                 
    14          nameList(6) := 'REQUEST_METHOD';                                                                              
    15          nameList(7) := 'QUEST_URI';                                                                                   
    16                                                                                                                        
    17          valueList(1) := 'SOME_CUSTOM_COOKIE=123; SOME_OTHER_COOKIE=foo';                                              
    18          valueList(2) := 'localhost';                                                                                  
    19          valueList(3) := 'Mozilla/5.0; PL/SQL Interface';                                                              
    20          valueList(4) := nvl( queryString, 'param1=value1&pama2=value3' );                                             
    21          valueList(5) := 'localhost';                                                                                  
    22          valueList(6) := 'GET';                                                                                        
    23          valueList(7) := '/custom-web-service';                                                                        
    24                                                                                                                        
    25          -- initiliase OWA and configure a basic CGI environment                                                       
    26          DBMS_SESSION.reset_package;                     -- reset PL/SQL PGA maintaining package state                 
    27          rc := OWA.Initialize;                                                                                         
    28          OWA.init_cgi_env( 7, nameList, valueList );                                                                   
    29          htp.HTBUF_LEN := 255;                                                                                         
    30                                                                                                                        
    31          -- now call the web enabled PL/SQL procedure                                                                  
    32          execute immediate 'begin '||procName||'; end;';                                                               
    33                                                                                                                        
    34          -- return the output as rows                                                                                  
    35          OWA.get_page( htpBuffer, bufRows );                                                                           
    36          for i in 1..htpBuffer.Count                                                                                   
    37          loop                                                                                                          
    38                  PIPE ROW( htpBuffer(i) );                                                                             
    39          end loop;                                                                                                     
    40                                                                                                                        
    41          return;                                                                                                       
    42  end;                                                                                                                  
    43  /                                                                                                                     
    Function created.
    SQL> show errors
    No errors.     
    SQL>           
    SQL> col HTML_LINE format a80
    SQL>                        
    SQL> select                 
      2          rownum          as LINE_NO,
      3          b.column_value  as HTML_LINE
      4  from       TABLE( WebCall('WebTest') ) b
      5  /                                      
       LINE_NO HTML_LINE
             1 Content-type: text/html                                                        
             2 Content-length: 3176                                                           
             3                                                                                
             4 What do you want, universe? (Klingon for "hello world")                        
             5 <hr>                                                                           
             6 01111111111111111111111111111111111111111111111111111111111111111111111111111111
               11111111111111111111111111111111111111111111111111111111111111111111111111111111
               11111111111111111111111111111111111111111111111111111111111111111111111111111111
               111111111111111                                                                
    ..snipped..
            17 11111111111111111111111111111111111111111111111111111111111111111111111111111111
               11111111111111111111111111111111111111111111111111111111111111111111111111111111
               11111111111111111111111111111111111
            18 <hr>
            19 Cookie [SOME_CUSTOM_COOKIE] is set to "123"
            20 <hr>
            21 You are connection from web browser: Mozilla/5.0; PL/SQL Interface
    21 rows selected.
    SQL>The WebTest procedure writes a 3000 character string via HTP.PRN. It works fine.
    As it accepts a varchar2 parameter, it should be capable of accepting 32KB strings. Note that the size is byte size and not char size. When using a db with a multibyte char set, a single char consumes more than 1 byte of space and then obviously less chars can be send in a 32KB block.
    Also note that the limit for the SQL engine for varchar2 is 4000 bytes and not 32KB like the PL engine.
    Playing around with the WebCall code, the only time I ran into string size errors, was when changing the HTBUF_LEN parameter to greater than 255. My guess this is a limitation of how the call interface between OWA and mod_plsql has been designed. But this does not limit the actual size of the HTP.PRN to 255 - only the way the data is exchanged (note that the pipeline function returns the data from the HTP buffer in 255 char chunks.

  • Search dbxml, owains, htp packages

    I am searching to download these package :
    owains.sql, htp*.sql
    because i try to use The dbxml package who need the previous package. We work under
    Oracle 8.0.4 release.
    Thanks, DP

    They are included in the .\xsql\demo\owa\owa_package.zip that come with the XSQL Servlet.

  • How to get full path using HTP.PRINT(' "input type ="file") ....

    Hello everybody,
    I am working on uploading file from page to another one using HTP package, but whenever I submit the form, it only takes the filename without the full path.
    for example :
    if i sent 'c:\dir\a.txt' , the other page receives file parameter as 'a.txt'
    the code is here
    PROCEDURE upload(appno in varchar2,wsct in varchar2) AS
    l_real_name VARCHAR2(1000);
    BEGIN
    HTP.htmlopen;
    HTP.headopen;
    HTP.title('Test Upload');
    HTP.headclose;
    HTP.bodyopen;
    HTP.header(1, 'Test Upload');
    HTP.print('<form action="https://ssltrng.uaeu.ac.ae/trng/document_api.upload1" method="get">');
    HTP.print(' File to upload: <input type="file" name="file" >
    HTP.print(' <input type="submit" value="Upload">');
    HTP.print('</form>');
    HTP.bodyclose;
    HTP.htmlclose;
    END upload;
    the other page see it as
    file is 'Water lilies.jpg'
    Thanks
    Edited by: dtabed on Mar 30, 2011 1:02 AM

    Do not understand the problem.
    The code you've posted is a PL/SQL web enabled procedure that produces a dynamic HTML page. This page contains a form. And a full URL reference to the CGI that will process the form's data.
    This is unusual - as it seems to be that the form is submitted across domains and web servers.. You usually refer to a local CGI procedure to deal with a form - no need for a fully qualified URL that includes web server and domain name.
    If the CGI procedure that receives the form is also a PL/SQL web enabled procedure, that the uploaded file will be placed in the documents table (as defined in the DAD alias) by mod_plsql, prior to the web enabled procedure being called. The documents table will contain the Mime type, file name, file contents and other details.

  • Htp buffer error when using non-ascii characters

    Hello, and my question:
    When I issue the following command, 10000 times to print on web it works well:
    htp.prn('&lt;a&gt;this is a test&lt;/a&gt;');
    But when I issue this command by just substituting "this is a test" with characters that their ASCII codes are between 128 to 255, I can not print more than 100 times and I get htp buffer error!
    could you please solve this puzzle for me?
    Thanks in advance and
    Regards

    You should try the DB forum for better help. This is really an HTP package issue.

  • Trouble calling htp in a web service procedure

    I have a procedure that I was calling directly within an APEX application that allowed the user to download XML files, as follows:
    PROCEDURE download_my_file (
    p_resid IN VARCHAR2
    , p_filename VARCHAR2
    , p_filter_str IN VARCHAR2 DEFAULT NULL
    AS
    v_mime VARCHAR2 (48) := NULL;
    v_length NUMBER;
    v_file_name VARCHAR2 (2000);
    v_clob CLOB;
    v_buf VARCHAR2 (32000);
    v_amt NUMBER := 4000;
    v_pos NUMBER := 1;
    BEGIN
    IF p_filter_str IS NULL
    THEN
    SELECT EXTRACT (VALUE (r), '/*').getclobval ()
    , DBMS_LOB.getlength (EXTRACT (VALUE (r), '/*').getclobval ())
    INTO v_clob
    , v_length
    FROM TABLE (XMLSEQUENCE ((SELECT xdburitype (any_path).getxml ()
    FROM resource_view
    WHERE resid = p_resid))) r;
    ELSE
    v_clob:= repos_datasets.dyn_dset_licensed_location_xml(p_filter_str=>p_filter_str);
    v_length:=DBMS_LOB.getlength (v_clob);
    END IF;
    -- set up HTTP header
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Content-length: ' || v_length);
    HTP.p ('Content-Disposition: attachment; filename="' || NVL(p_filename,'user_query.xml') || '"');
    OWA_UTIL.http_header_close;
    BEGIN
    v_pos := 1;
    LOOP
    DBMS_LOB.READ (v_clob
    , v_amt
    , v_pos
    , v_buf
    v_pos := v_pos + v_amt;
    HTP.prn (v_buf);
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    END;
    END download_my_file;
    The procedure works perfectly when a process calls the procedure directly from the database, however, I now have a requirement whereby this download facility needs to be accessed through a web-service: merely creating a web-service for the procedure and running it through a page process returns a 'ORA-06502: PL/SQL: numeric or value error' message. I assumed as APEX is a web environment that the htp package functions would use the session that APEX had started but obviously they are not.
    How would I go about manually creating a session (I presume that's what's required) that would support the htp calls and allow the user to download the files exactly as they could with a direct call to the database procedure? I know it involves some initialization using the OWA package but this is alien territory for me, can anyone help at all?

    Has anyone come across a similar scenario? There are plenty examples of calling web-enabled procedures directly from APEX but I must call such a procedure through a web-service reference. Failing anyone having a similar problem, could someone explain to me how the Common Gateway interface variables are set when an APEX application calls a web enabled procedure?
    I've included the code for the procedure I'm trying to run which I have altered to include CGI environment parameters: I'm getting these parameters by calling owa_util.get_cgi_env in the calling APEX application and passing the individual values to the procedure through the web service reference. I chose those variables I thought would tell the procedure where to return the HTML to but I'm just getting a blank page.
    Anyone any suggestions? (code below)
    PROCEDURE download_my_file (
    p_resid IN VARCHAR2
    , p_filename VARCHAR2
    , p_filter_str IN VARCHAR2 DEFAULT 'sepa_region = ''North'''
    ,p_SERVER_PORT VARCHAR2
    ,p_SERVER_NAME VARCHAR2
    ,p_QUERY_STRING VARCHAR2
    ,p_HTTP_USER_AGENT VARCHAR2
    ,p_HTTP_HOST VARCHAR2
    ,p_HTTP_REFERER VARCHAR2
    ,p_DAD_NAME VARCHAR2
    ,p_REQUEST_CHARSET VARCHAR2
    ,p_HTTP_COOKIE VARCHAR2
    AS
    v_mime VARCHAR2 (48) := NULL;
    v_length NUMBER;
    v_file_name VARCHAR2 (2000);
    v_clob CLOB;
    v_buf VARCHAR2 (32000);
    v_amt NUMBER := 4000;
    v_pos NUMBER := 1;
    namelist OWA.vc_arr;
    valuelist OWA.vc_arr;
    htpbuffer HTP.htbuf_arr;
    bufrows INTEGER := 99999999;
    rc INTEGER;
    BEGIN
    IF p_filter_str IS NULL
    THEN
    SELECT EXTRACT (VALUE (r), '/*').getclobval ()
    , DBMS_LOB.getlength (EXTRACT (VALUE (r), '/*').getclobval ())
    INTO v_clob
    , v_length
    FROM TABLE (XMLSEQUENCE ((SELECT xdburitype (any_path).getxml ()
    FROM resource_view
    WHERE resid = p_resid))) r;
    ELSE
    v_clob:= repos_datasets.dyn_dset_licensed_location_xml(p_filter_str=>p_filter_str);
    v_length:=DBMS_LOB.getlength (v_clob);
    END IF;
    namelist (1) := 'SERVER_PORT';
    namelist (2) := 'SERVER_NAME';
    namelist (3) := 'QUERY_STRING';
    namelist (4) := 'HTTP_USER_AGENT';
    namelist (5) := 'HTTP_HOST';
    namelist (6) := 'HTTP_REFERER';
    namelist (7) := 'DAD_NAME';
    namelist (8) := 'REQUEST_CHARSET';
    namelist (9) := 'HTTP_COOKIE';
    valuelist (1) := p_SERVER_PORT;
    valuelist (2) := p_SERVER_NAME;
    valuelist (3) := p_QUERY_STRING;
    valuelist (4) := p_HTTP_USER_AGENT;
    valuelist (5) := p_HTTP_HOST;
    valuelist (6) := p_HTTP_REFERER;
    valuelist (7) := p_DAD_NAME;
    valuelist (8) := p_REQUEST_CHARSET;
    valuelist (9) := p_HTTP_COOKIE;
    -- initiliase OWA and configure a basic CGI environment
    DBMS_SESSION.reset_package; reset PL/SQL PGA maintaining package state
    rc := OWA.initialize;
    OWA.init_cgi_env (9
    , namelist
    , valuelist
    htp.showpage ();
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Content-length: ' || v_length);
    HTP.p ('Content-Disposition: attachment; filename="' || NVL(p_filename,'user_query.xml') || '"');
    OWA_UTIL.http_header_close;
    owa_util.print_cgi_env;
    --wpg_docload.download_file( v_clob );
    BEGIN
    v_pos := 1;
    LOOP
    DBMS_LOB.READ (v_clob
    , v_amt
    , v_pos
    , v_buf
    v_pos := v_pos + v_amt;
    HTP.prn (v_buf);
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    END;
    Message was edited by:
    user592383

  • Mail Merge/ HTP question

    Hi,
    I'm trying to implement the Mail Merge utility that Scott Spendolini created. I had to make a few changes to my code to enable it handle large files. However, I now find that while it is correctly merging the document it is producing it with a name of "f" - no extension, no nothing.
    <p>
    My question is this: using the HTP package (to produce an RTF file) how do I specify the name of the file that is created?
    <p>
    Thank you in advance for your help.
    <p>
    David.

    I've figured this out for myself now. I didn't know that I could use the following syntax:
    <p>
    htp.p('Content-Disposition: attachment; filename="FILENAME.rtf"');

Maybe you are looking for

  • BB no longer syncs with iCal after BB OS upgrade

    My BB doesn't sync with Contacts or iCall since the latest BB OS upgrade. Anyone else?

  • Weird quirk with PHP

    So I made an address book using PHP and DW8. Something strange happens when I enter an individuals name in. The persons last name is "Anderson" but I found that I only need to enter "Anders" for this error to occur: Joe AndersPHP Notice: Undefined va

  • Hp veer stuck pixels?

    I have a new veer that i got off from someone unlocked over ebay. A few weeks i reboot the phone and notice that theres around 8-10 stuck pixels on the screen. I tried looking for a way to get it fixed over warranty, but it only gives a phone number

  • Printing to specific coordinates

    Is there any java methond that allows you to print a string to specific coordinates (row, column)in console mode? I have looked at System.out.println and System.out.print methods but did not see an option for this.

  • ITunes 8 on XP - Library Backup keeps asking for blank disc

    With iTunes 8 on XP we do a library backup and step through the dialogs it'll spin up the CD/DVD drive like it's starting to do a backup but then immediately stops and prompts to insert a blank disc (the discs are blank). This is a Sony drive and we