How to blend a symbol correctly?

Hi!
I have a little problem with blending symbols.
I tried to make an animation of complex (comlicated) artwork - I thought it would be Ok by converting each part to symbol, group them - make keyframes and bring Illustrator to make me inbetweens by blending objects. Overall it works, but it has some problems - sometimes it reflect the blended symbol (vertically and horizontally), but sometimes not (so I do not know, what is the problem). Sometimes it change color of feathered black object (every, not only in blended instance) but again - sometimes not. I use CS5 - is it better in CS6? or do you have any idea, how to work problems I mentioned out? I tried some default symbols (to find out, if it is problem of my symbols) but it is not reliable too.
Thank you a lot for your interest and help.
Oliver

Here are 3 images of soldier walking behind the wall (so there is no need of the rest of body) - all of them exported after blending.
1. keyframes - there are some transformationes (also of all of the artwork - scale, rotation and so on)
2. my inbetween (if i reflect every symbol vertical and horizontal, everything is great, but it must be reflection of every single symbol)
3. my mistake - I thought that it changed color (the shadow under soldiers nose and mouth was black - it was the same procedure as shadow under the cape) but it made a hole through his head - uuuugh...... (I do not know what to do, because the symbol is still the same - but makes this)
I tried to reflect every single symbol to make it normal, and then made another blend between the second keyframe and inbetween and it was correct inbetween2 (without reflecting), but if i made another blend between second keyframe and inbetween2 it made it incorrect (not because of reflecting, but it damaged the shape of them)
maybe too much blends - I should try to make most of inbetweens in the first step and then delete som of them to retain only them I want. But the problems abowe are real and it make my work very slow.
Thank you for your help!
Oliver

