Intranet:application or applet???

Hey All
I have an application...is it possible to make that application available to everyone in the intranet??? or do i have to convert into applet so that it is run thru an html file????

my application is a simple one...allows the user to choose an option and then opens a text file with the user selected option in it, where user is allowed enter data and the text file is sent to concerned person thru email...
now to run this application thru home page of our company intranet should this b converted into applet?? i tried to run this application from an applet..but the opening text file and sending email part of the application didn't work....
or should i go with java web start????
thanx
bharthi

Similar Messages

  • Application or Applet?

    Hello, I'm in the works of developing a MMORPG in java.
    My quest is would it be better to write it as an Application or Applet?
    I know writing it as an application I will be able to save, and do other things without the troubles of the *security stuff in java. While if I make it an applet I may have troubles with security...
    Though then again I will be using a java server/sql. So I wont have to worry about that to much, however, if I have the game available for offline and online then there may be problems.
    Anyways was wondering what everyones opinions are on this matter?
    Thanks
    -Shaun Strickland

    Hmm, should have worded that diffrently. After posting I realized they have diffrent categories =)...

  • Managing Connections in a desktop Application or Applet

    Wondering how people usually manage connections in a fairly large GUI application (or Applet).
    I'm used to using a Connection Pool with Servlets.
    Is this worth using with an Application or is it ok to create a Connection at startup and use it throughout the whole execution?
    Is it ok then to pass references to this Connection to other classes in the application?
    Any tips, experiences, guidelines would be appreciated.
    Thanks.
    Derek

    Hi
    I'm assuming that you are using a J2EE Application Server that implements datasource pooling if you have the ability to use Pooled Connection with your servlet (if not, then you must have created your own connection pool?).
    Basically, if you have an Applet, then there is no reason to change your current way of working...simply let a servlet in your container handle the database stuff, then return the results to the Applet.
    For desktop standalone applications, things are a bit different. You will probably have to implement your own pool. Best practices...hmm...not an expert but I would have thought it best to open the connection, do the SQL stuff, then close it straight away, and in doing so release the connection back to the pool for another application to use (assuming you have a pool). If you are thinking about opening a connection for every application and holding these indefinitely, then you will eventually run into trouble. How many connections can your database handle???
    Hope that helps

  • Can we run Internet and intranet application on same node?

    Hi,
    Could we run Internet and Intranet applications on same node?
    Regards,

    Hi,
    You can run both sites on the same server. You should just set the site security on the intranet site to only allow access from internal IP addresses. But for security reason, it's not adviceable to do that.
    Regards,
    Hamdy

  • JSP Intranet application

    Hi all,
    i am a total newbie to java, just learning JSP & java. actually i am in to creating a brower based intranet application using JSP & PostgreSQL. how good is JSP for developing such an application? again about the user interface design part, i just know HTML only. so how we can create give cool interfaces like datagrid (in visual basic) etc.
    and i hav heard that JSTL can serve the same purpose of JSP. so can anyone give me some info on JSTL and how to work with it.
    thanks a lot for ur time
    aleena maria

    For an intranet JSP is good, its more powerful than ASP (vb6) or PHP and holds its own against .NET
    On the WEB php is better as its much easier and cheaper to get hosting, also, there is a lot more open source stuff around which is good.
    I would stick to HTML for your output, I dont know what datagrid is, if its an MS plug in it will only be available to IE users, which may be ok on an intranet
    In jsp you can create tag libraries, where you assign a simple tag to a funtion within your code, this way HTML developers can use the tags, without being exposed to the java code itself, JSTL is / are the standard tags.
    I dont see much benefit in using tags unless you are part of a team that includes programmers and WEB designers all working on the project, I prefer to write classes, which are equally re-usable (javaBeans)

  • A question about Using RSL for our Intranet Application

    Hi ,
    I am doing an Intranet Application (Which will be used only with in the Employees of theĀ  Organization)
    We want to RSL as read that it will improve the performance of the swf files .
    Please let us know what type of RSL (like Standard RSLs , Cross-domain RSLs or Framework RSL)
    Suppourt us ??
    Can anybody let me know how can i provide RSL facility for my Application .
    Thanks in advnace .

    Thanks for the information .
    As you mentioned:
    RSLs are only useful if more than one SWF is going to share it.
    Our Intranet Application is divided into several Modules , but under only one APPlication MMXL file . So will this be useful for us in any way ??
    Thanks .
    Waiitng for your resposne .

  • Start application from applet

    Hi there!
    I have to start an application from applet (is not my idea, i HAVE to do it). That menas (i think) i have a little problem with the java "sand box". How can i make my program run out of it? Signed Applets? Are there also other possibiliys? Can i make as "privat person" signed Applets?
    Thank's

    This is SAX-parser for XML processing. The XML-files are local saved, also the applet and the application. The Parser application seems to start, but (sic!) there is no output, even though the application is OK...

  • Building applications with applets

    Hi,
    I want to modify my applet so it can be used to build an application. From within the applet, I need a way to tell if I'm running as an applet in a browser or as an application ( I need to do this, so I dont go making URLConnections, etc when I'm running as an application ).
    I'm also limited to JDK 1.1.x.
    thanks in advance,
    rob

    If an applet is being run as an application, the main method will have to be called. This method will never be called when run as an applet.
    Generally, when wrapping an applet in a application, the window creation functions are also handled in main. It would be relatively easy to set a flag when instantiating the applet (say as an instance variable on the applet itself) to let it know if it was running as an applet or as an application
    Jason

  • Run application or applet on any windows machine

    OK, here is my question. If I write a application using swing, and then build the application into jars, can I take that app and run it on any computer, or does any computer I run it on need the jdk installed on it. The reason I am asking this, is a am writing some simple software using swing as a GUI. I want other user's to be able just to copy this app from a disk, set it on their computer and run it. Will this work, are will it work if I use applets. Please let me know.

    what do you mean by make a webservice app or use webstart/jnlp

  • Works in application, not applet, why

    connection = new Socket(
    InetAddress.getByName("mailbox.oneonta.edu"), 25);
    this line works in my application but i get a java.security.AccessControlException when i try to use the code in an applet. can anyone help?

    I think there is more then enough great documentation on this very site to help you out. Explaining things like how to sign an applet, or a jar, that are docuemented so your little sister can do it is a waste of time. I'm not being rude at all, I'm trying to get you to use the resources of this site. The java tutorials is a great place to start.

  • How to add images into a java application (not applet)

    Hello,
    I am new in java programming. I would like to know how to add images into a java application (not an applet). If i could get an standard example about how to add a image to a java application, I would apreciated it. Any help will be greatly apreciated.
    Thank you,
    Oscar

    Your' better off looking in the java 2d forum.
    package images;
    import java.awt.*;
    import java.awt.image.*;
    import java.io.FileInputStream;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    /** * LogoImage is a class that is used to load images into the program */
    public class LogoImage extends JPanel {
         private BufferedImage image;
         private int factor = 1; /** Creates a new instance of ImagePanel */
         public LogoImage() {
              this(new Dimension(600, 50));
         public LogoImage(Dimension sz) {
              //setBackground(Color.green);      
              setPreferredSize(sz);
         public void setImage(BufferedImage im) {
              image = im;
              if (im != null) {
                   setPreferredSize(
                        new Dimension(image.getWidth(), image.getHeight()));
              } else {
                   setPreferredSize(new Dimension(200, 200));
         public void setImageSizeFactor(int factor) {
              this.factor = factor;
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              //paint background 
              Graphics2D g2D = (Graphics2D) g;
              //Draw image at its natural size first. 
              if (image != null) {
                   g2D.drawImage(image, null, 0, 0);
         public static LogoImage createImage(String filename) { /* Stream the logo gif file into an image object */
              LogoImage logoImage = new LogoImage();
              BufferedImage image;
              try {
                   FileInputStream fileInput =
                        new FileInputStream("images/" + filename);
                   image = ImageIO.read(fileInput);
                   logoImage =
                        new LogoImage(
                             new Dimension(image.getWidth(), image.getHeight()));
                   fileInput.close();
                   logoImage.setImage(image);
              } catch (Exception e) {
                   System.err.println(e);
              return logoImage;
         public static void main(String[] args) {
              JFrame jf = new JFrame("testImage");
              Container cp = jf.getContentPane();
              cp.add(LogoImage.createImage("logo.gif"), BorderLayout.CENTER);
              jf.setVisible(true);
              jf.pack();
    }Now you can use this class anywhere in your pgram to add a JPanel

  • Converting application to applet.... please Help

    This program shown works fine in appletveiwer however will not work with I.E. nor Netscape. I do have the java plugins for both and using a netscape version over 6.0. I made the program usint jdk1.3. Can anyone please help me out?
    java code
    // TabbedPaneFlags.java: Use tabbed pane to select figures
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TabbedPaneFlags extends javax.swing.JApplet
    // Create a tabbed pane to hold figure panels
    private JTabbedPane jtpFigures = new JTabbedPane();
    // Load Images
    private JLabel lblUSA = new JLabel(new ImageIcon("USA.gif"));
    private JLabel lblUK = new JLabel(new ImageIcon("uk.gif"));
    private JLabel lblGER = new JLabel(new ImageIcon("germany.gif"));
    private JLabel lblCAN = new JLabel(new ImageIcon("canada.gif"));
    private JLabel lblCHI = new JLabel(new ImageIcon("china.gif"));
    private JLabel lblIND = new JLabel(new ImageIcon("india.gif"));
    // Main method
    //public static void main(String[] args)
    // TabbedPaneFlags frame = new TabbedPaneFlags();
    // frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    // frame.setSize(450, 350);
    // frame.setVisible(true);
    // Constructor
    // public TabbedPaneFlags()
    public void init()
    // setTitle("Tabbed Pane Demo");
    jtpFigures.add(lblUSA,"USA");
    jtpFigures.add(lblUK,"UK");
    jtpFigures.add(lblGER,"Germany");
    jtpFigures.add(lblCAN,"Canada");
    jtpFigures.add(lblCHI,"China");
    jtpFigures.add(lblIND,"India");
    // Place tabbed pane
    this.getContentPane().add(jtpFigures, BorderLayout.CENTER);
    html code
    <html>
    <head>
    <title>AppletMenuDemo</title>
    </head>
    <body>
    <applet
    code = "TabbedPaneFlags.class"
    width = 450
    height = 350
    alt="You must have a JDK 1.2-enabled browser to view the applet">
    </applet>
    </body>
    </html>

    You should try the html converter so that the browsers are forced to invoke their plugin... or prompt the user to download one.
    To turn an applet into an application is easy. You act like the browser. You make a frame, construct the applet, and put the applet in the frame, (They are components) ... Then just call the init() method. Then add a window listener to call the stop() method when the frame gets closed.
    Application to an applet is a bit harder. You need to figure out what needs to be in the init method. Depending on what the application does you can also run into security issues.

  • Help on moving of image across screen(java application,not applet)

    I've searched the entire internet and everything I've found is on java applets and I'm an alien to the differences between an applet and an application.
    This is actually for a java game I'm creating using Eclipse's visual editor and I'm failing miserably.
    What I'm trying to do is to find some java source code that enables me to start an image automatically moving across the screen that only stops when I click on it. I did find some applet codes but when I tried converting it to application code a load of errors popped out.
    Thanks for the help if there's any! I'm getting desperate here because the game's due this friday and I'm stuck at this stage for who knows how long.

    Here is one of the codes I found ,it's not mine but I'm trying to edit it into a java application instead of an applet...Sort of like: ' public class MovingLabels extends JFrame ' or some code that I can copy and paste into another java program.
    * Swing version.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MovingLabels extends JApplet
    implements ActionListener {
    int frameNumber = -1;
    Timer timer;
    boolean frozen = false;
    JLayeredPane layeredPane;
    JLabel bgLabel, fgLabel;
    int fgHeight, fgWidth;
    int bgHeight, bgWidth;
    static String fgFile = "wow.gif";
    static String bgFile = "Spring.jpg";
    //Invoked only when run as an applet.
    public void init() {
    Image bgImage = getImage(getCodeBase(), bgFile);
    Image fgImage = getImage(getCodeBase(), fgFile);
    buildUI(getContentPane(), bgImage, fgImage);
    void buildUI(Container container, Image bgImage, Image fgImage) {
    final ImageIcon bgIcon = new ImageIcon(bgImage);
    final ImageIcon fgIcon = new ImageIcon(fgImage);
    bgWidth = bgIcon.getIconWidth();
    bgHeight = bgIcon.getIconHeight();
    fgWidth = fgIcon.getIconWidth();
    fgHeight = fgIcon.getIconHeight();
    //Set up a timer that calls this object's action handler
    timer = new Timer(100, this); //delay = 100 ms
    timer.setInitialDelay(0);
    timer.setCoalesce(true);
    //Create a label to display the background image.
    bgLabel = new JLabel(bgIcon);
    bgLabel.setOpaque(true);
    bgLabel.setBounds(0, 0, bgWidth, bgHeight);
    //Create a label to display the foreground image.
    fgLabel = new JLabel(fgIcon);
    fgLabel.setBounds(-fgWidth, -fgHeight, fgWidth, fgHeight);
    //Create the layered pane to hold the labels.
    layeredPane = new JLayeredPane();
    layeredPane.setPreferredSize(
    new Dimension(bgWidth, bgHeight));
    layeredPane.addMouseListener(new MouseAdapter() {
    public void mousePressed(MouseEvent e) {
    if (frozen) {
    frozen = false;
    startAnimation();
    } else {
    frozen = true;
    stopAnimation();
    layeredPane.add(bgLabel, new Integer(0)); //low layer
    layeredPane.add(fgLabel, new Integer(1)); //high layer
    container.add(layeredPane, BorderLayout.CENTER);
    //Invoked by the applet browser only.
    public void start() {
    startAnimation();
    //Invoked by the applet browser only.
    public void stop() {
    stopAnimation();
    public synchronized void startAnimation() {
    if (frozen) {
    //Do nothing. The user has requested that we
    //stop changing the image.
    } else {
    //Start animating!
    if (!timer.isRunning()) {
    timer.start();
    public synchronized void stopAnimation() {
    //Stop the animating thread.
    if (timer.isRunning()) {
    timer.stop();
    public void actionPerformed(ActionEvent e) {
    //Advance animation frame.
    frameNumber++;
    //Display it.
    fgLabel.setLocation(
    ((frameNumber*5)
    % (fgWidth + bgWidth))
    - fgWidth,
    (bgHeight - fgHeight)/2);
    //Invoked only when run as an application.
    public static void main(String[] args) {
    Image bgImage = Toolkit.getDefaultToolkit().getImage(
    MovingLabels.bgFile);
    Image fgImage = Toolkit.getDefaultToolkit().getImage(
    MovingLabels.fgFile);
    final MovingLabels movingLabels = new MovingLabels();
    JFrame f = new JFrame("MovingLabels");
    f.addWindowListener(new WindowAdapter() {
    public void windowIconified(WindowEvent e) {
    movingLabels.stopAnimation();
    public void windowDeiconified(WindowEvent e) {
    movingLabels.startAnimation();
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    movingLabels.buildUI(f.getContentPane(), bgImage, fgImage);
    f.setSize(500, 125);
    f.setVisible(true);
    movingLabels.startAnimation();
    }

  • Application and Applet

    Is it possable to run one program that reads in values threw a normal java application and then calls on an applet to display something?

    It sounds like you haven't grasped the fact that you can write a straight Swing application with a full graphics interface which isn't an Applet (I must admit that when, somewhere back in the age of the dinosaurs, I first started to read about Java I was confused by the emphasis on applets, which are really not very useful).
    Such an application has a main() method as usual, but all that the main() usually does it to create an object which extends JFrame and call setVisible(true) on it. From that point all the action is in response to user generated events on the window.

  • Run application from applet

    is it possible to run an application from an applet? is so how can i go about doing this?

    hey may be the use of Runtime can help u solve ur
    prblm....
    Runtime.exec("Application name");luck,
    jayNope. You should know some basic things before trying to give answers.
    If (unsigned/untrusted) applets could just run any other app, imagine the chaos when someone hits a rogue website containing an applet that executes something like "format c:"
    You want to run an external program on the client's machine from an applet? You can't, thank heavens. You need to rethink your design.

Maybe you are looking for

  • PR to PO convertion through MD04

    Hi, When we try to convert a PR to a PO from MD04 some users get the PR defaulted in the PO screen (ME21N) for some its blank is there any personal setting to be done for this. I dont want this to get copied to the PO Screen. Thanks, Suresh

  • Customer field in ME22N Purchase Order Transaction

    Hi all, I have to add an additional field to Ekko and want to maintain it using the Enjoy Purchase Order Transaction. To do so, I added an append to ekko and MEPOHEADER with my z-Field and implemented the Badis: ME_PROCESS_PO_CUSTĀ  Method PROCESS_HEA

  • Audio over miniDP on L540 ?

    Hello, my customer bought 7 new L540 (20AV0031IX) Win8.1 I realized that the HDMI port is missing. I want to buy an adapter for miniDP to HDMI conversion, but I'm wondering if the miniDP is able to carry sound. Can any of you confirm that L540 can be

  • Tell us your story with SAP Cloud for Customer!

    Check out the Bluefin story on their experiences with SAP Cloud for Customer below: Bluefin Solutions was one of the earliest adopters of SAP Cloud for Customer which is used for lead and opportunity management. This presentation will share experienc

  • Repaint() method is not working in MAC IE

    Hi All why repaint method is not working in MAC IE ? What i am doing is in one class which is inheriting Canvas class getting the keybord input then adding it to main applet. Please help me i am trying it for whole week and i couldn't find any soluti