Advice directory locstion for dynamically generated data

Hello, My application generates .jpgs from a file consersion, that happens on the user request. For example they click a button on the jsp and the file is converted to a .jpg...
The problem that I am having is where is the best location in the Tomcat server for the directory to hold the convered .jpgs.
I put the folder for the converted jpgs in the following structure
C:\jakarta-tomcat\webapps\myapp\web\conversion\
However when I come to display the converted .jpgs in a jsp page I cannot get access to the conversion folder which is a sub directory of the web folder... i.e. I just get the missing image icon in the jsp page
For example
<img src="https://localhost:8443/myapp/web/conversion/filename.jpg >The jsp cannot find the .jpg in the conversion folder.. The only way that I have been able to display the jpg is by give the absolute path to the .jpgs
Am I missing a setting somewhere?
do I need to set permission somewhere?
or do I need to reference the conversion folder ?
cheers

Also if i have the converted .jps in the web folder
C:\tomcat\webapps\myapp\web\
everything works great, but I don't want my converted files to be in the same directory aas my .jsps etc, this is why I added the conversion folder
c:\tomcat\webapps\myapp\web\conversion\
cheers

Similar Messages

  • Does Adobe provide a PHP library for dynamically generating a non-editable PDF on a website?

    As the title says, I am wondering if Adobe provides a PHP library for dynamically generating a non-editable PDF for my company website.  Any information on this would be greatly appreciated!

    By non-editable I assume you simply mean "with password security set" and understand the serious limitations of this.
    While Adobe doesn't offer PHP it offers several server options
    - LiveCycle PDF Generator. Java API and watched folder. Convert file types to PDF. Security can be set, but perhaps only globally.
    - Adobe PDF LIbrary. For experienced C/C++ programmers. Licensed by DataLogics.

  • Default Native directory password for accessing openldap data

    hi everyone ,
    i was trying to read openldap data from hyperion shared services . i know i can change the password in change native directory password for the root and i can read all the Ldap data.
    I was wondering if there is any default password for root in Shared services , since company is not allowing me to access change the password so i wish to know what is the default Native Directory password for LDAP stored in Hyperion Shared services for Root.

    try username: admin password: password; its a default user and password for hyperion products.
    regards,
    LYN

  • HELP! Dynamically generated data for membership site...

    I've past week looking for help and came across this forum and I hope someone can at least point me in the right direction.
    Using ADDT, how can I can I create a dynamic page which populates a certain registered users info, ie., name, address, etc.
    I've created using addt a user registration page and login page. What I want to do is when a customer logs into the membership site, their data is populated onto that page (or whatever data I want them to see).
    I would be forever grateful if someone could point me in the right direction.
    Thank you!
    Ken

    Hi Ken,
    When you create a record set you have some options two of them are simple and advanced.
    Simple:
    You will see "Filter" then a selector for the desired field, then operator selector, then a variable selector, then a place to add the name of the variable.
    Advanced:
    You will see SQL: for sql statement then Variables: for custom variables.
    Here is an example;
    SQL:
    SELECT * FROM TABLE WHERE FIELD = colname
    VARIABLES:
    Hit the + to add a new one, then edit.
    You have 4 fields to fill in.
    Name: colname <-- to match what you put in the sql statement
    Type: NUMERIC <-- depends on the variable type
    Default Value: -1 <-- Return nothing if nothing is entered
    Runtime Value: $_SESSION['kt_login_id'] <-- the actual variable that will be used. (can be anything like $_GET[], $_SESSION[]. $variable, $_SERVER[], etc)
    NOTE: This is generic info not specific to your session. I don't know the name of your session variable but will assume its kt_login_id

  • Directory structure for the new Data Services Project

    1) I do as prescribed in the manual "Building and deploying
    Flex 2 Applications", page 325
    "To create a web application make a copy of the /flex
    directory and its contents. Rename the copy and store it in the
    same location under /servers/default directory."
    ("flex" is an empty Flex Data Services application that
    serves as a template for creating your custom application)
    2) I create a corresponding project from Flex Builder 2 :
    Project type: Flex Data Services
    Root folder: C:\fds2\jrun4\servers\default\MyDS
    Root URL:
    http://localhost:8700/default/MyDS
    Project name: MyDS
    Project contents: C:\fds2\jrun4\servers\default\MyDS
    2) I build the project
    Immediately after "build project" the directory structure at
    C:\fds2\jrun4\servers\default\MyDS becomes the following:
    .settings
    bin
    ----------------META-INF
    ----------------WEB-INF
    ---------------- --------------- classes
    ---------------- ---------------flex
    --------------------------------jsp
    --------------------------------lib
    -------------------------------sessions
    html-template
    META-INF
    WEB-INF
    ----------------classes
    ----------------flex
    ----------------jsp
    ----------------lib
    ----------------sessions
    Notice that bin directory now contains another pair of
    META-INF and WEB-INF in addition to those already existing in the
    template project "flex".
    Can anybody comment on this directory structure?
    Which META-INF and WEB-INF are supposed to be used for
    configuration?
    What is the purpose of having two pairs of META-INF and
    WEB-INF in the same web app?

    Hello -
    first, those folders are necessary in deployment - You need
    only the contents of the bin folder for deployment, not the
    sources. Since you're compiling the application locally in FB2 it
    places all of the supporting and necessary files into one location
    namely the "bin" folder. You'd deploy the "bin" folder's contents
    to the FDS server, perhaps another FDS server that is not your
    "development" server -- like a production server. The data and
    configuration information that your app needs for FDS services are
    stored in the WEB-INF and META-INF folders so these need to travel
    with the final product. On the production server you'd just cop the
    "bin" folder and it's contents to the /servers/default folder -
    where you could then rename your bin folder to "MyDS"
    HTH, Bill

  • How to get the duplicate rows in dynamically generate data table [list items collection] and send emails in sharepoint2010

    Hi,
    i have share point list like  below
    ID   name AdminEmail Useremail   URl   DueDate   UploadSatus
    1    ppp     [email protected]  [email protected]    url  some date    uploaded
    2    yyy       [email protected]   [email protected]   url somedate    empty
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   emp
    AdminEmail and UserEmail  are lookup column
    i using query the list using caml query
    inside of foreach i am checking  two condition like below
    one is upload status in not empty
    i need to send to mail to admin user  this part i have done my adding all list items which have datatable apply group by working fine
    in send condition i am checking difference between DueDate And current date value
    if the value is =1 or -1
    if the value is i
    thank
    i am getting the
    table like below
    ID   name AdminEmail Useremail   URl   DueDate   Upload
    2    yyy       [email protected]   [email protected]   url   somedate    empty
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   empty
    my issue is here  how can i get the dynamic table rows which are same values of AdminEmail and user email  one set and distintict rows are another set
     sets which are same emails are same
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   empty
    set 2
    2    yyy       [email protected]   [email protected]   url   somedate    empty
     how can i get this separate this can any one tell i need to send mail only one time to user [adim and user] .planing to aviod duplicate mail
    Srinivas

    your case better to use the two data tables to store the data
    DataTable dt = list.Items.GetDataTable();
    foreach (DataRow row in dt.Rows)

  • How to find function code for Dynamic generated program

    Hi,
    I have created a dynamic program for getting different selection screens depending on inputs . I am finding a flaw that, pressing 'BACK' buttn is leading some other action which was coded by me,  instead of going back.
    SY-UCOMM is also not working as it is dynamic program.
    Help me for getting previous screen.
    Please suggest me the inputs.Thank u
    Regards
    Aditya

    Hi Klaus,
    As per ur instructions, I replaced SY-UCOMM with SSCRFIELDS.
    But no change in my problem.
    The following screen shot is a program which is coded dynamically using fieldsymbols.
    When I press BACK here for the following code selectionscreen, I am getting someother action which was coded by me. But not going back.
    Twist is, SSCRFIELDS-UCOMM or SY-UCOMM is getting captured for 'F8', but not 'BACK'.
    I hope, I have explained my issue clearly. Please let me know, if any deep clarifications needed.
    Regards,
    Aditya

  • Dynamically generating the ssrs dataset and filling the data into the dataset and binding it to ssrs report dynamically

    I have a work to do, in ssrs we are using server reports in our project. i am looking for dynamically generating the ssrs dataset and filling the data into the dataset and binding the dataset to ssrs report(RDL) dynamically.
    Getting the dataset dynamically has a solution by using Report Definition Customization Extension (RDCE), but the problem is binding that dataset to the report(RDL) dynamically was not there.
    Here is the reference for RDCE http://www.codeproject.com/Articles/355461/Dynamically-Pointing-to-Shared-Data-Sources-on-SQL#6
    I looked for binding the dataset to the report(RDL) dynamically and searched many sites but i did not get the solution. Can anyone help me here.
    Is there any custom assemblies or any Custom data processing extensions to work around. Please help.
    Thanks in advance

    Hi Prabha2233,
    Thank you for your question.
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Issue with emailing dynamically generated PDF (InteractiveForm UI element)

    Hi Experts ,
    I have a requirement according to which i need to generate PDF dynamically using webdynpro java and email the dynamically generated PDF.
    I am facing issue while emailing the dynamically genarated pdf.
    It gives me an exception :
    nested exception is: javax.mail.MessagingException: IOException while sending message;  nested exception is: java.io.IOException: no data
    This is because its unable to get the binary data (byte array) of the dynamically generated PDF which is required to send mail.
    Could some one suggest me how to fetch the binary data of the dynamically generated PDF.
    For dynamic PDF generation i am using dynamic generation of UI element   InteractiveForm UI Element 
    In case of static PDF (i.e. the PDF genarated by inserting the InteractiveFrom Ui element on the view using the insert child option) we do set the pdf source property of Interactive Form UI element to a context variable attribute of type binary but  my problem is ,how to set the PDF source of a dynamically generated Interactive form UI element to a context variable attribute of type binary ..
    Any help would be highly appreciated.
    Regards ,
    Navya

    Hi Frank ,
    the code to generate PDF dynamically is written in the WdDoModifyView section of the view as the PDF need to be generated dynamically., i.e. by adding InteractiveForm UI elements at  runtime.
    I tried the code suggested by you  but i gave mean exception.
    errorjava.io.FileNotFoundException:
    (The system cannot find the path specified)
    Kindly let me know where i am going wrong .
    Below is the code that i  had written in a separate method m_mail().
    This would take as input the name of the dynamically generated data node and is called from the wdDoModifyView section of the view
    public void m_mail( java.lang.String p_dynamicnodeName )
                   ByteArrayOutputStream templateSourceOutputStream = new ByteArrayOutputStream();
              //        This would need to have the Templatefile in the Mimes-Directory of the Webdynpro-Component
                   String templateUrl = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), "AdobeView1_InteractiveForm.xdp");
                   InputStream templateSourceInputStream = new FileInputStream(templateUrl);
                   IOUtil.write(templateSourceInputStream, templateSourceOutputStream);
                   IWDPDFDocumentCreationContext pdfContext = WDPDFDocumentFactory.getDocumentHandler().getDocumentCreationContext();
                   pdfContext.setData(WDInteractiveFormHelper.getContextDataAsStream(wdContext
                   .nodeCtx_vn_dynmcnd()
                   .getChildNode(p_dynamicnodeName, IWDNode.NO_SELECTION)));
                   pdfContext.setTemplate(templateSourceOutputStream);
                   pdfContext.setInteractive(false);
                   IWDPDFDocument pdf = pdfContext.execute();
                   if (pdf != null) {
                    pdfArray = pdf.getPDF();
    Kindly let me know where am i going wrong.
    Regards ,
    Navya

  • To create a deep structure for dynamic internal table.

    Hello
    My ALV has fields which are defined dynamically during execution.
    so, i did it in the following way,
    Declared Field symbolds, DREF and fieldcatalog as,
    FIELD-SYMBOLS: <t_dyntable> TYPE STANDARD TABLE,
                  <fs_dyntable>.
    DATA:   dref_dyntab    TYPE REF TO data,
            dref_dynwa     TYPE REF TO data.
    DATA: ts_fieldcatalog TYPE lvc_t_fcat.
    DATA: wa_fieldcatalog TYPE lvc_s_fcat.
    Updated Fieldcatalog dynamically as,
    *function module to read segment structure
        CALL FUNCTION 'SEGMENT_READ'
          EXPORTING
            segmenttyp           = v_segment_name
          TABLES
            segmentstructure     = ts_seg_structure
          EXCEPTIONS
            no_authority         = 1
            segment_not_existing = 2
            OTHERS               = 3.
        IF sy-subrc <> 0.
          CASE sy-subrc.
            WHEN '1'.
              MESSAGE e024.
              STOP.
            WHEN '2'.
              MESSAGE e025 WITH v_segment_name.
              STOP.
            WHEN OTHERS.
              MESSAGE e023.
          ENDCASE.
        ENDIF.
    *FETCH FIELDS FROM STRUCTURE OF SEGMENT AND CREATE FIELDCATALOG FOR
    EACH FIELD OF SEGMENT (DYNAMIC FIELD CATALOG)
        LOOP AT ts_seg_structure INTO wa_seg_structure.
          ADD 1 TO v_counter.
          wa_fieldcatalog-fieldname = wa_seg_structure-fieldname.
          wa_fieldcatalog-col_pos   = v_counter.
          wa_fieldcatalog-ref_table = wa_seg_structure-segtyp.
          APPEND wa_fieldcatalog TO ts_fieldcatalog.
          CLEAR wa_fieldcatalog.
        ENDLOOP.
    and generated dynamic internal table using fieldcatalog as,
    *--Method to get the structure of table using fieldcatalog.
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = ts_fieldcatalog
        IMPORTING
    *--Variable of type REF TO DATA.
          ep_table        = dref_dyntab.
      IF sy-subrc <> 0.
        MESSAGE e023.
      ENDIF.
    *--Dynamic internal tables required when show segments selected
      IF p_selseg IS NOT INITIAL.
        ASSIGN dref_dyntab->* TO <t_dyntable>.
    *--Create dynamic work area and assign to FS
      CREATE DATA dref_dynwa LIKE LINE OF <t_dyntable>.
        ASSIGN dref_dynwa->* TO <fs_dyntable>.
    And then i populated this <t_dyntable> which is being passed as data-table to method
    CL_GUI_ALV_GRID => SET_TABLE_FOR_FIRST_DISPLAY
    for ALV grid Display along with above used filedcatalog ts_fieldcatalog.
    Things are fine till here, but now i have the requirement to edit selected rows of the ALV display..
    As you might be aware, we need a field
            TS_STYLEROW  TYPE lvc_t_styl, (i.e, a field of type 'h' and we can say as an internal table inside an internal table or else as a deep structure)
    in the output internal table <t_dyntable> to meet our requirement.
    My issue is about declaring one such field of type 'h' in this dynamically created internal table ''<t_dyntable>".
    I tried in the following way by adding one such field to fieldcatalog :
    *Field for Styling
      ADD 1 TO v_counter.
      wa_fieldcatalog-fieldname   = 'TS_STYLEROW'.
      wa_fieldcatalog-tabname     = 'TS_STYLE'.
      wa_fieldcatalog-col_pos     = v_counter.
      wa_fieldcatalog-no_out      = 'X'.
      wa_fieldcatalog-inttype     = 'h'.      " I even mentioned this
      APPEND wa_fieldcatalog TO ts_fieldcatalog.
      CLEAR  wa_fieldcatalog.
    But this is creating a field of type 'C' in the table <t_dyntable> instead of what i was expecting
    Guyz and respected,
    Please advice me with the solution or ur ideas....
    Note : The overall requirement is create a deep structure for dynamically generated internal table.
    Your help is highly appreciated and unforgettable..!!!!!!!

    hi,
    Dynamic append
    Dynamic internal table
    Dynamic internal table
    dynamic columns in ALV
    Variant for dynamic selection
    thanks

  • How do i dynamically add data to a JTabel?

    Hey
    How do i add the data to a JTabel dynamically from a HashMap?
    I tried the following:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package test;
    import java.util.HashMap;
    import java.util.ArrayList;
    import java.util.Set;
    import javax.swing.JTable;
    * @author Jesper
    public class Players {
        HashMap<String, Stats> players;
        public Players(){
            players = new HashMap<String, Stats>();
            addPlayer();
        public void addPlayer(){
            players.put("Martin ?rnskov", new Stats(19, 3, 1));
            players.put("Thomas Raun", new Stats(23, 6, 0));
            players.put("Jimmy Mayasi", new Stats(26, 26, 3));
            players.put("Lasse J?rgensen", new Stats(33, 0, 0));
        public JTable showPlayers(){
            String[] columnames = {"Spiller", "Kampe", "M?l", "R?de kort"};
            Object[][] data;
            Set<String> key = players.keySet();
            for(String player : key){
               data = {{player, players.get(player).getMatches(), players.get(player).getGoals(), players.get(player).getRedCards()}};          
            final JTable table = new JTable(data, columnames);
            return table;
    but on this line Netbeans says that variable is allready defined:
       data = {{player, players.get(player).getMatches(), players.get(player).getGoals(), players.get(player).getRedCards()}};          
    I can see the problem is this, but when it cant be done this way, how can i do it then?

    Instead of creating the table directly with data values, use a DefaultTableModel whose constructor is very similar. But DefaultTableModel has interesting method as addRow, removeRow... for dynamically handling data (and visually to table).
    Set<String> keys = players.keySet();
    Object[][] data = new Object[keys.size()][columNames.length];
    for(i=0; i<keys.size(); i++) {
       String key = keys.next();
       data[0] = player;
    data[i][[1] = players.get(player).getMatches();
    data[i][[2] = players.get(player).getGoals();
    data[i][[3] = players.get(player).getRedCards();
    DefaultTableModel model = new DefaultTableModel(data, columNames );
    JTable table = new JTable(model);
    Later in your code, as you want to dynamically update the table, work with the model instead of the table to add , remove, change cell values of the table.
    +PS : your code loop is probably wrong. You are setting data variable for each value of the set. I suppose you want to add a row to data array. data is a two dimension array+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to dynamically generate parameters based on dropdown?

    Hello,
    newbie ABAPer question..
    I was wondering if it's possible to dynamically create a UI based on the values on a drop list/drop down box?
    For example, screen would initialize too
    dropdown list filled with 1 - 50
    field1 field2
    user selects 10 from the drop down list, then the screen would look like this:
    drop down list dropdown list filled with 1 - 50
    field1 field2
    field3 field4
    field5 field6
    field7 field8
    field9 field10
    field11 field12
    field13 field14
    field15 field16
    field17 field18
    field19 field20
    thanks for looking!

    Then you need to use fm
    FREE_SELECTIONS_DIALOG
    for dynamically generating the selection parameters screen.
    Please make a search on this forum for sample code how to use this

  • How to dynamically adjust Frequency, Phase and Amplitude for a Generated Sine Wave in C/C++?

    Hi,
    I wonder if anybody know how to dynamically adjust Frequency, Phase and Amplitude for a Generated Sine Wave in C/C++? This is a part of my project: I need to dynamically generate a sine wave voltage signal by some calculation using the data from a simultaneous analog input and another signal.
    Your help will be appreciated so much!
    Marlon

    Hello Marlon,
    Here is an example of changing frequency and ampliude for an E-series device in Labwindows/CVI. The programming should be similar in C for your S-Series device. As is says on the linked webpage above, this process is going to be very processor intensive since you will continually be creating a buffer.
    Nicholas C
    National Instruments
    Applications Engineering

  • Dynamically generating file names for 2 File ( 1: 2 mapping transformation)

    Hi ,
    I have a scenario Proxy to File(FCC) with 1:2 transformation in message mapping ie 1 sender and 2 receiver interface ....
    1 Message mapping
    1 Operation mapping
    1 RD , 1 ID and 2 file receiver channels  and 2 receiver agreements.
    I need to dynamically generate the filename say abc.(first 9 characters of mesg id) and xyz.(first 9 characters of mesg id)
    I used dynamic configurations with ASMA settings, created 2 UDF assigned each of these to header node of r receiver message types.
    Here, I guess the second dynamic configuration is over writing the first dynamic configuration and hence creating only one file with xyz.(first 9 characters of mesg id)
    name .
    Need your valuable inputs
    Thanks and regards,
    Pavithra

    As dynamic configuration doesnot work in case of 1:n mapping what  you need to do is
    Create a field Filename in your source data structure
    Create a1:1 mapping between your source structure and source structure
    In that 1:1 mapping on the target structure assign UDF for file name
    Now this target structure will be used as a source structure in your next 1:2 mapping
    Under operation mapping add first the 1:1 mapping for source and then the multimapping
    regards
    Ninad

  • Filtering Data returned to a Dynamic generated Parameter

    Hi,
    I have created a Dynamic Parameter - which generates data from a view and allows user's to select within the report.
    I am looking to see if anyone knows any methodology on the control of data presented within this drop down list. All values are already unique.
    The associated table where the data is controlled has a "retired" flag onto the field which hide the option from within the base application - I am trying to replicate this within the parameter prompt when the report is run.
    Is there an ability to run an sql query whilst viewing the options - e.g. select description from tabel where retired='0'.
    Thanks
    Paul

    Paul,
    I'm not sure what exactly you are trying to do here. If you're basing the LOV on a view, the assumption would be that the view has been narrowed down to display only the option you want to display.
    If that's not the case, say for example, the view was created for something else and it just so happened to be a good candidate for the LOV... You can use a Command as the data source of your LOV.  Just create a new Command and enter the SQL that gets you the desired record set.
    HTH,
    Jason

Maybe you are looking for

  • Printing problems with Flash Players 10.1 and 10.2

    I'm having problems when printing "lengthy" reports under Flash Players 10.1 and 10.2. (By "lengthy" I mean 15+ pages, but it seems dependent on the content of the pages.) Symptoms: On OS X with Safari (with debug Player 10.2) I get timeout errors. O

  • Individual, Creative cloud, single app, Adobe Acrobat Pro X1, Forms and Responses allowed

    Dear forum, Firstly many apologies if this is a stupid question or if it has been answered before, but I'm very new to using FormsCentral only in the past few days. I purchased an Individual Creative cloud, single app plan at £17.58 per month for onl

  • WHY MY WARRANTY STATUS NOT UPDATED TO LENOVO?

     i just get my LENOVO S10 6 cells and with 2 years warranty activation code, i have called to LENOVO to update the warranty.. after few days, i check again through lenovo website but it still remain 1 year.. WHY so lousy one?

  • How do I set up my kids itouch?

    I have one iTunes account with an iPhone 4s set up. I also have two kids...both with iTouch's. I am trying to set up their iMessaging but it wants to treat my kids iTouch as if it were mine. I have set up email addresses for them...but, we can't seem

  • New pricing procedure for debit and credit memo

    Hello Sir, After defining new pricing procedure of debit and credit memo for retro billing.copy control using pricing type b in VTFF but it take billing pricing in credit and debit memo.not in new pricing .Is am missing something please suggest prope