Exporting files

the senario is tht I need to move a unix file from the unix based web/app server to windows system... I am using content dispostion for this purpose, i am readin the file from the unix location and creating the same file on windows location, the jsp as you knw are already on the web server.. the same jsp works perfectly when i do this operation to move a file frm one loc another when both the locations are on the same platform..
But whn i use the same code added with content disposiiton the content of the file saved is the source code of the JSP...
I am a newbie in Jsp.... Please help me out...

Looks like you don't have your server configuration correct for using JSPs. Worst case is that you just assumed your web server would work with JSPs. So you'll want to review that. What did you choose for your JSP container?
But really, it's pointless to use a JSP to download a file. Can't you just configure your web server to serve the files directly? And even if you have to use a Java web container like Tomcat, a simple servlet is much more suitable than a JSP which exists only to contain the same Java code.

Similar Messages

  • Error During INSTALL of Application Export File

    An error is reported during INSTALL of an application that I am trying to copy (Import/Install) from a "development" Work Space into a "production" Work Space. The production (target) Work Space is on the same HTML DB instance as the development Work Space.
    I am receiving the following INSTALL error:
    ORA-20001: GET_BLOCK Error. ORA-20001: GET_STMT error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 15, column 1: PLS-00103: Encountered the symbol ",'39','RD8','8','S','10','U','43','UD','41','UG','11','W')) END)" when expecting one of the following: . ( * @ % & = - + ; < / > at in is mod remainder not rem <an exponent (**)> <> or != or ~= >= <=
    Following is some pertinent (hopefully) information:
    The above INSTALL error takes exception to part of a Region Select (sql) that works fine in the development Work Space.
    The common HTML DB (v1.6) instance is on UNIX.
    A new Work Space was created on the same instance.
    A new schema name was created during creation of the new Work Space. However, this schema does not point to a database. (We were not certain how to setup the schema to parse to our live database.) I will be running DBLINK upon production application startup in order to access the database objects.
    EXPORT INFO -
    File Format: UNIX (also, tried DOS but received same error during INSTALL)
    IMPORT INFO -
    File Type: Application/Page Export
    File Character Set: Western European Windows 1252
    Target Work Space is newly created on the same HTML DB instance.
    INSTALL INFO -
    *Parse As Schema: COLLIVE17 (Again, this schema does not parse to a database. I intend to use DBLINK.)
    *Build Status: Run and Build Application
    Please refer to above error message.
    Again, any insights or suggestions are appreciated.

    Urgently need help! I've read several other Forum messages having a related problem but none having same Install error message.
    Again, my Export/Import from development Workspace to production Workspace is successful. The following error is reported when I attempt to "Install" into the production Workspace:
    ORA-20001: GET_BLOCK Error. ORA-20001: GET_STMT error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 15, column 1: PLS-00103: Encountered the symbol ",'39','RD8','8','S','10','U','43','UD','41','UG','11','W')) END)" when expecting one of the following: . ( * @ % & = - + ; < / > at in is mod remainder not rem <an exponent (**)> <> or != or ~= >= <=
    The "snippet" of Region Sql Select code that relates to the reported error is:
    ELSE htmldb_item.display_and_save (5, DECODE (GET_GRADE_B93 (sac.stc_final_grade,sac.stc_verified_grade),'18','AU','1','A','3','B','4','C','7','CR','5','D','46','DR','6','F','47','FW','49','IB','30','IC','31','ID','23','IF','44','MW','9','NC','21','RD','14','RD0','33','RD1','32','RD2','34','RD3','35','RD4','36','RD5','37','RD6','38','RD7','39','RD8','8','S','10','U','43','UD','41','UG','11','W'),'GRADE_'||ROWNUM) END q_v_grade,
    HTML DB version is: 1.6.0.00.67. I've also tried to Export/Import/Install the application into the "same" Workspace specifying the same schema, and only changing the Application ID. However, I get the same Install error (see above).
    Any suggestions on things to try in order to get application into production is greatly appreciated.
    Thanks, Bernard.

  • Lightroom 5 cannot export files in original Raw format (LR 5.4, Mac, OS 10.9.4).

    A client has the following problem: When trying to export files in the original Raw format (.CR2), the operation failed and a dialog informs us that "Some export operations were not performed". We can export JPEGs just fine.
    After lots of testing, this is what we discovered:  The problem does not appear to be catalog-based; we run into the same problem using a test catalog.  The export operation works fine, however, with the same test catalog and images on two other machines, and it even works fine on the same machine with a new user admin account that we created. 
    So it appears to be something associated with the user account, , or with how LR is interacting with the user account, but I cannot figure out what it might be. We can copy the Raw files when using the Finder to do so. But not via Lightroom.  Any thoughts, ideas of suggestion would be greatly appreciated!  Thanks, Sean

    As part of your testing make sure you've tried exporting JPGs from the same folder as the CR2s you're exporting as original, and export JPGs from CR2s to the same folder as you're exporting your originals.  This would test LR's read and write permissions from and to the folders being used.
    From this document you can see that all the LR files other than the program, are under the /Users folder with different values possible for each user, so the difference could be that the users that work are using the original LR defaults, if you have just started using LR with them after you started having this problem, or at least that the user with the problem has some oddball settings that are interfering with Export as Original.
    Preference and other file locations in Lightroom 5
    You can test for the Preferences being off by either copying the preferences from a user that has the problem to a user that doesn't have the problem--probably through an external or common folder, or be deleting the preferences file from the user that has the problem and see if it resolves.  Moving the preferences file or renaming it may be better than deleting it if no change is seen, then you can restore the preferences back by moving or renaming the file back to the original location and name.

  • HOW TO REMOVE HYPHEN IN LAYER COMP EXPORT FILE

    HOW TO REMOVE HYPHEN IN LAYER COMP EXPORT FILE IN PNG FORMAT...

    I ususally do that type of thing with a state machine... read a token, look for what is next, and if it's the closing token, I don't write it out. You have well defined opening token syntax and closing token syntax, so it should be relatively easy.

  • Schema Import failed :IMP-00008: unrecognized statement in the export file:

    Hi ,
    I was running a database schema import from a database DMP file.
    I encountered the following error in the log file that was getting generated :
    IMP-00008: unrecognized statement in the export file:
    All the tables got copied except for one. Now what I have thought of is to import that one table again after taking an export from the prod schema.
    But what about the functions,triggers,procedures ?? How do i bring all of them in the schema ?
    If reimporting the schema again the only option ?
    Thanks
    Kk

    Hello,
    In this order:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1023988
    Table Objects: Order of Import
    Table objects are imported as they are read from the export file. The export file contains objects in the following order:
    1. Type definitions
    2. Table definitions
    3.Table data
    4.Table indexes
    5. Integrity constraints, views, procedures, and triggers
    6. Bitmap, function-based, and domain indexes
    The order of import is as follows: new tables are created, data is imported and indexes are built, triggers are imported, integrity constraints are enabled on the new tables, and any bitmap, function-based, and/or domain indexes are built. This sequence prevents data from being rejected due to the order in which tables are imported. This sequence also prevents redundant triggers from firing twice on the same data (once when it is originally inserted and again during the import).
    For example, if the emp table has a referential integrity constraint on the dept table and the emp table is imported first, all emp rows that reference departments that have not yet been imported into dept would be rejected if the constraints were enabled.
    When data is imported into existing tables, however, the order of import can still produce referential integrity failures. In the situation just given, if the emp table already existed and referential integrity constraints were in force, many rows could be rejected.
    A similar situation occurs when a referential integrity constraint on a table references itself. For example, if scott's manager in the emp table is drake, and drake's row has not yet been loaded, scott's row will fail, even though it would be valid at the end of the import.

  • Imp-00008: unrecognized statement in the export file

    Hi All,
    I am trying to import an export from Oracle 8.1.7 source system to Oracle 11.2 using imp . I am getting the following errors may times during the import process.
    imp-00008: unrecognized statement in the export file
    The character set of Source data base is WE8DEC and the character set of target data base is WE8MSWIN1252 and i get the below statement during the start of the import
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8MSWIN1252 character set (possible charset conversion)
    export client uses WE8DEC character set (possible charset conversion)
    export server uses WE8DEC NCHAR character set (possible ncharset conversion)
    The error imp-00008: unrecognized statement in the export file is it due to the Oracle version compatibility or due to Character set compatibility issue.
    I tried to create a new Database on same Oracle sever and i cant find WE8DEC in the list of character set to choose. Please help me on how to proceed.
    Regards,
    alen.

    934571 wrote:
    Hi Srini,
    Data is getting loaded correctly, but i get several of these error imp-00008: unrecognized statement in the export file messages during the import process, so i am not sure what is missing.
    Pl post the complete error message from the import log file.
    1) Is it possible to import the dump exported form oracle 8 into oracle 11?? Do we need to take any special care during the import ??
    Yes - no special requirements are needed.
    2) The Oracale Database character set it WE8DEC, but when i try to create a new database in 11 , i dont find that character set , is the character set obsolete now , if so what character set is super set of WE8DEC ??
    Pl post exact OS and database versions. Ideally you should be using AL32UTF8 for all new databases. WE8DEC is a deprecated characterset.
    See section 4.2.1 here - http://docs.oracle.com/cd/E11882_01/install.112/e24186/install.htm#BABFDDEA
    Thanks,
    Alen.HTH
    Srini

  • The export file from a calc script - naming and date/time stamp

    Here is a simple calc script to export data.
    2 questions:
    1. Is there an easy way to add a date/time stamp on the name of the data file so that it does not overwrite the older ones every time?
    2. I tried to specify the path so that it write to another server. "\\mfldappp011\E:\Exp_AW.txt". It's not working. How should I specify the path ?
    Fix (@Relative("Yeartotal",0),"Actual","Working",&ActualYear);
    Dataexport "file" "," "C:\Exp_AW.txt" "#MI";
    EndFix;
    Edited by: user9959627 on Sep 7, 2012 11:25 AM

    Probably easiest to call the maxl script from a command line script, then rename the exported file to include the tme stamp and copy/move it to a location.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error when exporting file from LR5.2 - file created

    After updating to LR5.2, I receive an error when exporting files to another disk drive.  a file is created, but a warning appears "Unable to Export:  "An internal error has occurred: Win32 API error 2 ("The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute".  I also have CC iunstalled for other applications, but originally installed LR5 as a standalone Adobe application.  I tried removing the program and reinstalling through CC, with no change in this behavior.

    The answer is in the thread:
    http://forums.adobe.com/thread/1303578?tstart=0

  • Error in writing to export file

    Hi,
    I am getting the below error on running export:-
    EXP-00002: error in writing to export file
    The query is as given below:-
    exp cam3_mpcb2/cam3_mpcb2@ORA10G file='c:\MPCB_cam_20120113.dmp' log='c:\MPCB_20120113.log'
    CAn i overcome this error by adding "ignore" at the end of the query or how can i modify the above query ?

    Are there any other error messages that accompany the one you posted?
    EXP-00002: error in writing to export file
    Cause: Export could not write to the export file, probably because of a device error. This message is usually followed by a device message from the operating system.
    Action: Take appropriate action to restore the device. Do you have permissions to write to this location?

  • Large export file when application contains a BI Publisher report

    Anyone have an idea why an application export file grows dramatically when a BI Publisher report template is added to an application? I have an application that was 400+ KB and went to 88+ MB just by adding one report query and RTF template. This results in taking over an hour to import the application.

    Each RTF Report layout is converted to an ASCII string to allow the import routine to load the rtf as part of the application.
    If your template has any embedded graphics e.g. a logo then this SIGNIFICANTLY increases the size of the ASCII encoding of the template.
    Hope this helps.

  • Error while rendering: Export file not found - what to do?

    Hi,
    I have been editing my video in four different premiere pro projects (as I got adviced to do from these forums because it's AVCHD clips). I have rendered these four projects and burned to four DVD's (total playtime is around 1.5hours) - which is working fine.
    But then I try to import all four projects into one big master project because I want to make a blu-ray iso. The import goes fine (I import like this: File > Import > Choose project > Import entire project)
    I export to encore, make the menus etc. and click "build" to start rendering. The problem is that after some time I get this error:
    Blu-ray Object: "sequence-name-here/project-name-here.prproj", Export file not found
    I have seen this error before while rendering some of the four individual projects - but when I saw them I simply just tried again by exporting to encore from the projects again. This seemed to work - but with the big master project I have tried several times with no luck.
    Can anyone help me fix this issue? :)

    Yes, I got this too:
    For posterity, here is what I have found that completely fixes this error, repeatedly:  Clear Encore's cache.  Specifically:
    Close your Encore project and exit Encore
    Go to the cache subdirectory named for your project (ie. if your save file is c:\projects\mymovie.ncor then go to c:\projects\mymovie\cache)
    Delete the file "mlf.cache.v10"
    If your Encore project contains any Premiere Pro dynamically-linked assets, start Premiere Pro and load at least one of the projects used in Encore.  (I have found that this reduces memory usage -- for some reason, Premiere Pro takes up less memory than if Encore spawns the PProHeadless.exe media server to serve the same function)
    Restart Encore and load your project
    ...and wait, patiently, for Encore to re-scan all of your assets and build up the cache again and don't touch it until it's finished.  I use Process Explorer (http://technet.microsoft.com/en-us/sysinternals/bb896653) to watch my disk activity and CPU to know when Encore is finished (just hover on the cyan-colored graph and you can see what program is performing the most disk activity).  Once it's all finished, I save, then immediately try to build my project again.  For proof of concept, my 40GB BD-50 project just built last night after getting this error yesterday afternoon.
    If any of your assets are not transcoded before you begin this process, transcode them all, then start this process over again from step one.  Clearing the cache does not clear the transcodes.
    I hope this helps someone.  I was not looking forward to completely re-authoring my project, which I've been working on (on and off) for a few months.

  • Apex 3.1.2.00.02 creates invalid export file (that gives ORA-20001 error)

    Hi
    I want to let you know, that sometimes APEX 3.1.2.00.0 creates invalid export file.
    Older apex 3.0 created correct file.
    For example: our application has page button, where "Optional URL Redirect" is:
    Page: &APP_PAGE_ID.
    Request: FLOW_XMLP_OUTPUT_R11531800061044170_et
    If we export application into file f110.sql and try to import it to the same workspace on the same server, we get error:
    {color:#0000ff}ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 28, column 111: PLS-00103: Encountered the symbol "_" when expecting one of the following: ) , * & | = - + < / > at in is mod remainder not rem => .. <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ as between from using || multiset member SUBMULTISET_ The symbol &a
    {color}In exported f110.sql file the invalid section is:
    {color:#0000ff}wwv_flow_api.create_page_branch(
    p_id=>11762805016890347 + wwv_flow_api.g_id_offset,
    p_flow_id=> wwv_flow.g_flow_id,
    p_flow_step_id=> 4,
    p_branch_action=> 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_XMLP_OUTPUT_R'||to_char({color}{color:#0000ff}{color:#ff0000}*10255206661122183_et*{color}+wwv_flow_api.g_id_offset)||':&DEBUG.:::',
    p_branch_point=> 'AFTER_PROCESSING',
    p_branch_type=> 'REDIRECT_URL',
    p_branch_when_button_id=>11761415275883875+ wwv_flow_api.g_id_offset,
    p_branch_sequence=> 10,
    p_branch_comment=> 'Created 20-JUUNI-2008 12:05 by XXXX');{color}
    If we exported the same application in apex 3.0, this section was correct:
    {color:#0000ff}wwv_flow_api.create_page_branch(
    p_id=>11762805016890347 + wwv_flow_api.g_id_offset,
    p_flow_id=> wwv_flow.g_flow_id,
    p_flow_step_id=> 4,
    p_branch_action=> 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_XMLP_OUTPUT_R*10255206661122183_et*:&DEBUG.:::',
    p_branch_point=> 'AFTER_PROCESSING',
    p_branch_type=> 'REDIRECT_URL',
    p_branch_when_button_id=>11761415275883875+ wwv_flow_api.g_id_offset,
    p_branch_sequence=> 10,
    p_branch_comment=> 'Created 20-JUUNI-2008 12:05 by XXXX');{color}
    Best Regards,
    Tõnu

    Thanks for pointing that out. We'll fix it. It does appear though, that in 3.0, the offset would not be added to the number part of the request value, so if you installed the application as a different application ID or into a different workspace, the request would have failed.
    Scott

  • The version number of export file in Java Card 2.2 is not correct

    Hi all,
    I used jdk1.3.1 and java card 2.2's exp2text tool to see the content of an export file. The value of minor_version is 1. But the JCVM 2.2 spec. says it should be 2. So which one is correct?
    Joey

    Read my post again....indicate binary compatibility or incompatibility between successive implementations of a package.
    I can gerenate CAP files generated with JC 2.2., and load onto my JC 2.1.1 cards. AS LONG as I'm not using JC 2.2 implementation.
    Run the exp2Text on javacard.framework.service and notice that it should read minor = 2. That's because to use that export, JC 2.2 is minimal required implementation.

  • How to give dynamic name for csv export files?

    Hi,
    how we can give dynamic file name for each csv export file? ex(&item_name.csv)
    I am using apex 4.1 and IE 6,
    thanks in advance
    regards
    Chandran

    Please help me on this
    I am using report template as a csv export..
    when user click on download link on other page he will redirect to csv export temlate page and he is is directly get the open or save window
    but dynamic title name is not working for only for this.
    regards
    Chandran

  • IPhoto 9.6 does not include photo description in export file

    My system is current with OS X Yosemite 10.10.1, iPhoto 9.6, Preview 8.0
    The caption/description does not export from iPhoto. I have not exported files from previous iPhoto versions expecting the file to contain the iPhoto Caption/Description. This is a s/w feature that I want to use starting today and forward.
    The caption/description for my test file is "Test Description". I have carried out the steps required to export the file (see below). The actual result is that the file caption/description is "EPSON scanner image" and not the expected result of "Test Description".
    Is this a known problem? Any suggestions or information is appreciated.

    The title has been exported, as your screenshot is showing:  It has been exported as the "Title" field:
    For the "description" tag click the "Tiff" tab in Preview's Inspector.
    You can also see the description in the "File > Get Info" panel.

  • Recovery from bad export file - IMP0009 error

    Hi all,
    I have a large export that is split into 2Gb chunks using FILESIZE option at export .. string is something like this:
    exp userid=xxx/xxx filesize=2048M file=bu${DATE}_01.dmp,bu${DATE}_02.dmp,b
    u${DATE}_03.dmp full=y log=bu${DATE}.log
    ..export log showed no errors but on import I'm getting IMP0009 : abnormal end of export file
    Typically there's a rather large and important table that's split between the first and 2nd files which I really need to get at. If I import at the moment it rolls back the first 1.1 million odd rows before it fails and it wont load the 2nd file at all, says something about the sequence of the file being incorrect.
    OS is AIX 4.3.3
    Oracle is 8.1.7.0.0
    Any ideas how I can recover the table that is split accross files? I've tried catting the files together to form one large one (and import on an OS without file system size limits) .. no dice although perhaps I can alter it to fool it into thinking it's 1 file??
    Thanks in desparation!
    Adam

    Username:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    export client uses US7ASCII character set (possible charset conversion)
    export server uses US7ASCII NCHAR character set (possible ncharset conversion)
    IMP-00046: using FILESIZE value from export file of 2147483648
    . importing C45966's objects into C45966
    "CREATE TABLE "CUST_LEDGER_BALANCE" ("HOUSE" CHAR(6) NOT NULL ENABLE, "CUST""
    " CHAR(2) NOT NULL ENABLE, "SERVICE_GROUP" NUMBER(2, 0) NOT NULL ENABLE, "LE"
    "DGER_SEQ" NUMBER(10, 0) NOT NULL ENABLE, "LDGRDATE" DATE NOT NULL ENABLE, ""
    "STMT_DATE" DATE NOT NULL ENABLE, "LDTYPE" NUMBER(2, 0) NOT NULL ENABLE, "AM"
    "OUNT" NUMBER(12, 0) NOT NULL ENABLE, "DECIMAL_CNT" NUMBER(1, 0) NOT NULL EN"
    "ABLE, "SUMCODE" CHAR(3) NOT NULL ENABLE, "LEDGER_STATUS" NUMBER(1, 0) NOT N"
    "ULL ENABLE, "PROG" NUMBER(3, 0) NOT NULL ENABLE, "PRINT_FLAG" NUMBER(1, 0) "
    "NOT NULL ENABLE, "CYCLE_DATE" DATE NOT NULL ENABLE, "DUE_DATE" DATE NOT NUL"
    "L ENABLE, "MULTIMONTH_CNT" NUMBER(2, 0), "MULTIMONTH_AMT" NUMBER(12, 0)) P"
    "CTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 LOGGING STORAGE(INITIAL 239796"
    "224 NEXT 4194304 MINEXTENTS 1 MAXEXTENTS 240 PCTINCREASE 0 FREELISTS 1 FREE"
    "LIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TBL_CUST_LED_C45966""
    . . skipping table "CUST_LEDGER_BALANCE"
    IMP-00009: abnormal end of export file
    Import terminated successfully with warnings.
    ..they were transferred in binary mode. Same result if I specify 2048M filesize in import string. Only seems to affect the table that is broken into 2 files, others seem OK.
    Thanks!
    Adam

Maybe you are looking for

  • I spent the day logging and capturing video

    and discovered (to my great dismay) that there is no audio on any of my work. I just upgraded to fcp 5.0 from 4.5. I captured a great deal of work in 4.5 and the audio is fine. I have checked all of my hardware, no problem there. I capture using a Pa

  • Iphone 4 apps problem

    Hi folks I have a problem with my iphone4. If I download apps from the app store they look bad. And when I put them on my iPod Touch (1st generation nation) they look geat. Please help me

  • Ageing 7 Buckets - By Account Report - Unapplied Receipts Register

    Hi Guys, I am not a disco professional, just wanted to know if i want the following reports (Ageing 7 Buckets - By Account Report - Unapplied Receipts Register) to run from disco how do i achive this ? Thanks Bal

  • Installing Network Adapter in Solaris (SPARC)

    As I understand, HCL is only for x86 Solaris. And what about analog for SPARC? Actually, which Models of PCI Network Adapters can I install into my SPARC, and Solaris will support it?

  • Must force quit to close and won't display links with pdf or quicktime

    when i try to close firefox it gets hung up and i must force quit. also when i try to open links like show a bill and it a pdf the screen goes blank. also other links that use quicktime fail as well. all this works fine in safari so i must conclude i