Similar Messages

  • How to set currency symbol correctly in crystal report

    Hi all,
    I am using the Crystal Report 2008, I have one issue regarding the currency symbol in the crystal report.
    it seems the CrystalReport use the System Default currency symbol. e.g.
    ProductA Cost: $1000
    It displays,
    ProductA Cost: £1000
    in euro locale and $ in english locale
    It doesn't make sense in business. The question is how do we set the currency symbol "$" to the report? I google some websites, the SetLocaleInfo may be one option, I would like to know the detail and if there are more solutions.
    Thanks for your help

    Before in our legacy application, we used Crystal Report 9 & VB
    'Crystal Report Designer Components (RDC).
    Set CrxApp As New CRAXDRT.Application
    I can set the crxapp to nothing and recreate this design component.
    Set CrxApp = nothing
    After SetLocaleInfo, if we set the CrxApp to nothing, it will create the RDC and the currency symbol will be updated.
    Now we are using Crystal Report 2008 and C#, the RDC is not supported in 2008
    What can I do?
    Any input is greatly appreciated.
    Edited by: Dennis Zheng on Feb 17, 2009 3:57 PM

  • How to make it move correctly?

    I made a simple Flex application. There is a helicopter which
    will move to points that user clicks in the canvas. For example, it
    is at A point. When I click at B point, the helicopter will move to
    B. Then it will move to C when I click at C.
    However, the problem arises when I click at B, C, D
    continuously. It moved from A to B. However, I don't think it moved
    from B to C. Maybe it moved from B' to C.
    Please tell me how to make it move correctly.
    [CODE]
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    import mx.controls.Alert;
    [Embed(source="library.swf", symbol="Helicopter")]
    public var MayBay:Class;
    [Bindable]
    public var xF:Number;
    [Bindable]
    public var xT:Number;
    [Bindable]
    public var yF:Number;
    [Bindable]
    public var yT:Number;
    public function onCanvasClick(event:Event):void
    var x:Number= myCanvas.mouseX;
    var y:Number= myCanvas.mouseY;
    var oX:Number=h1.x;
    var oY:Number=h1.y;
    xF=oX;
    yF=oY;
    xT=x;
    yT=y;
    MoveEffect.play();
    // Alert.show("x="+x+" y="+y+" xOld="+oX+" yOld="+oY);
    ]]>
    </mx:Script>
    <mx:Move id="MoveEffect" target="{h1}" xFrom="{xF}"
    yFrom="{yF}" xTo="{xT}" yTo="{yT}" duration="2000" >
    </mx:Move>
    <mx:states>
    <mx:State id="NewState">
    </mx:State>
    </mx:states>
    <mx:Panel width="70%" height="50%" title="Vi du">
    <mx:Canvas click="onCanvasClick(event)" id="myCanvas"
    width="100%" height="100%" color="White">
    <mx:Image id="h1" source="{MayBay}" width="80"
    height="50">
    </mx:Image>
    </mx:Canvas>
    </mx:Panel>
    </mx:Application>
    [/CODE]

    Make clicking disabled when the helicopter is moving. So
    right after a click, disable clicking.
    There are many coding possibilities for doing so. Make your
    own, then add the code below after it:
    MoveEffect.addEventListener("effectEnd",
    callHandlerFunctionOfSomeSort);
    private function callHandlerFunctionOfSomeSort(e:Event):void
    // In this section, re-enable it using your own method.
    Good luck!

  • How to remove the '#'symbols for infoobject movement types in bex reporting

    Hi All,
      I have a problem in Bex reporting. The problem is when ever executing the report  that time some of the characteristic values is shown in layout '#' Symbols. i want to remove the '#' valuse in report.
    is it possible please give me step by step procedure for how to remove the '#' Symbols in reporing layout.
    this is very urgent please help to me on this issue.
    Thanks & Regards,
    Guna.

    Hi Guna,
    To achieve this issue, we need to replace the value of ‘#’, we need to change the description while retrieving the data from tables. So we need to write some ABAP code in SE38. Go to RSA1 transaction and go to Info objects tab. Then go to context menu for ‘cProject Key Figures’ as shown below. Click on the ‘Object Overview’ to get the overview of all the info objects. Here you can see the field names which are used to know the table names.
    In SE11, type the table name in ‘Database Table’ field. Now press ‘F4’, then you will get the next screen to select one of the P/Q/S/T tables.
    Now click on the button rounded in the below screen to view the data in the table.
    Now click the execute button or press ‘F8’ to view the records.
    Now go to Tcode: SE38. Create a source code and give some program name for that source code. To write code, you need access key. Contact your BASIS for this.
    Now write the below code for that particular table in which you want to change the value ‘#’ to description ‘Blank’. In the below source code, we are updating particular table, setting the field as ‘Blank’ where it is null or no value. Here the field will automatically get updated to ‘#’ if there is no value or null.
    update /BIC/PXXXXX set /BIC/ZXXXX = 'Blank' where /BIC/ZXXXXX is null or /BIC/ZXXXX = ''.
    if sy-subrc eq 0.
    write 'successful'.
    commit work.
    else.
    write 'unsuccessful'.
    endif.
    OR
    If this # is because of the missing master data than,
    right click that IO -> maintain master
    you will see first row as a blank.
    whatever value you maintain in this row that will come in the report for all Not assigned # values of the master data in the report.
    maintain it according to your requirement, save and activate the master data
    Hope this helps u...
    Regards,
    KK.

  • I can't update IPhoto, it says "the product distribution file could not be verified it must be damaged or signed in" I bought it on iTunes and have 8,000 photos already. how can I update and correct this??

    I can't update IPhoto, it says "the product distribution file could not be verified it must be damaged or signed in" I bought it on iTunes and have 8,000 photos already. how can I update and correct this??

    You might try resetting the App Store application and clear the cookies via this menu:
    as described in this website: Make use of the Mac App Store debug menu | MacFixIt - CNET Reviews
    OT

  • How can I display JTextFields correctly on a JPanel using GridBagLayout?

    I had some inputfields on a JPanel using the boxLayout. All was ok. Then I decided to change the panellayout to GridBagLayout. The JLabel fields are displayed correctly but the JTextField aren't. They are at the JPanel but have a size of 0??? So we cannot see what we type in these fields... Even when I put some text in the field before putting it on the panel.
    How can I display JTextFields correctly on a JPanel using GridBagLayout?
    here is a shortcut of my code:
    private Dimension sFieldSize10 = new Dimension(80, 20);
    // Create and instantiate Selection Fields
    private JLabel lSearchAbrText = new JLabel();
    private JTextField searchAbrText = new JTextField();
    // Set properties for SelectionFields
    lSearchAbrNumber.setText("ABR Number (0-9999999):");
    searchAbrNumber.setText("");
    searchAbrNumber.createToolTip();
    searchAbrNumber.setToolTipText("enter the AbrNumber.");
    searchAbrNumber.setPreferredSize(sFieldSize10);
    searchAbrNumber.setMaximumSize(sFieldSize10);
    public void createViewSubsetPanel() {
    pSubset = new JPanel();
    // Set layout
    pSubset.setLayout(new GridBagLayout());
    GridBagConstraints gbc = new GridBagConstraints();
    // Add Fields
    gbc.gridy = 0;
    gbc.gridx = GridBagConstraints.RELATIVE;
    pSubset.add(lSearchAbrNumber, gbc);
    // also tried inserting this statement
    // searchAbrNumber.setText("0000000");
    // without success
    pSubset.add(searchAbrNumber,gbc);
    pSubset.add(lSearchAbrText, gbc);
    pSubset.add(searchAbrText, gbc);
    gbc.gridy = 1;
    pSubset.add(lSearchClassCode, gbc);
    pSubset.add(searchClassCode, gbc);
    pSubset.add(butSearch, gbc);
    }

    import java.awt.*;
    import java.awt.event.*;
    import javax .swing.*;
    public class GridBagDemo {
      public static void main(String[] args) {
        JLabel
          labelOne   = new JLabel("Label One"),
          labelTwo   = new JLabel("Label Two"),
          labelThree = new JLabel("Label Three"),
          labelFour  = new JLabel("Label Four");
        JLabel[] labels = {
          labelOne, labelTwo, labelThree, labelFour
        JTextField
          tfOne   = new JTextField(),
          tfTwo   = new JTextField(),
          tfThree = new JTextField(),
          tfFour  = new JTextField();
        JTextField[] fields = {
          tfOne, tfTwo, tfThree, tfFour
        Dimension
          labelSize = new Dimension(125,20),
          fieldSize = new Dimension(150,20);
        for(int i = 0; i < labels.length; i++) {
          labels.setPreferredSize(labelSize);
    labels[i].setHorizontalAlignment(JLabel.RIGHT);
    fields[i].setPreferredSize(fieldSize);
    GridBagLayout gridbag = new GridBagLayout();
    JPanel panel = new JPanel(gridbag);
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.weightx = 1.0;
    gbc.weighty = 1.0;
    gbc.insets = new Insets(5,5,5,5);
    panel.add(labelOne, gbc);
    panel.add(tfOne, gbc);
    gbc.gridwidth = gbc.RELATIVE;
    panel.add(labelTwo, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    panel.add(tfTwo, gbc);
    gbc.gridwidth = 1;
    panel.add(labelThree, gbc);
    panel.add(tfThree, gbc);
    gbc.gridwidth = gbc.RELATIVE;
    panel.add(labelFour, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    panel.add(tfFour, gbc);
    final JButton
    smallerButton = new JButton("smaller"),
    biggerButton = new JButton("wider");
    final JFrame f = new JFrame();
    ActionListener l = new ActionListener() {
    final int DELTA_X = 25;
    int oldWidth, newWidth;
    public void actionPerformed(ActionEvent e) {
    JButton button = (JButton)e.getSource();
    oldWidth = f.getSize().width;
    if(button == smallerButton)
    newWidth = oldWidth - DELTA_X;
    if(button == biggerButton)
    newWidth = oldWidth + DELTA_X;
    f.setSize(new Dimension(newWidth, f.getSize().height));
    f.validate();
    smallerButton.addActionListener(l);
    biggerButton.addActionListener(l);
    JPanel southPanel = new JPanel(gridbag);
    gbc.gridwidth = gbc.RELATIVE;
    southPanel.add(smallerButton, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    southPanel.add(biggerButton, gbc);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(panel);
    f.getContentPane().add(southPanel, "South");
    f.pack();
    f.setLocation(200,200);
    f.setVisible(true);

  • Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone (if you're using iOS 7), then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I purchased photoshop elements 8 on line in 2010. I recently switched to a new desktop computer. Photoshop asked for my serial number. I entered the correct serial number (obtained from Adobe). It says it is invalid. How do I get this corrected so I can u

    I purchased photoshop elements 8 on line in 2010. I recently switched to a new desktop computer. Photoshop asked for my serial number. I entered the correct serial number (obtained from Adobe). It says it is invalid. How do I get this corrected so I can use the product I purchased?

    Hi Rosera,
    This is bad and I am sorry to hear that you are running into these issues.
    Let me connect with you, so right now, the current state is that you have installed copy of PSE 8 in trial on your windows 7 machine, and when you are trying to enter the serial number from your PSE 8 Box, it is saying the serial number to be invalid?
    It might sound pretty obvious, but please make sure that you are entering the serial number correctly and of PSE 8(in case you bought a PEPE box)?
    Have you tried the steps mentioned below by Barbara?
    If possible, you can send me the serial number through PRIVATE MESSAGE and I can check it on my end that whether the serial number is indeed invalid or that the issue is with your machine?
    Regards,
    Ankush

  • How do I get the correct ICloud account on my iOS devices?

    Hello. A few days ago, I changed my Apple ID username from my old email to my new one. Everything worked fine and I was able to re-login to the App Store, iMessage, etc. A few days later, I got a message from iCloud asking me to login. When I tried to login it failed and I realized that it was using my old Apple ID email to login to iCloud. So I went into accounts and tried to delete that account and add the account with the correct Apple ID. When I tried to delete the account it asked for my iCloud password to confirm, which doesn't work because it is using my old Apple ID. I then tried to add my current iCloud account without deleting the old one, but when I did it said it was already on the device. How do I get the correct ICloud account on my iOS devices?

    Log out of the old ID, then login using the new one with the correct pw.

  • Help! how to create a repository correctly of owb?

    I have installed oracle11 in the directory c:\app\***\product\11.1.0\db_1 and installed owb in the directory c:\app\***\product\11.1.0\owb11gr1. When i tried to Create a Repository Using the Repository Assistant, the system gives out an error message:OWBSYS is not granted access to owb home/owb/bin/admin/rtrepos.properties:Please run UnifiedRepos/reset_owbcc_home.sql specifiying the path of the Oracle Home from which the Control Center Service is being run.
    Then I run the script reset_owbcc_home.sql and put in "C:/app/***/product/11.1.0/owb11gr1" according to the prompt.
    But it still can not work, it gives out another error,"there is no table or views"
    Can anyone tell me how to create a repository correctly?
    Thanks!

    With your database 11g install OWB is already installed under the ORACLE_HOME's owb directory. You should/could have just used it.
    I'd suggest a cleanout and start again, here are the steps:
    1. Close any open OWB
    2. from db home,
    Stop runtime service - cd owb/rtp/sql sqlplus OWBSYS/OWBSYS @stop_service
    3. drop your target user, design user
    4. cleanout OWBSYS, recreate:
    cd owb/UnifiedRepos
    sqlplus using your sysdba
    @clean_owbsys
    @cat_owb <tablespace_of_your_choice)
    Now run reposinst.bat from your database Oracle home
    Cheers
    David

  • Firefox 6.0 is not Displaying Symbols Correctly

    Okay, ever since I updated to Firefox 6.0, it has not been displaying symbols correctly. It '''doesn't''' matter what site I'm on (I just used my twitter account as an example), as I'm having the same issue everywhere.
    Example on Firefox:
    http://i51.tinypic.com/2iifu5f.jpg
    And if I open up Internet Explorer and view it, I see the symbols like I should be. This is what it looks like in Internet Explorer:
    http://i53.tinypic.com/25u74sw.jpg
    So can anyone lend a hand as to why I'm not seeing symbols correctly in Firefox? And what is the way to fix this? I was having absolutely NO problems prior to the Firefox 6.0 update.
    I am also using Windows 7 for my operating system if that helps any!
    Thanks!

    I honestly have no idea. It's what ever font family Twitter uses and I'm unsure of what they use.
    Does anyone know what font settings I should have on Firefox? Or if I'm missing an installed font? I just don't understand why the symbols work perfectly fine on Internet Explorer but not on Firefox. D:

  • How to find out the Correct Controlfile script Trace .trc file in /bdump

    Hi Guys
    This is the most childish queries in this forum ..
    I wanna know how to Find out the correct trace file when we Issue alter database backup controlfile to trace at sqlprompt for Creating controlfile script.
    As i find it a bit confusing to go through the same Date & almost same time .trc files out of hundreds of trace file in /bdump directory to find the correct one.
    if we 've to find the Alert log file in /bdump directory $ ls -l al* & we get the alert log file .... if there is any similar way to find out the controlfile script Trace file ?
    Thanks & regards
    MZ

    MZ_AppsDBA wrote:
    Hi Guys
    This is the most childish queries in this forum ..
    I wanna know how to Find out the correct trace file when we Issue alter database backup controlfile to trace at sqlprompt for Creating controlfile script.
    As i find it a bit confusing to go through the same Date & almost same time .trc files out of hundreds of trace file in /bdump directory to find the correct one.
    if we 've to find the Alert log file in /bdump directory $ ls -l al* & we get the alert log file .... if there is any similar way to find out the controlfile script Trace file ?
    Thanks & regards
    MZcreation of the does not happen automatically. What script, and when does it run, do you have that creates the control file trace? Look for files in that time frame. Better, modify that script to specifically name the file .. BACKUP CONTROLFILE TO TRACE AS ....

  • Very Urgent: how to define field symbols in class using se24 Points assured

    hi all
    I am new to abap oo programming. I am using se24 to build a class
    where some methods have code which involves working with field sybmols but i am not able to figure out way for how to define field symbols in the attributes section.
    I tried defining like : fld_sym type ref to  dbtab-fld
    but in the method implementation if i try to use it like assign fld to <fld_sym> there it says fld_sym is not defined as a field symbol.
    So can anyone please guide me how to define field symbols in se24.
    Also what should be the general steps while creating a class using se24.
    Points assured
    thanks

    Hi
    Global classes are like Global fun modules in which the Methods and code is already written and is mainly used for Reusability purpose.
    Goto SE24 tcode and see the std global classes like
    CL_ABAP_CHAR_UTILITIES
    see the links
    chk out the links below:
    General Tutorial for OOPS
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Have a look at these links for OO ABAP.
    http://www.sapgenie.com/abap/OO/
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
    http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
    http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
    http://www.allsaplinks.com/
    http://www.sapgenie.com/abap/controls/index.htm
    http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
    http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    SDN Series:
    https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/35eaef9c-0b01-0010-dd8b-e3b0f9ed7ccb [original link is broken]
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
    Basic concepts of OOPS
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
    http://www.henrikfrank.dk/abapuk.html
    http://www.erpgenie.com/abap/OO/
    Reward oints if useful,
    Aleem.

  • How to Edit Flash Symbol in Photoshop?

    In Flash CS4, I have a graphic of a long filmstrip with 24 pix in it. I need to edit the symbol in photoshop (to put all new pix in), and then replace the current filmstrip with the new filmstrip. How? This is CS4, not CS5.

    Add an image to a folder with your fla, image folder(with image inside) and then re import image to stage again then try 'EDIT' the file!
    Date: Sat, 24 Sep 2011 13:31:35 -0600
    From: [email protected]
    To: [email protected]
    Subject: How to Edit Flash Symbol in Photoshop?
        Re: How to Edit Flash Symbol in Photoshop?
        created by sneedbreedley in Flash Pro - General - View the full discussion
    Whe nI double click on the image, a Bitmap Properties window opens with no option to edit. When I right-clcik on the image and select Edit With and choose photoshop, an error message appears saying The file G:\web-02\Site\film120902.gif does not exist, uable to launch external editor.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3936238#3936238
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3936238#3936238. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Flash Pro - General by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How can I Locate the correct filepath in a jsp page?

    In http://localhost:8080/myweb/a.jsp, I will call a java bean file which is locate in http://localhost:8080/myweb/WEB-INF/classes/haha/DBConnection.class. This java file requires to read an external file which locates in http://localhost:8080/myweb/WEB-INF/classes/haha/db.txt
    My question is how can I get the correct filepath in this environment?
    inputStream = new BufferedReader(new FileReader(????????));
    Only this will work
    inputStream = new BufferedReader(new FileReader("D:\Program Files\Apache Software Foundation\Tomcat 5.5\db.txt"));
    But no one will place the file here, and it is impossible to do this when upload to 3rd party hosting.
    Any suggestion? thx.

    Thx all, in a jsp page, calling this method is fine.
    ServletContext s = getServletContext();
    String a = s.getRealPath("/");
    In a Servlet file, below method is ready to use:
    String b = getServletConfig().getServletContext().getRealPath("/");
    My problem is, I have a jsp page, which initialize a java bean , this java file is responsible for Database Connection, which will read the external text file to get the login, password and database name. So I won't need to recompile this file every time when I place in different platform with different configuration. I only need to edit the text file is ok.
    But How can I get the absolute file path when that jsp page initialize that java bean file? Below is my error, any suggestions are thx.
    package sql;
    import java.sql.*;
    import java.util.ArrayList;
    import java.io.FileReader;
    import java.io.BufferedReader;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class DBConnection extends HttpServlet{
    public String sql = null;
    public Connection con = null;
    public Statement statement = null;
    public ResultSet rs = null;
    private BufferedReader inputStream = null;
    private static ArrayList<String> arr = new ArrayList<String>();
      public DBConnection(){
        String fs = System.getProperty("file.separator");
        ServletContext s = getServletContext();
        String realpath = s.getRealPath("/");
        String filepath = realpath + "WEB-INF"+fs+"Properties"+fs+"db.txt";
        try{
          inputStream = new BufferedReader(new FileReader(filepath));
          String l;
          while ((l = inputStream.readLine()) != null) {
            arr.add(l);
          Class.forName("com.mysql.jdbc.Driver");
          this.con = DriverManager.getConnection("jdbc:mysql://localhost:3306/"+arr.get(0)+"?user=" +arr.get(1)+ "&password="+arr.get(2)+"&useUnicode=true&characterEncoding=utf-8");
          this.statement = this.con.createStatement();
        }catch (Exception e){
          System.err.println(e.getMessage());
        }finally{
    }java.lang.NullPointerException
         javax.servlet.GenericServlet.getServletContext(GenericServlet.java:159)
         sql.DBConnection.<init>(DBConnection.java:20)
         html.ShowCategory.<init>(ShowCategory.java:17)
         org.apache.jsp.left_jsp._jspService(left_jsp.java:66)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Maybe you are looking for

  • Using System Variables in a SQL Query

    Hi! I´m new to Oracle and SQL so i don´t know very much about it. There is miy Problem: Is there a way to Use the System Variable %USERNAME% in an SQL Query? I tried .... where table.shorttag = '%USERNAME%' ; but this doesnt work. Is Oracle able to h

  • Crystal Reports XI  Dates appearing in US format instead of UK Settings

    Hi, When I am running reports from my java Web Application using crystal reports XI,  the dates are being displayed as mm/dd/yyyy even though the regional settings are set to dd/mm/yyyy and the date format of the reports is set to use System Default

  • Excel 2013 Menu bar not functioning

    If I open an existing spreadsheet in Excel, I can work in the spreadsheet, but none of the ribbon menu functions work, including the close "X" in the corner.  If I open a blank workbook, everything seems to work fine. 

  • Record and Simulate 64 Channels of DIO in Realtime

    Hi folks, I'm not a LabView user yet but I expect to become one ... but befor this happens to me I would like to get some experise if what I'm going to try is worth the effort. We want to test our software on an embedded CPU board. In order do this w

  • Add new field in me21n/me22n/me23n

    Hi everyone, Is it possible to add a field in the Additional Data tab in the PO header and append the field in the PO table(EKKO) also or should I add a new tab and place my new field in the new tab? Is it possible also to add the field using a user