I need to call an external application (on the user's PC) from web forms 6i

We do imaging here, and all our images are scanned to a novell fileserver that has a drive letter mapped to the user's PC.
These images are used for Oracle applications and other applications, and we only store the image's location path and file type in oracle.
e.g. image_path varchar2(100), image_type varchar2(3)
would be: 'w:\archive\ap\0127\ap12345', 'tif' where 'ap12345' is the image name.
The file is stored on the novell box without an extension, which has worked fine for us with our forms applications in client server.
Moving to web forms, I'm trying to reference the images via web using forms 6i triggers and web.show_document('file:///'||image_path) for the URL.
This finds the image, however, internet explorer doesn't know what to pull it up as without the extension, and if I try to put an extension on the file, the browser isn't able to identify it since it doesn't have an extension on the fileserver, so I'm in a catch 22. I'm unable to put an extension on the original copy of the file on the fileserver due to other applications that also need to reference it.
Also, I'm unable to go directly to the file on the novell server from my 9iAS webserver.
My question is:
Would it be possible to use javascript or some other means from inside the forms 6i trigger, or a database procedure that the forms trigger kicks off inside the Jinitiator JVM to go out to the client PC's file system, grab that file and copy it to a temporary location on the 9iAS webserver -OR- the client PC with the extension, and then reference it from there?
If so, how could I do that?

The images are stored on an external novell server that I don't have any access to from my 9iAS server. I can find the novell box from the windows machines, but I have no direct means of "grabbing" that image ...
or so I thought.
I'm looking now as the Oracle FileUpload javabean utility that I can put within a form to let the user click on the view-image button, it will then kick off a procedure to grab the file from the user's mapped network drive, copy the file to the server with an extension and into the directory I want it, and let me then link to the copy of it with a web.show_document command ...
At least that's the theory. So far all I get is an ORA-105100 error and I've doublechecked and triple-checked my path and classpath settings everywhere the documentation and several notes says to check them. I've had oracle looking at it too, but so far, nada - still working on it though.

Similar Messages

  • Call an External Application from Web UI overview

    Hi Gurus,
    I am stuck with a situation here,
    Scenario is i have to create a button in overview page, such that when we click on it we need to call a external application.
    external application can be anything (URL).
    can anybody give a solution.
    thanx in advance.

    The process for launching the external URLs should be same as Web Dynpro Transactions.  But in this case while defining the URLs in the transaction launcher , you have to select the option for Non BSP URLs & defiine a MAPPED Logsys( In your case the could be any system in which the application exists). Also the URL for  Web Dynpro applicatons is sap/bc/webdynpro/sap/Web_Dynpro_Component_Name and is recognized by the target system. In your case you have to build a URL which should be recognized by your target system.
    This is how I have launched a ABAP webdynpro transaction. I guess if the URL is correct you can launch other external transactions.
    Regards
    Kavindra

  • Call a external application without using a webservice

    Hi all,
    How can we make a call to external application without using webservice from BPEL or OSB.Please share any links to refer.
    Thanks,
    Kiran

    Hi.
    Probably the options:
    1. Adapters. BPEL PM offers a different set of adapters that allows the process to communicate with external apps
    2. PRobably a basic HTTP POST could be an option
    3. Writing some code inside a Java Embedded activity
    Which application are u trying to communicate with?
    thx
    best

  • Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password is now not working after the upgrade to 10.5.

    Object is to sync address and calendar between laptop with Max OS 10.4.11 and iPhone. Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password for the laptop is now not working after the upgrade to 10.5., though it was working prior to the upgrade, for file sharing.

    @ BDAqua > I tried your suggestion but no luck. holding opt+command just gave me a blue screen and it rebotted, pushing the disk out of the drive. Yes, the macbook has 1 gb of ram. I realize that the min req. call for 2 gb of ram so i've got an order in for another dimm to put into the machine. Thanks for your suggestions.
    @ a_brody > Yes. The machine was plugged into a power source. The disk promts you to do that and i recall aspect this form other installs. Thanks for the reminder tho! ( btw your second post is like greek to me man!) 
    @ Kuncklesmac > You're right about Snow Leopard being an upgrade from Leopard. I'm aware of this. And yes previously i've been told by Apple that I needed the Box Set (not the family pack.  i am using the family pack for OS Snow Leopard) to upgrade my 10.4.11 mac - they never mentioned adding ram but i figured that out on my own and an apple specialist recommended it when i purchased Snow Leopard and confirmed that I coul duse the Snow Leopard to upgarde from Tiger (10.4.11). I've also read extensively (as i said above) that it isn't necessary (always) to buy the box set. Several 10.4.11 users report having upgraded using the Snow Leopard upgrade disk only (not the Box Set) without trouble on intel macs (also see the apple link i posted). So i'm just ondering how they did it and i cannot. 
    Thanks fo rall yor help!

  • How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    It would seem if your choose "Show my windows and tabs from last time" '''''and''''',
    *when you last closed Firefox, you had no web site open (just a blank tab), that it would open just that blank tab
    *when you last closed Firefox, you had one or more tabs/web site open, that would allow you to "Restore Previous Session"
    #Have you tried that?
    #If so, what is happening in each circumstance when you reopen Firefox?
    '''Restore Previous Session'''<br />
    Open tabs are automatically saved when closing Firefox beginning in Firefox 4. To open your last session, after Firefox starts, click History > Restore Previous Session. For this to work
    #You must be remembering history (Options > Privacy > Remember my browsing history).
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    #You must not be using Private Browsing or permanent Private Browsing
    #*See [https://support.mozilla.com/en-US/kb/Private%20Browsing Private Browsing]
    #You must not use Clear Recent History or Clear history when Firefox closes
    #*See [https://support.mozilla.com/en-US/kb/Clear%20Recent%20History Clear Recent History]
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]

  • HT2736 I gifted an application and the user has not redeemed code...lost her email can I send this to her again?

    I gifted an application and the user has not redeemed code...lost her email can I send this to her again?

    Yes, you can resend. See:
    http://support.apple.com/kb/HT1541
    Regards.

  • How to send external mails to the user

    Dears,
    How to send external mails to the user who creates the sales document (Quotation)
    Can you please suggest what modification required in the FM
    Thanks,
    pinky

    You can have a partner function like 'Created by' and use an exit to populate the User ID to this partner function(dont have the system right now but i think this can be done with standard partner detr. procedure also)
    Then, create an Output type for that Partner function with transmission medium as 'External Send'. You can use the standard SAP program to trigger the email. To send the actual email after the output is trigerred, the link connection has to be set up be BASIS but if you want to check, then goto SOST and see if the email got trigerred or not.

  • If I need to buy more iCloud storage, will the money be taken from the cc I have on file or can it come from money I have in my iTunes account?

    I need more iCloud coverage. I want the money to come from the balance I have in my iTunes account and not from the cc I have on file. Is that possible?

    I should have said exactly as in your post body as opposed to the heading! They are opposites!

  • Removing App-V Applications when the User/Machine is no longer a member of part of an AD group

    Hi All,
    We currently use SCCM 2012 R2 Applications (not Packages) to deploy App-V application to users.  We use AD Security Groups for users who are to receive the relevant App-V apps.
    However what I am getting stuck on is the removal of the application when the user is no longer a member of the security group.
    I have followed the details in the blog listed below, however I running into a major issue when testing:
    http://blogs.technet.com/b/configmgrdogs/archive/2014/11/03/managing-app-v-deployments-in-configmgr-2012.aspx
    Whilst for the main part it works, the main issue is that if another user of the same application logs into the original users' machine, the app gets pulled down again. When the original
    user logs back in, although they will have no capability to launch the application (as no icons appear to be presented to the original user), the app will be back in the cache.  No
    good if a 3rd party licensing tool is producing licensing reports are based on the app existing within the client cache.
    The point/question I am trying to get to.............. is it possible to have the uninstall application (not package) deployment re-run everytime the SCCM client polls so that re-installed applications via A N Other user are removed again based on the
    above scenario?
    Cheers
    Andy

    Andy,
    Try out the following http://sccmentor.wordpress.com/2013/11/15/creating-a-user-collection-based-on-users-not-in-a-ad-user-group/
    Select SMS_R_USER.ResourceID,SMS_R_USER.ResourceType,SMS_R_USER.Name,SMS_R_USER.UniqueUserName,SMS_R_USER.WindowsNTDomain  from SMS_R_User where SMS_R_User.ResourceID not in (select SMS_R_USER.ResourceID from SMS_R_User where SMS_R_User.UserGroupName
    like “<Domain>\\<AD Group>”)
    This just checks AD membership and unpublishes if not a member of the AD group. It's not the nicest of methods as will run for every user if not a member of the group - but may get round your issue.
    Cheers
    Paul | sccmentor.wordpress.com

  • How to call an external application from the current one

    Hi Guys,
    Im not sure if/how this is possible.
    For example:
    I have two projects : Project1 and Project 2.
    When I click on a button in Project2, Project1 needs to be launced. That is, the Main class of Project1 needs to be triggered.
    How do I do this? I have tried everything.
    Kind Regards,
    Christiaan

    There is no problem with handling multiple Frame with a javaFX app. Some features are needed to improve that, like AlwaysOnTop, modal, ...
    For exemple it can be used like a splashscreen.
    If your question was about launching anything on your machine, the regular java API can do that.

  • Accessing Cluster Data From an External Application Using the DataSocket

    I am trying to interface to a legacy system running a rather large and complex LabView application (which I really don't want to modify).  The data I need to access has been posted on the DataSocket server as a cluster.  Is there any way of accessing that data as a structure from an external application?  I do have Measurement Studio and its CNiDataSocket classes and I am able to connect to the data, but I can't see how I can pull the data over and extract the values that I require.
    Any ideas?

    This is a duplicate post.  Check this post
    Pat P.
    Software Engineer
    National Instruments

  • Calling a method(application) after the login screen

    Sorry for reposting this, but if you've read my other posts, I've managed to solve the stack overflow error. Now here's the problem, I get a successful login but the second application will not appear, I just get the login screen reappearing again. Here's the code:
    import java.awt.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class EmailForms extends JFrame implements ActionListener {
         private JTextField jtfUserName;
         private JPasswordField jpfPassword;
         private JButton jbtLogin;
         private JButton jbtCancel;
         public JMenuItem jmiLogout, jmiAB, jmiBC, jmiMB, jmiSK, jmiNT, jmiNSR, jmiAbout, jmiCapacity;
         private HashMap users;
         public static void main (String[] args) {               
              EmailForms LoginFrame = new EmailForms();
              LoginFrame.setSize(200, 100);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              int screenWidth = screenSize.width;
              int screenHeight = screenSize.height;
              Dimension frameSize = LoginFrame.getSize();
              int x = (screenWidth - frameSize.width)/2;
              int y = (screenHeight - frameSize.height)/2;
              LoginFrame.setLocation(x, y);
              LoginFrame.pack();
              LoginFrame.setVisible(true);     
         public EmailForms () {     
              users = new HashMap();
              try {     
                   String UP1Line;
                   FileInputStream fis = new FileInputStream("UP1.txt");
                  BufferedReader br = new BufferedReader(new InputStreamReader(fis));
                  while ((UP1Line = br.readLine()) != null) {
                       String [] items = UP1Line.split(" ", 4);
                       users.put(items[0], new String[] { items[1], items[2] });
                    br.close();
                    fis.close();
              catch (IOException ex){
                   JOptionPane.showMessageDialog(this, "Fatal Systems Error", "Email Forms: File Error 1",
                   JOptionPane.INFORMATION_MESSAGE);
                   System.exit(0);     
              catch (NullPointerException ex){
                   JOptionPane.showMessageDialog(this, "Fatal Systems Error", "Email Forms: File Error 2",
                   JOptionPane.INFORMATION_MESSAGE);
                   System.exit(0);     
              setTitle("E-Forms: Login");
              JPanel jpLoginLabels = new JPanel();
              jpLoginLabels.setLayout(new GridLayout(2, 1));
              jpLoginLabels.add(new JLabel("Username:"));
              jpLoginLabels.add(new JLabel("Password:"));
              JPanel jpLoginText = new JPanel();
              jpLoginText.setLayout(new GridLayout(2, 1));
              jpLoginText.add(jtfUserName = new JTextField(10));
              jpLoginText.add(jpfPassword = new JPasswordField(10));
              JPanel p1 = new JPanel();
              p1.setLayout(new BorderLayout());     
              p1.add(jpLoginLabels, BorderLayout.WEST);
              p1.add(jpLoginText, BorderLayout.CENTER);
              JPanel p2 = new JPanel();
              p2.setLayout(new FlowLayout(FlowLayout.CENTER));     
              p2.add(jbtLogin = new JButton("Login"));
              p2.add(jbtCancel = new JButton("Cancel"));     
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(p1, BorderLayout.CENTER);
              getContentPane().add(p2, BorderLayout.SOUTH);
              jbtLogin.addActionListener(this);
              jbtCancel.addActionListener(this);
         public void actionPerformed(ActionEvent e) {
              try {
                   UserEForms myUser = new UserEForms();
                   AdminEForms myAdmin = new AdminEForms();
                   String arg = e.getActionCommand();
                   if (arg.equals("Cancel")) {
                        System.exit(0);
                        arg = "";
                   if (arg.equals("Login")) {
                        int index = find(jtfUserName.getText().trim(), new String(jpfPassword.getPassword()));
                        if (index == -1) {
                             JOptionPane.showMessageDialog(this, "Username/Password Not Found", "Email Forms: Login Error",
                             JOptionPane.INFORMATION_MESSAGE);
                        else {
                             if (index == 1 ){
                                  myAdmin.AdminSide();
                             else {
                                  myUser.UserSide();          
                   arg = "";
              catch (StackOverflowError ex){
                   JOptionPane.showMessageDialog(this, "Fatal Systems Error", "Email Forms: File Error 1",
                   JOptionPane.INFORMATION_MESSAGE);
                   System.exit(0);     
         public int find(String UName, String PWord) {
              String[] creds = (String[])users.get((Object)UName);
              if (creds != null && creds[0].matches(PWord)) {
                   if (creds[1].matches("[Yy]"))
                        return 1;
                   else
                        return 0;
              return -1;
    } import java.awt.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class AdminEForms extends EmailForms {
         public AdminEForms() {     
         public void AdminSide() {
              System.out.println("1");
              AdminEForms AdminFrame = new AdminEForms();
              AdminFrame.setSize(500, 600);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              int screenWidth = screenSize.width;
              int screenHeight = screenSize.height;
              Dimension frameSize = AdminFrame.getSize();
              int x = (screenWidth - frameSize.width)/2;
              int y = (screenHeight - frameSize.height)/2;
              AdminFrame.setLocation(x, y);
              AdminFrame.pack();
              AdminFrame.setVisible(true);     
              setTitle("Admin Email Forms");
              JMenuBar jmb = new JMenuBar();
               setJMenuBar(jmb);
              JMenu jmFile = new JMenu("File");
              jmb.add(jmFile);
              JMenu jmAdmin = new JMenu("Administration");
              jmb.add(jmAdmin);
              JMenu jmEForms = new JMenu("Email Forms");
              jmb.add(jmEForms);
              JMenu jmHelp = new JMenu("Help");
              jmb.add(jmHelp);
              jmFile.add(jmiLogout = new JMenuItem("Logout"));
              jmAdmin.add(jmiCapacity = new JMenuItem("Capacity Issues"));
              jmEForms.add(jmiAB = new JMenuItem("Alberta"));
              jmEForms.add(jmiBC = new JMenuItem("British Columbia"));
              jmEForms.add(jmiMB = new JMenuItem("Manitoba"));
              jmEForms.add(jmiSK = new JMenuItem("Saskatchwen"));
              jmEForms.add(jmiNT = new JMenuItem("NWT"));
              jmEForms.add(jmiNSR = new JMenuItem("NSR CLLI"));
              jmHelp.add(jmiAbout = new JMenuItem("About"));
              jmiLogout.addActionListener(this);
              jmiCapacity.addActionListener(this);
              jmiAB.addActionListener(this);
              jmiBC.addActionListener(this);
              jmiMB.addActionListener(this);
              jmiSK.addActionListener(this);
              jmiNT.addActionListener(this);
              jmiNSR.addActionListener(this);
              jmiAbout.addActionListener(this);
    } import java.awt.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class UserEForms extends EmailForms {
         public UserEForms() {     
         public void UserSide() {
              System.out.println("2");
              UserEForms UserFrame = new UserEForms();
              UserFrame.setSize(500, 600);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              int screenWidth = screenSize.width;
              int screenHeight = screenSize.height;
              Dimension frameSize = UserFrame.getSize();
              int x = (screenWidth - frameSize.width)/2;
              int y = (screenHeight - frameSize.height)/2;
              UserFrame.setLocation(x, y);
              UserFrame.pack();
              UserFrame.setVisible(true);     
              setTitle("User Email Forms");
              JMenuBar jmb = new JMenuBar();
              setJMenuBar(jmb);
              JMenu jmFile = new JMenu("File");
              jmb.add(jmFile);
              JMenu jmEForms = new JMenu("Email Forms");
              jmb.add(jmEForms);
              JMenu jmHelp = new JMenu("Help");
              jmb.add(jmHelp);
              jmFile.add(jmiLogout = new JMenuItem("Logout"));
              jmEForms.add(jmiAB = new JMenuItem("Alberta"));
              jmEForms.add(jmiBC = new JMenuItem("British Columbia"));
              jmEForms.add(jmiMB = new JMenuItem("Manitoba"));
              jmEForms.add(jmiSK = new JMenuItem("Saskatchwen"));
              jmEForms.add(jmiNT = new JMenuItem("NWT"));
              jmEForms.add(jmiNSR = new JMenuItem("NSR CLLI"));
              jmHelp.add(jmiAbout = new JMenuItem("About"));
              jmiLogout.addActionListener(this);
              jmiAB.addActionListener(this);
              jmiBC.addActionListener(this);
              jmiMB.addActionListener(this);
              jmiSK.addActionListener(this);
              jmiNT.addActionListener(this);
              jmiNSR.addActionListener(this);
              jmiAbout.addActionListener(this);
    } I've put System.out.println("1"); and System.out.println("2"); in the code and I can see that it is actually going into the Adminside and Userside methods, but there not appearing. My text file looks like this:
    9876543 9876543 Y
    0612207 0612207 N
    0123456 0123456 N
    1234567 1234567 Y
    Please can someone help me???
    Colin

    Ok, I've got the stackoverflow thing figured out. My program runs, but when it goes into either the admin or the user methods the buttons from the login methods are still visible. I've done some reading in the forums about dispose() and setVisible(false) and I've tried using them without success. Here's the code:
    import java.awt.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class EmailForms extends JFrame implements ActionListener {
         private JTextField jtfUserName;
         private JPasswordField jpfPassword;
         private JButton jbtLogin;
         private JButton jbtCancel;
         private HashMap users;
         public static void main (String[] args) {               
              EmailForms LoginFrame = new EmailForms();
              LoginFrame.setSize(200, 100);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              int screenWidth = screenSize.width;
              int screenHeight = screenSize.height;
              Dimension frameSize = LoginFrame.getSize();
              int x = (screenWidth - frameSize.width)/2;
              int y = (screenHeight - frameSize.height)/2;
              LoginFrame.setLocation(x, y);
              LoginFrame.pack();
              LoginFrame.setVisible(true);     
         public EmailForms () {     
              users = new HashMap();
              try {     
                   String UP1Line;
                   FileInputStream fis = new FileInputStream("UP1.txt");
                  BufferedReader br = new BufferedReader(new InputStreamReader(fis));
                  while ((UP1Line = br.readLine()) != null) {
                       String [] items = UP1Line.split(" ", 4);
                       users.put(items[0], new String[] { items[1], items[2] });
                    br.close();
                    fis.close();
              catch (IOException ex){
                   JOptionPane.showMessageDialog(this, "Fatal Systems Error", "Email Forms: File Error 1",
                   JOptionPane.INFORMATION_MESSAGE);
                   System.exit(0);     
              catch (NullPointerException ex){
                   JOptionPane.showMessageDialog(this, "Fatal Systems Error", "Email Forms: File Error 2",
                   JOptionPane.INFORMATION_MESSAGE);
                   System.exit(0);     
              setTitle("E-Forms: Login");
              JPanel jpLoginLabels = new JPanel();
              jpLoginLabels.setLayout(new GridLayout(2, 1));
              jpLoginLabels.add(new JLabel("Username:"));
              jpLoginLabels.add(new JLabel("Password:"));
              JPanel jpLoginText = new JPanel();
              jpLoginText.setLayout(new GridLayout(2, 1));
              jpLoginText.add(jtfUserName = new JTextField(10));
              jpLoginText.add(jpfPassword = new JPasswordField(10));
              JPanel p1 = new JPanel();
              p1.setLayout(new BorderLayout());     
              p1.add(jpLoginLabels, BorderLayout.WEST);
              p1.add(jpLoginText, BorderLayout.CENTER);
              JPanel p2 = new JPanel();
              p2.setLayout(new FlowLayout(FlowLayout.CENTER));     
              p2.add(jbtLogin = new JButton("Login"));
              p2.add(jbtCancel = new JButton("Cancel"));     
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(p1, BorderLayout.CENTER);
              getContentPane().add(p2, BorderLayout.SOUTH);
              jbtLogin.addActionListener(this);
              jbtCancel.addActionListener(this);
         public void actionPerformed(ActionEvent e) {
              try {
                   UserEForms myUser = new UserEForms();
                   AdminEForms myAdmin = new AdminEForms();
                   String arg = e.getActionCommand();
                   if (arg.equals("Cancel")) {
                        System.exit(0);
                        arg = "";
                   if (arg.equals("Login")) {
                        int index = find(jtfUserName.getText().trim(), new String(jpfPassword.getPassword()));
                        if (index == -1) {
                             JOptionPane.showMessageDialog(this, "Username/Password Not Found", "Email Forms: Login Error",
                             JOptionPane.INFORMATION_MESSAGE);
                        else {
                             if (index == 1 ){
                                  myAdmin.AdminSide();
                             else {
                                  myUser.UserSide();          
                   arg = "";
              catch (StackOverflowError ex){
                   JOptionPane.showMessageDialog(this, "Fatal Systems Error", "Email Forms: File Error 1",
                   JOptionPane.INFORMATION_MESSAGE);
                   System.exit(0);     
              catch (NullPointerException ex){
                   JOptionPane.showMessageDialog(this, "Fatal Systems Error", "Email Forms: File Error 2",
                   JOptionPane.INFORMATION_MESSAGE);
                   System.exit(0);     
         public int find(String UName, String PWord) {
              String[] creds = (String[])users.get((Object)UName);
              if (creds != null && creds[0].matches(PWord)) {
                   if (creds[1].matches("[Yy]"))
                        return 1;
                   else
                        return 0;
              return -1;
    import java.awt.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class AdminEForms extends EmailForms implements ActionListener {
         public JMenuItem jmiLogout, jmiAB, jmiBC, jmiMB, jmiSK, jmiNT, jmiNSR, jmiAbout, jmiCapacity;
         public AdminEForms() {          
              setTitle("Admin Email Forms");
              JMenuBar jmb = new JMenuBar();
               setJMenuBar(jmb);
              JMenu jmFile = new JMenu("File");
              jmb.add(jmFile);
              JMenu jmAdmin = new JMenu("Administration");
              jmb.add(jmAdmin);
              JMenu jmEForms = new JMenu("Email Forms");
              jmb.add(jmEForms);
              JMenu jmHelp = new JMenu("Help");
              jmb.add(jmHelp);
              jmFile.add(jmiLogout = new JMenuItem("Logout"));
              jmAdmin.add(jmiCapacity = new JMenuItem("Capacity Issues"));
              jmEForms.add(jmiAB = new JMenuItem("Alberta"));
              jmEForms.add(jmiBC = new JMenuItem("British Columbia"));
              jmEForms.add(jmiMB = new JMenuItem("Manitoba"));
              jmEForms.add(jmiSK = new JMenuItem("Saskatchwen"));
              jmEForms.add(jmiNT = new JMenuItem("NWT"));
              jmEForms.add(jmiNSR = new JMenuItem("NSR CLLI"));
              jmHelp.add(jmiAbout = new JMenuItem("About"));
              jmiLogout.addActionListener(this);
              jmiCapacity.addActionListener(this);
              jmiAB.addActionListener(this);
              jmiBC.addActionListener(this);
              jmiMB.addActionListener(this);
              jmiSK.addActionListener(this);
              jmiNT.addActionListener(this);
              jmiNSR.addActionListener(this);
              jmiAbout.addActionListener(this);     
         public void AdminSide() {
              AdminEForms AdminFrame = new AdminEForms();
              AdminFrame.setSize(1000, 800);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              int screenWidth = screenSize.width;
              int screenHeight = screenSize.height;
              Dimension frameSize = AdminFrame.getSize();
              int x = (screenWidth - frameSize.width)/2;
              int y = (screenHeight - frameSize.height)/2;
              AdminFrame.setLocation(x, y);
              AdminFrame.setVisible(true);     
    import java.awt.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class UserEForms extends EmailForms implements ActionListener {
         public JMenuItem jmiLogout, jmiAB, jmiBC, jmiMB, jmiSK, jmiNT, jmiNSR, jmiAbout;
         public UserEForms() {     
              setTitle("User Email Forms");
              JMenuBar jmb = new JMenuBar();
              setJMenuBar(jmb);
              JMenu jmFile = new JMenu("File");
              jmb.add(jmFile);
              JMenu jmEForms = new JMenu("Email Forms");
              jmb.add(jmEForms);
              JMenu jmHelp = new JMenu("Help");
              jmb.add(jmHelp);
              jmFile.add(jmiLogout = new JMenuItem("Logout"));
              jmEForms.add(jmiAB = new JMenuItem("Alberta"));
              jmEForms.add(jmiBC = new JMenuItem("British Columbia"));
              jmEForms.add(jmiMB = new JMenuItem("Manitoba"));
              jmEForms.add(jmiSK = new JMenuItem("Saskatchwen"));
              jmEForms.add(jmiNT = new JMenuItem("NWT"));
              jmEForms.add(jmiNSR = new JMenuItem("NSR CLLI"));
              jmHelp.add(jmiAbout = new JMenuItem("About"));
              jmiLogout.addActionListener(this);
              jmiAB.addActionListener(this);
              jmiBC.addActionListener(this);
              jmiMB.addActionListener(this);
              jmiSK.addActionListener(this);
              jmiNT.addActionListener(this);
              jmiNSR.addActionListener(this);
              jmiAbout.addActionListener(this);
         public void UserSide() {
              UserEForms UserFrame = new UserEForms();
              UserFrame.setSize(1000, 800);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              int screenWidth = screenSize.width;
              int screenHeight = screenSize.height;
              Dimension frameSize = UserFrame.getSize();
              int x = (screenWidth - frameSize.width)/2;
              int y = (screenHeight - frameSize.height)/2;
              UserFrame.setLocation(x, y);
              UserFrame.setVisible(true);     
    }I'm thinking on using setVisible(false), but then again seeing that the login method isn't being used once you have a successful login, the dispose() method would be better. If you copy and paste my program, you'll clearly see my problem. Thanks.
    Text file:
    9876543 9876543 Y
    0612207 0612207 N
    0123456 0123456 N
    1234567 1234567 Y
    Colin

  • Need to display last login details to the user after they login into portal

    Hi All,
    As per our requirement ,we need to display to the user,the following things:
    1.Last login date and time will be maintained and displayed to the user after login.
    2.Last unsuccessful login date and time will be maintained and displayed to the user after login.
    3.No. of unsuccessful retrials before locking the user will be maintained and displayed to the user after   login.
    Therefore we are creating a webdynpro application wherein we are making use of the UME API and trying to retireve these information.
    The methods i am using are:
    IUserAccount.getLastFailedLogonDate() // To fetch the Last unsuccessful login date and time
    IUserAccount.getFailedLogonAttempts() // No. of unsuccessful retrials
    IUserAccount.getLastSuccessfulLogonDate() // Last login date and time
    But the problem is IUserAccount.getLastSuccessfulLogonDate() is deprecated and i unable to use it,and also i  am unable to get the value *IUserAccount.getFailedLogonAttempts() * I am only geting zero.Can anybody let me know alternative method to get this details.
    Request you to guide me and help me to resolve this issue.
    Thanks and Regards,
    Nishita Salver

    Hi,
    I hope you are trying to show your login date from SharePoint List.
    My suggestion is 
    1. by using ECMA Script ,retrieve values from that list and show the same in Master Page.
    2. If you are not comfortable with ECMA, develop Visual Webpart and add the Visual Webpart in master page by using SharePoint Designer.
    Please let me know ,if you need further guidance.
    Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
    Mahesh

  • Updating my application with the users

    Im in the process of making a java application.
    Im making a complete application but i need to update it on a regularly basis on the users machines. Its a financial application and there are a lot of changes every year to the application, so theres no way i can avoid making changes to it.
    So how do i update the application?
    Can i just download a new jar file for each new version and use it instead of the old?

    jacob_hansen wrote:
    Anyway if i just need to make a button in my application which can download a new jar file to replace the current - how do i do that?Use the DownloadService. Actually, that is not strictly necessary, since JWS updates are automatic.
    Or to put that another way. Use webstart.
    Edit 1:
    From earlier..
    ..Its very simple to you and me, but many of my users can manage clicking something on their desktop and thats about it.Obviously your understanding of webstart is very 'minimal'.
    Let us compare the two experiences..
    ||Step||InstallShield installer||JWS|
    |Find the application & download(1)|Click a link to a .exe|Click a link to a .jnlp|
    |Choose what do do with it|Choose 'Save As' or 'Run'|-|
    |If 'Save As'|Double click the downloaded EXE (to run it)|-|
    |Allow the security prompt|-|Applies only to extended permissions apps.|
    |Choose whether to allow desktop shortcut/menu items|-|Applies only to sand-boxed JWS apps.|
    |Run the app.|Double click the desktop shortcut or click the menu item|Same|
    |Update the app.|Click your hypothetical 'Update Button'|- (happens automatically)|
    1) The InstallShield installer might offer, what? Windows and Linux/Unix variants? The user has to pick the correct one. Webstart works for Mac, Unix/Linux and Windows. No 'choice' necessary on the user's part.
    So, ultimately starting a downloaded webstart app. is just as easy as starting your InstallShield app., but the IS app. user has to click the 'Update' button, which is not necessary for webstart, unless you wish to take active control of the download, and attach it to your 'update' button.
    I'm just curious as to what your next (pathetic) excuse for not trying webstart will be.
    Edited by: AndrewThompson64 on Jan 8, 2010 6:19 PM

  • WF-Batch id needs to be changed on runtime with the user email id.

    Hi All,
    I have a requirement where i have to send an email through workflow, but in the from i have to pass the employee responsible email id. I got the email id in a container. Now how can i replace WF-Batch ( i.e. by default) with the user email id in the from to send email to approver.
    Anykind of help will be appreciated in this context.
    I try to search on SDN, but didn't get enough information.
    Regards,
    Raman Khurana.

    Hi Pavan,
    I didn't get your point of "BCS communication services", where to do that ? and is it dynamic ?
    Kindly explain it a bit.
    Approach that i am following is "i created a ZFM to send email with parameters (from, to, message, subject), this FM reference can be check on the below mention link. I created a method in BO to call that FM and then call that BO's method in activity step. I think this is the only approach that can be followed. I may be wrong. If anyone knows any other approach then please reply, or i will mark this thread as answered.
    http://wiki.sdn.sap.com/wiki/display/EmTech/PublishWeberviceinABAP,ConsumeWebserviceinABAPandAdobeFlex.
    Regards,
    Raman.

Maybe you are looking for

  • Request of all participants

    Friends, There have been many very productive exchanges on this forum, and we (moderators) are very happy with the dialog. We hope that the subscribers are also satisfied. I do have one request though. The intent of this forum is to provide "complete

  • Iphoto can't read RAW files from Olympus E-PL1

    I just got an Olympus E-PL1. Iphoto doesn't recognize the RAW file with the extenstion .ORF The E-PL1 has the same sensor as the P1 and P2. I would assume that both those generate the same RAW data.

  • Regarding invoice verification.

    HI In Invoice verification what is parking of the bill and posting of the bill.what is credit memo,subsequent credit and subsequent debit.how do BSX,WRX keys hit when the above tasks are performed.

  • Is BW integrated to  XI Landscape?

    Hi everybody how can I know if my BW system is integrated to a XI System? Thanks FedeX

  • RDP-XF300IPN Don't work after one day bought

    I bought the docking station and it worked just one day. The other day, when you connect it gives error message.