Code does not make any effect:need help

hello friends,
now i am going to describe the problem i am phasing
actually i have embedded japplets in a jsp page(appletjsp) and want to communicate japplets indeed jsp to a servlet in the diffrent derectory but in same context root.
moreover, i have written code at applet and servlet side both. actually there is a next button in one of japplets(embedded in appletjsp) and i have written the code(for servlet communication) inside button's mouse clicked event. and at servlet side, as usual i have got an inputstream from request and want to forward this request(after getting request dispatcher) to another jsp page(proposing to display this jsp page after clicking next button inside appletjsp ).
now the problem that made me a bit confused is that when i click next button after running jsp page(containing japplets) then neither there is any error/exception at server/IE's sun java console nor any effect of code at servlet side.
actually i am not sure that the servlet side code does not make any effect rather it is ony my assumption.
although i am very new in java and as what i know, to send back response to client side, servlet class needs to be run at server side and probabbly for that there must be a sepreat request from client's applet to server(please dont flame me if i am wrong).
so please tell  me how can i get running another jsp page running(to which i trying to get request dispatcher inside servlet) after clicking next button?
applet code
        try{      
        String[] data    ={"santosh","kumar","tripathi"};        
        String strwp ="/UASProject/RegistrationData";              
        URL jspURL = new URL(getCodeBase(),strwp);             
        System.out.println(jspURL);
        URLConnection jspCon = jspURL.openConnection();               
        jspCon.setUseCaches(false);
        jspCon.setDoOutput(true);
        jspCon.setDoInput(false); 
        jspCon.setDefaultUseCaches(false);   
        jspCon.setRequestProperty("Content-Type", "application/x-java-serialized-object");      
       BufferedOutputStream bos=new BufferedOutputStream( jspCon.getOutputStream());
        ObjectOutputStream oboutStream = new ObjectOutputStream(bos);             
        oboutStream.writeObject(data);         
        oboutStream.flush();        
        bos.close();
        oboutStream.close();        
     //  getAppletContext().showDocument(new URL(getCodeBase().getProtocol(),getCodeBase().getHost(),getCodeBase().getPort(),"/UASProject/faces/Editpage.jsp"),"_self");        
     }catch(Exception e) 
       {System.out.println(e);}servlet code
         try { 
                //    response.setContentType("application/x-java-serialized-object");
                     BufferedInputStream bis=new BufferedInputStream( request.getInputStream());
                    ObjectInputStream inputFromjsp = new ObjectInputStream(bis);                                      
                    reg_data = (String[])inputFromjsp.readObject();                             
                    out.println(reg_data[1]);
                    bis.close();
                    inputFromjsp.close();    
                   HttpSession session =request.getSession(true);
                  session.setAttribute("first_name",reg_data[0]);
                    getServletContext().getRequestDispatcher("http://localhost:8084//UASProject/faces/Editpage.jsp").forward(request,response);
               } catch (Exception e) {e.printStackTrace();}    although this topic has been made too long, even then please fix my problem.
thanks

When you formatted the system you erased everything on the harddrive, obviously, and so its just a matter of putting back the Apps and data that you want from your Backup that you made, BEFORE reformatting the harddrive.  You did make a backup, didn't you??   Your Time machine or other external harddrive backup can be used with Migration Assistant to return the iLife Apps to the iMac.  If he indeed purchased the iLife Apps from the App Store, then you would need to use His Apple ID account to redownload them; not yours.
Oh, and to answer your other question, no, iLife is not a part of any version of OSX itself.
Hope this helps
Message was edited by: Radiation Mac

