IM client in a jsp

Dear all,
Can anyone suggest a IM client that can be called within a jsp (and then inserted within a
portlet in the IBM Websphere framework)? All the IMs I have seen seem to standalone
client/server apps, not intended for use within a jsp.
Thanks a lot!
Paul

Your looking for an IM API/framework that you can embed into a web app. Interesting concept I must admit. On a higher level IM apps are more P2P based where web apps are client/server based. There's no real reason, however, why someone couldn't embed an IM client into a web-app. At least I can't think of any limitation. I can tell you that there is no IM client that you can just drop into a web app out of the box. It's going to require some custom coding against an IM API. The alternative is to use an Applet approach which offloads the IM logic onto the client. For that you can look into Odigo. They have an IM client applet that you could drop into any HTML page.
Cliff

Similar Messages

  • How to download a file from server machine to client machine using jsp

    Hi,
    In my application, I have an excel file stored on my server machine. How can I download that excel file on to my client machine using jsp. Is there any other way I can open that file from my machine and save it in my machine using jsp/java?
    Its an emergency for me to do this.
    Can anyone provide me the full code to download a file from server machine as I don't have
    time to browse through various sites.
    thanks in advance,
    Tiijnar

    Please post your code using code tags (click on CODE above the text area, when posting)
    response.setContentType("application/octet-stream");Why octet-stream? Set the correct mime-type.
    String disHeader = "Attachment; Filename=\"filename\"";The filename should just be the file's name. Not the complete path to the file! This will tell anyone where the file is located on the server. It's also inconvenient because by default,the browser will suggest it as the name for the download.
    Your way of writing to the output stream is just plain wrong. See this snippet (picked from [http://balusc.blogspot.com/2007/07/fileservlet.html])
            BufferedInputStream input = null;
            BufferedOutputStream output = null;
            try {
                // Open streams.
                input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
                output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
                // Write file contents to response.
                byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
                int length;
                while ((length = input.read(buffer)) > 0) {
                    output.write(buffer, 0, length);
                // Finalize task.
                output.flush();
            } finally {
                // Gently close streams.
                close(output);
                close(input);
            }

  • Is it posssible to lunch one application from the client system using JSP

    Is it possible to Lunch one application from the client system using JSP or Servlet .If it is possible then how can we do that ?
    Thanks in advance
    Sil

    If its a java application - yes. You can use jnlp and web start.
    ram.

  • Can I get information regarding the client browser using JSP

    can I get information regarding the client browser using JSP. like.. name, screen resolutions, font type, screen width and height of the browser etc.,
    if possible then please give me the samples..
    thanks,

    can I get information regarding the client browser using JSP. like.. name, screen resolutions, font type, screen width and height of the browser etc.,
    if possible then please give me the samples..
    thanks,

  • Application Client to call JSP...

    Hi all,
    I am using Websphere to write EJB codes and JSP pages and print report based on data retrieved from database. Every morning, i need to manually print sales reports and copied it to a network folder. I found it very tedious. I planned to write an application client to automate the task at midnite. I managed to call the session bean using the client but how can I call the jsp page to print the report? Is it possible? Can I save the jsp page to network folder automatically? Thank you for your help.
    Regards,
    Dreon

    Here is some simple code to read from a url
    private String loadPage() throws Exception
              StringWriter      out;
              URL                url;
              URLConnection     conn;
              BufferedReader     reader;
              String               inputString;
              out = new StringWriter();
              if ( logLoads ) System.out.println("Running loadPage, for URL : " + url );
              conn = _url.openConnection();
              conn.connect();
              if (DEBUG) System.out.println(" connected to server...");
              _contentType = conn.getContentType();
              if (DEBUG) System.out.println(" got Content Type : " + conn.getContentType() );
              reader = new BufferedReader( new InputStreamReader( conn.getInputStream() ) );
              if (DEBUG) System.out.println(" Ready to read data..." );
              while (true) {
                   inputString = reader.readLine();
                   int index = inputString.toUpperCase().indexOf("<HTML>");
                   if ( index >= 0 ) {
                        if (DEBUG) System.out.println(" found <HTML> tag in line : '" + inputString + "'");
                        out.write( inputString.substring( index, inputString.length() ).trim() + "\n" );
                        break;
              inputString = reader.readLine().trim();
              while ( inputString != null ) {
                   if ( inputString.length() > 0 )
                        out.write( inputString + "\n" );
                   inputString = reader.readLine();
              if (DEBUG) System.out.println(" finished.");
              return out.toString();
    }

  • How to run a Client in a Jsp

    I would like to run Client.java thanks to a JSP
    i have got a .jar that i put in WEB-INF/lib
    but that the class Client is not found

    try putting your application's web-inf/lib directory in your classpath. this is typical in development environments. you wouldn't have to do it for production.
    hope this helps.
    cem.

  • File Transfer b/w Client - Server using JSP

    Hi,
    I need to implement a file transfer between the client and the server using JSP / Beans. The files can be XML Documents, Images (.gif,.jpeg) or even MS Word documents.
    The user has a set directory on his file system where the files are to be saved upon download and retrieved upon upload. This system is similar to a check-in check-out system.
    How do I get a reference to the directory on the users file system and then either save the downloaded files there or retrieve the files that need to be uploaded.
    Thanks
    coffeejava

    The only way you can do this is by using an applet, a jsp page or servlet does not have access to the system that the browser is running on. Furthermore if you were planning on using the html file form object you cannot set a value for that programmatically. It's not allowed for security reasons.

  • How to close JDBC client connections in JSP (9IDS Jdeveloper)

    Can anyone tell me how to close JDBC connections neatly through JSP in Oracle 9IDS Jdeveloper.
    I have a developer who has deployed a WAR file (comprising JSP page) to the Tomcat webserver.
    The page works fine except that it always leaves a JDBC client connection after the user closes the internet explorer window.
    I've tried using dead connection detection without success.
    At the operating system level, I have a script that can kill these sessions but I would prefer if theres some way the connection can be closed neatly through the JSP application.

    Hi:
    At database level you can:
    See CONNECT_TIME and IDLE_TIME options to CREATE/ALTER PROFILE
    Joao

  • How to load a excel sheet on the client machine from jsp

    hai all,
    I want an excel sheet to be opened like "c:\excelsheet.xls" on the client machine from my JSP so that i can send the out put of my jsp to it.i will press a button on jsp and i want the query out put in the excel sheet. if it is already opened then it has to be closed and reopened with new data, the old data has to be lost.
    can any one help me out....
    Thanks for any help...
    regards,
    ravikiran

    Hai friend,
    you add mime type in web.xml
    for example,
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/excel</mime-type>
    </mime-mapping>

  • What should we do to return a ResultSet to the client HTML through JSP?

    Hi friends,
    Greetings.
    How do we pass the query Results from one function to another function?
    Actually i have a database in the server and i am the client.
    Client sends the id to the server as an argument. From HTML file this goes to the JSP file(which i am using as a link between HTML and EJB) and then this goes to the RemoteInterface and then to the Bean itself. The functions are written in the bean. Bean connects to the database using jdbc:odbc driver and then a query is written and executed as follows:
    In the Stateless Session Bean, there is one function with the following query.
    public ResultSet check(String id)
    //other code
    ResultSet rs = Statement.("select * from table1 where id=123");
    if(!rs.next)
      // print no such id exists. other ids are
      rs=Statement.("select * from table1");
    return rs;
    }I have written it approximately only because the problem is not with the query :(
    Now, in rs there's a resultset. Now how do i display it in a tabular format in HTML? This should obviously be done using JSP. How can we do it?
    In JSP file if i write
    ResultSet rs1=Remote.check(12);
    i get NullPointerException
    Thank you in anticipation to your reply!
    Regards

    Crossposted over all places:
    [http://forums.sun.com/thread.jspa?threadID=5336533]
    [http://forums.sun.com/thread.jspa?threadID=5336534]
    [http://forums.sun.com/thread.jspa?threadID=5336532]
    [http://forums.sun.com/thread.jspa?threadID=5336519]
    [http://forums.sun.com/thread.jspa?threadID=5336510]
    Stop crossposting. It's very rude.

  • Control client cache for JSP

    There are many threads on the web about how to force a reload rather than pulling content from cache. My problem is the opposite. I am trying to get good cache control for a jsp application that has relatively static contents. My goal is to serve up pages with the following characteristics:
    For client calls:
    If there is no version in cache, the jsp builds a new version and sets the response date header "Expires" to 5 days later.
    If within the Expires date, have the client just use the cached version: no validation or roundtripping.
    If after the Expires date, roundtrip: have the jsp return 303 (SC_NOT_MODIFIED) if no content changed. Also, ideally, also reset the Exipres date to an additional 5 days.
    Otherwise, recreate the response and start over...
    I am experiencing different behaviors with different browsers, although none act as I was hoping.
    When there is no relevant page in cache, all of the browsers accept a new version (and I think that they all put it in cache). All browsers reload the page using the reload button.
    If there is a relevant page in cache and it has not expired:
    1. FireFox 3 seems to roundtrip, but then use the version in cache.
    2. IE 7 seems to always use the cache version without checking the server
    3. Google Chrome seems to always roundtrip and reload.
    I tried several variations including setting/not setting the Last-Modified date header and setting/not Cache-Control: no-control header (to force validation).
    Neither Last-Modified nor no-contro: NO CHANGE FROM ABOVE;
    Last-Modified set, no-control not specified: NO CHANGE
    Last-Modified not set, Cache-Control set to no-control to force validation.
    The main problem here is that I was unable to get a value for the request header "Last-Modifier" so that my jsp could not set the 303 return, therefore all browsers roundtrip and reload.
    SO...
    1. What do I need to do to get all browsers to pull from cache and not roundtrip prior to the Expires date?
    2. After the Expires date, what do I need to do to get the request to include the Last-Modified date header sent to the server?
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><%
    %><%@ page import="java.net.*"%><%
    %><%@ page import="java.util.*"%><%
    %><%@ page import="java.util.Date"%><%
    %><%@ page import="javax.servlet.*"%><%
    %><%@ page import="java.text.SimpleDateFormat" %><%
    //  In a real application, the updatedDate would come from a database or file
    Calendar thisCal = new GregorianCalendar();
    thisCal.set(2009,02,15);
    Date     updateDate = thisCal.getTime();
    //  This never returns a valid date
    long  thisLongDate  = request.getDateHeader("Last-Modified");
    Date  cachedDate    = ((thisLongDate<0)?null:new Date(thisLongDate));
    Date  todaysDate    = new Date();
    //  Show all three dates in the output
    String   outString = "";
    SimpleDateFormat   showDateFormatter = new SimpleDateFormat ("yyyy-MM-dd hh:mm:ss");
    outString += "================================================================<br> \n";
    outString += " Start TestSuite25.jsp "+showDateFormatter.format(todaysDate)+"<br> \n";
    outString += "Update date is "+showDateFormatter.format(updateDate)+"<br> \n";
    outString += "Cached date is "+((cachedDate==null)?null:showDateFormatter.format(cachedDate))+"<br> \n";
    response.setContentType("text/html");
    if (request.getParameter("lastmodified") != null)
       outString += "Set Last Modified header:  may trigger If-Modified-Since request. <br> \n";
       response.setDateHeader("Last-Modified",updateDate.getTime());
    //  force validation .. does this hit my code??
    if (request.getParameter("cache") != null)
        outString += "Set cache control to no-cache to force validation on every call<br> \n";
        response.setHeader("Cache-Control", "no-cache");
    //  use cache for 5 days, then validate
    thisCal.setTime(todaysDate);
    thisCal.add(Calendar.DATE,5);
    response.setDateHeader("Expires", thisCal.getTime().getTime());
    //  Check for still fresh on server
    if (!(cachedDate == null) && (!cachedDate.before(updateDate)))
       outString += "Contents are unchanged: send 303 status message<br> \n";
       response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
       System.out.println(outString);
    else
       outString += "Rebuild and send the HTML <br>";
       System.out.println(outString);
       // Build and send the HTML ...
    %>
    <html>
    <head>
      <title>Test suite</title>
      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    </head>
    <body >
    <br>
    <h2 align="center">Test 25: Controlling Cache</h2>
    <h3 align="center">Click <a href="TestSuite21.html">here</a> to continue to Test 26.</h3>
    useage: TestSuite25.jsp<br>
    optional parameters: <br>
       cache=nocache: include no-cache to force validation each time<br>
       lastmodify=set:  include Last-Modified date hearer<br>
    <br>
    <%=outString%>
    </html>
    </body>
    <% } %>

    let me tell you from BSP side !
    within your BSP application set a javascript timer for 2 minutes and upon completion run a javascript to kill the backend session along with the SSO2 cookie.
    check the BSP application system/session_single_frame.htm
    for a javascript named "exitBSPApplication"
    Hope this is helpful.
    Regards
    Raja

  • How to write files on Client Machine using JSP

    Hi,
    I am new to JSP. Please tell me how do i write files on Client machine thru a Browser.
    Please let me know at the Earliest.
    Thanks.
    Mehul Dave

    1) Well I find it rather convenient to deploy a web app as just one file rather than a bunch of files. For deployment it's much better. However I prefer using expanded files when developping (to use auto reload in Tomcat for example)
    2) It is a bad idea to upload files inside your webapp's context (ie: in it's deployment directory) because one day an uninformed system administrator might come and redeploy the web app and therefore delete all your uploaded files (believe me, I've already experienced this!)
    What i do usually is upload it in a completely different directory, something like /uploaded_files. Your uploaded files are therefore completely independant from your webapp
    However it is a bit trickyer to get those files back. Let's take the example of image uploads. You have 2 ways of proceeding:
    - the easiest : configure your web server (apache etc...) to redirect a certain url to your external directory. For example the /upload url will point to a /uploaded_files directory. This is easier to do and the fastest way to serve images but not always the best solution: you are dependant on the web server's configuration and you can't control the visibility on your files (no security constraints, anyone can see your uploaded files if they know the url).
    - you can also write a servlet which will load the file as an array of bytes and send it back in the response.
    You can call it this way :
    <img src="/serlvets/showmyimage?path=uploaded.gif">
    in this way you can control your uploaded files better: you may want to define security constraints on the visibity or not of uploaded files depending on the user which has logged on the site.

  • How to call a jax-ws client from a jsp wls  10.3.6

    instead of specifying this in the jsp
    <%
    client.HelloserviceService test = new client.HelloserviceService();
              client.Helloservice port = test.getHelloservicePort();
    %>
    is there any other way , if there sample code appreciated

    Using the @WebServiceRef annotation to associate the Web service client with the configuration defined for the specified Web service reference. The Web service reference configuration is defined in the weblogic.xml for Web containers and weblogic-ejb-jar.xml for EJB containers. For more information about the @WebServiceRef annotation, see Defining a Web Service Reference Using the @WebServiceRef Annotation.
    http://docs.oracle.com/cd/E23943_01/web.1111/e13758/client.htm#CIHHJEHH
    Regards,
    Sunil P

  • Run client application using jsp

    please help! urgent...
    anyone no how i can use a jsp to run an application such as ms word or another .exe that is on the client/browser machine?

    i dont want to open a file. i just want to start the application at the client level. at that point, the client will decide which file he wants to open. one application i want to open is ms word. i am trying to give users a way to open their applications from a web page. do anyone have an idea? please help...

  • XSLT client processing with JSP?

    hi,
    Has anyone figured out how to write out xml
    file using jsp but do the xslt transformation
    from the client (ie. IE5).
    I tried the following:
    <?xml version="1.0"?>
    <!DOCTYPE screener SYSTEM "http://myserver/screener.dtd">
    <?xml-stylesheet type="text/xsl" href="http://myserver/screener.xsl"?>
    <%@ page contentType="text/xml" %>
    <jsp:useBean id="clock" scope="page" class="dates.JspCalendar" type="dates.JspCalendar" />
    <screener>
    <section>
    <q id="q101"
    value="<jsp:getProperty name="clock" property="month"/>">
    <label>q101</label>
    <value>text</value>
    </q>
    </section>
    </screener>
    and i got the following message:
    Access is denied. Error processing resource. I know the xml page work properly when i access it statically. It would be nice to do
    split the processing between the server and the client. I am wondering whether it is possible under present configuration?
    ted

    Yes. You can set it in request.setAttribute and then in the actionform you can retrieve it.

Maybe you are looking for

  • Problems in testing a web application

    Hi All, I am quite new to weblogic server and want to test the web application in exploded directory structure. I am able to deploy the application in war format. I have created the mydomain directory in domains directory. I am using weblogic 9.1 ser

  • How many computers can I install Logic pro 9 on

    Before I dive in and purchase Logic Pro from the app store I want to be sure I can install it on both my imac and my macbook at the same time. This is because I tend to record on the macbook but like using the imac for the mixing etc.

  • Does ISO5 support AirPrint and if not why did they do away with it?

    Does ISO5 support airprint and if not why did it disappear after ISO4? And will it be added back?

  • [SOLVED] Error occuring while enabling extension

    Hey all, I've been using OpenOffice 3  (openoffice-base beta and devel and stable now) and have tried to install the Sun Presenter Console, but I get the following error: % /opt/openoffice/program/unopkg add -v sun-presenter-screen-linuxintel.oxt ERR

  • Silhouette feature question

    have an image of a pair of boots... cut out in photoshop on transparent background.  inserted into Illustrator and has a small white line around the image... like it is an uneven cut.  (magic wand in photoshop...tried to short cut) so made a silhouet