How to display " ****" in a TextField?

Hello,
How do I make a TextField to behave like a password field. i.e when the user enters some text into it the textfield, the text should be displayed in the form of " ****** ". Can any one help me by giving some source code?
Thanks
[email protected]

Kenny's idea is the easiest and best. If you have a reason that you don't want to do this, subclass JTextField, add a KeyAdapter, and whenever you get a key event of a character being entered, you can edit the contents of the text field using it's set methods.

Similar Messages

  • How to display values in textfields obtained from another class

    Hi,
    Why, oh why, doesn't this work:
    When I select a row in my tableClass (consist of a JTable) I want to display these values (strings) in my TextFieldGUI class (consist of just JTextFields). My code looks like this:
    TableClass:
    public void mouseClicked(java.awt.event.MouseEvent mouseEvent) {
        textFieldGUI = new TextFieldGUI() ;//reference to my textfield class
        gui = new mainGUI() ; //reference to my GUI class
        int tabbedIndex = gui.getSelectedIndex() ;
        int col = tableModel.getColumnCount() ;
        Vector string = new Vector() ;
        String empty = "" ;
        for(int index = 0; index < col ; index++){
            if(table.getValueAt(row, index) == null)
                string.addElement(empty) ;
            else
                string.addElement(table.getValueAt(row, index).toString()) ;
        if(tabbedIndex == 0){       
            System.out.println(string) ; //works fine
            textFieldGUI.setTextFieldValues(string) ;
    }TextField class:
    public void setTextFieldValues(Vector s){
        Vector string = new Vector() ;
        string = s ;
        System.out.println("TextFieldVector: " + string) ; //works fine as well
        String name = "" ;
        String dob = "" ;
        String web = "" ;
        name = string.elementAt(0).toString() ;       
        dob = string.elementAt(1).toString() ;       
        web = string.elementAt(2).toString() ;
        System.out.println("NAME: " + name +
                           ", BIRTH: " + dob +
                           ", WEB: " + web) ; //values are correctly printed
        txtName.setText(name) ; //writes nothing (empty)
        txtDob.setText(dob) ; //writes nothing (empty)
        txtWeb.setText(web) ; //writes nothing (empty)
    }Anyone got a hint on how I should svolve this one?
    thanks
    gmtongar

    Hi
    my problem is, for each job_id there is many users. Oh that's something completlty different...
    I Strongly Recommand to_
    1.*create 2 tables Jobs & users*
    2.*create a relation between them* 1 to many to get for each job more than a user that's the way that Must be -- execuse me the bad design of the db pulled u into this trap -
    3.then u can deal with it normally no need to a sample code but just a form with Jobs as  (Master) and Users as (detail) with a relation and with a simple query u can display each job_id is for many users.
    no null values no commas r needed.
    Hope this helps...
    Regards,
    Amatu Allah.

  • How to display names in textfield using ajax+flex

    HI, i want to display some names in a textfield like type
    forward that is if the user enter " a " in the textfield, the names
    starting with " a" has to display in drop-down list. how we can do
    this in flex?. please help me it is very critical for me.
    -- ss

    Hi Kiran,
    If you want to set the title only once in the application and if it remains same for rest of your app...you can simpley put pageTitle="Some Title" in your
    main Application Root tag..
    <mx:Application pageTitle="Some Title" />
    But if you want to change the title of your application frequently as you navigate through various screens in your app..then you can put a public function which chnages the title as I posted in my previous code and call that function from various screens by calling that public function using Application.application.setBrowserTitle(passmesage);
    Thanks,
    Bhasker Chari

  • How to display a JClient LOV with a empty textfield at startup?

    Hi,
    we develop an application using JClient to connect a swing client to a bc4j middletier. In one special form consisting of three LOVs (3x label,textfield,button ->LovBinding) we want two of the LOVs to display a empty textfield when the form is opened the first time. The standard LovBinding shows the first row of the corresponding viewobject initially, pretending that the user already has chosen a value. Is there an (easy) way to override this behaviour?
    And what to do in the following scenario:
    The user chooses a value from a LOV, that value is displayed in the textfield. Now the user changes his mind and wants to be the LOV-textfield empty again. Currently there's no solution for this.
    We can think of several workarounds, but none of them seems to be a good solution...
    Any ideas for that?
    Thanks,
    Torsten

    Sorry, I try to be a bit more precise:
    It's not clear whether you want the "Lov dialog" to show no selection on startup or the form that uses the LOV to display nothing in the "textField" on >startup?
    Could you elaborate on this? A simple scenario may help. It's NOT the Lov dialog that should show no selection on startup. I wanted the textfield to display nothing, until I press the button which invokes the Lov dialog. The lov dialog allows me to select something and after pressing ok in the lov dialog I see me selection in the textfield.
    The scenario is the following:
    Imagine a form showing a combobox which allows the select a special type of value, does not matter. Additionally you have a lov combination consisting of a textfield and a button. The textfield should display a lookup value which can be selected via a lov dialog, which is invoked by the button.
    And you have a "calculate" button, which has no binding. This "calculate" button runs some kind of code that takes the value of the combobox and the value of the lov's textfield (if a value was chosen) and does something.
    The problem is the "if a value was chosen". I like to see an empty lov's textfield to indicate that nothing has been chosen solong. If I press the "calculate" button after choosing a value in the combobox and having nothing in the lov's textfield, the lov's textfield should be ignored by the following method.
    Again, if you are using JComboBox/JListBox for Lov, then the default windows key to clean selection is Ctrl+(Mouseclick on the selected row)
    If you want to display/allow no selection in the JULovButtonBinding's LovDialog, you pretty much have to do this by providing a custom LovPanel instead of >using the default one and implement the "no-selection" logic there.
    And in case of no-selection, set the currency on the LovRSI to no row (call reset()). Are there more shortcuts like Ctrl+MouseClick in JClient?
    Ok, what I intended was the following:
    We have the scenario described above. The user selects a combobox value, then opens the lov dialog by pressing the button, chooses some value and presses ok in the lov dialog. Now he sees his selection in the lov's textfield. But: he changes his mind and thinks it would be better to reset the lov's textfield to the empty state, before pressing the "calculate" button. Because there is no kind of reset for the lov's textfield, the user has no chance to do what he wants.
    Question is, can you think of an elegant way to solve this problem?

  • How to display database items

    can anyone tell me how to display the selected contents of
    the database by using a variable from my form field(like text box
    )

    Hello Guys!
    Sorry forever to get back. Going to throw this up here quick
    so I dont time out, but if you need further help post back and I
    will help with specific questions.
    Using the City, State example. This operation is two fold.
    (a) the search page, and (b) the results page.
    (a) On your search page you would have two fields. City and
    State. Make sure your table that holds these fields are containted
    within a form tag. (Insert > Form > Form). Also make sure
    your textfields have names. You can click on the textfield to
    highlight in design view and change the name from 'textfield' and
    'textfield1' to 'city' and 'state'..
    Highlight the form tag and in the properties panel where it
    says "action" insert the URL/file of your results page. This is the
    page that is actually going to display the information, then save
    your work.
    (b) Open up your results page, and in the bindings panel
    click the "+" then select query. In the 'simple' window name your
    recordset (example: rsStores) select your connection, then select
    the table you desire to display results from. From this window you
    can also choose a field to use as an order by. Do not use the
    filter!
    With this done and 'without' saving yet, click on the
    "advanced" tab. You should now see and a simple statement in the
    window that looks something like:
    SELECT *
    FROM Stores (The name 'Stores' will actually be replaced with
    your table name)
    Below the statement you will see 'parameters' with a + and -.
    Hit the plus to add a parameter. For name use varState, for Type
    use text, for Value use Request("State") and for default value use
    zero. Replicate the process for varCity using Request("City") for
    the value. (The requests are the same names as the names you used
    to name your fields in the search form). Now go up to the original
    statement and edit it to look like this:
    SELECT *
    FROM Stores WHERE yourfieldname = varState AND WHERE
    yourfieldname = varCity
    Replace 'yourfieldname' with the actual field name holding
    the values. Keep EVERYTHING case sensitive. Testing in design view
    will not work because there are no values yet passed. So click ok,
    save the page and upload them to server. Test by going to the
    search page and submitting the search form.
    Hope that helps..!!

  • How to display the context of a Jbutton to a JTextField

    Hi,
    There is a key pad (1-9) on a GUI where each key is represented by a JButton. There is also a data entry filed, implemented using JTextField.
    However, when the user enters the ID using the key pad buttons each number should be displayed in the data entry field correspondingly (similar to calculator). I have already written the handlers for each button just don't know how to display the contexts in the text field, e.g. if the button 1 is pressed the 1 should be appeared in the text filed immediately. Anyone can help me to get this done?
    Thanks in advance,
    RMP

    Reza_mp wrote:
    .. Anyone can help me to get this done?In the actioPerformed method, call textField.setText( textField.getText() + "new data" )

  • How to display elapsed/current time of a song in Actionscript.

    Hi I have a question on how I can make my code display a total time for a song from a media player I created with Actionscript 3.0, using XML to load the song track.
    This is my current function which I have done and I am unsure on what the problem is that is not allowing the elapsed time to display in a textfield on my stage.
    stage.addEventListener(Event.ENTER_FRAME, timeElapsed);
    function timeElapsed(e:Event):void
                        var minutesCurr:Number = Math.floor((my_channel.position /1000) /60);
                        var secondsCurr = Math.floor((my_channel.position /1000) % 60);
            if (secondsCurr < 10)
                secondsCurr = "0" + secondsCurr;
            var minutesTot:Number = Math.floor((my_sound.length /1000) /60);
            var secondsTot = Math.floor((my_sound.length /1000) % 60);
            if (secondsTot < 10)
                secondsTot = "0" + secondsTot;
            completeText_txt.text = minutesCurr + ":" + secondsCurr + "/" + minutesTot + ":" + secondsTot;
    I tried adding to the stage and I am getting a null object reference.
    Thanks Casey

    The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
    - is declared but not instantiated
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
    If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

  • How to display integer in the JtextField?

    Dear All
    I need your guidance and your advise on the following.
    I am creating an applet and I don't know how to display the integer which I have.
    Basically, i need to disply the following into a JtextField.
    int d1 = (int) (Math.random() * 6) + 1;
    int d2 = (int) (Math.random() * 6) + 1;
    I have two textfield which i name them textField1 and textField2.
    But how can I generate my random value obtained from the above and display it inside the text field?

    SummerCool wrote:
    Dear All
    I need your guidance and your advise on the following.
    I am creating an applet and I don't know how to display the integer which I have.
    Basically, i need to disply the following into a JtextField.
    int d1 = (int) (Math.random() * 6) + 1;
    int d2 = (int) (Math.random() * 6) + 1;
    I have two textfield which i name them textField1 and textField2.
    But how can I generate my random value obtained from the above and display it inside the text field?
    textField1 .setText(""+d1);
    textField2 .setText(""+d2);

  • Forms Central: How can I overlay a textfield over an imported picture?

    How can I overlay a textfield over an imported picture?

    Apologies, been trying all afternoon and then a couple of minutes after posting, I figured it out. Using a property node for the Scenemesh reference, I set the property TextureGenMode to Spherical and it appears to now display the texture on the mesh.

  • Idoc-xi-file scenario.  how to display file in html format

    I am not sure whether this is a valid question.........but want to confirm as it was asked by somebody
    In idoc-xi-file scenario.......  how to display file in html format ??
    Thanks in advance
    Kumar

    Hi Vijayakumar,
    Thanks for your reply !! You mean to say I got to use XSLT mapping and also .htm and .html extension together to produce the html file ?? or it is sufficient to use any one of them to produce the html file ??
    Regards
    Kumar

  • In sap scripts how to display the driver program

    Hi,
        I Want to know the sap scripts How to display the output to driver program

    Hi,
    Go to NACE Transaction.
    Select application for ex: if sales V1.
    Click on output types.
    Select the output type for ex : BA00
    Double click on Processing routines.
    There you can find the Driver Program name and Script/smart form name.
    Reward if useful.
    Thanks,
    Raju

  • How to display username in RTF BI publisher report?

    Please advice how to display username in RTF BI publisher report?
    May be this can be done via hidden parameter of BIP report which default value will be set up with macro like {$username$} (or smth like)?
    Thanks in advance!

    Thanks. That worked. I was trying to get it as part of a multi-table query, aliasing dual. But that doesn't work in SQL Plus either so I guess I can't do that.
    I was trying
    select o.*, d.:xdo_user_name
    from oblix_audit_events o, dual d
    Before that I was trying
    select
    :xdo_user_name as USER_ID,
    :xdo_user_roles as USER_ROLES,
    :xdo_user_report_oracle_lang as REPORT_LANGUAGE,
    :xdo_user_report_locale as REPORT_LOCALE,
    :xdo_user_ui_oracle_lang as UI_LANGUAGE,
    :xdo_user_ui_locale as UI_LOCALE
    from dual
    but I must have fat fingered something because that works now too. Thanks.
    So if I need to do this in it's own query and I'm using an RTF template, how do I make that work?
    If I have to do it with it's own

  • How to display and edit the clob datatype column from Data base

    Hi ,
    I have a requiremsnt as below
    1) One Table having some columns with CLOB data type along with varchar columns
    2) need to display the data from DB in search screen and need to be edited clob column in edit screen
    I created EO and VO with that Table and how to display the clob value into the input box for editing.
    using Jdev 11.1.1.5.0 version.
    Can you please help on this.
    THanks & REgards,
    Madhu

    Hi,
    If you are using an inputText component to display a Character Large Object (CLOB), then you will need to create a custom converter that converts the CLOB to a String.
    For custom convertor refer below link,
    http://docs.oracle.com/cd/E2438201/web.1112/e16181/af_validate.htm#BABGIEDH
    (section7.4 Creating Custom JSF Converters)
    Thanks,
    Santosh M E

  • How to display URL images and URL link (html) from Smartforms?

    Hi Gurus,
    I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
    My code is like this..
    <--- Start Code.
    FORM call_smartforms.
      DATA : lv_subject TYPE so_obj_des,
             lc_true(1) VALUE 'X',
             lw_control_parameters TYPE ssfctrlop,
             lw_output_options TYPE ssfcompop,
             lc_graphics(8) VALUE 'GRAPHICS',
             lw_xsfparam_line TYPE ssfxsfp,
             lc_extract(7) VALUE 'EXTRACT',
             lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
             lc_mygraphics(11) VALUE 'mygraphics/',
             lc_content_id(10) VALUE 'CONTENT-ID',
             lc_enable(6) VALUE 'ENABLE',
             lw_job_output_info TYPE ssfcrescl,
             lw_html_data TYPE trfresult,
             lw_graphics TYPE ssf_xsf_gr,
             lt_graphics TYPE tsf_xsf_gr,
             lv_html_xstr TYPE xstring,
             lw_html_raw LIKE LINE OF lw_html_data-content,
             lv_incode TYPE tcp00-cpcodepage VALUE '4110',
             lv_html_str TYPE string,
             lv_html_len TYPE i,
             lc_utf8(5) VALUE 'utf-8',
             lc_latin1(6) VALUE 'latin1',
             lv_offset TYPE i,
             lv_length TYPE i,
             lv_diff TYPE i,
             lt_soli TYPE soli_tab,
             lw_soli TYPE soli,
             lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
             lv_name TYPE mime_text VALUE 'sapwebform.htm',
             lv_xstr TYPE xstring,
             lw_raw TYPE bapiconten,
             lt_solix TYPE solix_tab,
             lw_solix TYPE solix,
             lv_filename TYPE string,
             lv_content_id TYPE string,
             lv_content_type TYPE w3conttype,
             lv_obj_len TYPE so_obj_len,
             lv_bmp TYPE so_fileext VALUE 'BMP',
             lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
             lc_doc_bcs TYPE REF TO cl_document_bcs,
             lc_bcs TYPE REF TO cl_bcs,
             lc_send_exception TYPE REF TO cx_root,
             lw_adsmtp TYPE lty_adsmtp,
             lv_mail_address TYPE ad_smtpadr,
             lc_recipient TYPE REF TO if_recipient_bcs,
             lc_send_request TYPE REF TO cl_bcs,
             lv_sent_to_all TYPE os_boolean.
      DATA : v_language TYPE sflangu VALUE 'E',
             v_e_devtype TYPE rspoptype.
      v_form_name = 'ZTEST_EMAIL'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = v_form_name
        IMPORTING
          fm_name            = v_namef
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    starting here. ***
    Set title for the output
      lv_subject = 'Smartforms.'.
    Set control parameters to "no dialog"
      lw_control_parameters-no_dialog = lc_true.
    IF lw_service_subject-code = lc_fm1.
    *--- To get output device type
      CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          i_language    = v_language
          i_application = 'SAPDEFAULT'
        IMPORTING
          e_devtype     = v_e_devtype.
      lw_output_options-tdprinter = v_e_devtype.
      lw_control_parameters-getotf = 'X'.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    Set output options
      lw_output_options-xsf        = lc_true.
      lw_output_options-xsfcmode   = lc_true.
      lw_output_options-xsfoutmode = 'A'.
      lw_output_options-xsfoutdev  = space.
      lw_output_options-xsfformat  = lc_true.
      lw_xsfparam_line-name  = lc_graphics.
      lw_xsfparam_line-value = lc_extract.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_graphics_directory.
      lw_xsfparam_line-value = lc_mygraphics.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_content_id.
      lw_xsfparam_line-value = lc_enable.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
    Get the smartform content
      CALL FUNCTION v_namef
        EXPORTING
          control_parameters   = lw_control_parameters
          output_options       = lw_output_options
    *pass other application specific parameters (eg order number, items ).
      IMPORTING
          job_output_info    = lw_job_output_info
      TABLES
          tt_tabh              = tt_tabh
          tt_tabb              = tt_tabb
          tt_tabf              = tt_tabf
      EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
      lw_html_data  = lw_job_output_info-xmloutput-trfresult.
      lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
      CLEAR lv_html_xstr.
      LOOP AT lw_html_data-content INTO lw_html_raw.
        CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
      ENDLOOP.
      lv_html_xstr = lv_html_xstr(lw_html_data-length).
      CALL FUNCTION 'SCP_TRANSLATE_CHARS'
        EXPORTING
          inbuff       = lv_html_xstr
          incode       = lv_incode
          csubst       = lc_true
          substc_space = lc_true
        IMPORTING
          outbuff      = lv_html_str
          outused      = lv_html_len
        EXCEPTIONS
          OTHERS       = 1.
    *HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
    *EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
      REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
    CALL METHOD html_control - >load_mime_object
       EXPORTING
         object_id  = 'ZWN'
         object_url = 'ZWN.GIF'
       EXCEPTIONS
         OTHERS     = 1.
      REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
    REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
       break mhusin.
      lv_html_len = STRLEN( lv_html_str ).
      lv_offset = 0.
      lv_length = 255.
      WHILE lv_offset < lv_html_len.
        lv_diff = lv_html_len - lv_offset.
        IF lv_diff > lv_length.
          lw_soli-line = lv_html_str+lv_offset(lv_length).
        ELSE.
          lw_soli-line = lv_html_str+lv_offset(lv_diff).
        ENDIF.
        APPEND lw_soli TO lt_soli.
        ADD lv_length TO lv_offset.
      ENDWHILE.
      CREATE OBJECT lc_mime_helper.
      CALL METHOD lc_mime_helper->set_main_html
        EXPORTING
          content     = lt_soli
          filename    = lv_name
          description = lv_subject.
      LOOP AT lt_graphics INTO lw_graphics.
        CLEAR lv_xstr.
        LOOP AT lw_graphics-content INTO lw_raw.
          CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
        ENDLOOP.
        lv_xstr = lv_xstr(lw_graphics-length).
        lv_offset = 0.
        lv_length = 255.
        CLEAR lt_solix[].
        WHILE lv_offset < lw_graphics-length.
          lv_diff = lw_graphics-length - lv_offset.
          IF lv_diff > lv_length.
            lw_solix-line = lv_xstr+lv_offset(lv_length).
          ELSE.
            lw_solix-line = lv_xstr+lv_offset(lv_diff).
          ENDIF.
          APPEND lw_solix TO lt_solix.
          ADD lv_length TO lv_offset.
        ENDWHILE.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
        lv_content_type = lw_graphics-httptype.
        lv_obj_len      = lw_graphics-length.
    *Add images to the email
        CALL METHOD lc_mime_helper->add_binary_part
          EXPORTING
            content      = lt_solix
            filename     = lv_filename
            extension    = lv_bmp
            description  = lv_description
            content_type = lv_content_type
            length       = lv_obj_len
            content_id   = lv_content_id.
      ENDLOOP.
      TRY.
          lv_subject = lv_subject.
          lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
                   i_subject          = lv_subject
                   i_multirel_service = lc_mime_helper ).
        CATCH cx_document_bcs INTO lc_send_exception.
        CATCH cx_bcom_mime INTO lc_send_exception.
        CATCH cx_gbt_mime INTO lc_send_exception.
      ENDTRY.
    Create send request
      TRY.
          lc_bcs = cl_bcs=>create_persistent( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->set_document( i_document = lc_doc_bcs ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Set-up email receiver
      lv_mail_address = '[email protected]'.
    TRANSLATE lv_mail_address TO UPPER CASE.
      TRY.
          lc_recipient = cl_cam_address_bcs=>create_internet_address(
              i_address_string = lv_mail_address ).
        CATCH cx_address_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->add_recipient( i_recipient = lc_recipient ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Send smartforms as HTML email
      TRY.
          lc_bcs->send( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      COMMIT WORK.
      WRITE:/ 'Mail sent'.
    ENDFORM.                    "call_smartforms
    End Code --->
    Thanks and Regards.

    1- put your images in a directory under the web app directory. Example: app/images/
    2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
    3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead

  • How to Display Excel Report in Client machine  in Forms11g

    Hi All,
    we are running database in Linux server and separate Linux Application Server , But my question is how to display the data to Excel Report in the Client machine
    in Forms11g applications.
    Plesase suggest any method.
    Regards
    Venkatesulu Gunisetty

    You should use webutils.
    For proper answer, place ur request here in oracle Forms Thread,
    Forms

Maybe you are looking for

  • Setting access for one user

    Hi, Our client has ACS server and implemented AAA fro logging into switches and routers through ACS which is being cofigured RADIUS . They are telnet into rotuers and switches from any user but they are want to setting access from only one user . Can

  • Events randomly moving and being deleted

    Hi, We run Sun Calendar Server 2005Q4 and are having many "reported" issues of the server randomly moving or deleting user events. Some seem to be user error but I am getting enough reports now to be suspect. We also use the outlook connector 7.1.238

  • [Adobe premiere pro CS4] Getting started: Sequence settings & more

    Hi people, I am new here and I am from holland so excuse me if I make some grammar mistakes I have been trying to edit movies, for fun and for my mother, but everytime I bounce into an numerous of problems. So I have listed some questions I or proble

  • Can C++ Client use Coherence*Extend on AIX?

    Hi Experts, My application is a C++ client, I want to connect to Coherence Cluster using Coherence*Extend on AIX, I checked coherence document, I found that Coherence*Extend C++ support pure C++. But I couldn't find the download URL of Coherence*Exte

  • Asking to save any transported objects under new request in QA

    Hello Experts, I did transport some infopackages and Process Chains from Dev to QA. 1. When I try to click 'Activate and Schedule' button to activate and schedule a process chain, it's asking to save it under new request which is QA request. Is it no