Vb 6 application and web-to-go

Dear all
can i publish and VB 6 application in web-to-go? note taht my vb application use oracle9i as back-end and its connected using ODBC.
pls give me a help
regards

Sorry, web-to-go is currently only supported on Windows desktops/laptops/notepads.
Scott

Similar Messages

  • I want to remove the COnlineBank, OnlineBank and csample applications from my application and web server.

    How can I safely do this on Solaris? I've tried "iasdeploy removeapp" and "iasdeploy removemodule" with no luck. I want to clear all of this demo stuff out to make both the web and app server look more production like.
    Thanks
    Eric

    Eric,
    these applications are applogics which are not controlled by the
    iasdeploy tool. Unfortunately, there is no tool available to remove
    these applications for you. What you can do is to manually remove all
    their entries, but be careful if you do that. If you remove the wrong
    keys you might break your ias installation, so be warned and make sure
    you backup the whole ias registry before attempting to remove anything.
    Eric Coleman wrote:
    >
    I want to remove the COnlineBank, OnlineBank and csample applications
    from my application and web server.
    How can I safely do this on Solaris? I've tried "iasdeploy removeapp"
    and "iasdeploy removemodule" with no luck. I want to clear all of
    this demo stuff out to make both the web and app server look more
    production like.
    Thanks
    Eric
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!--
    Han-Dat Luc ([email protected])
    Senior Consultant
    SUN Professional Services (iPlanet)
    o .
    o .
    O _ ____ _ _
    (_) _ \| | __ _ _ __ ___| |_ TM
    | | |_) | |/ _` | '_ \ / _ \ __|
    | | __/| | (_| | | | | __/ |_
    |_|_| |_|\__,_|_| |_|\___|\__|
    e-commerce solutions
    Sun Microsystems Australia Pty Ltd

  • Can anyone help me know the difference b/w application and web server?

    i tried reading about application and web servers. it appears to me to be the same. please do help me to differentiate. Thanks :-)

    An application server hosts business logic components for an application. A web server is an application which accepts HTTP requests.
    An application server may come packaged with a web server.
    A web server is a very simple process. It's HTTP daemon process that listens for incoming requests over HTTP protocol on a specified port usually, 80. For simple, static web pages the web server has the built in logic to serve them but for a complex operation(say read from database and display some records), it routes the URL to a component like the servlet engine....
    An application server is a much broader term. For example the servlet may need to invoke certain business logic components like beans or activex dlls. The server that hosts these components is the application server.
    Hope you are clear now.

  • Requires a microsoft sharepoint foundation-compatible application and web browser

    SharePoint 2010 version 14.0.7102.5000.
    Clients are Windows 7 SP1, Browser is IE 10.0.9200.17296
    Problem is the well known famous message 'requires a microsoft sharepoint foundation-compatible application and web browser' when the user chooses the button New Document.
    Why this behaviour for this user is different then all the threads and blogs I read about this message is because of the  following: I am logged on using my Windows account on my computer (VDI so I have the same computer as the user experiencing the
    message) and don't have this problem. When the concerning user uses my logged on computer under my account and only logs in with his credentials within SharePoint (sign in as Different User) then the problem occures. I performed the same actions on the same
    library as the concerning user.
    So ruled out are:
    - Browser version
    - Office version
    - windows User Profile
    - x86 vs x64
    - MS Foundation Support installation
    - add on SharePoint OpenDocuments Class
    Please help me out.

    Do you have different versions of Office or SharePoint Designer or any Office product installed? 
    You can try repairing office installation in that particular user machine and see what happens.
    Thanks.
    Sorry to say but software versions can be ruled out as I mentioned the user have the same problem when using
    my logged on account in Windows on my computer. Only in the browser the user is logging in with his credentials. I don't have this problem when using this Document Library.

  • Move and redeploy application- and web-servers for Planing?

    Hi, all!
    Have Hyperion Planing ability to move application- and web-servers from unix-machine to another win-machine and after redeploy existing unix-installed planing on it?

    They are actually for for 2 different things. The Sun WAS is for enterprise applications, EJBs and the like.
    Tomcat is for simpler Servlet/JSP hosting.
    The Sun WAS actually uses the Tomcat server as its Servlet/JSP engine then adds EJBs on top.

  • Closing an application and web browser at same time at runtime

    Does anyone have any ideas of code that addresses that problem of closes the web browser at runtime when the application closes?
    I've been converted about 140+ forms and 300+ reports to 10g from 6i client/server and I've got all the forms converted but now that I've got it up on a website at runtime, I'm documenting all these application issues that I just haven't had time to research.
    It sounded like I do write some Java Beans, based on some threads I've read. But I didn't fully understand.
    Any help is appreciated.
    Regards,
    Chris

    Ok, I was able to do it when I hard-coded to the http://servername:port in the web.show_document. My question is: I have a windows and Linux (Development and Test server). All 3 are different servers. How can I make it to where I don't have to hard-code the server name. I've put the html page in the ORACLE_HOME/forms/java folder. The application and web browser closes just fine when I hard-code the server name in the web.show_document command. Is there a way I can get around this where I don't have to hard-code the name, but still access it from the same path on all 3 servers?
    web.show_document(http://servername:port/forms/java/closewebbrowser.htm, -self)

  • Understanding Application and Web Server Integration

    Folks,
    I am relatively new to web development and have some fundamental questions. I have read various articles and posts on these forums that describe the difference between an Application server and web server but haven't seen any on the integration of the two.
    I have recently downloaded the Sun Java System Application Server, built a simple application with a couple of JSPs, servlets and static html pages and deployed it through a deployment tool that came with the application server.
    Now, the application is accessible through my browser, so It seems the application server does everything I need, even for serving static pages. Do i need a web server? If so, would I implement a web server for design reasons and host static pages on that? Any hints on how to do this?
    Your help is appreciated.
    -joe

    No you don not. However, if you had a large site, which experienced thousands of hits a minute, you wouldn't want to burden your application server with the overhead of serving static content. Otherwise, go for it.
    As far as integrating an application server with a web server, I only have access integrating Tomcat with various web servers and it's not difficult at all. There's another post here (today as a matter of fact) where I give details for Tomcat and IIS.

  • Single Sign on using SAML between JWS application and Web Application

    Hi,
    We have two applications one is swing based Java Web Start application and other is a normal web application. We are trying to enable single sign on between both the applications. Can SAML be used to enable single sign on? If yes, can some one let us know how to do this?
    Thanks,
    Rama

    Thanks. But it is based on two WEB applications deployed on two different weblogic domains. What I am looking for is one application which is launched using Java Web Start(JNLP) and other a web application. The Java Web Start application uses its proprietary authentication implementation and the web application used DefaultAuthenticator of weblogic. Hope this detail will help you to answer my question better. I should have given this information earlier.
    Thanks.
    Rama

  • Spontaneous trouble receiving mail from Mail Application and Web Mail

    Hello,
    Unfortunately I need some assistance. For unknown reasons, today at about 12 PM our in house email server (10.3.9) started failing to allow any user to connect to download mail. I have users running POP and other users running IMAP accounts that had the same lack of function.
    When I connect using web mail I get the following error:
    Error connecting to IMAP server: localhost. 61 : Connection refused
    When I connect from the Mail application I get the following error:
    The server "mail.mycompany.com" refused to allow a connection on port 110
    
When I connect using the Server Admin program the IMAP and POP logs are empty despite being set to the “All events” setting, and the SMTP log contains the following message frequently despite still being able to send email from the affected accounts:
    (temporary failure. Command output: couldn't connect to lmtpd: Unknown Error Code: 0_ 421 4.3.0 deliver: couldn't connect to lmtpd_ )
    I have restarted the server, I have run disk utility to repair permissions and made no intentional adjustments to the server in the last week. The last adjustment to the mail server I made was about 1 month ago to turn on IMAP authentication to allow me to switch from a POP to an IMAP email account.
    Please help me figure this out!
    Thanks in advance.
    
Mike
    (PS I am a veterinarian, not an IT guru. I run my own mail and web servers because with Apple products, I can.)

    Thanks for your assistance.
    I found the logs and while there is a mail.log there is no mailaccess.log file.
    There is a mailaccess.log.0.gz which I decompressed and I also decompressed the mailacess.log.1.gz.
    The mailaccess.log.1 file contains entries from July 10th through July 11th.
    The mailaccess.log.0 file contains entries from August 14th through August 15th (today). Seems like there was a long period that did not get archived correctly.
    Here is a subset of what was in the mail.log from this morning:
    Aug 15 07:04:03 www postfix/pipe[24378]: 5B2201493AC: to=<[email protected]>, relay=cyrus, delay=1001, status=bounced (Command time limit exceeded: "/usr/bin/cyrus/bin/deliver")
    Aug 15 07:04:03 www postfix/pipe[24376]: 5B2201493AC: to=<[email protected]>, relay=cyrus, delay=1001, status=bounced (Command time limit exceeded: "/usr/bin/cyrus/bin/deliver")
    Aug 15 07:04:03 www postfix/cleanup[10663]: 86BD71493BA: message-id=<[email protected]>
    Aug 15 07:04:03 www postfix/qmgr[25517]: 86BD71493BA: from=, size=19952, nrcpt=1 (queue active)
    Aug 15 07:04:04 www postfix/smtp[10668]: 86BD71493BA: to=<sentto-12433195-1540-1187185326-mrbroome=avmi.net@returns.groups.yahoo.com> , relay=rtn7.grp.scd.yahoo.com[66.218.66.214], delay=1, status=sent (250 ok 1187186644 qp 73498)
    Aug 15 07:06:16 www postfix/pipe[26600]: 8D50C1493AF: to=<[email protected]>, relay=cyrus, delay=1002, status=bounced (Command time limit exceeded: "/usr/bin/cyrus/bin/deliver")
    Aug 15 07:06:16 www postfix/pipe[26602]: 8D50C1493AF: to=<[email protected]>, relay=cyrus, delay=1002, status=bounced (Command time limit exceeded: "/usr/bin/cyrus/bin/deliver")
    Aug 15 07:06:16 www postfix/cleanup[12865]: 56B5E1493BC: message-id=<[email protected]>
    Aug 15 07:06:16 www postfix/qmgr[25517]: 56B5E1493BC: from=, size=51949, nrcpt=1 (queue active)
    Aug 15 07:06:22 www postfix/smtp[12866]: 56B5E1493BC: to=<[email protected]>, relay=mailer.versiontracker.com[66.179.48.93], delay=6, status=sent (250 2.0.0 l7FE6L807756 Message accepted for delivery)
    Aug 15 07:30:50 www postfix/smtpd[7082]: unable to get certificate from '/etc/postfix/server.pem'
    Aug 15 07:30:50 www postfix/smtpd[7082]: 7082:error:02001002:system library:fopen:No such file or directory:bss_file.c:278:fopen('/etc/postfix/server.pem','r'):
    Aug 15 07:30:50 www postfix/smtpd[7082]: 7082:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:280:
    Aug 15 07:30:50 www postfix/smtpd[7082]: 7082:error:140DC002:SSL routines:SSLCTX_use_certificate_chainfile:system lib:ssl_rsa.c:760:
    Aug 15 07:30:50 www postfix/smtpd[7082]: TLS engine: cannot load RSA cert/key data
    Aug 15 07:30:50 www postfix/smtpd[7082]: connect from valhalla.mailpure.com[66.109.52.210]
    Aug 15 07:30:51 www postfix/smtpd[7082]: 183AA1493D0: client=valhalla.mailpure.com[66.109.52.210]
    Aug 15 07:30:51 www postfix/cleanup[7088]: 183AA1493D0: message-id=<[email protected]>
    Aug 15 07:30:52 www postfix/qmgr[25517]: 183AA1493D0: from=<[email protected]>, size=26283, nrcpt=2 (queue active)
    Aug 15 07:30:52 www postfix/smtpd[7082]: disconnect from valhalla.mailpure.com[66.109.52.210]
    Aug 15 07:47:32 www postfix/pipe[7105]: 183AA1493D0: to=<[email protected]>, relay=cyrus, delay=1001, status=bounced (Command time limit exceeded: "/usr/bin/cyrus/bin/deliver")
    Aug 15 07:47:32 www postfix/pipe[7109]: 183AA1493D0: to=<[email protected]>, relay=cyrus, delay=1001, status=bounced (Command time limit exceeded: "/usr/bin/cyrus/bin/deliver")
    Aug 15 07:47:32 www postfix/cleanup[22267]: CD81D1493F0: message-id=<[email protected]>
    Aug 15 07:47:32 www postfix/qmgr[25517]: CD81D1493F0: from=, size=28115, nrcpt=1 (queue active)
    Aug 15 07:47:37 www postfix/smtp[22271]: CD81D1493F0: to=<[email protected]>, relay=cvm39.vetmed.wsu.edu[134.121.130.6], delay=5, status=sent (250 2.6.0 <[email protected]> Queued mail for delivery)
    The following is copied from the mailaccess.log.0 file from yesterday when the trouble started:
    Aug 14 21:43:56 www master[269]: exiting on SIGTERM/SIGINT
    Aug 14 21:43:56 www deliver[24981]: backend_connect(): couldn't read initial greeting: (null)
    Aug 14 21:43:56 www master[25420]: process started
    Aug 14 21:48:55 www deliver[25478]: connect(/var/imap/socket/lmtp) failed: Connection refused
    Aug 14 21:50:22 www master[25519]: process started
    Aug 14 22:07:03 www deliver[25632]: connect(/var/imap/socket/lmtp) failed: Connection refused
    Aug 14 22:40:22 www deliver[25829]: connect(/var/imap/socket/lmtp) failed: Connection refused
    Aug 15 06:23:50 www ctl_cyrusdb[25520]: DBERROR db4: PANIC: Too many open files
    Aug 15 06:23:50 www ctl_cyrusdb[25520]: DBERROR: critical database situation
    Aug 14 23:23:50 www master[25519]: process 25520 exited, status 75
    Aug 14 23:23:50 www master[25519]: ready for work
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR db4: fatal region error detected; run recovery
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: init() on berkeley
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: checkpointing cyrus databases
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR db4: txn_checkpoint interface requires an environment configured for the transaction subsystem
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: couldn't checkpoint: Invalid argument
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: sync /var/imap/db: cyrusdb error
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR db4: DBENV->logarchive interface requires an environment configured for the logging subsystem
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: error listing log files: Invalid argument
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: archive /var/imap/db: cyrusdb error
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR db4: txn_checkpoint interface requires an environment configured for the transaction subsystem
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: couldn't checkpoint: Invalid argument
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: sync /var/imap/db: cyrusdb error
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR db4: DBENV->logarchive interface requires an environment configured for the logging subsystem
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: error listing log files: Invalid argument
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: archive /var/imap/db: cyrusdb error
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR db4: txn_checkpoint interface requires an environment configured for the transaction subsystem
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: couldn't checkpoint: Invalid argument
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: sync /var/imap/db: cyrusdb error
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR db4: DBENV->logarchive interface requires an environment configured for the logging subsystem
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: error listing log files: Invalid argument
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: DBERROR: archive /var/imap/db: cyrusdb error
    Aug 14 23:23:50 www ctl_cyrusdb[26081]: done checkpointing cyrus databases
    Looks like my mail database is trashed. Let me know if this is correct and if so, how I should go about trying to restore/rebuild, etc.
    Thanks again for your assistance.
    Mike

  • Partner application and web clipping.

    Hi All,
    I am trying to add an external application (say my.yahoo.com) to a webclipping and its throwing the below error in the application log.
    WC-517 : SSL handshake failed with the url ...
    I have checked the file ca-bundle.crt and the certificates are in place. Does anybody know how to go about debugging this problem as I am quite new to portals and at my wits end to solve it.
    Also I would be greatful if anybody can suggest me the steps on adding an Apex application configured as partner application with SSO authentication to a web clipping.There seems to be little or no-documentation at all in this regard(as far as my search goes).
    Thanks in advance
    -Venkat

    I finally got it working by VERY CAREFULLY reading the instructions in the install.txt document in the SSO SDK package. You have to set up the partner application with a new schema in the login server database, and run the regapp.sql script AFTER editing it to insert data from the Login Server Partner Application admin screen. After you register the partner app in Portal, it gives you some info (site token, listener token, encryption key, etc). You have to MANUALLY copy these and paste them into the regapp.sql script, then run the script in the partner app schema. Make sure you don't confuse capital I with numeral 1 (like I did, since Oracle so nicely uses a non-serif font where you can not tell the difference).
    Also make sure you copy the exact values for these parameters into your code when you use the SSOEnabler class. The listener token was very confusing since different documents appear to disagree on whether it should include the partner app name or not. It does require the partner app name:
    app-name:hostname:port
    hostname and port are for the web server that is handling http requests for the login server (usually your main portal web server).
    John H.

  • Web application and web.xml

    i have a web application consisting of 1 servlet and 5 jsps.
    the start point would be index.jsp
    i use firmwide login page. after login, i want the browser to display index.jsp page.
    In web.xml, i have defined -
    <welcome-file-list>          <welcome-file>/jsp/index.jsp</welcome-file>     </welcome-file-list>       <servlet>        <servlet-name>UtilitiesServlet</servlet-name>        <servlet-class>com.gs.fw.sox404.utilities.UtilitiesServlet</servlet-class>             <init-param>             <param-name>util-log4j-init-file</param-name>             <param-value>/WEB-INF/classes/util_log4j.properties</param-value>          </init-param>        <load-on-startup>1</load-on-startup>    </servlet>     <servlet-mapping>        <servlet-name>UtilitiesServlet</servlet-name>        <url-pattern>/UtilitiesServlet</url-pattern>    </servlet-mapping>if i define it as just index.jsp in the welcome file list, after successful login, it displays the dir structure of the web app.
    if i define it as jsp/index.jsp, then in some of the pages, it tries to find the servlet inside jsp folder.
    What would be the best way to get around this?

    Well, yes, it's not able to find it because you've not understood the mechanism of how it works clearly. You have to put your welcome file under every directory you want it to be used from. Like I said, it's not a path, it's a filename. So if the container sees that your request URL is for a directory, it'll look for the welcome files from the welcome file list, one by one, in the order of declaration. Whichever one it finds first, it'll serve that. If it doesn't find any, then it'll either give a 404 or a directory listing depending on the server and it's settings.
    So your problem is that you've put your index.jsp in your JSP folder but expect it to be served for all URLs. That won't happen, you'll have to put one file named index.jsp into every directory. The reasoning is pretty simple, what if you want different behaviour for each folder?
    This should fix your problem :)
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • Problem in deploying and packaging the application and web component.......

    i am new to j2ee!! i am using sun application server 8 2005Q1(for j2ee)
    i have deployed my application successfully!!!!!
    yet i found an error(404) when i called it thro my web browser
    i am using oracle as my back end
    anybody plz help me as soon as possible.........

    Hi,
    I am not sure what some of your phrases mean but i want to clarify a couple of things.
    0) Be happy to make the switch
    1) SJAS contains a webserver, where iPlanet appserver did not and one was forced to put a webserver in front of the appserver.
    2) The iplanet webserver plugin was configured to forward all request which have /NasApp to the appserver, using the KCP protocol, SJAS LB plugin is configured on a webapplication context root base using http and or https protocol.
    3) If your logic needs the HTML pages (which is doubtful in a proper design) the pages must reside on the appserver.
    4) Deployment to SJAS can be done through asadmin CLI, deploytool or webbased admin GUI instead of just putting the EAR in the autodeploy directory.
    HTH Robert

  • Sharing static members between Swing application and Web application

    Hi,
    if someone has done this please help:
    I have created 3 classes:
    Mainclass using JFrame which is used as host class for DBConnectionManager class,
    and ConfigBean class used for storing static configuration parameters:
         static public String strUser = "";
    static public String strPassword = "";
    static public String strDB = "";
    static public int nMaxConn = 0;
    static public String strPoolName = "";
    static public boolean bConnected = false;
    static public int nCurrentUsers = 0;
    static public DBConnectionManager manager = null;
         public DBConnectionManager getDBManager()
    return this.manager;
    public void setDBManager(DBConnectionManager manager)
    this.manager = manager;
    DBConnectionManager class uses static instance to see if this is only class created by client users.
    Only static member in this class is getInstance member function for startig manager:
         static synchronized public DBConnectionManager getInstance()
    if (instance == null)
    instance = new DBConnectionManager();
    return instance;
    In Mainclass I also created non static DBConnectionManager class for manipluation with host administrator.
    Then I created web application layout in Tomcat 4 and used index.jsp:
    <%@ page import="java.sql.*,java.io.*" %>
    <jsp:useBean id="cfgbean" class="webvobapli.ConfigBean" scope="application" />
    <%!
    webvobapli.DBConnectionManager db = null;
    String strMessage = "";
    Statement stmt1;
    ResultSet rset1;
    String strQuery = "select count(*) from cards";
    %>
    <html>
    <%
         try
              db = cfgbean.getDBManager();
              if(db==null)
                   strMessage = "Error";
              else
                   Connection con = db.getConnection("central2");
                   if(con != null)
                        stmt1 = con.createStatement();
                        rset1 = stmt1.executeQuery(strQuery);
                        rset1.next();
                        strMessage = rset1.getString(1);
                   else
                        strMessage = "NULL";
         catch(Exception e)
              strMessage = e.toString();
    %>
    <p>Message = <%=strMessage%></p>
    </html>
    Question: why db = cfgbean.getDBManager(); returns null if I created instance of DBConnectionManager
    class in Mainclass and assigned it to ConfigBean as static instance before running web application.
    Shouldn't all java programs share static memory area?
    Beast Regards
    Branislav Cavlin

    Question: why db = cfgbean.getDBManager(); returns null if I created >>instance of DBConnectionManager
    class in Mainclass and assigned it to ConfigBean as static instance >>before running web application.
    Shouldn't all java programs share static memory area?You say you create the db objects BEFORE you run the web application - now I could be misunderstanding what you are saying, but does this not involve two JVM's (one to create initial db objects, which then exits, then second JVM fires you app server/servlet container) - which would explain why a null object is being returned.

  • Outlook exchange e mail application and web application not connected

    Hello Everybody,
    We have issue with 3 of our clients machine that face the same problems.
    When they tried to launch outlook, the status of outlook application always showing that, "Trying to connect"
    and when we tried them to log on to outlook web application, there is nothing to log on..i had tried to log on with 3 difference browsers, but still not work.. other website as yahoo or gmail are working fine..
    We are using Microsoft Exchange.
    Could you let me know what is the real issues with that?
    THanks you
    VeasnaYim

    Dear Edited,
    Thanks so much for your concerning our problems!
    When I tried them to access their e mail through out OWA, no error and i didn't see any display on the webpage and it was just blank!
    Last thing, I deleted their user profiles and configure their exchange e mail to desktop outlook and everything working fine, error gone!
    If you have any ideas, please let me know and i will bring that to fix future issues regarding this!
    Best regards, 
    VeasnaYim

  • Help please! Java application and web application...

    Hi,
    I have a problem with inserting a java application (Main.java) in a web application(index.jsp).
    I found a source demo of a drag and drop application on the Internet, but now I want to
    have the drag and drop application work in a Jpanel/JFrame in a webapplication.
    The drag and drop application code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class Main {
        public static void main(final String[] args) {
            final ButtonGroup grp = new ButtonGroup();
            final JPanel palette = new JPanel(new FlowLayout(FlowLayout.LEFT));
            palette.setBorder(BorderFactory.createTitledBorder("Palette"));
            final MainPanel mainPanel = new MainPanel();
            mainPanel.setPalette(palette);
            for(int j=0; j<4; j++){
                final JToggleButton btn = new JToggleButton("Panel "+(j+1));
                palette.add(btn);
                grp.add(btn);
                btn.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        mainPanel.setAdding(btn.getText());
            final JFrame f = new JFrame("Drag and drop panels");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(palette, BorderLayout.WEST);
            f.getContentPane().add(mainPanel, BorderLayout.CENTER);
            f.setSize(800, 600);
            f.setVisible(true);
    class MainPanel extends JPanel implements MouseListener, MouseMotionListener {
        private JPanel palette;
        private String adding="";
        private SubPanel hitPanel;
        private int deltaX, deltaY, oldX, oldY;
        private final int TOL = 4;  //tolerance
        public MainPanel() {
            setLayout(null);
            addMouseListener(this);
            addMouseMotionListener(this);
        public void mousePressed(final MouseEvent e) {
            if( adding != "" ){
                setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
                SubPanel sub = new SubPanel(adding);
                add(sub);
                sub.setSize(sub.getPreferredSize());
                sub.setLocation((int)e.getX(),(int)e.getY());
                revalidate();
                adding = "";
                return;
            Component c = getComponentAt(e.getPoint());
            if (c instanceof SubPanel) {
                hitPanel = (SubPanel) c;
                oldX = hitPanel.getX();
                oldY = hitPanel.getY();
                deltaX = e.getX() - oldX;
                deltaY = e.getY() - oldY;
                if( oldX < e.getX()-TOL ) oldX += hitPanel.getWidth();
                if( oldY < e.getY()-TOL ) oldY += hitPanel.getHeight();
        public void mouseDragged(final MouseEvent e) {
            if (hitPanel != null) {
                int xH = hitPanel.getX();
                int yH = hitPanel.getY();
                int xDiff = e.getX()-oldX;
                int yDiff = e.getY()-oldY;
                int cursorType = hitPanel.getCursor().getType();
                if( cursorType == Cursor.W_RESIZE_CURSOR){           //West resizing
                    hitPanel.setBounds( e.getX(), yH, hitPanel.getWidth() - xDiff, hitPanel.getHeight() );
                }else if( cursorType == Cursor.N_RESIZE_CURSOR){     //North resizing
                    hitPanel.setBounds( xH, e.getY(), hitPanel.getWidth(), hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.S_RESIZE_CURSOR){     //South resizing
                    hitPanel.setSize( hitPanel.getWidth(), hitPanel.getHeight() + yDiff );
                }else if( cursorType == Cursor.E_RESIZE_CURSOR){     //East resizing
                    hitPanel.setSize( hitPanel.getWidth() + xDiff, hitPanel.getHeight() );
                }else if( cursorType == Cursor.NW_RESIZE_CURSOR){     //NorthWest resizing
                    hitPanel.setBounds( e.getX(), e.getY(), hitPanel.getWidth() - xDiff, hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.NE_RESIZE_CURSOR){     //NorthEast resizing
                    hitPanel.setBounds( xH, e.getY(), hitPanel.getWidth() + xDiff, hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.SW_RESIZE_CURSOR){     //SouthWest resizing
                    hitPanel.setBounds( e.getX(), yH, hitPanel.getWidth() - xDiff, hitPanel.getHeight() + yDiff );
                }else if( cursorType == Cursor.SE_RESIZE_CURSOR){     //SouthEast resizing
                    hitPanel.setBounds( xH, yH, hitPanel.getWidth() + xDiff, hitPanel.getHeight() + yDiff );
                }else{      //moving subpanel
                    hitPanel.setLocation( e.getX()-deltaX, e.getY()-deltaY );
                oldX = e.getX();
                oldY = e.getY();
        public void mouseMoved(final MouseEvent e) {
            Component c = getComponentAt(e.getPoint());
            if (c instanceof SubPanel) {
                int x  = e.getX();
                int y  = e.getY();
                int xC = c.getX();
                int yC = c.getY();
                int w  = c.getWidth();
                int h  = c.getHeight();
                if(       y >= yC-TOL   && y <= yC+TOL && x >= xC-TOL   && x <= xC+TOL  ){
                    c.setCursor(new Cursor(Cursor.NW_RESIZE_CURSOR));
                }else if( y >= yC-TOL   && y <= yC+TOL && x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.NE_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h && x >= xC-TOL   && x <= xC+TOL ){
                    c.setCursor(new Cursor(Cursor.SW_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h && x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.SE_RESIZE_CURSOR));
                }else if( x >= xC-TOL   && x <= xC+TOL ){
                    c.setCursor(new Cursor(Cursor.W_RESIZE_CURSOR));
                }else if( y >= yC-TOL   && y <= yC+TOL ){
                    c.setCursor(new Cursor(Cursor.N_RESIZE_CURSOR));
                }else if( x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h ){
                    c.setCursor(new Cursor(Cursor.S_RESIZE_CURSOR));
                }else{
                    c.setCursor(new Cursor(Cursor.MOVE_CURSOR));
        public void mouseReleased(final MouseEvent e) { hitPanel = null; }
        public void mouseClicked(final MouseEvent e) {}
        public void mouseEntered(final MouseEvent e) {}
        public void mouseExited(final MouseEvent e) {}
        public void setAdding(final String string) {
            adding = string;
            setCursor(new Cursor(Cursor.HAND_CURSOR));
        public void setPalette(final JPanel panel) { palette = panel; }
    class SubPanel extends JPanel {
        public SubPanel(final String name) {
            setPreferredSize(new Dimension(100, 100));
            setBorder(new TitledBorder(new LineBorder(Color.BLACK), name));
    }This application works with JFrame, but I want to display the JFrame in a webapplication (JSP Page).
    I'm using Netbeans 6.0 (GlassFish) to create webapplication using Visual Web JavaServer Faces.
    So in summary:
    How can i display the drag and drop application into a JFrame (better in a JPanel) in a webapplication (index.jsp)??
    Hope you can help...
    Thanks in advance...
    Greetings,
    Rajsh

    So have an applet that opens a JFrame... JSP or not has nothing to do with it, since it's nothing but HTML the client gets.
    You can't have a JFrame embedded in an HTML page. And if you could have an applet but don't know how to get that copied code to fit inside (I mean, content pane is content pane), you might want to consider learning how to do that.

Maybe you are looking for

  • How can I resize the window size of my website?

    My site is http://linguistine.com/ I put the swf in a html page but i'd like the window to be the dimensions of the swf not the html page. Is there an easy way to do this? Thanks Jamie

  • Order acknowledge no in PO ITEMDETAIL-CONFIRMATION TAB & AR no not reflect

    Hello,        The order acknowledge no in PO ITEM DETAIL---->CONFIRMATION TAB is not seen & also the AR no not seen in some particular POs. Acknowledge Reqd TICK MARK is there in the PO,inspite of that the result is not being reflected. Please let me

  • Getting error after extending a View Object

    Hi, I am extending a view object in iProcurement page, requisition lines details region. I find that the item description is created 3 times in that Message Component layout region. Once as message styled text, once Formatted text and the third item

  • Idoc collective processing

    Hi We have a custom idoc(Inbound) for posting goods movements...Actually it does goods movements through two seperate BDC calls and returns the material document number in the status.When we process two or more idocs through a batch processing at a s

  • How to rename the SAP Script.

    Dear All, I wanted to rename a SAP Script. How Can I do that ? Thanks & Regards Venkat