[b]can I use servlets for Chat? new to servlets[/b]

I want to a chat application for someprof and students
I am using multicasting technique to send and receive messages
I used applets and created it but applets don't support java.net's MulticastSocket so I used certificate
Now I want to use servlets for this in JSP because I called applets from JSP
Can it be possible? If yes please clearify.

it is possible
you could create a jsp page that would update like 10 or 20 or whatever number of ServletContext attributes.
in the jsp_service or in the doPost or doGet method of a servlet:
String messageFromUser=request.getParameter("msg");
int num=15;
String[] chat=new String[num];
chat[0]=getServletContext().setAttribute("chatLine" + 0, messageFromUser);
for(int i=1; i<num; i++) {
    String previousMessage=getServletContext().getAttribute("chatLine" + (i-1));
    chat=getServletContext().setAttribute("chatLine" + i, previousMessage);
out.println(chat[i]);
however, there is a pretty decent client/server chat program that can run as an applet here:
http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=4397&lngWId=2

Similar Messages

  • How can i use AME for the new OAF page.

    Dear all,
    I have developed a new OAF page and registered under Employee Self Service.
    How can i use AME for the approval process.
    Appreciate your ideas?
    zamora

    I will try to answer based on my experience of working with iProcurement and AME. It depends on how you want to make a call to AME , directly from OAF Page or from Workflow and your requirement. You didn't specify what you want to show the users on OAF Page and your business requirement.
    Before calling AME Engine from the OAF page or workflow, I guess you did already setup AME Transaction Type and it's Approval Groups, Conditions, Action Types and Rules. Do some testing from AME Business Analyst Test Workbench. Please note that, AME provides lot of PL/SQL API's that you have to call from your programs (java or workflow pl/sql)
    Let's look at the workflow and putting an OAF Page as notification.
    As Sameer said, you have kick-off workflow process from PR of CO and with in the workflow function, you make a call to AME Engine API's with the AME Transaction ID. This transactionId belongs to the AME Transsaction Type that you setup. Based on the rules setup, AME Engine generates list of approvers/approver and stores them AME Tables for that transactionId. Then, it sends a notification to the approver.
    In the workflow, where that notification is defined, in the message body you have to put an attribute(&XX_WF_FWK_RN) of type document/send. And this attribute will have the constant JSP:/OA_HTML/OA.jsp?OAFunc=XX_FUNC&paramId=-&DOCUMENT_ID-. This function is SSWA Jsp function that makes a web html call to your OAF Region.
    If your requirement is to just show the list of approvers on the OAF Page, you may have to call AME API diectly passing your AME TrasnactionId with other parameters. Then AME generates list of approvers and stores them in AME tables with each approver status. You can pickup those approvers using VO and show them on OAF Page.
    Hope this gives some idea.

  • How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store.

    How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store. 

    Call Apple's online store's telesales agents: 1-800-MY-APPLE (1-800-692-7753) or Customer Service and Sales Support at 1-800-676-2775. For Lion you'll get a redemptions code via e-mail and need to DL from the Mac Apple Store (requires SL 10.6.6+).

  • Ai changed my email for my apple id, but i can't change my iCloud ccount because i can't remember my old password, and now i need to use iCloud for my new IPhone but it isn't working, how do i fix that?

    i changed my email for my apple id, but i can't change my iCloud  account because i can't remember my old password, and now i need to use iCloud for my new IPhone but it isn't working, how do i fix that?

    If the old ID is yours, and if your new ID was created by editing the details of this old ID (rather than being an entirely new ID), go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I bought photoshop for my laptop but it crashed. Can I use it on my new home computer?

    I bought photoshop for my laptop but it crashed. Can I use it on my new home computer?

    Not enough information.  What EXACT version of Photoshop?  Are both machines the same platform, i.e. both either Mac or Windows?
    Generally speaking you are allowed two installations on two different machines that are not used simultaneously. Up to CS6, the two installations have to be on same platform machines, either Mac or Win.  In CC and later, they can be one each on different platforms.
    It is very important for you to contact Adobe to deactivate the installation that "crashed" (please elaborate).
    You are not addressing Adobe here in the user forums.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Error while generating DDL commands using startSQLRepository for a new Repository

    Hi,
    I am trying to generate DDL Commands using startSQLRepository for my new repository SubashRepository so that I can use them to create new table structure.
    All the repository related changes looks good. i can see my repository in ACC
    When I run the command:
    startSQLRepository -m SupremeATG –repository /com/supreme/SubashRepository /com/supreme/subashRepository.xml -outputSQLFile C:/ATG/ATG9.3/SupremeATG/config/com/supreme/subashRepositoryDDL.txt
    I get following error:
    Table 'SUBASH_MEMBER' in item-descriptor: 'member' does not exist in a table space accessible by the data source.  DatabaseMetaData.getColumns returns no columns
    Note:
    * errors related to definition file were cleared as the same command threw relevant exception while trying to store a array property with out creating a multi table.
    * Now this is the only exception i see
    * Some DDL are getting generated in the output file, but those are related to inventory repository (I am not sure why this is happening as I have specifically gave the path to my definition file).
    Any help in resolving this is highly appreciated.

    Pl post in the ATG forum

  • I have an old account I no longer use associated with me email and I want to use email for my new devices.

    I want to delete my old apple is so. Can use email for my new account.

    You can't delete an account, all you can do is remove any personal info from it and stop using it - but any content that you bought/downloaded with it will remain tied to that account.
    If you want to use its email address on a new account then you can try logging into it and change its email address to something else so that you can try using it on your new account (I haven't tried it, but I think that it should work) : http://appleid.apple.com

  • Numbering Group G1 can be used only for one CoCd and cash journal number

    Hello,
    I was trying to create a cash journal when I got the error message:
    "Numbering Group G1 can be used only for one CoCd and cash journal number".
    Does anyone have an idea what could be wrong?
    Thank you,
    Bola

    Hi,
    Please check whether more than one number range is maintained in  transaction code FBCJC1. If yes, please keep only one as Cash Journal has only one number range. This is the internal number range for Cash Journal.
    If you want different number range for accounting documents then create new document types and assign number ranges to it.
    Regards,
    Tejas

  • I have many i-Phone 4G chargers from the wall and car. How can i use them for i-Phone5 if possible?

    I have many i-Phone4G car and wall chargers. With what adapter i can use them for my new i-Phone5?

    http://store.apple.com/us/product/MD823ZM/A/lightning-to-30-pin-adapter?fnode=45
    Hope that helps

  • Can I use alert on chats in WEB- I

    HI team ,
    Can I use alert on chats in WEB- I , as I want to show negative value in RED and +ve values in green , as this is not possible setting palate colure.
    Your help is welcome.
    Thanks
    Regards,
    Ashutosh D

    Hello!
    u can very well define alert in web i report.
    Click on alerters symbol (on reporting toolbar)..click on New
    define your alerter condition.
    and press ok
    Regards
    khyati

  • Can I use Skype for my business?

    Hi,
    I have a SKype number and been using it for my business for a year already. Today I've received an email from Skype saying that I can't use Skype for commercial purpose. I'm confused because I've seen so many people saying that they use Skype for their business. Here's the message I've just received:
    "We have noticed some prohibited usage of your subscription.
    We will continue to monitor your account, your calling behavior and your overall activity using Skype. If the prohibited usage still continues, your subscription will be disconnected. You will no longer be able to use or purchase any of Skype’s paid-for products.
    The suspension of your access to Skype paid-for products will be permanent and you will be unable to transfer any existing products to a new Skype account, or receive a refund. However, you will be able to continue to make Skype-to-Skype calls and send instant messages.
    We remind you that Skype’s products are for personal, individual and non-commercial use only. Our Fair Usage Policy can be found within our term of uses. Our subscriptions cannot be shared or used for commercial gain, such as telemarketing or call centre operations"
    Do I have to register for a business account or what? Or what should I do now? This number have been using as my business contact and I can't change it. Please help.

    Hello and welcome to the Skype Community.
    What type of business are you engaged in?
    https://support.skype.com/en/faq/FA34551/what-s-the-difference-between-skype-and-skype-for-business
    http://www.skype.com/en/legal/tou/
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • HT1338 for itunes 10.7 it is saying that my mac need version OS X needs to be version 10.8.6 - how do i get this? There are no current software updtes and i cant use iTunes for my new iphone 5

    For itunes 10.7 it is saying that my mac need version OS X needs to be version 10.8.6 - how do i get this? There are no current software updates and i cant use iTunes for my new iphone 5

    I think you meant 10.6.8, not 10.8.6
    It requires an upgrade, instead of a free update.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least, more if you can afford it)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It's been pulled from the online store & Apple Stores, so you have to call Apple to buy it, last I heard.
    Buy Snow Leopard > http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    Call Apple Sales...in the US: 1-800-MY-APPLE. Or Support... 1-800-275-2273
    Other countries...
    http://support.apple.com/kb/HE57

  • I can't use iPhoto on my new MacMini. Why?

    I can't use iPhoto on my new MacMini. I transferred my photo library from my old Mac tower's iPhoto library. The photos are in there - I can find them in the photo library - but I can't get them into iPhoto - or even open iPhoto. What happens is a message: "The photo library needs to be upgraded to work with this version of iPhoto." Then, when I choose "Upgrade", I get : "Your photo library is either in use by another application or has become unreadable." It goes on to tell me to Quit iPhoto, Reopen while keeping Option & Comand keys pressed." Did that over and over. Nothing changes. It also says: "Try restoring our photo library from back up" but I don't know what that means.  Help.
    Note: My transferred photos are in there via: Finder / Judy / Library / iPhoto Library. But I can't work with them, e.g. edit,  in iPhoto or access them any other way than one at a time in that library... not exactly what I want or need.

    I did everything you suggested and it seemed to be a repeat of everything I did yesterday. Going through "Macintosh HD" just got me to the same place I was in yesterday, going through Finder to 'Judy' to 'Library' to 'iPhoto Library'. There just isn't anything there that looks like what you describe: 'Permissions' or 'Rights & Priveges'. From everything I see when I monkey around in my 'User' folder, there are no restrictions on anything.
    BDAqua is indicating one of the standard paths/locations for the iPhoto Library:
    Macintosh HD -> Users -> Judy -> Pictures -> iPhoto Library
    At least that's where mine was on Snow Leopard and is on Lion. The location you've indicated, isn't standard:
    Macintosh HD -> Judy -> Library -> iPhoto Library
    When you get to "iPhoto Library",
    - select/hightlight it
    - Then click cmd-I (or under the "File" menu, select "Get Info")
    - At the very bottom of the "Info" window you should "Sharing and Permissions" -- that's what BDAqua is asking about.

  • Can I use iMovie HD6 on new Core i5/i6 iMac?

    Can I use iMovie HD6 on new Core i5/i6 iMac with Snow Leopard? If not what older iMac version do I need? I want to be able to edit HDV mini-tapes (from Canon HV20) and retain excellent quality (no deinterlacing), and that's why I cannot use iMovie 8 or 9.

    It wS the first thing I did, I even closed the iMac and unpluged it held the onbutton for 10 second, then resRted but tonosucces, I am writing from my iPad.

  • [svn] 2216: Changed InterfaceCompiler to public so that it can be used directly for mxml parsing by other tools .

    Revision: 2216
    Author: [email protected]
    Date: 2008-06-24 13:34:15 -0700 (Tue, 24 Jun 2008)
    Log Message:
    Changed InterfaceCompiler to public so that it can be used directly for mxml parsing by other tools. Also change parseMxml to public.
    Reviewed by: Paul
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java

    Before I read this helpful post, I changed my Google search key words from "change location Firefox profiles" to "change path Firefox Profiles" and found this link: http://kb.mozillazine.org/Thunderbird_:_FAQs_:_Changing_Profile_Folder_Location. This brought me to the article "Moving Your Firefox Profile" which answered my question. Your suggested link would have ultimately led me to the same solution.
    The problem was that I had copied my Firefox profile to the new location and then modified "profiles.ini" to point to the new location and saved it there as a replacement to the original "profiles.ini" that I had renamed "profiles.iniOld." Even though I had changed "IsRelative" from "=1" to "=0" I got error messages. I had used this procedure successfully before, but it would not work this time. When I used Profile Manager to move the Firefox Profiles everything worked fine the first time I tried it, and it took only a few minutes.
    Thank you, cor-el.

  • Can I use servlet as my welcome file

    How can I use servlet as my welcome file? I know how to use jsp or html pages as my welcome file but that doesn't work for servlets. I modified my web.xml for making jsps and html as my welcome pages but that <welcome-file-list> tag is not working for servlets.

    This was a bug that occured in older Tomcat programs, not sure if it still occurs or not.
    Basically, when this happens, you have to have a physical file with the welcome file name. So you would have to create a file named index.do in each of your directories you wanted the welcome to work for. The index.do wouldn't have to actually do anything. It just had to exist. Then when the URL was used to create content, the servlet would be called to create that content.

Maybe you are looking for

  • Performanc​e degrades in Probook 4540s after memory upgrade

    Hello. I've installed recently in my Probook4540 two Kingston memory modules  (2x8gb ddr3 1600 CL10 240 pin). Ever since I did this, Windows 8 takes much longer to boot and performance has significantly dropped. But, if I only place one of the two mo

  • How can I file a complaint about an employee who has been messing with me on purpose (on trades)?

    Hello. What's the best way to file a complaint against an employee who basically tried to ruin all game trades for me? She just stands there in the customer service section doing nothing, she paces back and forth while customers are waiting, and she

  • Why Images are not shown?

    Post Author: azharrahi CA Forum: .NET Hi How are all here ?I am using Crystal Reports in Visual Studio.net 2005. Now the problem is that Images are not loading in the web broweser. At runtime in visual studio.net 2005, the Images of Crystal Report Vi

  • Make dep never works in kernel source

    OK So.. i'm building the latest drm code from git to get Dave Airlie's source code for the R300 since he just dropped 5,000 line of source code out of the R300 tree using the Linus kernel git tree (i love unstable code) and in the DRI building guide,

  • Java Code to Download files

    Dear Sir, I would kindly like to know whether any java classes are existent ,avliable for download ,which would provide the facility to download a file from the server to the client machine.If not,kindly advise me on how to perform this task and kind