How to run (user)config.xml to add Fonts in embedded FOP 020.5 with PDF

Hi,
we are having problems with showing certain PDF characters, resulting in # (ÂăãÆæßČč¢ results in Â#ãÆæß##¢).
Within the (user)config.xml you can add Fonts, see code, but how to run it from the XSQLFOPSerializer ????.
We copied the Arial Window fonts to Linux.
I tried several things but nothing worked, see code:
* Tested with the FOP 0.20.3RC release from 19-Jan-2002
public class XSQLFOPSerializer implements XSQLDocumentSerializer {
private static final String PDFMIME = "application/pdf";
public void serialize(Document doc, XSQLPageRequest env) throws Throwable {
try {
// First make sure we can load the driver
Driver FOPDriver = new Driver();
Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_DEBUG); // ipv. INFO
MessageHandler.setScreenLogger(logger);
FOPDriver.setLogger(logger);
// Some of FOP's messages appear to still use MessageHandler.
// MessageHandler.setOutputMethod(MessageHandler.NONE);
// Then set the content type before getting the reader/
env.setContentType(PDFMIME);
+// Tried the following, but does not work !!!!+
+// String userConfig = "/u02/gba/tent/userconfig.xml";+
+// File userConfigFile;+
+// userConfigFile = new File(userConfig);+
+// Options options = new Options();+
+// options.loadUserconfiguration(userConfigFile);+
FOPDriver.setOutputStream(env.getOutputStream());
FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
FOPDriver.render(doc);
} catch (Exception e) {
e.printStackTrace(System.err);
__userconfig.xml__
// <entry>
// <key>fontBaseDir</key>
// <value>/usr/share/fonts/ttf</value>
// </entry>
//<fonts>
// <font metrics-file="arial.xml" kerning="yes" embed-file="arial.ttf">
// <font-triplet name="Arial" style="normal" weight="normal"/>
// <font-triplet name="ArialMT" style="normal" weight="normal"/>
// </font>
// <font metrics-file="arialb.xml" kerning="yes" embed-file="arialb.ttf">
// <font-triplet name="Arial" style="normal" weight="bold"/>
// <font-triplet name="ArialMT" style="normal" weight="bold"/>
// </font>
// <font metrics-file="ariali.xml" kerning="yes" embed-file="ariali.ttf">
// <font-triplet name="Arial" style="italic" weight="normal"/>
// <font-triplet name="ArialMT" style="italic" weight="normal"/>
// </font>
// <font metrics-file="arialbi.xml" kerning="yes" embed-file="arialbi.ttf">
// <font-triplet name="Arial" style="italic" weight="bold"/>
// <font-triplet name="ArialMT" style="italic" weight="bold"/>
// </font></fonts>
//</configuration>
Keywords:
FOP 020.5
XML2HTML / PDF
XSQLFOP
Embedded in ADF (fop.jar)
Linux

User,
[url http://xmlgraphics.apache.org/fop/maillist.html]here is a link to the Apache FOP mailing lists.
John

Similar Messages

  • How to set services-config.xml?

    Hi,
    Hi,
    I am confusing for how to set services-config.xml(configuring
    channels and destinations) for <mx:RemoteObject>.
    Please give me a simple demo .Thanks
    MK

    Maybe this will help?
    http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/page001.php

  • How to run the Config tool ?

    we are on Linux running Essbase 11.1.1.3 - can anyone tell me how to run the Config tool ?

    Hi,
    Try ./<hyperionhome>/common/config/9.5.0.0/configtool.sh
    More information available at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch04s05.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Exploded directory: wl6.0 sp2: how to define in config.xml?

    hi,
              how do i define a web server with exploded directory format. i dont want to
              use webcomponent because it creates a war and the jsp changes are not
              reflected. war is fine for production, but during development i dont want to
              restart the server to see the jsp changes.
              is there a way to create a web server component with an exploded directory
              format in config.xml. i want to map the current jsp directory to the web
              server.
              in short: i want to see the jsp changes immediately without restarting the
              server everytime.
              thanks.
              

              "Muthu Ram" <[email protected]> wrote:
              >hi,
              >
              >how do i define a web server with exploded directory format. i dont want
              >to
              >use webcomponent because it creates a war and the jsp changes are not
              >reflected. war is fine for production, but during development i dont
              >want to
              >restart the server to see the jsp changes.
              >
              >is there a way to create a web server component with an exploded directory
              >format in config.xml. i want to map the current jsp directory to the
              >web
              >server.
              >
              >in short: i want to see the jsp changes immediately without restarting
              >the
              >server everytime.
              >
              >thanks.
              >
              >
              apparently if you create an empty file called REDEPLOY (no exstension) in your
              meta-inf directory then either touch it if on unix or change it and save it (i
              add then delete a spce in it) in win32. apparently wls looks at this file and
              if its been changed it reloads the rest off the webapp and hey presto dynamic
              deployment. the alternative is to goto the console goto your app uncheck the deployed
              box click apply then check the deployed box and click apply (this should redeploy
              it). Note jsps don't seem to redeploy well if you have keepgenerate set to true
              in the weblogic.xml.
              

  • How to run Berkeley DB XML on AMD 64-bit Windows XP platform?

    Hi,
    I have used Berkeley DB XML on a 32-bit Windows XP platform but now
    I have to run Berkeley DB XML on a 64-bit AMD platform with Windows XP.
    After reading a few posts about that, I started to build Berkeley DB XML in 64-bit mode.
    I am doing the building with Visual Studio 2005 on my 32-bit Windows XP platform.
    But the build process does not finish successful.
    I got errors saying:
    fatal error C1083:
    Cannot open include file: 'jni.h': No such file or directory     
    c:\berkeley_new\dbxml-2.4.16\dbxml\src\java\dbxml_java_wrap.cpp     149     
    fatal error LNK1112:
    module machine type 'x64' conflicts with target machine type 'X86'     
    c:\berkeley_new\dbxml-2.4.16\dbxml\build_windows\x64\Release_static\BaseInputStream.obj     1     Because of this only the DLL "libdb46.dll" has been created new.
    But there should be also some more DLLs. These DLLs are missing inside the dbxml/bin folder:
    libdb_java46.dll
    libdbxml24.dll
    libdbxml_java24.dllI go the old 32-bit compiled DLLs but when using them I got an exception saying:
    java.lang.UnsatisfiedLinkError: C:\berkeley_db_dll\libdb_java46.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform1) What can I do?
    2) Is there a chance to get all the related DLLs compiled for 64-bit from someone/somewhere?
    Thanks.

