Help with HTML and JAVA

Hi.
I'll have this question, and can't find the right answer...
Suppose is this site called xyz.com and you need to register to be a member
For simplicity member log-in page is simple...contains only login and password fields(Submit too) in HTML code:
<html>
<body>
<form name="input" action="html_form_action.asp" method="get">
User ID: <input type="text" name="ID" /><br />
Password: <input type="password" name="pwd" /><br />
<input type="submit" value="Submit" />
</form>
</body>
</html>Will I be able to build a Java application witch will:
1-Send me to this web-page
2-Place my chosen id and password in the right place
3-"Press" Submit button.
So I open this Java Swing application , and Go button will send me to the members page of my xyz.com page.
Thank you for the help.

altisw5 wrote:
Go button will send me to the members page of my xyz.com page.It depends on what you mean by "send me".
If you mean access data on the members page through your program, yes.
If you mean open a browser window to that page, I guess doable but might be tricky (with Robot and stuff).
If you mean physically send you on the internet, no.

Similar Messages

  • Need help with  HTML and Swing Components

    Dear All,
    I am using HTML text for Jbutton and Jlabel and MenuItem.
    But when i am trying to disable any of these, its foreground color is not being grayed out.
    For that, I have overrided the setEnable() method as mentioned below:
    import java.awt.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.*;
    import javax.swing.plaf.FontUIResource;
    * HtmlLabelEx.java
    public class HtmlLabelEx extends javax.swing.JDialog implements MouseListener{
         * Creates new form HtmlLabelEx
        public HtmlLabelEx(java.awt.Frame parent, boolean modal) {
            super(parent, modal);
            UIManager.put("swing.boldMetal", Boolean.FALSE);
            initComponents();
            setLayout(null);
            this.addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent event)
                    System.exit(0);
            JLabel jLabel1 = new JLabel()
                public void setEnabled(boolean b)
                  super.setEnabled(b);
                  setForeground(b ? (Color) UIManager.get("Label.foreground") : (Color) UIManager.get("Label.disabledForeground"));
            JButton jButton1 = new JButton()
                public void setEnabled(boolean b)
                  super.setEnabled(b);
                  setForeground(b ? (Color) UIManager.get("Label.foreground") : (Color) UIManager.get("Label.disabledForeground"));
            add(jButton1);
            String str = "<html><body><b>Label</b></body></html>";
            System.out.println("str = "+str);
        jLabel1.setText(str);
        add(jLabel1);
        jLabel1.setBounds(10,10,100,20);
        jLabel1.setEnabled(false);
        jButton1.setText("<html><body><b>Button</b></body></html>");
        jButton1.setEnabled(true);
        jButton1.setBounds(10,50,100,20);
        System.out.println("getText = "+jLabel1.getText());
        setSize(400,400);
        addMouseListener(this);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            getContentPane().setLayout(null);
            setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
            pack();
        }// </editor-fold>                       
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new HtmlLabelEx(new javax.swing.JFrame(), true).setVisible(true);
        // Variables declaration - do not modify                    
        // End of variables declaration                  
        public void mouseClicked(MouseEvent e)
            if(e.getButton() == e.BUTTON3)
                JMenuItem mit = new JMenuItem("<html><body><b>Menu Item</b></body></html>");
                JPopupMenu pop = new JPopupMenu();
                pop.add(mit);
                mit.setEnabled(false);
                pop.show(this,e.getX(),e.getY());
        public void mousePressed(MouseEvent e) {
        public void mouseReleased(MouseEvent e) {
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
    But, I think it is difficult to write like this for each component.
    I am looking for an optimized solution so that the change will be only in one place.
    so that, It wont leads to change so many pages or so many places.
    And i have the following assumptions to do this. please let me know the possibility.
    1.Implementing custom UI class, extending the JButton/JMenuItem (As the BasicButton/MenuItemUI class does not have setEnabled() method to override) and putting this in UIManager.put("ButtonUI/MenuItemUI","CustomClass).
    2.If there is any possibility to achieve this, by just overriting any key in the UIManager
    3.By setting any client property globally.
    My requirement is to do this only at one place for entire the application.So, that we need not change all the buttoins, sya some 30 buttions are there in a dialog, then we need to override each button class.
    Please suggest me the possibilties..
    Thank you

    Hi camickr ,
    I know that to set the font we have to use component.setfont().
    But, as per my requirement,i am not setting any font to any component in my application.
    i am just passing HTML text along with FONT tags to all the components in my Application.SO, in this case we will get bold letters and that problem fixed when we set swing.boldMetal = false in UI Manager.
    But actual problem irrespective of font settings is when ever we use HTML rendered text, when the button or menuitem is disabled,then that one will not be changed to gray color. i.e., it still looks like normal controls, even it is disabled.(It is also reported as bug)
    But, as per my knowledge we can fix by overrding setEnabled or paint() methods for each and every component.
    But, if we do like that, for an application that has 200 buttons or MenuItems, it is difficult to follow that approach.
    So, We should find a way to achieve that only in one place like using UIManager or other one as i mentioned in previous posts if possible.
    I hope you understood what my problem is exactly.
    Thank You
    Edited by: sindhumourya on Mar 4, 2010 7:26 AM

  • Need help with mac and java

    Hi, I'm trying to develop an application on a Machintosh OSX 10.2.8 machine.
    I'm having a herrendous time trying to get quicktime to work on it.
    I've somehow managed t oget 1.3.1 and QTJava.jar to work together but now i need encryption, however that requires 1.4+
    Now 1.4.1 doesnt work with quicktime
    I've downloaded the latest software upgrades but Ive got no idea how to set up quicktime to work with java 1.4.1
    Now to add on top of that mac reports it can use AES encryption. this is from source code ripped striaght from this website.
    But first and foremost can anyone, annyonee help me out with setting up 1.4.1 with quicktime?
    Thank you

    If you need encryption with Java 1.3.1, download the JCE from either Sun (http://java.sun.com/products/jce/) or Bouncy Castle (http://www.bouncycastle.org/).
    Cheers,
    --Arnout                                                                                                                                                                                                                                                                                                                                                                   

  • Help with textpad and java

    ive just started taking my first java class and im having trouble. text pad says system cannot find javac.exe in the system32 folder. i have followed one of the post on here about the registry keys but im missing the run key in the Helois folder i have jre 5.0 and sdk 1.4 how can i get this up and running so i can do my work
    please help
    thanks

    Can't you just add your jdk1.5.0_0x/bin folder to your PATH? That's what I did, at least.
    theAmerican

  • Help with LabView and Java

    Hi any help would be greatly appreciated: I have the following JAVA code:
    //File: Hello.java
    class Hello {
     public native void Steve();
     static {
      System.loadLibrary("steve");
     public static void main(String[] args) {
      Hello h = new Hello();
      h.Steve();
    It finds the loadLibrary fine, but I get the following error message:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: Steve
    at Hello.Steve(Native Method)
    at Hello.main(Hello.java:10)

    Okay......
    Where does Labview fit into this question?

  • Computer idiot needs help with  vista and java

    -running vista home edition 64bit
    - i am administrator
    -need to run an older version of java jdk/jre6 update 6
    - when i download the appropriate version for the windows 64 bit, I go through the installation and finish it but java never appears in my control panel
    - if i download the version for just windows the java icon appears in my control panel but IE7 does not recognize it as being there
    HELP

    AFTER I break down and erase the HD and reinstall OSX
    You don't have to erase the drive to reinstall the OS. Just reinstall WITHOUT erasing the drive. Only system files will be over-written, and your borked OS will be fixed, while your own files will be left in place. You really should have a backup before a reinstall, but unless one is very unlucky and something goes wrong it isn't strictly necessary.
    Never trash anything unless you know what it is, what it does, why it is doing it, and what put it there to do that. I know, it's a bit late for this crisis, but you should now avoid future crises caused by throwing away (or moving) the wrong thing.
    Francine
    Francine
    Schwieder

  • Help with AQ and Java

    I am brand new to using AQ and I'm having a problem getting the JMS Message Listener to recognize there are messages on the queue. Can anyone point me in the right direction? I've been looking at all of the stuff in the AQ Developer's Guide and some of the articles here; it looks like I'm doing everything right, but nothing is happening.

    take a look at the following link
    http://devtrends.oracle.com/code/activedb/

  • Need help with links and fill color

    Hi all, I just recently discovered liveCycle and am very impressed with it! I have been trying to make myself a homework calendar for a while now, and I have it done mostly, but there are a few more things I'd like to add that I don't know how to do.
    I have some HTML and Java experience, but very little XML or JavaScript experience. I have a feeling that what I am trying to do is relatively simple, but I just can't figure it out! I have spent hours pouring over Google and the help files, and I feel like I have gotten close, but no joy yet.
    I have attached my calendar so far (truncated to fit 5MB max attachment size). I'd like it to do two more things:
    1. Have the background color of the table cells change from white to green when the check box is checked.
    (Alternately, I'd really like to get rid of the check boxes all thogether and just have the background of the table cells turn green with a keyboard shortcut, like "ctrl + D" for 'done'. But if that isn't possible, then the color change with the check box is fine.)
    2. I'd like the button called 'WORD DOC' in the upper right of the form to open a word document on my local computer. Where I just push that button and a work doc opens right up in Word in another window.
    I was able to get .PDF documents to open up with those other two buttons there ('Big Java' and 'Beginning Java II') by adding the script
    app.openDoc("Big Java.pdf");
    and
    app.openDoc("Beginning Java II.pdf");
    to each of the buttons respectively, but those PDFs need to be in the same folder as the calendar for that to work. I tried just altering that script by replacing the name of the PDF file with the name of a Word doc file like this:
    app.openDoc("test.docx");
    but the button doesn’t work at all, it just does nothing.
    So that’s what I am trying to do. I have spent hours messing around with anything I could think of to get this to work, but unfortunately I just don’t know the language well enough to get it to work.
    I would really appreciate any advice on this at all. Thank you very much for your consideration.

    Hi,
    Thanks very much for your response! I was able to use the code to make the box turn green by adding that script to the 'click' event of textbox and changing the language from FormCalc to JavaScript. So what happened was that when I clicked in the textbox, the color turned green.
    I couln't firgure out how to add it to the checkbox though. When I tried, it didn't do anything. The problem now is that when I click in the textbox to add my homework, it turns green. I need it to turn green once I finish my homework.
    This would work great if the texbox turned green when I SHIFT clicked the box. Is there anything I could add to that scipt to do that?

  • Urgent :::::.i WISH TO DO THIS WITH JDOM and JAVA .

    file A.XML
    <XML>
    <TP>
    <FF>
    </FF>
    </TP>
    </XML>
    file B.XML
    <XML>
    <TP>
    <GG>
    </GG>
    </TP>
    </XML>
    I WANT TO PASTE node GG in b.xml to a.xml like this
    <XML>
    <TP>
    <FF>
    <GG>
    </GG>
    </FF>
    </TP>
    </XML>
    i WISH TO DO THIS WITH JDOM and JAVA .
    Please let me know how to do this ....
    i dont want to use XSL OR XSLT ...
    i am free for discussions...pls help me
    ciao

    You can try these steps in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Programming Cameras and Pan-Tilts with DirectX and Java

    Hi everybody!
    I am looking for the book and CD for the book "Programming Cameras and Pan-tilts with DirectX and Java", by Ioannis Pavlidis, Vassilios Morellas, Pete Roeber. Morgan Kaufmann 2003. It is out of print. I cannot find it anywhere.
    Does anyone have a copy of the CD-ROM and would be willing to sell it to me?
    Many thanks for your help and input!
    Cheers,
    WP

    can you share cd-rom?
    Or can you send me the url where I can find the cd-rom?
    agungws
    agung at gmail dot com

  • Help with Dropdownbox and following problems

    Hello BWler.
    I think my post is rather a crazy idea, but I hope you can bring me on the right track! 
    My question: Is that generally feasible with HTML and Javascript or with other tools.
    I hope you understand my English.
    I would like to create a document (not the web item) in Web Application Designer which contains values from different Queries. It has three parts, Header, Body and Rest. The Header of the document can contain three different data (either material or customer or vendor), for which individual queries was defined. The Body gets data from an other query. The Rest is only text.
    This is my idea, but I don’t know, if it’s a good solution.
    In the first step I would like to fill a Dropdownbox with the three options of the Header (not on a characteristic in a query). The user selects a value and press the "submit" button.. Depending on which value was selected, the suitable Query and a defined characteristic should be used in the next Dropdownbox.
    That’s my attempt to fill my own dropdonbox an display the selected value. The URL looks right, but not the result ;-). The choice suitable dropdownbox was not implemented yet.
    customer
    material
    vendor
    Question: How can this be solved to join own and WAD dropdownboxes?
    Now if the right dropdownbox  is displayd, the values should be filtered. But e.g. for customer I have many values, therefore I’d like to create a nested dropdown menu. The first column should contain the letters “a” to “z”. After selection the values begins with this letter (e.g. all customers with letter “t”) should be read from the Query and then shown in the dropdownbox.
    Question: Is that generally possible and if so, what one must define in addition in query designer?
    Finally the result of the filtering should be displayed as text…

    @ Raja
    Thx for your reply. I will try it maybe later with BSP. Maybe I can also use java.
    @ Deepak
    Thx for your example. Now my first problem is solved. However, I have some more questions.
    DDB=Dropdownbox
    DP=DataProvider
    First:
    1) Is it possible to fill my own values in a BW-DDB without characteristic from query?
    Second:
    2) Is it possible to change only the DP for the same DDB.
    I would like to use the same DDB, either with the values of product or customer or vendor, if I change the value of my own DDB.
    My current solution is to change one DP with the right values.
    <option value="<SAP_BW_URL ITEM='DDB_ITEM_1' HIDDEN='' CMD_1="DATA_PROVIDER=DATAPROVIDER_2&CMD=RESET_DATA_PROVIDER&INFOCUBE=ZPRODUCT&QUERY=ZPR" IOBJNM='PRODUCT'>"> product</option>
    But my hope is to change only the DP(DATAPOVIDER1=customer, DATAPOVIDER2=vendor, DATAPOVIDER3=product) for the same DDB.
    So I test it ... but I receive only the DDB with a value (" All"):
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_2"/>
             <param name="QUERY" value="ZVEND"/>
             <param name="INFOCUBE" value="ZVENDOR"/>
             DATA_PROVIDER:             DATAPROVIDER_2
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_3"/>
             <param name="QUERY" value="ZPR"/>
             <param name="INFOCUBE" value="ZPRODUCT"/>
             DATA_PROVIDER:             DATAPROVIDER_3
    </object>
    <option value="<SAP_BW_URL ITEM='DDB_ITEM_1' HIDDEN='' IOBJNM='PRODUCT' CMD_1="DATA_PROVIDER=DATAPROVIDER_2& CMD=RESET_DATA_PROVIDER&DATA_PROVIDER=DATAPROVIDER_3"> "> product</option>
    Finally I still have my old question with the nested dropdwonbox in WAD...can somebody tell me, if its possible to create this.
    Message was edited by: Jens Harder

  • Help with writing and retrieving data from a table field with type "LCHR"

    Hi Experts,
    I need help with writing and reading data from a database table field which has a type of "LCHR". I have given an example of the original code but don't know what to change it to in order to fix it and still read in the original data that's stored in the LCHR field.
    Basically we have two Function modules, one that saves list data to a database table and one that reads in this data. Both Function modules have an identicle table which has an array of fields from type INT4, CHAR, and type P. The INT4 field is the first one.
    Incidentally this worked in the 4.7 non-unicode system but is now dumping in the new ECC6 Unicode system.
    Thanks in advance,
    C
    SAVING THE LIST DATA TO DB
    DATA: L_WA(800).
    LOOP AT T_TAB into L_WA.
    ZDBTAB-DATALEN = STRLEN( L_WA ).
    MOVE: L_WA to ZDBTAB-RAWDATA.
    ZDBTAB-LINENUM = SY-TABIX.
    INSERT ZDBTAB.
    READING THE DATA FROM DB
    DATA: BEGIN OF T_DATA,
                 SEQNR type ZDBTAB-LINENUM,
                 DATA type ZDBTAB-RAWDATA,
               END OF T_TAB.
    Select the data.
    SELECT linenum rawdata from ZDBTAB into table T_DATA
         WHERE repid = w_repname
         AND rundate = w_rundate
         ORDER BY linenum.
    Populate calling Internal Table.
    LOOP AT T-DATA.
    APPEND T_DATA to T_TAB.
    ENDLOOP.

    Hi Anuj,
    The unicode flag is active.
    When I run our report and then to try and save the list data a dump is happening at the following point
    LOOP AT T_TAB into L_WA.
    As I say, T_TAB consists of different fields and field types whereas L_WA is CHAR 800. The dump mentions UC_OBJECTS_NOT_CONVERTIBLE
    When I try to load a saved list the dump is happening at the following point
    APPEND T_DATA-RAWDATA to T_TAB.
    T_DATA-RAWDATA is type LCHR and T_TAB consists of different fields and field types.
    In both examples the dumps mention UC_OBJECTS_NOT_CONVERTIBLE
    Regards
    C

  • I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. How do I resolve this issue?

    I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. I did not have this issue in the older version. I use an iMAC running OS10.6.8. How do I resolve this issue?

    Starting with this, you have errors in your CSS code.
    body {
      margin-top: 0px;
      margin-right: 0px;
      margin-bottom: 0px;
      margin-left: 0px;
      color: 151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: EFF5F8;
    body {
      margin:0;
      color: #151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: #EFF5F8;
      font-size: 100%;
    Related links:
    Windows Chrome, why do my fonts look so bad? - Lee Green
    css3 - Bad font rendering Chrome - Stack Overflow
    Nancy O.

  • Help with count and sum query

    Hi I am using oracle 10g. Trying to aggregate duplicate count records. I have so far:
    SELECT 'ST' LEDGER,
    CASE
    WHEN c.Category = 'E' THEN 'Headcount Exempt'
    ELSE 'Headcount Non-Exempt'
    END
    ACCOUNTS,
    CASE WHEN a.COMPANY = 'ZEE' THEN 'OH' ELSE 'NA' END MARKET,
    'MARCH_12' AS PERIOD,
    COUNT (a.empl_id) head_count
    FROM essbase.employee_pubinfo a
    LEFT OUTER JOIN MMS_DIST_COPY b
    ON a.cost_ctr = TRIM (b.bu)
    INNER JOIN MMS_GL_PAY_GROUPS c
    ON a.pay_group = c.group_code
    WHERE a.employee_status IN ('A', 'L', 'P', 'S')
    AND FISCAL_YEAR = '2012'
    AND FISCAL_MONTH = 'MARCH'
    GROUP BY a.company,
    b.district,
    a.cost_ctr,
    c.category,
    a.fiscal_month,
    a.fiscal_year;
    which gives me same rows with different head_counts. I am trying to combine the same rows as a total (one record). Do I use a subquery?

    Hi,
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    user610131 wrote:
    ... which gives me same rows with different head_counts.If they have different head_counts, then the rows are not the same.
    I am trying to combine the same rows as a total (one record). Do I use a subquery?Maybe. It's more likely that you need a different GROUP BY clause, since the GROUP BY clause determines how many rows of output there will be. I'll be able to say more after you post the sample data, results, and explanation.
    You may want both a sub-query and a different GROUP BY clause. For example:
    WITH    got_group_by_columns     AS
         SELECT  a.empl_id
         ,     CASE
                        WHEN  c.category = 'E'
                  THEN  'Headcount Exempt'
                        ELSE  'Headcount Non-Exempt'
                END          AS accounts
         ,       CASE
                        WHEN a.company = 'ZEE'
                        THEN 'OH'
                        ELSE 'NA'
                END          AS market
         FROM              essbase.employee_pubinfo a
         LEFT OUTER JOIN  mms_dist_copy             b  ON   a.cost_ctr     = TRIM (b.bu)
         INNER JOIN       mms_gl_pay_groups        c  ON   a.pay_group      = c.group_code
         WHERE     a.employee_status     IN ('A', 'L', 'P', 'S')
         AND        fiscal_year           = '2012'
         AND        fiscal_month          = 'MARCH'
    SELECT    'ST'               AS ledger
    ,       accounts
    ,       market
    ,       'MARCH_12'          AS period
    ,       COUNT (empl_id)       AS head_count
    FROM       got_group_by_columns
    GROUP BY  accounts
    ,            market
    ;But that's just a wild guess.
    You said you wanted "Help with count and sum". I see the COUNT, but what do you want with SUM? No doubt this will be clearer after you post the sample data and results.
    Edited by: Frank Kulash on Apr 4, 2012 5:31 PM

  • MOVED: [Athlon64] Need Help with X64 and Promise 20378

    This topic has been moved to Operating Systems.
    [Athlon64] Need Help with X64 and Promise 20378

    I'm moving this the the Administration Forum.  It seems more apporpiate there.

Maybe you are looking for