Calling HTML file from servlet and vice versa...

i have got few questions..
1- if a site is made in HTML then what should be used to put user login functionality in it, servlets or jsp or other option(specify)?
2- im trying to do with servlets, so when im calling doPost method from HTML page and sending data, everything working fine but because of this the page refreshes and the HTML coding get lost, so how can i stop that from happening if possible, like showing the same page with messege = "Logged in".
3- how can i call an HTML page from servlet?
4- how can i send data from servlet to HTML page?

that i m aware of, but when a servlet is called then the page will refresh n it will display the things that you have mentioned in the servlet file n not the things that u have mentioned in HTML file, n the page will be blank if u have not mentioned any HTML coding in servlet file.
so i need to knw how to call back that prev HTML file so that the things i want to display can be displayed, i knw the same can be done by adding the HTML code in servlet file but i would like to know if there is any way to call back the HTML file.

Similar Messages

  • Call SAPGUI transaction from BSP and vice versa

    Hi all
    There was some discussion about this topics before. Maybe someone can just point me to the thread answering this issue:
    1. I need to call a SAPGUI transaction from a BSP application: I want to use SAPGUI, not ITS/webgui, I need single sign on, the SAPGUI transaction could possible run in another SAP system then the BSP.
    As far as I understand I need to create a *.sap file with the correct parameters for sapshortcut. But how does single sign on work? Can I create a logon ticket in my BSP and forward it to sapshortcut?
    2. I need to call a BSP application from a SAPGUI transaction or report, with single sign on but in a MS IE window, not inside a SAPGUI HTML control
    Can I create a logon ticket in my coding an append it to the start url for the BSP?
    any hints?
    thanks
    Michael

    hi Michael,
    For your second issue,to call a BSP application from a SAP GUI in MS IE explorer,
    you can use the Function Module CALL_BROWSER in your report,like
    data url(200) type c.
    url = 'http://<server>.<domain><port>:'.
    concatenate url '/sap/bc/bsp/sap/' into url.
    concatenate url 'znw_poc2_1_prtl/dts.htm' into url.
    concatenate url '?sap-user=<userid>' into url.
    concatenate url '&sap-password=<passowrd>' into url.
    CALL FUNCTION 'CALL_BROWSER'
      EXPORTING
        URL                          = url
    *    WINDOW_NAME                  = ' '
    *    NEW_WINDOW                   = ' '
    *    BROWSER_TYPE                 =
    *    CONTEXTSTRING                =
    *  EXCEPTIONS
    *    FRONTEND_NOT_SUPPORTED       = 1
    *    FRONTEND_ERROR               = 2
    *    PROG_NOT_FOUND               = 3
    *    NO_BATCH                     = 4
    *    UNSPECIFIED_ERROR            = 5
    *    OTHERS                       = 6
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    For this to work you have to enable SSO on your server.
    you can check if it is enabled or not by runnning the BSP application "SYSTEM" ,page "SSO2TEST.htm" .
    Follow the instructions on the page for testing.
    This may not be a great way as your userid password are passed via URL,still it works .
    Hope this helps,
    Regards,
    Siddhartha

  • How to call a Applet from a servlet and vice versa...?

    Hi all
    Can anyone help me how to call a applet from a servlet and vice versa. When the applet is called it should contact the database (oracle8i) and get the data. When i submit the applet form the data in the applet should be saved in the database.
    Thanks in advance
    Kamalakannan

    Sweep is correct about requestDispatcher being another approach for inter-servlet delegation; the only issue that i recall with this approach is that it defaults the method of the destination servlet to the one it was called from...for example, calling servlet2 from within servlet1.post() resulted in the dispatcher attempting to utilize servlet2.post() - i believe that i searched for a parameterize solution to no avail :( (ended up handling the request by placing a "fake" doPost() in servlet2 that simply called servlet2.doGet())
    however, if your application is functioning correctly on your pc/webserver then the problem may be external to servlet communication (e.g. client webserver's ports not configured or blocked, missing runtime classes, etc.)
    my suggestion would be to set aside the programmatic concerns for the moment - what is the response if you open a browser on a client's machine and access the URL in question (i.e. http://clientserver:port/stefanoServlet)? If it will not respond to access in this manner then it certainly won't when your application calls for it.
    It's possible that there is a coding error but, given the info supplied, i'd start examining the environment, first. Let us know if you have any luck with the test i recommended or not (please provide abundant detail). Or, if you've found the solution then you may want to post back with a quick blub so the next person knows how to escape the trap.
    D

  • Can we invoke a asynchronous BPEL process from synchronous and vice versa

    Hi,
    Can we invoke a BPEL asynchronous process from synchronous and vice versa. If so how to perform that.
    thanks,
    Vijay

    Yes you can
    sync -- calling --> Asyncc
    Async -- calling --> syncc
    Perfomance is no issue, depending on your requirements. Not the Syncprocesses are short-running processes, these will time-out after 30 seconds, if no answer is coming from the async process.
    Marc
    http://orasoa.blogspot.com

  • Creating INDD file from INX and visa versa

    Hi
    My task is to create a inx file from indd file and that was easy. I just use
    var myDocument = app.open(File(sourceFileName));
    //save INX
    myDocument.exportFile(ExportFormat.INDESIGN_INTERCHANGE, File(destinationFilePath+".inx"));
    but my problem is that I now have a more that one INDD file and one INDB file and client ask me to make INX file from it.
    (I;m just a developer and I never use InDesigner application at all so is it possible? and how?
    and than I have to form INX file create INDD file , text file and all Linking files in Links folder.
    I found a
    var myDocument = app.open(File(sourceFileName));
    myDocument.packageForPrint(myLinkFolder, false, true, false, true, true, true, "", false);
    but problem is that I got only INDD file and for some reason the newly create INND file has a name undifined_1.indd (I found that this is a file name that script foud from INX file ?!?) LInks file is empty.
    Is it possible that he create package and put all eps file there !?!

    I'm a designer not a developer, so I'm not sure I'll be helping but<br />the normal behavior when opening an INX file is creates an untitled<br />.indd file.  This is is typical.  I'm not sure how you would<br />automatically rename back to what it was previously. Have you tried<br />packaging the indd file BEFORE you make the INX file?  Also InDesign<br />has the ability to embed the images in the file or link them to<br />external files. You might check to see if that is done, by checking<br />the links pallet.  Unfortunately I'm not following what you're<br />starting goal and end goal is.  I'll be helpless with the programming<br />end, but any questions regarding how InDesign would typically do it,<br />I'm happy to help with.<br /><br />Rosie<br />Trying to learn scripting by osmosis (tucks her laptop under her pillow)<br /><br />On Wed, Feb 18, 2009 at 4:31 AM, lpastor74 <[email protected]> wrote:<br />> A new discussion was started by lpastor74 in<br /><br />> but problem is that I got only INDD file and for some reason the newly<br />> create INND file has a name undifined_1.indd (I found that this is a file<br />> name that script foud from INX file ?!?) LInks file is empty.<br />><br />> Is it possible that he create package and put all eps file there !?!<br />><br />> ________________________________<br />> View/reply at Creating INDD file from INX and visa versa<br />> Replies by email are OK.<br />> Use the unsubscribe form to cancel your email subscription.<br />><br />>

  • Invoking Forms from JSP and Vice versa

    Hi,
    I am in to a requirement like invoking a screen developed using Oracle Forms 6i from JSP and vice versa.
    1. Could you please anybody help to get the documents to be refered to get more idea on this?
    2. Is it possible only by Oracle ADF?
    Please help me on this.
    Thanks & Regards
    M Thiyagarajan

    Hi All,
    Thanks a lot for the clarifications.
    Actually, integration should happen between forms and JSP. Parameters need to be passed to and forth. I will go through the specified link.
    Also could you please clarify me where exactly, ADF comes into picture? or what are all the advantages when we go for ADF?
    Thanks & Regards
    M Thiyagarajan

  • How to call HTML file from forms 6i

    Please can any one told me how i can call HTML file placed in my computer in specific path from forms 6i
    i tried web.show_Document('file path','_blank');
    but it doesn't work with me i don't know why and it doesn't give me any error
    thanks

    thanks you for your reply
    but it still not working with me
    i tried this
    host('iexplore C:\PPF\UserManual\index.htm');
    is it true, any advice

  • Call batch file from Servlet.

    Hi all,
    can anybody tell me how to call or run batch file
    from Servlet.
    Please do hurry.

    class RuntimeClass
    public static void main(String str[]){
    Runtime JVM = Runtime.getRuntime();
              try
                   JVM.exec("abc.bat");
              catch(Exception e)
                   System.out.println("hello");
    Hi,
    i hope the above program will help.

  • How to send multiple objects from appleto to servlet and vice versa

    how can i send multiple objects(ArrayLists and String) from servlet to applet and applet to servlet?

    Use an HTTPUrlConnection from the Applet to the Servlet to send data to the server, or request information from the servlet. To actually transfer the objects you will have to use a serialized version of the objects, almost always by wrapping the streams generated via the UrlConnection in ObjectOutputStream and ObjectInputStreams.

  • Calling HTML file from Forms6i

    Hi,
    I am wanting to invoke a HTML file(residing in the hard disk)from Forms6i.Tried to use web.show_document,gives an forms error as follows
    Frm-92020: Invalid URL C:\....sent to browser with target _self
    Full Details: unknown protocol :c
    Can anyone tell me what the problem is here and how do i rectify this prob?
    Thanks,
    Aparna.
    null

    Hi Aparna
    If ur form is opened thro' a web browser, then ur file should be in a directory path that has a virtual directory mapping in the web server.
    For example, if you want to open a file, say C:\hml\abc.htm, then this path c:\html should have a valid virtual path, say /html/ defined on the web server.
    Then u can use the web.show_document built-in like
    WEB.SHOW_DOCUMENT('http://<hostname>:<port>/html/abc.htm','_blank');
    This will +vely work
    Regards
    APK

  • Calling html file from Forms 10g

    Hi,
    I am working in forms 10.1.2.0.2 in the unix server. I have a push button in which I'm creating a html file as under:
    MYFILE := TEXT_IO.FOPEN('/tmp/ab.html','W');
    When I click the push button, the above file gets created in the tmp directory. But it does not open. Could someone please let me know how to get it to view from my forms. I am using the following command but its not working:
    WEB.SHOW_DOCUMENT('http://formsserver:port/test_virtual_dir/ab.html','_BLANK');
    Thanks

    hmm....
    I assume you have 10g AS installed in Unix.
    Go to $ORACLE_HOME/forms/server
    edit the forms.conf with your virtual directory values similar to
    AliasMatch ^/forms/java/(..*) "/opt/oracle/product/10gas/forms/java/$1
    And to test without any virtual configuration , I would try writing the html file to the folder "/opt/oracle/product/10gas/forms/java" and use
    http://www.Alexyscorp.com/forms/java/myfile.htm
    Also note that u might need to add the hostname as a trusted site otherwise new version of IE wont allow to open.
    Rajesh ALex

  • Exchange logic files with cubase and vice versa?

    is it possible?
    thx
    pieter

    Eriksimon wrote:
    Both can export MIDI as SMF (Standard Midi File) and import it.
    PCM (= wav, aiff, sdII) Audio files made by either can be imported by either.
    You cannot open project files from either in either.
    For details on Logics' side, see chapter 29 (p. 625) of the LP 8 User Manual.
    regards, Erik.
    ps, I hope Pancenter can chime in. He uses both.
    Two possible suggestions.
    Cubase (full version) can export OMF files that Logic can read as long as there aren't too many regions. This will let you import audio in one step then import the MIDI file into the same project.
    The other method for dealing with audio is to use Broadcast WAV files on both platforms as they are time stamped and will import to the correct position.
    That and standard MIDI files are about the best you can do.
    pancenter-

  • Import from CSV and vice versa

    Please help me to find how a CSV file can be imported to Oracle 10g DB using ODP.NET provide in VB.NET.I saw an option in OLEDB that the Datasource is given as textfile to be read and OLEDBDataadaptor is reading data from textfile and updating to the DataSet.Is there any such option in ODP.NET??Please help me.
    Thanks in Advance
    Saritha

    I would suggest:
    1) Using the StreamReader to consume each line of the csv
    2) Then use the the "Split()" string method on each line returned as a string to parse the values into an array
    3) Load each array value appropriately into a stored procedure/function and execute through a OracleCommand object
    4) Loop through each line returned in the StreamReader to do the same (until EOF)
    5) Wrap the whole thing in a OracleTransaction object and perform Rollback()/Commit() as appropriate considering the return values of the executed Procedures/Functions (break loop and Rollback() on error thrown).
    It's not one stop shopping but I don't think that you can just cram a text file into the ODP and expect it to try and make an import (I could be wrong).

  • Access linux file system from windows and vice versa

    Friends
    Do anyone of you have any idea about how to access linux file system from windows using java. Thanx in advance.
    Regards
    Rakesh

    "Accessing" is vague. Do you want to read? write? Both?
    Here are two ways I'll mention.
    1. Write an ftp client for the "cleint" computer. I beleive java has some framework functions for doing this.
    2. Write java RMI client and server to open, read or write, and close a file. Pass a byte array parameter containing each block of data.

  • Can't access Subscriber services from Publisher and Vice Versa

    Hi ,
    I am using CUCM 8.5.1(10000-26)
    when connected to Publisher and go to Serviceability then service activation , Feature services or Network services of the subscriber , an error appears telling can't connect to remote node .
    same from Subscriber side .
    Database Replication is in "good" state
    onconfig.ccm reports an error "The onconfig.ccm file on x.x.x.x does not match the publisher."
    Any Advise ?

    Dear
    please cli command to check the relication , you  must check that each node should have a replication status of two (2).
    use this command   (Utils dpreplication runtimestate) and please check the output.I do not see this eror before , but if you did not get a solution , ithink t open a TAC with Cisco. I think the onconfig.ccm file on x.x.x.x does not match the publisher (it is a problemm in linux) , i think the  /opt/informix/etc directory.
    Thank you
    please rate if this help

Maybe you are looking for

  • Using a UK iPhone in New Zealand

    I've had the phone unlocked by Vodafone but I keep being told different things about what I then need to - has anyone actually done this who can confirm what you need to do? Do you need to restore the software when you put the new SIM in? If so did y

  • Different ways to compare the java objects

    Hi, I want to compare rather search one object in collection of thousands of objects. And now i am using the method which uses the unique id's of objects to compare. still that is too much time consuming operation in java. so i want the better way to

  • 57F4 Challan in MIGO

    Dear All, When I refer the subcontracting challan in MIGO the system tends to accept all the challans which are not relavent to the purchase order. Kindly help me if any setting is to be made to validate the P.O and the challan number. Help in any fo

  • Ship to Party for sold to party

    Is there any t-code or report so see all the Ship to Parties for a Sold to Party.

  • App for Epson V750 Pro

    I recently installed Mavericks OSx on my iMac; I am now unable to use my Epson750 scanner and apparently need a new app. I have to do this urgently. I don't expect to have to pay for it either. Also:  having previously setup connection to my HPdeskto