    soner wrote:
    I think you mean db_java cause this is the project which is building the missing DLL libdb_java46.dll
    cause dbxml_java is building libdbxml_java24.dll. I thought the latter would have a dependency on the former and hence build both. So I recommended to build the latter lest your next question be how to do just that. But that backfired :-)
    Question of mine: Why doesn't dbxml_java depend on db_java?
    But anyway I have tried to build both projects seperatly and in both cases I am getting an error like:
    Error     4     fatal error LNK1181: cannot open input file 'libdbxml24.lib' db_java
    Do the equivalent of the following on your system:
    dir C:\MILU\Quelltext\dbxml-2.4.16 /s /b /a-d | findstr /e .libThat searches the source tree for LIB files, so-called import libraries; I don't know more about it, but you can use Google to find out what they are.
    Did you build the DEBUG version or the straight one? Or a little bit of both?
    Can't remember if I had to configure the project any further than adding jni.h to the build path.
    Maybe try cleaning and rebuilding.
    Also, when receiving an error message, it is good standard practice to perform a simple web search of the relevant portions to find out about the issue - and be it only for practicing.
    Michael Ludwig

  • How to display appcmd /config xml data into a single table

    Hi,
    I extracted my IIS sites using appcmd
    appcmd /site /config /xml > c:\temp\iisconfig.xml
    afterwhich I would like to grab the data from this xml and export into excel file
    [xml]$iisconfig = get-content c:\temp\iisconfig.xml
    I would like to get the Site Name, Bindings, Physical Directory Path and AppPool from this xml file and output to a excel file
    #Physical Path Directory
    $iisPhysicalPath = $iisconfig.appcmd.site.site.application.VirtualDirectory.PhysicalPath
    #Application Pool
    $iisAppPool = $iisconfig.appcmd.site.site.application.applicationPool
    #Site Details (Site Name, Binding)
    $iisSite = $iisconfig.appcmd.site
    It doesn't have a single command to output into a table. How do I combine all these code and display in a single table?
    Jeron

    Try it like this:
    $sites=[xml](c:\windows\system32\inetsrv\appcmd.exe list site  /xml)
    $sites.appcmd.site
    \_(ツ)_/

  • How to run zonecfg command-line to add device in postinstall script?

    I want to assign a tape drive in non-global zone in postinstall script. I can run zonecfg with a command-file, but don't know how to run zonecfg to add device in a whole command-line.
    The command-line fails to run:
    # zonecfg -z sun1 add device set match=/dev/rmt/173b
    syntax error at 'set'
    Commands:
    add <resource-type>
    (global scope)
    add <property-name> <property-value>
    (resource scope)
    cancel
    commit
    create [-F] [ -b | -t <template> ]
    delete [-F]
    end
    exit [-F]
    export [-f output-file]
    help [commands] [syntax] [usage] [<command-name>]
    info [<resource-type> [property-name=property-value]*]
    remove <resource-type> { <property-name>=<property-value> }
    (global scope)
    remove <property-name>=<property-value>
    (resource scope)
    revert [-F]
    select <resource-type> { <property-name>=<property-value> }
    set <property-name>=<property-value>
    verify
    Thanks for your help!

    Quote the parameters and embed the newlines:
    zonecfg -z sun1 'add device
    set match=/dev/rmt/0
    end'

  • font color="green" How to Find Users Tips (FAQs) on iChat /font

    Hi,
    Some of the more regular Visitors to this Forum may have noticed that above the Topic List is a "Recent Tips" area that has the most recently Updated Users Tips.
    There more, (you may wonder where FAQ 1 is for example).
    One way to find them is to use the Search feature just above your Profile and My Post an Setting Links in the box on the right.
    Many of the Former FAQS and Users tips have had the Search tag kichat added to them.
    Using this and changing the date option to All How to Find Users Tips (FAQs) on iChat">brings up 16 Links in this Example Search
    One of the Level 4 Posters, Red Dwarf, once spent some time going through the whole of the Users Tips Library and posting them in to two formats.
    This link is to the iChat section within his 'by Forum/application' listing.
    There is another 'By Author' Version
    The Whole Users Tips Library is here. IT has a header item that tells you who can post/Suggest new Contributions with a link to that additional forum.
    I hope you find this useful.
    10:06 PM Tuesday; April 14, 2009

    The Section above the topic List in this Forums contains Recent Users Tip section and ifo about Perian 1.1.3 has been added recently.
    (In relation to this post's date)
    8:54 PM Wednesday; May 6, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • How to run user enter value query and get result on Text item

    Hi ,
    I'm really newbie at JDeveloper and ADF , I want to run the query below , before with Forms i just adding :TEXT_NAME to get the entered users value , what I have to do now with ADF , really it's not clear question and I would appreciate any help with this ,
    select
    nvl(min(substr(a.starttime,1,8)),0) Service_Start_Time, nvl(sum(a.sessionvolume),0) Total_Traffic_KB
    FROM
    aaa_bill a
    where
    msid=:TEXT_ITEM
    and starttime >=(select max(fee) FROM aaa_bill
    where msid=:TEXT_ITEM and accountreason=5) ;

    You can use a ADF parameter form for this requirement.
    https://blogs.oracle.com/shay/entry/combining_multiple_queries_and

  • How do I add text message to this email with PDF attachment?

    Good day, everyone!
    Okay, we have a "z"-version of program RFFOUS_T and some of its include codes.  One include code, RFFORIO6, has a form called MAIL_PDF_ADVICE.  It is in this form that we are emailing a remittance advice form.  The actual form is attached as a PDF file.
    Unfortunately, there's no text in the body of the email -- it's just the attachment -- so the users would like us to add a couple basic lines in the body of the email that explain the attachment.  I'm pretty new to using this particular FM and emailing the PDF attachment, and I've gotten stuck in my research trying to find out exactly how to do this.  I'm guessing this shouldn't be all that difficult, but I'm not finding the right solution.  Here's the form:
    *&      Form  mail_pdf_advice
          E-mail PDF advice
         -->IT_ADVICE     PDF form (output from Adobe server)
         -->I_PDF_LEN     length of PDF advice in bytes
    FORM mail_pdf_advice USING it_advice   TYPE solix_tab
                               i_pdf_len   TYPE i.
      DATA:
        lt_receivers       TYPE TABLE OF somlreci1 WITH HEADER LINE,
        l_user             LIKE soextreci1-receiver,
        ls_send_doc        LIKE sodocchgi1,
        lt_pdf_attach      TYPE TABLE OF sopcklsti1 WITH HEADER LINE.
      CHECK NOT finaa-intad IS INITIAL.
      CHECK finaa-nacha EQ 'I'.
    *--- determine E-Mail sender and recipient
      IF fsabe-usrnam EQ space.
        l_user = sy-uname.
      ELSE.
        l_user = fsabe-usrnam.         "Office-User des Sachbearb.
      ENDIF.
      lt_receivers-receiver = finaa-intad.
      lt_receivers-rec_type = 'U'.      "E-mail address
      APPEND lt_receivers.
      ls_send_doc-obj_descr =  itcpo-tdtitle.
      lt_pdf_attach-transf_bin = 'X'.
      lt_pdf_attach-doc_type   = 'PDF'.
      lt_pdf_attach-obj_langu  = reguh-zspra.
      lt_pdf_attach-body_start = 1.
      lt_pdf_attach-doc_size   = i_pdf_len.
      DESCRIBE TABLE it_advice LINES lt_pdf_attach-body_num.
      APPEND lt_pdf_attach.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = ls_send_doc
          sender_address             = l_user
        TABLES
          packing_list               = lt_pdf_attach
          contents_hex               = it_advice
          receivers                  = lt_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    <error checking code snipped>
    Does someone know how to do this?  <b><REMOVED BY MODERATOR></b>  Thanks so much in advance!
    Dave
    Message was edited by:
            Alvaro Tejada Galindo

    Hi Dave,
    Table <b>contents_bin</b> is used to pass attachment file and <b>contents_txt</b> is used to pass mail body contents. You need to declare one more int table to give contents for mail body.
    For reference check the code below
    ut_message is for message body
    and ut_attach is having attachement file.
      FORM send_file_as_email_attachment TABLES ut_message
                                              ut_attach
                                        USING uv_email
                                              uv_mtitle
                                              uv_format
                                              uv_filename
                                              uv_attdescription
                                              uv_sender_address
                                              uv_sender_addres_type
                                     CHANGING uc_error
                                              uc_reciever.
      DATA:  l_error                TYPE  sy-subrc,
             l_reciever             TYPE  sy-subrc,
             l_mtitle               LIKE  sodocchgi1-obj_descr,
             l_email                LIKE  somlreci1-receiver,
             l_format               TYPE  so_obj_tp ,
             l_attdescription       TYPE  so_obj_nam ,
             l_attfilename          TYPE  so_obj_des ,
             l_sender_address       LIKE  soextreci1-receiver,
             l_sender_address_type  LIKE  soextreci1-adr_typ,
             l_receiver             LIKE  sy-subrc.
      DATA:   lt_packing_list    LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              lt_contents        LIKE solisti1   OCCURS 0 WITH HEADER LINE,
              lt_receivers       LIKE somlreci1  OCCURS 0 WITH HEADER LINE,
              lt_attachment      LIKE solisti1   OCCURS 0 WITH HEADER LINE,
              lt_object_header   LIKE solisti1   OCCURS 0 WITH HEADER LINE,
              l_cnt TYPE i,
              l_sent_all(1) TYPE c,
              lw_doc_data LIKE sodocchgi1.
      l_email               = uv_email.
      l_mtitle              = uv_mtitle.
      l_format              = uv_format.
      l_attdescription      = uv_attdescription.
      l_attfilename         = uv_filename.
      l_sender_address      = uv_sender_address.
      l_sender_address_type = uv_sender_addres_type.
    Fill the document data.
      lw_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      lw_doc_data-obj_langu = sy-langu.
      lw_doc_data-obj_name  = 'SAPRPT'.
      lw_doc_data-obj_descr = l_mtitle.
      lw_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR lw_doc_data.
      READ TABLE ut_attach INDEX l_cnt.
      lw_doc_data-doc_size =
         ( l_cnt - 1 ) * 255 + STRLEN( ut_attach ).
      lw_doc_data-obj_langu  = sy-langu.
      lw_doc_data-obj_name   = 'SAPRPT'.
      lw_doc_data-obj_descr  = l_mtitle.
      lw_doc_data-sensitivty = 'F'.
      CLEAR lt_attachment.
      REFRESH lt_attachment.
      lt_attachment[] = ut_attach[].
    Describe the body of the message
      CLEAR lt_packing_list.
      REFRESH lt_packing_list.
      lt_packing_list-transf_bin = space.
      lt_packing_list-head_start = 1.
      lt_packing_list-head_num = 0.
      lt_packing_list-body_start = 1.
      DESCRIBE TABLE ut_message LINES lt_packing_list-body_num.
      lt_packing_list-doc_type = 'RAW'.
      APPEND lt_packing_list.
    Create attachment notification
      lt_packing_list-transf_bin = 'X'.
      lt_packing_list-head_start = 1.
      lt_packing_list-head_num   = 1.
      lt_packing_list-body_start = 1.
      DESCRIBE TABLE lt_attachment LINES lt_packing_list-body_num.
      lt_packing_list-doc_type   =  l_format.
      lt_packing_list-obj_descr  =  l_attdescription.
      lt_packing_list-obj_name   =  l_attfilename.
      lt_packing_list-doc_size   =  lt_packing_list-body_num * 255.
      APPEND lt_packing_list.
    Add the recipients email address
      CLEAR lt_receivers.
      REFRESH lt_receivers.
      lt_receivers-receiver = l_email.
      lt_receivers-rec_type = 'U'.
      lt_receivers-com_type = 'INT'.
      lt_receivers-notif_del = 'X'.
      lt_receivers-notif_ndel = 'X'.
      APPEND lt_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = lw_doc_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = l_sent_all
        TABLES
          packing_list               = lt_packing_list
          contents_bin               = lt_attachment
          contents_txt               = ut_message
          receivers                  = lt_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    Message was edited by:
            Amit Kumar

  • How to modify SAP AII XML So that i can able to work with AII DC -2.1 & 4.0

    I am new to SAP. I am doing integration work between SAP AII and Sun Java RFID Middleware. Currently Sun RFID 3.0 version supports SAP AII DC 2.1, but I am using SAP AII DC 4.0.
    When the Tag commissioning was performed, I am getting an error like "Unexpected element: ConfigureTagFilter".
    I need to know following things,
    1) Can I remove ConfigureTagFilter tag from AII XML? If possible How to do it?
    2) Is there any Compatibility mode option in SAP RFC or AII settings available, so that I can able to switch between AII DC 2.1 & AII DC 4.0 XML formats.
    Please let me know how to do this in SAP AII.
    Thanks in Advance.

    hi,
    you can change the XSLT mapping in AII
    I did it for some other tools (intermec reader) that work with AII 2.1
    and now they work for AII 4.0
    Regards,
    michal

  • How to run this procedure .......pls help with example

    /*it shows an warning */
    --how to remove this warning
    CREATE PROCEDURE EMP_TITLE_GENERATOR (EMP_GENDER IN CHAR (1),EMP_TITLE OUT VARCHAR2)
    IS
    BEGIN
    EMP_TITLE:=DECODE(EMP_GENDER,'M','Mr','F','Ms','INVALID');
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(SQLERRM);
    END;
    Edited by: 923746 on Apr 18, 2012 7:58 PM
    Edited by: 923746 on Apr 18, 2012 7:59 PM

    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> CREATE PROCEDURE EMP_TITLE_GENERATOR (EMP_GENDER IN VARCHAR2,EMP_TITLE OUT VARCHAR2)
      2  IS
      3  begin
      4  select DECODE(EMP_GENDER,'M','Mr','F','Ms','INVALID') into emp_title from dual;
      5  EXCEPTION
      6  WHEN OTHERS THEN
      7  dbms_output.put_line(sqlerrm);
      8  END;
      9  /
    Procedure created.
    SQL> set serveroutput on
    SQL> DECLARE
      2    EMP_GENDER VARCHAR2(200);
      3    EMP_TITLE VARCHAR2(200);
      4  BEGIN
      5    EMP_GENDER := 'F';
      6 
      7    EMP_TITLE_GENERATOR(
      8      EMP_GENDER => EMP_GENDER,
      9      EMP_TITLE => EMP_TITLE
    10    );
    11    DBMS_OUTPUT.PUT_LINE('EMP_TITLE = ' || EMP_GENDER);
    12    DBMS_OUTPUT.PUT_LINE('EMP_TITLE = ' || EMP_TITLE);
    13  END;
    14  /
    EMP_TITLE = F
    EMP_TITLE = Ms
    PL/SQL procedure successfully completed.
    SQL>

  • How do I hide the file names/path names of embedded images in a PDF document?

    I created a PDF document from a Word document, and the problem is that the PDF document shows the file names and path names for all of the embedded images in the PDF document. I don't want that information displayed. I don't want to send the PDF out to clients and have them read the names I've assigned to those images, plus it looks messy. And I've lost many of the original image files so they only exist in the Word document, thus I can't go back and rename them. I searched the internet for an answer but I couldn't find one anywhere.

    When you create a tagged (accessible) PDF file from Word, placed bitmap images will use their filename as the "ALT text" if you don't define something else for the text to say, because an image without any ALT text is a failure against the accessibility standards. You can't change that default action, so you should put your own meaningful text into the ALT field for each image - which is what you should be doing anyway if the PDF is standards-compliant.
    You can can set the text in Word, but it depends on your version as to where the dialogs are - Google for it - or you can change/delete it in Acrobat using the tags navigation pane on the left side of the window (right-click the sidebar if it's not visible). Drill down through the tags structure to find the "<Figure>" tag you want to change, right-click and choose Properties, then put something in the "Alternative text" field. This process isn't something you can easily automate, but if you don't need tags at all, you can save without tags (or print to PDF).

  • How to use data-sources tag in struts-config.xml

    hi all,
    I am doing programs in sturts. My program purpose is to retrieve data from the database.My database is MySql. I know that we can write connection code in Action Class, it is ok for some less prog's if i want to use the sane connection code in more Action Classes it is vasting time and so.
    So i want to use <data-sources> tag that is available in struts-config.xml. I know that thre is tag with this name, but the problem is i don't know how to use this tag. If any budy know how to use this please tell me the syntax or any example.
    plese... reply soon..

    hi all,
    I am doing programs in sturts. My program
    My program purpose is to retrieve data from the
    database.My database is MySql. I know that we can
    write connection code in Action Class, it is ok for
    some less prog's if i want to use the sane connection
    code in more Action Classes it is vasting time and
    so.I don't think it's a good idea to put database code in Action classes. (That's one of the biggest drawbacks of Struts - it's completely tied to Actions, HTTP, and the Web.) Better to move that code into plain old Java objects and let the Actions call them.
    You'll be able to test them without the container or Struts, and you'll be able to reuse those objects in other, non-Web contexts.
    So i want to use <data-sources> tag that is available
    in struts-config.xml. I know that thre is tag withThis is the wrong place to configure a connection pool, too. Struts should have nothing to do with it. What if you change Web frameworks to WebWork or Spring? The connection pool should be configured in the container that hosts your app, not Struts.
    this name, but the problem is i don't know how to use
    this tag. If any budy know how to use this please
    tell me the syntax or any example.
    plese... reply soon..Don't do it. Think about doing it in your container, not Struts.
    %

  • Is it a reasonable idea to modify config.xml directly?

    I'm curious about something. We have several steps the our users have to
    perform to install our enterprise app on WebLogic. If I wrote a program
    that would modify config.xml to add our data sources, connection pools,
    custom realm, caching realm, etc., is there anything to watch out for? Will
    we risk breaking other enterprise apps on the same server?
    In general, what do other folks do about deployment to WebLogic? Is there a
    secret trick to making it less complicated?

    Hi Eric
    There are 3 approaches to do this:
    (1) Using Admin Console of WebLogic Server. This is the safest way to do
    this. However, this has to be done manually.
    (2) Using JMX API to do it. This is also safe but you need to familiarize
    with JMX API.
    (3) Edit the config.xml directly. This is the riskiest option among the
    available 3 options.
    Hope this helps.
    thanks
    "Eric Hodges" <[email protected]> wrote in message
    news:3b9be1a6$[email protected]..
    I'm curious about something. We have several steps the our users have to
    perform to install our enterprise app on WebLogic. If I wrote a program
    that would modify config.xml to add our data sources, connection pools,
    custom realm, caching realm, etc., is there anything to watch out for?Will
    we risk breaking other enterprise apps on the same server?
    In general, what do other folks do about deployment to WebLogic? Is therea
    secret trick to making it less complicated?

Maybe you are looking for

  • How to get columns comments metadata using JDBC

    I want to get the columns comments metadata using JDBC, I tried using the OracleMetaDataObject but failed. Looks like the OracleMetaDataObject API does not support it using the latest ojdbc6.jar driver as well. Please help. I need to display the colu

  • RGB conversion to CMYK InDesign CS4 js

    Hi, When we export InDesign into pdf through a script we assign to it a specific color profile. And at first it was converting all RGB files to CMYK as well. Then after one of the crashes my InDesign stopped to convert them. Is there a way to fix tha

  • Using ISE for guest access together with anchor controller WLC in DMZ

    Hi there, I setup a guest WLAN in our LAB environment. I have one internal WLC connection to an anchor controller in our DMZ. I'm using the WLC integrated web-auth portal which works fine. To gain more flexibility regarding guest account provisioning

  • Java.crypto.Mac usage related to concurrency

    My first question is: Can I allow multiple threads to use the same instance of java.crypto.Mac concurrently? In other words, for example, is the java.crypto.Mac.doFinal(byte[] input) method thread safe? If the answer is no, then my second question is

  • New MBP = Goofy Display Wake + Keyboard Issues???

    I would like to know if anyone has had the time to try a new MBP out to see if the new Intel Chipset helps with any of the issues that the last MBP's have. Mainly, if the new chipset fixes some of the wake issues that people have been having, or the