Similar Messages

  • Resizing a TIFF File: Overwriting TIFFFields does not have any effect

    Hi,
    I have some TIFF files that I am receiving through a FAX server. Some of the TIFF files have an image length of *1077 pixels and a DPI of 200x98*. These images open fine in generic viewers like Microsoft Image Viewer and IrfanView and the image size in the information dialog shows up fine (1752x2158). But when I open the images in a LeadTools viewer (that works off TIFF Header tags), the image appears stretched out.
    I am trying to re-sample the image to make it a true Letter size image (1700x2200) with resolution of 200x200. I have been able to set the TAG_X_RESOLUTION and TAG_Y_RESOLUTION which I can see changed in the Tag Viewer. But changing the following tags does not have any effect on the resulting image:
    TAG_IMAGE_WIDTH
    TAG_IMAGE_LENGTH
    TAG_ROWS_PER_STRIP
    the following is the code I am using, I have tried all possible ways (removing TIFFFeilds and then adding them), but it has no effect. The last options is to use a Print Driver from within Java and Print the image (that re-samples it into a 8.5x11 inch image with 200 DPI). At this point, I am just curious about writing TIFFFields with images. Any ideas are appreciated:
    Thanks,
    Manuj
    +
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.util.Iterator;
    import javax.imageio.IIOImage;
    import javax.imageio.ImageIO;
    import javax.imageio.ImageReader;
    import javax.imageio.ImageWriter;
    import javax.imageio.metadata.IIOMetadata;
    import javax.imageio.stream.ImageInputStream;
    import javax.imageio.stream.ImageOutputStream;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import com.sun.media.imageio.plugins.tiff.BaselineTIFFTagSet;
    import com.sun.media.imageio.plugins.tiff.TIFFDirectory;
    import com.sun.media.imageio.plugins.tiff.TIFFField;
    import com.sun.media.imageio.plugins.tiff.TIFFImageWriteParam;
    import com.sun.media.imageio.plugins.tiff.TIFFTag;
    import com.sun.media.imageioimpl.plugins.tiff.TIFFT6Compressor;
                   //set the input stream for to the reader
                   tiffFileReader.setInput(tiffFileInputStream);     
                   //define the writer
                   ImageWriter tiffWriter = (ImageWriter) ImageIO.getImageWritersByMIMEType("image/tiff").next();
                   //define the writer param with compression;
                   TIFFImageWriteParam writeParam = (TIFFImageWriteParam)tiffWriter.getDefaultWriteParam();
                   TIFFT6Compressor compressor = new TIFFT6Compressor();
                   writeParam.setCompressionMode(TIFFImageWriteParam.MODE_EXPLICIT);
                   writeParam.setCompressionType(compressor.getCompressionType());
                   writeParam.setTIFFCompressor(compressor);
                   writeParam.setCompressionQuality(Float.parseFloat("1"));
    // get the metaData
                   IIOMetadata imageMetadata = null;
                   IIOImage testImage = null;
                   for(int i=0;i<filePageCount;i++)
                        imageMetadata = tiffFileReader.getImageMetadata(i);
                        TIFFDirectory dir = TIFFDirectory.createFromMetadata(imageMetadata);
              // Get {X,Y}Resolution tags.
              BaselineTIFFTagSet base = BaselineTIFFTagSet.getInstance();
              TIFFTag tagXRes = base.getTag(BaselineTIFFTagSet.TAG_X_RESOLUTION);
              TIFFTag tagYRes = base.getTag(BaselineTIFFTagSet.TAG_Y_RESOLUTION);
              TIFFTag tagImageWidth = base.getTag(BaselineTIFFTagSet.TAG_IMAGE_WIDTH);
    TIFFTag tagImageLength = base.getTag(BaselineTIFFTagSet.TAG_IMAGE_LENGTH);
              TIFFTag tagRowsPerStrip = base.getTag(BaselineTIFFTagSet.TAG_ROWS_PER_STRIP);
              TIFFField fieldRowsPerStrip = new TIFFField(tagRowsPerStrip, TIFFTag.TIFF_SHORT, 1, (Object)new char[]{2200});
              // Create {X,Y}Resolution fields.
              TIFFField fieldXRes = new TIFFField(tagXRes, TIFFTag.TIFF_RATIONAL,1, new long[][] {{200, 1}});
              TIFFField fieldYRes = new TIFFField(tagYRes, TIFFTag.TIFF_RATIONAL,1, new long[][] {{200, 1}});
              // Create Width/Height fields.
              TIFFField fieldImageWidth = new TIFFField(tagImageWidth,TIFFTag.TIFF_SHORT,1, (Object)new char[]{1728});
              TIFFField fieldImageLength = new TIFFField(tagImageLength, TIFFTag.TIFF_SHORT,1, (Object)new char[]{2200});
              //TIFFTag imageLengthTag = fieldImageLength.getTag();
              // Append {X,Y}Resolution fields to directory.
              dir.addTIFFField(fieldXRes);
              dir.addTIFFField(fieldYRes);
              //add Image Length and height parameters
              dir.addTIFFField(fieldImageWidth);
              dir.addTIFFField(fieldImageLength);
              // dir.removeTIFFField(278);
              dir.addTIFFField(fieldRowsPerStrip);
    testImage = new IIOImage(tiffFileReader.read(i), null, dir.getAsMetadata());
    +
    The resulting image with this carries the updated DPI values (200x200) but still carries the old values of 1752x1077, the length being exactly half of what Irfan view is showing.
    Edited by: Manuj on Nov 2, 2010 10:48 AM

    Your problem for some reason sounds familiar.
    EDIT
    Ok, now I remember. Your post is like this one in the old forums,
    http://forums.sun.com/thread.jspa?forumID=540&threadID=5425983
    Basically, for viewing purposes Irfanview scales the image's height by 2 and changes the dpi to *200x196*. It does this to achieve a 'square' pixel. The image that appears on screen now looks roughly how a printer would print it. However, the image data is still the same squished 1752x1077 image.

  • I'm trying to extend the range of an Airport Extreme 802.11g by adding an Airport Express 802.11n. I set the Express up to join the existing network, but it does not make any difference in the range of the network. What's wrong?

    I'm trying to extend the range of an Airport Extreme 802.11g by adding an Airport Express 802.11n. I set the Express up to join the existing network, but it does not make any difference in the range of the network. What's wrong?

    Let me see if I can help you with the basic WDS configuration steps:
    Note: To help facilitate the setup, temporarily connect the AXn directly to the AEBS LAN port using an Ethernet cable. Once the setup is complete, you can move the AXn to the desired location. For all configuration steps you will be using the AirPort Utility. Before starting, be sure to jot down the AppleIDs for both base stations.
    802.11g AirPort Extreme Base Station (AEBS) Configuration
    AirPort Utility > Select the AEBS > Manual Setup > Wireless tab
    Wireless Mode: Participate in a WDS network
    Manual Setup > WDS tab
    WDS Mode: WDS main
    Allow wireless clients (checked)
    WDS Remotes: <enter the AppleID for the AXn here>
    Click on Update and allow the base station to restart.
    802.11n AirPort Express Base Station (AXn) Configuration
    AirPort Utility > Select the AXn > Manual Setup > Wireless tab
    Wireless Mode: Participate in a WDS network (Note: You may have to hold down the Option (Mac) or Control (PC) key to see this option in the list.)
    Manual Setup > WDS tab
    WDS Mode: WDS remote
    Allow wireless clients (checked)
    WDS Main: <enter the AppleID for the AEBS here>
    Click on Update and allow the base station to restart.

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • My iPad 1 does not make any of the sounds (key clicking, etc) I have directed it to despite having volume turned all the way up...any thoughts?

    my iPad 1 does not make any of the sounds (key clicking, etc) I have directed it to despite having volume turned all the way up...any thoughts?

    Check to see if the "silent" switch is turned on. This is either the hardware switch next to the volume control or a software switch on the "recent apps" tray depending on how you have your iPad configured (Settings > General).
    Too see the software switch on the "recent apps" tray double-click the Home button and swipe the tray to the right.

  • My iphone 4 does not make any sound except when i have call. Any sound notification for example whatsapp or email or playing song i could not hear a pip, but when blug the earphone i could hear all sound via earphone, any advise??

    My iphone 4 does not make any sound except when i have call. Any sound notification for example whatsapp or email or playing song i could not hear a pip, but when blug the earphone i could hear all sound via earphone, any advise??

    Check the Mute switch, which is on the left side of the phone above the volume buttons.

  • Problems with Tomcat Server : Does not respond (Sometimes) - Plz Need Help

    I have a web application running on Tomcat 4.1.31. (SUN/Solaris)
    Clients access through iPlanet Web Proxy (SUN/Solaris).
    Theres a class that build a generic form (it return html codes) then it's affected in the JSP page :
    MyClass class = new MyClass();
    <%= class.getHtmlCode() %>
    the size of the form is variable (100Ko to 1,5Mo)
    When i m using the proxy, sometimes the server does not respond when he do the affectation <%= class.getHtmlCode() %>.
    If i call the page without proxy it work.
    The problem seem not depending of the size of the form. Without proxy it always work. And with proxy sometimes the server does not work.
    Please need help

    Originally Posted by scum
    Hey All,
    Need some help with ZDM7 PXE preboot services.
    Currently running a netware 6.5 server in VLAN1
    PXE client sitting in VLAN2.
    DHCP Server is running on VLAN3
    IPHelper is running
    DTS.ini, PDHCP.ini and TFTP.ini are unmodified.
    I have had networks put an IPHelper in place and my client successfully picks up an IP address. The screen displays the "BOOT SERVER IP" correctly and the clients IP details are correct.
    I watch the top of the screen where the Timeout counts down and eventually gives this error.
    "Error: The server did not respond as requested in time
    ZENworks shutting down...
    Press any key to continue..."
    This happens on every machine i have tested. If i hold down the Ctrl+Alt keys, then the imaging menu appears, i can select maintenance and the client will pull down the initrd, etc.. fine.
    if i disable the IPHelper, move the client to the same VLAN as the server, then the whole process works perfectly.
    not sure where to go from here.
    help please ;)
    leon
    Hi Leon,
    If you are getting the ZENworks menu when holding down the Ctrl-Alt keys, PXE/PDHCP seems to be doing the right thing. Routing issues also don't seem the case as you can pull down the first PXE boot files....
    The server running PXE, I assume it also runs the TFTP and Imaging services?
    These services are also running a recent version of Zen 7 (IR3/IR4)? A little more info on these components and what server they are on would be good :)
    Cheers,
    Willem

  • Windows XP re-installation does not recognize any hard drive - help

    Hi,
    I have X60s Model: 17044JU
    I have original XP installed.
    My computer is very slow and I am trying to reinstall XP from my CD (and format HD so I clean everything).
    When Windows installations blue screen shows up and loads drivers etc then it tells me that it does not recognize any hard drive.
    I thought I may need SCSI or RAID drivers but since I don't have floppy I can not load them.
    Any help how to install new XP would be appreciated.
    Thank you
    Miron
    Moderator edit: Masked serial number to prevent mis-use.
    Solved!
    Go to Solution.

    Hi
    I changed BIOS setup from AHCI to Compatibility and indeed it worked.
    However there is easier way to reload new system on thinkpad.
    I didn't know that but you can press ThinkVantage button when you start your laptop and IBM utilities start up.
    Then there is an option to reload the system to be in original state as shipped from the factory. It loads or drivers and initial programs. It also formats your hard drive.
    I found it pretty convenient.
    Thanks for help.
    mc

  • IPod does not function well. i need help!!

    I got this iPod, bought frm korea. Tried to dwnld songs in it. Wen connected to computer, it doesnt come out in iTunes. It comes out at mycom. Wen i dwnld songs manually, it cannot be play & my ipod went blank and turn off. went i connect it back, the files are corrupted and ther are viruses on it. itried evry solutions on the internet. i even format it wic i shud not do it. i need help. & this ipod doesnt look like an original one. since i bought it overseas, its hard for me to find a service product here.

    As you now know, it appears you have a fake iPod.
    http://discussions.apple.com/thread.jspa?threadID=972344&tstart=0

  • Opening from"Open Recent" does not show any files.  Help!

    Every time I start IBA the splash screen shows up the templates available.  At the bottom of the screen there is an option to "open recent" files.  The same at the "file" menu on the top menu bar.  I see no file records in either one.  I always have to use the simple "open" command and search for the files, where they are stored.  This is rather annoying as I would prefer to be able to open from "recent" as you are supposed to be able to do.  Please, give me some advice if I need to change something in the settings (I could not find any preferences allowing me to do this either.)

    It might be best to contact Apple for support so they can make sure you don't remove something otherwise important
    [email protected]
    …support phone number call +1 (877) 206-2092.

  • When ever I take a photo from my iPhone 5s and changes their effect. But I does not show any effect in my computer when i connect to laptop. Please suggest me its solution.

    When ever I click a photo with photo effect. Photo effect shows only in my iphone but it does not show in computer when ever I connect to laptop. So please resolve the problem.

    That is how it works. You will need to email the photo to yourself in order to preserve the edits.

  • TS3899 New Iphone5 will not allow me to send email.  Says "does not allow relaying"  I need help.

    I am unable to send emails on my Iphone 5.  Says "does not allow relaying"  Any suggestions as to how I can get this resolved?

    Try deleting the email account an readd it, this time add it under the "other" tab.

  • I just bought an Iphone4 from straight talk and my camera does not work. The shutter wont open and when it does open there is a black screen. I am very upset. I have wanted this phone for awhile and now that I have it, it does not work properly. Need help

    I just bought an Iphone 4 from straight talk. My camera does not work. The shutter does not open and when it does open there is a black screen. I am very upset. I have wanted this phone for awhile. I want the issue fixed.
                                                                                                                                                     Thanks

    Take the iPhone to an Apple store genius bar for testing, and if it is defective and under warranty they will replace.  Since you say iPhone 4, was this a used or refurbished iPhone? 

  • How can one use one specific security realm per application ? The realm-name attribute of the login-config tag of web.xml does not make any difference

    Hi,
    I have different sets of users coming from different databases and using different
    roles mapping for each of my web applications. I would like to configure a specific
    security realm per application in my weblogic server 7.0 . Is it possible ?
    I try to specify the realm-name of the login-config tag from the web-xml deployement
    descriptor but it doesn't make any difference. The default realm is always used.
    I also would like to tell the Weblogic server to use the default realm in case
    the realm isn't specified or isn't found. For example, the default would contains
    my admin users.
    Thanks a lot for your answer.
    Iz

    I thik this is a common mistake the ralm-name tag in the deployment descriptor is used
    just by the browser for display purposes (when it opens the basic auth dialog box) so as
    of now there is only 1 active realm which can have multiple providers as Kevin pointed
    out
    Kevin Lewis wrote:
    WebLogic 7 now ignores the realm-name tag (I found that out yesterday).
    My understanding is that there is only one realm active at a time for a domain
    (I would be interested in being contradicted in this).
    However, you can have multiple providers in each category of a realm: authentication,
    authorization, etc. Therefore, what you can do is key authentication, et al,
    off of some other information. We have our users enter their company, for example,
    and use the TextInputCallback to get it. You could also encode something in the
    initial page, based on the URL they hit, or whatever, and get that back in your
    callback.
    You can store that information in your own Principal implementation, and key off
    of that in your authorization provider, going to a different database as appropriate,
    or abstaining when a specific provider doesn’t have anything to say about a subject.
    Anyway, there should be a way to do it, even if it's more complex than you would
    have hoped.
    --Kevin

  • Font size is too small in flash applications and the "zoom" feature does not make any difference. Thanks

    Zoom dosen't work in flash applications and it is crazy small and too hard to read...this does beat out the fact you can't right click using flash in google chrome...I prefer firefox, but will go back to IE if it is the only program without such major bugs
    I have also reset the minimum text size in flash and that did not help the problem at all.

    Zoom dosen't work in flash applications and it is crazy small and too hard to read...this does beat out the fact you can't right click using flash in google chrome...I prefer firefox, but will go back to IE if it is the only program without such major bugs
    I have also reset the minimum text size in flash and that did not help the problem at all.

Maybe you are looking for