Storing Server side Data on CLient machine

Hi
My Problem is:
I have GUI application in which some data is passed from a jsp to the servlet which after processing sends the data back to the jsp for display.
Now i want that data to be stored on the client side as a file and not display it.
It is excatly the opposite of <input type="file"> which uploads a client file to the server.
I want to do the reverse. How can i go about it.

Do a search on the forums by entering "Servlet File Download" in the little search box on the left hand side of this page and click the >> button.
Note that this is going to display a file download dialog box, I do not think it's possible to avoid this (i.e. the system's not just going to save there without asking the client, that would be a security problem, don't you think?)

Similar Messages

  • Implementation Options: Server Side Object Model & Client Side Object Model

    Hi All, I'm design a custom web application and it will be deploy on SharePoint 2010/2013 (to be confirmed) server, and I found some aritical as follows:
    http://consultingblogs.emc.com/sanjaypatel/archive/2011/09/17/comparison-between-server-side-object-model-client-object-model-rest-api-s-and-decision-matrix-on-what-to-use-when.aspx
    May I ask ask your advice for following items?
    1) Is the above URL still valid? e.g. Vice Versa for SharePoint 2013?
    2) Microsoft has a phase out plan for server side object model or not? (e.g. MOSS 202X)
    3) For programmatcally update of SharePoint permission: should I call client-side OM instead of server-side OM even I will deploy the web application to SharePoint server?
    Thank you very much.
    .NET Beginner 3.5

    In sharepoint 2013 I don't think this link is
    http://consultingblogs.emc.com/sanjaypatel/archive/2011/09/17/comparison-between-server-side-object-model-client-object-model-rest-api-s-and-decision-matrix-on-what-to-use-when.aspxis reliable at all.
    what is your say?
    ====================================================
     Hi All, I'm design a custom web application and it will be deploy on SharePoint 2010/2013 (to be confirmed) server, and I found some aritical as follows:
    http://consultingblogs.emc.com/sanjaypatel/archive/2011/09/17/comparison-between-server-side-object-model-client-object-model-rest-api-s-and-decision-matrix-on-what-to-use-when.aspx
    May I ask ask your advice for following items?
    1) Is the above URL still valid? e.g. Vice Versa for SharePoint 2013?
    2) Microsoft has a phase out plan for server side object model or not? (e.g. MOSS 202X)
    3) For programmatcally update of SharePoint permission: should I call client-side OM instead of server-side OM even I will deploy the web application to SharePoint server?
    Thank you very much.
    .NET Beginner 3.5

  • How to implement server side methods in client side player from main.asc?

    Hi,
    I am developing video player using RTMP NetConnection and NetStream object but it is giving me below Error. Can you please tell me how can I handle this. I have main.asc file form FMS server side but I don't know how to use it. 
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback setUserID.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback syncChat.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback playingNotComplete.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback nowPlaying.
    Can anyone please help me ot solve this issue?
    Best regards,
    Sunil kumar

    javascript are run on the client side.. but i think what you actually mean is getting some validation to your database without submitting the form?. yes it doesn't consumes time and memory of server.. why not use ajax so you can only submit a little request.. rather than submitting the whole page..

  • From server-side application, launch client-side file?

    Are either of these possible?
    From a word document hosted by terminal server and accessed via SGD: user clicks on a hyperlink to C:\file.doc and it launches that file on the user's computer using that user's copy of MS word (rather than on the app server)?
    From a document management system hosted by terminal server and accessed via SGD: The system stores the file path of documents on the user's local area network. When the user wants to launch a file, he clicks on a button and that launches the file on his local area network using his local copy of MS word (just a thought: would involve passing the path from the app server to SGD server then to the local computer. Maybe via the tcc client?)
    Am thinking of several applications of this kind of thing, these are just 2 examples. Would really help us build server-side apps that run as if they are local (and would definitely up our license count of SGD). Thank you

    Are either of these possible?
    From a word document hosted by terminal server and
    accessed via SGD: user clicks on a hyperlink to
    C:\file.doc and it launches that file on the user's
    computer using that user's copy of MS word (rather
    than on the app server)?http://docs.sun.com/source/819-6255/attr_scottatrylocalwindowsapplication.html
    From a document management system hosted by terminal
    server and accessed via SGD: The system stores the
    file path of documents on the user's local area
    network. When the user wants to launch a file, he
    clicks on a button and that launches the file on his
    local area network using his local copy of MS word
    (just a thought: would involve passing the path from
    the app server to SGD server then to the local
    computer. Maybe via the tcc client?)
    Am thinking of several applications of this kind of
    thing, these are just 2 examples. Would really help
    us build server-side apps that run as if they are
    local (and would definitely up our license count of
    SGD). Thank you

  • Connection to Oracle 10g server on Oracle 8i client machine

    Hi guys,
    I wonder if you could help. I need to access Oracle 10G server using a client machine with Oracle 8i on it. I am getting the following error: "ORA-12154: TNS:could not resolve service name"
    I believe I have tnsnames.ora correctly set for the service. I was wondering if I am missing something or it is just not possible to connect to 10g. Do I need to install the Oracle 10g client on the same client machine as 8i? Would they run Ok together?
    Urgent response would be appreciated
    Thanks

    There are limitations in your combination (8.1.7 Client - 10g server), but you should get a different error. Anyway, please post the following :
    - the exact (complete, e.g. 8.1.7.4, 10.1.0.3) server and client version
    - from the client the content of sqlnet.ora and the relevant part of tnsnames.ora
    - from the server the result of "lsnrctl services"
    Would they run Ok together?Yes, of course you have to use different Oracle homes.

  • Problems in Retrieve Server's Data from Client through RMI

    //I feel that this question quite challenging for me. maybe it is easy for you all. anyway, so anybody if know it, pls point out my mistake and give some opinion on my programs.thanks....
    /*I have written one retrieve method in my server that is going to
    be called by the client�s pc. But I am facing the error when
    running
    it. The error is � SQL Error in retrieve statemet:
    [Microsoft][ODBC
    Microsoft Access
    Driver] Data type mismatch in criteria expression.� So anybody
    know
    where is my mistakes? Is it my server retrieveData method wrong? Or
    my client is calling not properly? Thanks.
    Actually my expected result is when client pc input the particular
    staff id , then the client textfield will show all the information
    of that particular staff according to the input id to the client
    interface text field. */
    ******************* Interface *****************************
    public interface RemoteDBServer extends
    java.rmi.Remote //RemoteDBServer interface
         public String retrieveData(String idd, String ln, String
    fn, String op, String oe, String hp, String ps, String ss) throws
    java.rmi.RemoteException;
    *************** Server Program ***********************************
    //id, last_name, first_name, office_phone, office_ext��..is a
    table�s attribute name
    //the jdbc and odbc path already been set in control panel �
    administrative tools.
    public String retrieveData(String idd) throws
    java.rmi.RemoteException
              String result=" ";
              try
              //create a statement
              Statement statement = connection.createStatement();
         String sql="SELECT * FROM emp_overview WHERE id ='"+idd+"'";
              //execute quury and capture results
              ResultSet rs = statement.executeQuery(sql);
              rs.next();
                   String ln = rs.getString("last_name");
                   String fn = rs.getString("first_name");
                   String op = rs.getString("office_phone");
                   String oe = rs.getString("office_ext");
                   String hp = rs.getString("home_phone");
                   String ps = rs.getString("primary_skill");
              String ss = rs.getString("secondary_skill");
                   statement.close();
              catch (SQLException sqlex)
         System.out.println("SQL Error in retrieve statement: "
    +sqlex);
              sqlex.printStackTrace();
         return result;
    ****************************Client Program ************************
    ..............����
    //findName already declared in JButton
    //tln, tfn, top, toe�..already declared in JTextField
    else if (event.getSource() == findName)
                   try
                        db.retrieveData(tid.getText());
                        tln.setText("");
                        tfn.setText("");
                        top.setText("");
                        toe.setText("");
                        thp.setText("");
                        tps.setText("");
                        tss.setText("");
                   catch(Exception e)
              System.out.println ("Cant delete to server " + e);

    Hi Kevin,
    It looks like your id field is of Numeric datatype and you are wrapping it with single quotes in your query, which is not correct.
    Your wrote :
    String sql="SELECT * FROM emp_overview WHERE id ='"+idd+"'";
    If id is of type numeric data type then, use:
    String sql="SELECT * FROM emp_overview WHERE id ="+idd;
    regards,
    Humayun

  • How to use mathscript node in server side with the parameter from the client side

    I tried to develop a server/client system with some algorithms written in matlab. So I included a mathscript node on the server side. The client will send the parameter to the server. According to these parameters, the sever will call the matlab functions to do some computings and then send the results back to the client. The server has to wait for all parameters received before the computings. How do I know this since I only connect the parameter variables to the inputs of mathscript node on the server. The sever cannot know whethere these parameters are the new ones or old ones since the client may send parameters multiple times?

    It seems to me you have two perfectly good options to start with. You could send all possible parameters in a single packet from the client to the server. This could be in the form of a cluster or an array of values. If by server/client you mean you are sending data over the network, then you could flatten this data to string before sending and unflatten it on the other side. Since all parameters come in one packet, you know all the data is valid every time you send data.
    The other option is to send the parameters individually, but include some extra information such as a timestamp or iteration count. The server keeps reading and storing parameter values until a packet arrives with the next timestamp. Alternatively, you could include some information such as an end-of-parameter-list boolean that is sent with every parameter. It would be false until the last parameter packet.
    Give it a thought. There are lots of solutions.
    Jarrod S.
    National Instruments

  • How could I clear all my data(bookmarks) on Mozilla server side in new version of Sync (Firefox Account)?)

    Problem is the same as https://support.mozilla.org/en-US/questions/1000745?esab=a&as=aaq
    Also, there was no solution has been given in discussion.
    So, problem that noone could delete all data which have been synced with new Firefox account services.
    I've disconnected all my devices from previous (old) firefox sync system (which worked perfectly on several devices), after that i gone on link https://account.services.mozilla.com/ and deleted all my sensitive data.
    After I've created firefox account in new firefox sync system ( https://accounts.firefox.com ), and all my data (bookmarks exactly) now present in browser twice.

    I have a problem with over 12,000 unwanted bookmarks in my 4 PCs (all standard Mozilla bookmarks that have been replicated). So if I would like to purge my server side data. If I do this by deleting my Sync account can I re-use my same email address to re-open a "new" Sync account?

  • Validating data in client side

    Hi,
    I'm developing a web application using Struts framework.
    and my questions is, does the validate method int the ActionForm replaces the using javascript validation?
    If I can do all the validations in this validate method, so does that mean that i'm not going to use JS at all?

    Client side validation is usually a subset of the validation done on the server side (ie, server side duplicates the client side validation, and then some).
    I usually only do some basic client side validation such as:
    a textfield is null, but shouldn't be
    a textfield should be in this format but isn't: mm/dd/yyyy
    a textfield should be a number but contains a letter.
    If these conditions occur, dont submit the form, pop up a warning dialog box instead.

  • Accessing print services in the client machine(browser)

    Query: We had migrated a forms-3 form to forms-6i. The forms-3 form used a userexit to call a related Pro*C functionality that helped finally to print the report file generated during the process into the client machine's printer.
    How do we take care of this functionality in forms-6i? That is, the user should be able to do the printing from the forms screen in the browser..
    Please help..

    Thank you for replying..
    We have earlier tried the web.show_document procedure to call the .html or .txt file....But in forms-3(back-end on a UNIX server with the Pro*Cs), an ascii file was created at the server side in the client's home directory, and this file was accessed and used from the front-end machine(a UNIX terminal or a QVTTerm like application on Windows), to be printed out onto the printer device configured on the client machine...As in your reply, through web.show_document also the printing can be finally done..But the user has to wait for the new browser window to get opened and show the content and then print it...These steps were not needed in forms-3, that is, on a click of the print-related-button, it did the job...So, in the same way, can something be done on the forms-6i form(use a printer-javabean or something else), to get the functionality???
    Please help..

  • Does Server Side Targeting need GPO for WSUS server to start?

    This may be obvious, but for WSUS Server side targeting, I assume that I still need to use GPO (with AD) to point the client machines at the WSUS Server, before they will appear under the Unassigned group?
    Is that true?   Otherwise, i don't understand how the clients will know that they are using that WSUS server.
    What exactly needs to be setup for Server side targeting using GPO.   Is it only the WSUS server that needs to be setup, or does Automatic Updates needs to be configured as well.
    Thanks for your help.

    Hi Gleb:
    That's what I thought.  Thanks, for confirming.   So just to make sure I'm clear on this.  
    For server side targeting:
    I would probably setup the AD GPO at the domain level, so that WUServer and WUStatusServer  values point at the WSUS Server.   Once, those are setup and a sufficient period of time has passed for the policy to be passed to the client workstations,
    I should start seeing the workstations appearing under the Unassigned group.
    I assume that I would also configure some of the following as well using the GPO, since we will be using the AU for updates, after I move the computers manually to groups.   For example, I would probably configure under AU:
    NoAutoRebootWithLoggedOnUsers 
    UseWUServer 
    NoAutoUpdate 
    AUOptions 
    ScheduledInstallDay 
    ScheduledInstallTime 
    I would guess that the above items need to be configured whether I'm doing server side targeting or client side targeting.
    Can someone confirm?:

  • Problem in running TVApplet code on client machine.

    Hi Friends
    I installed the JMF windows pack and ran the JMF Diagnostic applet
    successfully. Then I compiled and ran the TVApplet example code
    given by Sun through a htm file successfully in Internet Explorer on my
    machine.
    My operating system is Windows 2000 Professional.
    My Web server is Tomcat 4.1.31 which is installed at my machine itself.
    I am able to run this applet on my machine but when I access this
    applet on some different machine it is not running and seeing in Java
    Console,Exceptions are found as:-
    java.lang.NoClassDefFoundError: javax/media/ControllerListener
    Can sombody help me here ???
    Why the applet is not running on the client side.
    Is the JMF APIs or some of its file required to be present at the client
    side.
    The client machine is having required version of Internet Explorer and client machine operating system is XP,2000.
    Thanks

    the jar file reqiured is jmf.jar this jar file will there in
    jmf_home/lib
    for example in my mechine
    C:\Program Files\JMF2.1.1e\lib this jar file contain all the file reqired to run the application
    i think you may need some of the dll files also to run see
    if reqiured the then it may throw exception
    java.lang.UnsatisfiedLinkError then put respective dll file to workiing folder or the system32 folder

  • Caching a web page in client machine's Temp file

    Hi Friends,
    I'm struck up with one issue in caching the web page in client machine's temporary internet files. I have designed a secured web application. I used
    <%
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    for not storing the web page in client machine. Now only some of the pages that doesn't needs the security needs to be cached in the client machines temporary internet files.
    For that i used the code as
    <%
    response.setHeader("Cache-Control","public");
    response.setHeader("Pragma","public");
    response.setDateHeader ("Expires", 0);
    %>
    Still i'm unable to store. Please help me solve this. Thanks in Advance. Quick help would be greatly appreciated.
    Thanks and regards,
    Prakash

    Hi Rob_Jones-
    I would recommend reading this Support article, as it troubleshoots issues with opening/downloading files:
    [[Managing file types]]
    Hope that helps.

  • How RMI implements multithreading in Server-side?

    In [http://my.execpc.com/~gopalan/java/rmi_internals.html] says:
    "On the server side, when a client connects to the server socket, a new thread is forked to deal with the incoming call. The original thread can continue listening to the original socket so that additional calls from other clients can be made."
    I have traced Java source code (jdk-6u18-ea-src-b05-jrl-18_nov_2009.jar) , but i could not find where and how Java RMI do it.
    Could anyone give me some hint? Thanks!

    In [http://my.execpc.com/~gopalan/java/rmi_internals.html] says:
    The status of that site is zero. All you can rely on is the RMI specification.
    "On the server side, when a client connects to the server socket, a new thread is forked to deal with the incoming call. The original thread can continue listening to the original socket so that additional calls from other clients can be made."That accurately describes the Sun implementation of RMI as of 1.5, the latest source code I have looked at. It doesn't accurately describe the IBM implementation nor I suspect the Sun 1.6 implementation.
    I have traced Java source code (jdk-6u18-ea-src-b05-jrl-18_nov_2009.jar) , but i could not find where and how Java RMI do it. So? Why does it matter? The RMI specification tells you what the multi-threading guarantees of RMI are. They are all you can rely on.

  • New install issue-unable to connect to DB server from a remote client.

    Hi experts,
    I am new to setting up oracle server so pls bear with me...
    I setup a db server (11g on top of 64bit Oracle Linux) at home (static 192.168.1.90). I verified that db, listener are up and running. However, I tried to connect to the server from a different client machine (192.168.1.108) within my home network but the server cannot be reached. I was able to ping both client and server using the IP addresses and hostnames. I followed the following steps to perform troubleshooting but was unable to move on beyond step 3, telnet-ing the server on port 1521. Can someone help me out what I should do make the port # (1521) is reachable by the client?
    1. Check with "ping" using the IP address ("ping 198.11.34.43"
    2. Check with "ping" using DNS name (e.g. "tnsping uranus")
    3. Try telnet to the IP on port 1521 (telnet 1.2.3.4 1521)
    4. Check with "tnsping" using TNS service name
    5. Invoke SQL*Plus from the OS command line "sqlplus fred@flintstone". If this fails, check to ensure that your listener is the flintstone service defined.
    6. Sign-on to SQL*Plus and connect with the TNS name ("connect fred/flintstome@service_name"
    7. Within SQL*Plus, try a select from table@remote_db_link
    thanks a lot in advance.

    user6391746 wrote:
    Hi experts,
    I am new to setting up oracle server so pls bear with me...
    I setup a db server (11g on top of 64bit Oracle Linux) at home (static 192.168.1.90). I verified that db, listener are up and running. However, I tried to connect to the server from a different client machine (192.168.1.108) within my home network but the server cannot be reached. I was able to ping both client and server using the IP addresses and hostnames. I followed the following steps to perform troubleshooting but was unable to move on beyond step 3, telnet-ing the server on port 1521. Can someone help me out what I should do make the port # (1521) is reachable by the client?
    1. Check with "ping" using the IP address ("ping 198.11.34.43"
    2. Check with "ping" using DNS name (e.g. "tnsping uranus")
    3. Try telnet to the IP on port 1521 (telnet 1.2.3.4 1521)
    4. Check with "tnsping" using TNS service name
    5. Invoke SQL*Plus from the OS command line "sqlplus fred@flintstone". If this fails, check to ensure that your listener is the flintstone service defined.
    6. Sign-on to SQL*Plus and connect with the TNS name ("connect fred/flintstome@service_name"
    7. Within SQL*Plus, try a select from table@remote_db_link
    thanks a lot in advance.solution depends upon which ERROR is thrown.
    Is COPY & PASTE broken for you?
    It is really, Really, REALLY difficult to fix a problem that can not be seen.
    use COPY & PASTE so we can see what you do & how Oracle responds.

Maybe you are looking for