Is there any alternative for adding servlet name in Web.xml?

Hi,
I am new to Weblogic and I have an application(Ear file) which was developed
in Websphere and I am trying to install in weblogic 8.1. I have installed my application
in Websphere without adding servlet entries in Web.xml and it was working fine.
I have installed the same Ear file in Tomcat and added the
following to make all my all servlets work.
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
Is there any alternative of doing like that in WebLogic instead of adding each
and every servlet entry in web.xml because my application has around 200 servlets
Thanks&Regards,
Gopi.

Is Servlet servlet same as weblogic.servlet.ServletServlet?
Deepak
Rob Woollen <[email protected]> wrote:
Yes, you could register weblogic.servlet.ServletServlet.
-- Rob
Gopi Krishna wrote:
Hi,
I am new to Weblogic and I have an application(Ear file) whichwas developed
in Websphere and I am trying to install in weblogic 8.1. I have installedmy application
in Websphere without adding servlet entries in Web.xml and it was workingfine.
I have installed the same Ear file in Tomcat and added the
following to make all my all servlets work.
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
Is there any alternative of doing like that in WebLogic instead ofadding each
and every servlet entry in web.xml because my application has around200 servlets
Thanks&Regards,
Gopi.

Similar Messages

  • Hi I have recentrly bought IPAD AIR , is there any flash version supporting this model or is there any alternative for flash siles to open ?

    Hi,
    I have recently bought IPAD AIR , is there any flash version supporting this model or is there any alternative for flash sites to open ?

    iPad do not support Flash
    However Skyfire, Photon, iSwifter, Browse2Go and Puffin Web Browser will provide limited Flash capability

  • Are there any alternatives for iphone backup extractor?

    Hi all,
    I find that the 'iphone backup extractor' program is very useful, however it is quite annoying that they limit the extraction to 4 files at a time and that we have to pay in order to get our own data files propperly. :S
    When I restore my old backup from iTunes, every new thing is gone, when I restore the backup I just made, the old backup stuff has gone. It just replaces each other.
    Apple should have their own software like this where you can extract what ever you want from your old backups and transfer it on to your phone, such as contacts for example.
    Anyway, I was wondering if there is any alternatives for this program, or any other way I can extract my backup files ?

    If you're on a Mac, there is a "free" iPhone backup extractor, but none that I know of for Windows. You could always code your own program, that would be free.
    Apple doesn't provide a mechanism to do this for the simple reason they don't want users screwing with the iPhone backup. Thus, none of these third-party programs are supported.

  • Are there any alternatives for mseg and mkpf

    I had to display from table S032...following fields.
    S032-LETZTABG --> Date: last (i.e. most recent) goods issue
    S032-LETZTVER --> Date: last (i.e. most recent) consumption
    However the data was not properly filled in s032 table.  So I went for mseg and mkpf table to get budat based on moment types.
        SELECT   MSEG~MATNR
                 MSEG~WERKS
                 MSEG~LGORT
                 MSEG~BWART
                 MKPF~BUDAT
                 INTO TABLE IT_MSEG
                 FROM MKPF AS MKPF  INNER JOIN MSEG AS MSEG
                 ON
                     MKPFMBLNR  =  MSEGMBLNR  AND
                     MKPFMJAHR  =  MSEGMJAHR
                 FOR ALL ENTRIES  IN  T_OUT_TMP
                WHERE MSEG~MATNR  EQ  T_OUT_TMP-MATNR
                  AND MSEG~WERKS  EQ  T_OUT_TMP-WERKS.
    Are there any other alternative table for mseg and mkpf...
    Because my above coding  ( which includes above  SELECT of mseg and mkpf )got performance issue...
    Could you please suggest me anyu other alternative for mseg and mkpf ...

    Try to include the BUDAT in the selection of the MKPF.. if you don't have any restriction in MKPF than just pass an empty range.
    RANGES: S_BUDAT FOR MKPF-BUDAT.
    SELECT
    MKPF~BUDAT   "<<<
    MSEG~MATNR
    MSEG~WERKS
    MSEG~LGORT
    MSEG~BWART
    INTO TABLE IT_MSEG
    FROM MKPF AS MKPF INNER JOIN MSEG AS MSEG
    ON
    MKPF~MBLNR = MSEG~MBLNR AND
    MKPF~MJAHR = MSEG~MJAHR
    FOR ALL ENTRIES IN T_OUT_TMP
    WHERE
    MKPF~BUDAT IN S_BUDAT   " <<<
    MSEG~MATNR EQ T_OUT_TMP-MATNR
    AND MSEG~WERKS EQ T_OUT_TMP-WERKS.
    Regards,
    Naimesh Patel

  • Is there any alternative for OVS ?

    Hi All,
        I am looking for alternative method to implement help option to multiple input fields. So, I wanted to ask memebers of this forum if there is any alternative approach to achieve this functionality as I find implementing OVS is very confusing and time consuming.
    Kindly suggest me if there is any alternate option if available. I tried Hotel Reservation example and flight reservation examples.
    Kindly suggest me any new methods.
    Thanks
    Uday

    I would first develop a view which will act as your value selector (I would use a table UI element with filtering capabilities)
    Then embed this view in a window so it can be shown as a popup using code in the onEnter event, like
    IWDWindowInfo winInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("YourValueSelectorWindow");
    IWDWindow     win     = wdComponentAPI.getWindowManager().createModalWindow(winInfo);
    win.setWindowPosition (<left_relativ_to_your_inputfield>, <top_relative_to_your_inputfield>);
    win.setWindowSize (<width>,<height>);
    win.show();
    In this window bind your table UI element to the context of your source data, implement filtering capabilities, and upon selection pass the desired value back to the parent inputfield and closing the popup window.

  • Is there any alternative for FileConnection in j2me

    hi,
    i want to read and write images from phone memory.i use the Fileconnection for that the pbm for using FileConnection v need the support of JSR-75 in mobile.only few mobiles have the support of JSR-75.Is there any possible way to read and write images from phonememory other than FileConnection and also theRMS .
    thanx a lot

    Hi im write this code to open the image file and show that in canvas :
    as a class
    FileBrowser.java as a example on wtk 2.2 with modification
    import java.util.*;
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.io.file.*;
    import javax.microedition.lcdui.*;
    * Demonstration MIDlet for File Connection API. midlet MIDlet implements simple
    * file browser for the filesystem avaliable to the J2ME applications.
    class FileBrowser implements CommandListener {
        private String currDirName;
        private Command view = new Command("View", Command.ITEM, 1);
        private Command creat = new Command("New", Command.ITEM, 2);
        private Command creatOK = new Command("Oke", Command.OK, 1);
        private Command prop = new Command("Properti", Command.ITEM, 2);
        private Command back = new Command("Kembali", Command.BACK, 2);
        private Command exit = new Command("Batal", Command.EXIT, 3);
        private Command cmOpenCrop = new Command("Open File To Crop", Command.ITEM, 1);
        private TextField   nameInput;  // Input field for new file name
        private ChoiceGroup typeInput;  // Input fiels for file type (regular/dir)
        private Midlet midlet;
        private final static String[] attrList = { "Baca", "Tulis", "Sembunyikan" };
        private final static String[] typeList = { "File Biasa", "Direktori" };
        private final static String[] monthList = { "Jan", "Feb", "Mar", "Apr",
        "May", "Jun", "Jul", "Aug",
        "Sep", "Oct", "Nov", "Dec" };
        private Image dirIcon, fileIcon, photoIcon;
        private Image[] iconList;
        /* special string denotes upper directory */
        private final static String UP_DIRECTORY = "..";
        /* special string that denotes apper directory accessible by midlet browser.
         * midlet virtual directory contains all roots.
        private final static String MEGA_ROOT = "/";
        /* separator string as defined by FC specification */
        private final static String SEP_STR = "/";
        /* separator character as defined by FC specification */
        private final static char   SEP = '/';
        public FileBrowser(Midlet midlet) {
            this.midlet = midlet;
            currDirName = MEGA_ROOT;
            try {
                dirIcon = Image.createImage("/icons/dir.png");
            } catch (IOException e) {
                dirIcon = null;
            try {
                photoIcon = Image.createImage("/icons/photo.png");
            } catch (IOException e) {
                photoIcon = null;
            try {
                fileIcon = Image.createImage("/icons/file.png");
            } catch (IOException e) {
                fileIcon = null;
            iconList = new Image[] { fileIcon, dirIcon};
            new Thread(new Runnable() {
             public void run(){
               RunAplikasi(); }
            }).start();
        public void RunAplikasi() {
            try {
                showCurrDir();
            } catch (SecurityException e) {
                Alert alert = new Alert("Error",
                    "You are not authorized to access the restricted API",
                    null, AlertType.ERROR);
                alert.setTimeout(Alert.FOREVER);
                Form form = new Form("Cannot access FileConnection");
                form.append(new StringItem(null,
                    "You cannot run midlet MIDlet with the current permissions. "
                    + "Sign the MIDlet suite, or run it in a different security domain"));
                form.addCommand(exit);
                form.setCommandListener(this);
                Display.getDisplay(midlet).setCurrent(alert, form);
            } catch (Exception e) {
                e.printStackTrace();
        public void commandAction(Command c, Displayable d) {
            if (c == view) {
                List curr = (List)d;
                final String currFile = curr.getString(curr.getSelectedIndex());
                new Thread(new Runnable() {
                    public void run() {
                        if (currFile.endsWith(SEP_STR) || currFile.equals(UP_DIRECTORY)) {
                            traverseDirectory(currFile);
                        } else {
                            // Show file contents
                            showFile(currFile);
                }).start();
            } else if (c == prop) {
                List curr = (List)d;
                String currFile = curr.getString(curr.getSelectedIndex());
                showProperties(currFile);
            } else /*if (c == creat) {
                 //createFile();
            } else if (c == creatOK) {
                String newName = nameInput.getString();
                if (newName == null || newName.equals("")) {
                    Alert alert = new Alert("Error!",
                    "File Name is empty. Please provide file name",
                    null,
                    AlertType.ERROR);
                    alert.setTimeout(Alert.FOREVER);
                    Display.getDisplay(midlet).setCurrent(alert);
                } else {
                    // Create file in a separate thread and disable all commands
                    // except for "exit"
                    executeCreateFile(newName, typeInput.getSelectedIndex() != 0);
                    Display.getDisplay(midlet).getCurrent().removeCommand(creatOK);
                    Display.getDisplay(midlet).getCurrent().removeCommand(back);
            } else*/ if (c == back) {
                showCurrDir();
            } else if (c == exit) {
               midlet.SelesaiAplikasi();
            } else if (c == cmOpenCrop) {
               List curr = (List)d;
               String currFile = curr.getString(curr.getSelectedIndex());
               midlet.SelesaiOpen("file:///"+ currDirName + currFile,0,0);
        //Starts creatFile with another Thread
        private void executeCreateFile(final String name, final boolean val) {
            new Thread(new Runnable(){
                public void run(){
                    createFile(name, val);
            }).start();
         * Show file list in the current directory .
        void showCurrDir() {
            Enumeration e;
            int Panjang,Count,AdaEkstensi,IndexConcat = 0;
            String SimpanEkstensi,SaveTemp;
            char str[] = new char[10];
            Boolean Ketemu = new Boolean(false);
            FileConnection currDir = null;
            List browser;
            try {
                if (MEGA_ROOT.equals(currDirName)) {
                    e = FileSystemRegistry.listRoots();
                     browser = new List(currDirName, List.IMPLICIT);
                } else {
                    currDir = (FileConnection)Connector.open("file://localhost/" +
                                currDirName);
                    e = currDir.list();
                     browser = new List(currDirName, List.IMPLICIT);
                      // not root - draw UP_DIRECTORY
                     browser.append(UP_DIRECTORY, dirIcon);
                     browser.setSelectCommand(view);
                while (e.hasMoreElements()) {
                    String fileName = (String)e.nextElement();
                    if (fileName.charAt(fileName.length()-1) == SEP) {
                        // midlet is directory
                        browser.append(fileName, dirIcon);
                        browser.setSelectCommand(view);
                    } else {
                        // midlet is regular file
                        //cari tahu si ekstensi jika ada
                        Panjang = fileName.length();                
                        Count = 0;
                        AdaEkstensi = 0;
                        while (Count < Panjang && AdaEkstensi == 0)
                          if (fileName.charAt(Count) == '.')
                            AdaEkstensi = 1;
                            IndexConcat = Count+1;
                          Count++;
                        if (AdaEkstensi == 1)
                          //cari tahu apakah si ekstensi gambar atau bukan
                          SimpanEkstensi = new String("");
                          //SimpanEkstensi.concat(fileName.substring(IndexConcat,Panjang));
                          fileName.getChars(IndexConcat,Panjang,str,0);
                          if (str[0] == 'p' && str[1] == 'n' && str[2] == 'g'){
                             browser.append(fileName, photoIcon);
                             browser.addCommand(cmOpenCrop);
                             browser.setSelectCommand(view);
                          } else
                          if (str[0] == 'j' && str[1] == 'p' && str[2] == 'g'){
                             browser.append(fileName, photoIcon);
                             browser.addCommand(cmOpenCrop);
                             browser.setSelectCommand(view);
                          } else {
                             browser.append(fileName, fileIcon);
                             browser.setSelectCommand(view);
                        } else
                          browser.append(fileName, fileIcon);
                          browser.setSelectCommand(view);
                browser.addCommand(prop);
                //Do not allow creating files/directories beside root
                if (!MEGA_ROOT.equals(currDirName)) {
                    //browser.addCommand(creat);
                browser.addCommand(exit);
                browser.setCommandListener(this);
                if (currDir != null) {
                    currDir.close();
                Display.getDisplay(midlet).setCurrent(browser);
            } catch (IOException ioe) {
                ioe.printStackTrace();
        void traverseDirectory(String fileName) {
        /* In case of directory just change the current directory
         * and show it
            if (currDirName.equals(MEGA_ROOT)) {
                if (fileName.equals(UP_DIRECTORY)) {
                    // can not go up from MEGA_ROOT
                    return;
                currDirName = fileName;
            } else if (fileName.equals(UP_DIRECTORY)) {
                // Go up one directory
                // TODO use setFileConnection when implemented
                int i = currDirName.lastIndexOf(SEP, currDirName.length()-2);
                if (i != -1) {
                    currDirName = currDirName.substring(0, i+1);
                } else {
                    currDirName = MEGA_ROOT;
            } else {
                currDirName = currDirName + fileName;
            showCurrDir();
        void showFile(String fileName) {
            try {
                FileConnection fc = (FileConnection)
                    Connector.open("file://localhost/" + currDirName + fileName);
                if (!fc.exists()) {
                    throw new IOException("File does not exists");
                InputStream fis = fc.openInputStream();
                byte[] b = new byte[1024];
                int length = fis.read(b, 0, 1024);
                fis.close();
                fc.close();
                TextBox viewer = new TextBox("View File: " + fileName, null, 1024,
                TextField.ANY | TextField.UNEDITABLE);
                viewer.addCommand(back);
                viewer.addCommand(exit);
                viewer.setCommandListener(this);
                if (length > 0) {
                    viewer.setString(new String(b, 0, length));
                Display.getDisplay(midlet).setCurrent(viewer);
            } catch (Exception e) {
                Alert alert = new Alert("Error!",
                "Can not access file " + fileName
                + " in directory " + currDirName
                + "\nException: " + e.getMessage(),
                null,
                AlertType.ERROR);
                alert.setTimeout(Alert.FOREVER);
                Display.getDisplay(midlet).setCurrent(alert);
        void showProperties(String fileName) {
            try {
                if (fileName.equals(UP_DIRECTORY)) {
                    return;
                FileConnection fc = (FileConnection)Connector.open("file://localhost/"
                                    + currDirName + fileName);
                if (!fc.exists()) {
                    throw new IOException("File does not exists");
                Form props = new Form("Properties: " + fileName);
                ChoiceGroup attrs = new ChoiceGroup("Attributes:", Choice.MULTIPLE,
                attrList, null);
                attrs.setSelectedFlags(new boolean[] {fc.canRead(),
                fc.canWrite(),
                fc.isHidden()});
                props.append(new StringItem("Location:", currDirName));
                props.append(new StringItem("Type: ", fc.isDirectory() ?
                "Directory": "Regular File"));
                props.append(new StringItem("Modified:",myDate(fc.lastModified())));       
                props.append(attrs);
                props.addCommand(back);
                props.addCommand(exit);
                props.setCommandListener(this);
                fc.close();
                Display.getDisplay(midlet).setCurrent(props);
            } catch (Exception e) {
                Alert alert = new Alert("Error!",
                "Can not access file " + fileName
                + " in directory " + currDirName
                + "\nException: " + e.getMessage(),
                null,
                AlertType.ERROR);
                alert.setTimeout(Alert.FOREVER);
                Display.getDisplay(midlet).setCurrent(alert);
        void createFile() {
            Form creator = new Form("New File");
            nameInput = new TextField("Enter Name", null, 256, TextField.ANY);
            typeInput = new ChoiceGroup("Enter File Type", Choice.EXCLUSIVE,
            typeList, iconList);
            creator.append(nameInput);
            creator.append(typeInput);
            //creator.addCommand(creatOK);
            creator.addCommand(back);
            creator.addCommand(exit);
            creator.setCommandListener(this);
            Display.getDisplay(midlet).setCurrent(creator);
        void createFile(String newName, boolean isDirectory) {
            try {
                FileConnection fc = (FileConnection) Connector.open("file:///" +
                currDirName +
                newName);
                if (isDirectory) {
                    fc.mkdir();
                } else {
                    fc.create();
                showCurrDir();
            } catch (Exception e) {
                String s = "Can not create file '" + newName + "'";
                if (e.getMessage() != null && e.getMessage().length() > 0) {
                    s += "\n" + e;
                Alert alert = new Alert("Error!", s, null, AlertType.ERROR);        
                alert.setTimeout(Alert.FOREVER);
                Display.getDisplay(midlet).setCurrent(alert);
                // Restore the commands that were removed in commandAction()
                Display.getDisplay(midlet).getCurrent().addCommand(creatOK);
                Display.getDisplay(midlet).getCurrent().addCommand(back);
        private String myDate(long time) {
            Calendar cal = Calendar.getInstance();
            cal.setTime(new Date(time));
            StringBuffer sb = new StringBuffer();
            sb.append(cal.get(Calendar.HOUR_OF_DAY));
            sb.append(':');
            sb.append(cal.get(Calendar.MINUTE));
            sb.append(':');
            sb.append(cal.get(Calendar.SECOND));
            sb.append(',');
            sb.append(' ');
            sb.append(cal.get(Calendar.DAY_OF_MONTH));
            sb.append(' ');
            sb.append(monthList[cal.get(Calendar.MONTH)]);
            sb.append(' ');
            sb.append(cal.get(Calendar.YEAR));
            return sb.toString();
        public void view_image(String FileName)
    }and show it on class ClipCanvas
    Class ClipCanvas
    Merupakan Class yang di gunakan untuk membuat area
    Clip Mata
    import javax.microedition.lcdui.*;
    import java.util.*;
    import java.io.*;
    import java.lang.Math.*;
    import javax.microedition.io.file.*;
    import javax.microedition.io.*;
    class ClipCanvas extends Canvas implements CommandListener, Runnable
      private  Command cmSave = new Command("Save Image Area Crop",Command.SCREEN,1);
      private  Command cmSendMMS = new Command("Send MMS",Command.SCREEN,1);
      private  Command cmHelp = new Command("Help",Command.SCREEN,1);
      private  Command cmExit = new Command("Keluar", Command.SCREEN, 1);
      private Midlet midlet;      // Main midlet
      private Image im,ImageCrop,TempImage = null; // Image to display
      //private Graphics TempGraphics;
      private Random random;    // Get random number
      private int clipx = 0,  clipy = 0,  // View port
                  clipw = 200, cliph = 200; // (clipping region)
      private int old_clipx = 0, old_clipy = 0; // Last clipping region
      private int awalx,awaly;
      private String NamaFile;
      //konstruktor
      public ClipCanvas(Midlet midlet,final String NamaFile,int awalx,int awaly)
        this.midlet = midlet;
        this.NamaFile = NamaFile;
        // Create exit command & listen for events
        this.addCommand(cmSave);
        this.addCommand(cmSendMMS);
        this.addCommand(cmHelp);
        this.addCommand(cmExit);
        // Get random values for starting point
        random = new java.util.Random();
        // Make sure the entire clipping region is
        // visible on the display 
           this.clipx = Math.min((getWidth() - clipw),
                         (random.nextInt() >>> 1) % getWidth());
           this.clipy = Math.min((getHeight() - cliph),
                         (random.nextInt() >>> 1) % getHeight());
          // Create immutable image
               new Thread(new Runnable() {
               public void run(){
               //String NamaFile = NamaFile1;
               InputConnection fileConn = null;
               DataInputStream dis = null;
               try{
               fileConn = (InputConnection)Connector.open(NamaFile,Connector.READ);
               dis = fileConn.openDataInputStream();
               im = Image.createImage(dis); 
               TempImage = Image.createImage(im.getWidth(),im.getHeight());
               dis.close();
                catch (java.io.IOException e)
                  System.err.println("Unable to locate or read .png file");
                  e.printStackTrace();
            }).start();
          this.awalx = awalx;
          this.awaly = awaly;
        setCommandListener(this);
      protected void paint(Graphics g)
        if (im != null)
          //putihin layar
          g.setColor(0xFFFFFF);
          g.fillRect(0,0,getWidth(),getHeight());
          // Clear only the previous clipping region
          g.setColor(255, 255, 255);
          g.fillRect(old_clipx, old_clipy, clipw, cliph);     
          g.drawRect(old_clipx, old_clipy, clipw-1, cliph-1);
          g.drawRect(old_clipx+92, old_clipy+92, 8,8);
          // Set the new clipping region
          g.setColor(255, 255, 255);
          g.setClip(clipx, clipy, clipw, cliph);
          // Draw image 
          g.drawImage(im, awalx, awaly, Graphics.LEFT | Graphics.TOP);
          //draw si rectangle kecil
          g.setColor(0xFF001E);
          g.drawRect(clipx,clipy,clipw-1,cliph-1);
          g.drawRect(clipx+92,clipy+92,8,8);
          Graphics TempGraphics = TempImage.getGraphics();
          TempGraphics.drawImage(im,awalx, awaly,Graphics.LEFT | Graphics.TOP);
        } else
          //putihin layar
          g.setColor(0xFFFFFF);
          g.fillRect(0,0,getWidth(),getHeight());
          //draw si rectangle kecil
          g.setColor(0xFF001E);
          g.drawString("Tekan Tombol Arah !",clipx,clipy,Graphics.LEFT | Graphics.TOP);
      public void commandAction(Command c, Displayable d)
        if (c == cmExit)
          midlet.SelesaiAplikasi();
        else
        if (c == cmSave){
          try {
             ImageCrop = Image.createImage(TempImage,clipx,clipy,clipw,cliph,0);
          } catch(NullPointerException ioe){
            System.err.println("Halo !!!!!");
            return;
          midlet.SaveImage(ImageCrop,NamaFile,awalx,awaly);
      protected void keyPressed(int keyCode)
        // Save the last clipping region
        old_clipx = clipx;
        old_clipy = clipy;
        switch (getGameAction(keyCode))
          case UP:
            // Move clipping region up 3 pixels
            if (clipy > 0)
              clipy = Math.max(0, clipy - 3);
            else
              if (awaly+3 <=0)
                 awaly += 3;
            break;
          case DOWN:
            // Move clipping region down 3 pixels     
            if (clipy + cliph < getHeight())
              clipy = Math.min(getHeight(), clipy + 3);
            else
            if (im.getHeight() > getHeight()){
              if (awaly-3 >=(-1*(im.getHeight()-getHeight())))
                 awaly -= 3;
            break;
          case LEFT:
           // Move clipping region left 3 pixels
           if (clipx > 0)
              clipx = Math.max(0, clipx - 3);
            else
                 if (awalx + 3 <=0)
                   awalx += 3;
          break;
          case RIGHT:
            // Move clipping region right 3 pixels     
            if (clipx + clipw < getWidth())
              clipx = Math.min(getWidth(), clipx + 3);
         else
              if (im.getWidth() > getWidth()){
             if (awalx - 3 >= -1*(im.getWidth()-getWidth()))
               awalx -= 3;
           break;
          case FIRE:
          try {
             ImageCrop = Image.createImage(TempImage,clipx,clipy,clipw,cliph,0);
          } catch(NullPointerException ioe){
            System.err.println("Halo !!!!!");
            return;
          midlet.SaveImage(ImageCrop,NamaFile,awalx,awaly);       
          break;
        repaint();
      public void run(){
    }

  • Is there any alternative for Evaluate function

    Hi all
    Can anybody tell me the alternative for evaluate function. i have to use a SQL Function and execute it from obiee

    Agreed with John. You best create a view in the DB or - if you don't have the rights - you can just put this SQL code in the physical layer as a physical table object of table type "Select".
    In UDML:
    DECLARE TABLE "ABC".."SH"."test" AS "test" UPGRADE ID 1 NOT CACHEABLE NO INTERSECTION
         TABLE TYPE SELECT DATABASE MAP (
               {DefaultMulDB}  AS {select a.job_id,
         a.name title,
         flsa.meaning flsa,
         eeo.meaning eeo_category,
         a.attribute1 job_family,
         c.name grade
    from per_jobs a,
         (select * from per_valid_grades where sysdate between date_from and nvl(date_to, sysdate + 1)) b,
         (select * from per_grades where sysdate between date_from and nvl(date_to, sysdate + 1)) c,
         (select lookup_code, meaning from hr_lookups where lookup_type like 'US_EXEMPT_NON_EXEMPT') flsa,
         (select lookup_code, meaning from hr_lookups where lookup_type like 'US_EEO1_JOB_CATEGORIES') eeo,
         (select lookup_code, meaning from hr_lookups where lookup_type like 'ALB_HR_JOB_FAMILY') jf
    where sysdate between a.date_from and nvl(a.date_to, sysdate + 1) and
         b.job_id (+) = a.job_id and
         c.grade_id(+) = b.grade_id and
         flsa.lookup_code (+) = a.job_information3 and
         eeo.lookup_code (+) = a.job_information1 and
         jf.lookup_code (+) = a.attribute1}  )
         PRIVILEGES ( READ);Cheers,
    C.

  • Adding servlet entry in web.xml of j2ee engine

    Hi ,
    I want a servlet to be loaded on startup of the j2ee engine SAP WAS which is basically flex based (MessageBrokerServlet). 
    The init param for the servlet is not accessible or cannot be initialized in init method of the servlet using the servletconfig object.
    This is when the servlet is used as a portal component of type servlet.
    So as to load the servlet and the servlet being able to access the init param i would be changing the web.xml of the sap j2ee engine (NW CE 7.1). are there any other effects of the same or is it fine if i just add this param in the web.xml
        <servlet>
            <servlet-name>MessageBrokerServlet</servlet-name>
            <display-name>MessageBrokerServlet</display-name>
            <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
            <init-param>
                <param-name>services.configuration.file</param-name>
                <param-value>/WEB-INF/flex/services-config.xml</param-value>
           </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>

    Hi ,
    Vivek in case my servlet is part of the Portal Application as PortalComponent how do i define init parameters  that can be accessed in the servlet.
    The config file would be accessed in the init method of the servlet how do i do that when the servlet is added as PortalComponent in PortalApplication. The servlet config file needs to accessed in t he init method.
    The load on startup thing would be taken care of by setting parameter startup = true of application properties.
    Regards
    Srikumar V

  • Is there any alternative for Mac google drive?

    Hi,
    just like many people here, i had numerous problems with Google drive over those 2 last years. i was looking for a reliable solution that work with PC and MAC.
    Unfortunately Icloud is too locked up and we cannot easily drag and drop files to it just like for a google drive folder.
    do you have any suggestions to replace Google drive on Mavericks?
    I need something that will not make my mac unstable and will do its job.
    Thank you.

    I use Dropbox since a few weeks and it works very reliable. You can drag and drop files to the Dropbox folder and you can also direct open files in a program.
    By the way, iCloud also has its own directory on the Mac. It is under the user directory in
    Library/Mobile Documents/
    In this directory there is a subdirectory for every app you have with iCloud. They have some odd names, but you can recognize whcih app uses which directory. So you can drag and drop with iCloud too.

  • Is there any alternative for SDO_RELATE in Oracle Locator [not in spatial!]

    Hi,
    We are looking alternative arrangement in place of SDO_RELATE function in oracle Locator i.e. which is free and has no bindings with oracle spatial license.
    e.g. http://www.spatialdbadvisor.com/oracle_spatial_tips_tricks/55/oracle-locator-vs-enterprise-licensing-the-sdogeom-package/
    Any information will be great help on this.
    Thanks in advance!!

    Hi,
    You are allowed to use the sdo_relate operator in locator. You are not allowed to use sdo_geom.relate function in locator.
    Look [Table B-1|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_locator.htm#CFACCEEG] in the [Oracle Spatial Developers Guide 11g Release 1|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/toc.htm].
    Yavuz

  • Are there any plans for adding Safari to Apple TV?

    Im just curious if anyone knows the answer to this? Airplay is a great feature but not always the best quality for video etc.

    Apple has made no announcement of any intent to do that.

  • Is there any alternative for this code to increase performance

    hi, i want alternate code for this to increase performance.
    DATA : BEGIN OF itab OCCURS 0,
                  matnr LIKE zcst-zmatnr,
                 checked TYPE i,
                 defected TYPE i,
               end of itab.
    SELECT DISTINCT zmatnr FROM zcst INTO TABLE itab WHERE
       zmatnr IN s_matnr AND
          zwerks EQ p_plant AND
          zcastpd IN s_castpd AND
          zcatg IN s_categ.
    LOOP AT itab.
        ind = sy-tabix.
    SELECT COUNT( DISTINCT zcst~zcastn )
           FROM zcst INNER JOIN zvtrans
           ON ( zcstzcastn = zvtranszcastn AND
                zcstzmatnr = zvtranszmatnr AND
                zcstzwerks = zvtranszwerks AND
                zcstgjahr  = zvtransgjahr )
           INTO itab-checked
           WHERE
               zcst~zmatnr = itab-matnr AND
               zcst~zwerks EQ p_plant AND
               zcastpd IN s_castpd AND
               zcatg IN s_categ.
    SELECT COUNT( DISTINCT zcst~zcastn )
          FROM zcst INNER JOIN zvtrans
          ON ( zcstzcastn = zvtranszcastn AND
               zcstzmatnr = zvtranszmatnr AND
               zcstzwerks = zvtranszwerks AND
               zcstgjahr  = zvtransgjahr )
          INTO itab-defected
          WHERE
              zcst~zmatnr = itab-matnr AND
              zcst~zwerks EQ p_plant AND
              zcastpd IN s_castpd AND
              zcatg IN s_categ AND
              zvtrans~zdcode <> '   '.
      MODIFY itab INDEX ind.
      ENDLOOP.
    i think, select within loop is reducing the performance
    pls reply

    Hi,
    types : BEGIN OF t_itab ,
        matnr LIKE zcst-zmatnr,
       checked TYPE i,
       defected TYPE i,
    end of t_itab.
    data : itab type table of t_itab,
             wa_itab type t_itab.
    and instead of looping as in ur code try to use for all entries and
    use nested loop.

  • Is there Any Way for calling servlet inside from javascript ?

    i have to call servlet from javascript .
    is it possible?

    is it possible?I don't know what excactly you are trying to do, but yes it's possible.
    You need to send a request to the server.
    Keep in mind that JavaScript is executed on the client whereas the Servlet is executed on the server.

  • Is there any option for voting on a list item in SharePoint 2013?

    Dear All,
    I am looking for a feature vote a for list item from multiple users and need to show consolidated results on that.
    for SharePoint 2013 we have "like", "rating" by using these can we show the consolidated results.
    otherwise is there any alternative for this.
    Thanks & Regards,
    Jithendar

    I haven't seen any OOB vote feature in sharepoint list. It's better to go with "like" or "ratting" options.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

  • Any Prerequisite for adding MRP Area?

    Hi Gurus,
    I need to add MRP area data to a large number of materials. I tried testing for some material . For some materials I am able to add the data. For other I am not able to add.
    Is there any prerequisite for adding MRP area to a material?
    Can some suggest any BAPI to add/ update MRP area for a material?
    I am basically a ABAPer and don't have much Idea about MRP area. Please suggest any link where I can learn overview about MRP area.
    Thanks in Advance,
    KG

    hi,
    the prerequisities for MRP area are
    1> ACTIVATE MRP AREA
    2> DEFINE MRP AREAS.u will find the settings under the menu path:
    SPRO > IMG > MATERIAL MANAGEMENT > CONSUMPTION BASED PLANNING > MASTER DATA > MRP AREAS
    or u can find it under the menu path:
    SPRO > IMG > PRODUCTION > MATERIAL REQUIREMENT PLANNING > MASTER DATA > MRP AREAS.
    regards
    jash
    Edited by: diptasya jash on Apr 30, 2009 11:35 AM

Maybe you are looking for

  • My ipod touch 4th gen. Won't sync tunes.

    My ipod touch 4th gen. Won't sync tunes. It goes through all six steps, new songs don't sync.

  • Help with OC settings for P67A-GD65 with i5 2500k using v1.E BIOS

    Right, I have overclocked quite a bit before, but it was a years ago and on AMD's. Now I have a system worth pushing again and I'm not familiar with a lot of the terms in the BIOS anymore! Have been reading through the various threads on OC'ing this

  • Does my Ipod need to be formatted?

    I recently bought an Ipod Nano, and it is not registering with my Itunes. When I try to download the new version of Itunes, it always tells me there is an error with "Stopping Services," and I have no idea how to correct the problem. I am wondering i

  • HR Tables

    Hi,      What is the table for Country indicator and ISO codes? bye phanikumar

  • Tree icon does not appear

    Hi, I'm using a custom TreeItemRenderer and am having an issue with the icon. The icon won't appear and i don't konw why. When I click on an item and set a breakpoint on it's handler i get access to the icon property(changed from protected to public)