Compatability of struts from 4.1 - 6.5

Hi,
Did any one work with struts on Application server 4.1. I would like to know will there be any difference in implementing the struts on Application server 4.1 from implementing on Application Server 6.5.
We are using struts 1.0.2.
If any one has idea please share the information.
Thanks and Regards,
Rakesh

The phone was brought from Ireland. When it was brought in the Philippines, we can use it as is, we can put any sim. Then I upgraded it from IOS 4.1 to IOS 6. From then when I connect it to iTunes, I always get the error "We're sorry, we are unable to continue with your activation at this time.". Please do you know any way I can activate it?:(

Similar Messages

  • [SOLVED] Enabling debug for ath9k in compat-drivers-patched from AUR

    Wireless card: TP-LINK TL-WN951N. lspci says that it is an Atheros AR5416 adapter [AR5008].
    Some background: I'm having the same issues as the OP in this thread, which references this bug report. The problem is that I get a 2000 ms ping every 30 seconds. So 2 seconds of inactivity every 30 seconds. I have the same wireless PCI card, as well. I need to fix this, because it's making online gaming impossible. I should also note that the card is working just fine in Windows 8, however. I am using net-auto-wireless. I have tried using wicd, enabling ath9k's nohwcrypt option, toggling the card's power save, installing the latest compat-drivers-patched from the AUR, toggling different settings in my motherboard's BIOS, and removing the antennae from the card. But nothing has made a significant difference.
    I think I'm really close now. I just have to disable ANI. But in order to do that, it seems that I need to enable debugging for ath9k. But this means that I need to either recompile a custom kernel, or somehow enable debug for ath9k in compat-drivers-patched from the AUR. I'd prefer the latter, as that means that I will have a more bleeding-edge driver. That, and I won't have to touch the kernel as much. What I want is described on this page. But it seems too complicated to me. Please let me explain.
    I've installed things from the AUR before, as mentioned above, and have properly configured my makepkg.conf for my system. So I'd like to use the CFLAGS and such that I've set. I don't understand how everything works in the PKGBUILD; I don't have much experience with sed and awk and regular expressions, and haven't done much shell scripting at all. It seems that at some point in the PKGBUILD, I need to enable debugging for ath9k before it is compiled. Apparently on the last page I linked to, I need to add:
    export CONFIG_ATH_DEBUG=y
    export CONFIG_ATH9K_DEBUG=y
    export CONFIG_ATH9K_DEBUGFS=y
    to some config.mk file. I can only get access to the config.mk file after I install the package with pacman. I've tried adding those lines to my /etc/profile file, and checked, after a reboot, with "set", that those variables are indeed set. But the thing is, with these variables set in /etc/profile, when I run makepkg, makepkg fails with an error 2. I tried again and got the same error. I removed those lines from my /etc/profile, rebooted, tried makepkg again, and everything worked. So putting those lines in my /etc/profile is not the solution, and I feel like I'm doing something very stupid. What am I doing wrong?
    I should also note that I've tried to read the wiki page on compiling a custom kernel using ABS, but it seems to just say "get your custom configuration files" and then just continue (so it assumes that I should already be familiar with the configuration part). The PKGBUILD and Creating Packages wiki pages also seem to be a little... too advanced for me at this point in time.
    So how do I enable debugging for ath9k in compat-drivers-patched from the AUR? I'd prefer to stick with only editing the PKGBUILD and using makepkg, if possible.
    I've really tried to search the web and the arch forums on how to fix this problem myself, but alas, it seems that I need help this time. I greatly appreciate your time for reading my long post.
    UPDATE:
    I've made a lot of progress. I ended up removing the AUR package with pacman by invoking "pacman -Rsn compat-drivers-patched".
    Instructions for [almost] success: First, download compat-drivers-patched from AUR. Then move it to the "builds" directory (or "local", if using ABS). Extract the tarball. After the new directory is created, cd into it. Now here's the important part: run
    $ makepkg -so
    Then cd into src, cd into the directory inside src, then edit the config.mk file. Make sure these lines are uncommented (or created, if not already there):
    export CONFIG_CFG80211_DEBUGFS=y
    export CONFIG_MAC80211_DEBUGFS=y
    export CONFIG_ATH_DEBUG=y
    export CONFIG_ATH9K_DEBUG=y
    export CONFIG_ATH9K_DEBUGFS=y
    (source)
    Now run "cd ../.." to go back up two directories. Now run:
    $ makepkg -e
    # pacman -U <file that was produced>
    And I ran "mkinitcpio -p linux" just in case, but I'm not sure if that is necessary at all. I'm... not touching the kernel, right?
    Now I ran:
    echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/disable_ani
    But bash would say that the file or directory doesn't exist. Even if I prepend it with "sudo", I get the same results. I was only able to get the command to work if I logged in as root. I even put the line in my /etc/profile. The 2000 ms ping every 30 seconds is now GONE. HOWEVER! If I reboot and log in as a normal user, the problem is there again. If I reboot and log in as root, the problem is gone. If I then log out and then log back in as a normal user, the problem does not come back.
    So really, I can avoid the problem if I first log in as root, log out, and then log back in as a normal user. But this is a great inconvenience. I would much prefer if I could just log in as a normal user right after boot, and have everything working.
    Now, how do I get the command to automatically run at boot as root (without me having to log in as root), and work?
    UPDATE 2:
    I got it working. Putting the line in /etc/profile is not the solution. I created a custom systemd .service file.
    Put this into /etc/systemd/service (name it "disable_ani.service"):
    EDIT: Wow. I made a glaring typo here. It should be /etc/systemd/system/disable_ani.service
    [Unit]
    Description=disable_ani
    [Service]
    Type=oneshot
    ExecStart=/bin/sh -c "echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/disable_ani"
    [Install]
    WantedBy=multi-user.target
    Then make sure to "sudo chmod 755 /etc/systemd/service/disable_ani.service", since root owns this file.
    Then run "sudo systemctl enable disable_ani.service".
    EDIT: It has been brought to my attention that there is a much simpler way than creating a custom service.
    Using a tmpfile:
    /etc/tmpfiles.d/disable_ani.conf
    w /sys/kernel/debug/ieee80211/phy0/ath9k/disable_ani - - - - 1
    Done.
    Now ANI is persistently disabled between boots, even if I log in as a normal user right after boot.
    Thanks for reading.
    Last edited by vyu223 (2013-03-12 10:20:19)

    So zsh is telling you that the command didn't work, since it claims that there is no such file or directory. I had a lot of trouble with getting the echo command to work, as well. I found that if out of these lines:
    export CONFIG_CFG80211_DEBUGFS=y
    export CONFIG_MAC80211_DEBUGFS=y
    export CONFIG_ATH_DEBUG=y
    export CONFIG_ATH9K_DEBUG=y
    export CONFIG_ATH9K_DEBUGFS=y
    If the first and second line above were not uncommented in the config.mk file, I couldn't leave the last line above uncommented as well, or else makepkg would fail and give me an error. So originally I had only the 3rd and 4th lines above uncommented/inserted in my config.mk. With that configuration, I could not get the echo command to work, no matter what. Have you uncommented or inserted all of the above 5 lines into your config.mk?
    After making sure all of the above 5 lines were in my config.mk, the echo command still didn't work, even if I preceded the command with sudo, or entered a su session. Bash would tell me that there was no such file or directory. I found that if I actually logged out of my normal user, and then logged back into the computer as root, the command would work. If your shell does not give you any feedback (particularly, "no such file or directory"), then the command worked. In order to get the command to run every time the computer boots, I used a systemd service, so that the command is issued as root. For some reason, it doesn't work if you put the command into /etc/profile.
    Oh, and it would probably be helpful to mention that for the compat-drivers-patched package from the AUR, the PKGBUILD checks to see what your _selected_drivers variable is before compilation. If you set _selected_drivers=ath9k, your compile times will be much shorter.

  • I want to sample Sideman Strut from Garageband for an interlude I'm making for an album. How do I do so without getting sued for not clearing a sample/

    I want to sample Sideman Strut from Garageband for an interlude I'm making for an album. How do I do so without getting sued for not clearing a sample? Someone help please!

    I want to sample Sideman Strut from Garageband for an interlude I'm making for an album. How do I do so without getting sued for not clearing a sample? Someone help please!

  • How to populate page drop-down list in Struts from action?

    I have following mockup JSP:
    <td colspan="2" height="28"> <font size="2">
            <html:select property="sj">
               <html:option value="allj">aaa,1,str1</html:option>
             </html:select>
                        </font>
                      </td>
    ...Struts action will prepare results as String[] array e.g.:
    aaa,1,str1
    aaa,2,str2
    aaa1,1,str3
    aaa1,b,str4
    and I have to show this in the page as a drop-down list of values that are represented in this String[] array returned from Struts action.
    Should action return result array in original ActionForm submitted to the action by this page or should it just put the array into request or session? I need an example if possible
    Many thanks,

    Hi,
    In ur Action Class create aa ArrayList of LabelValueBean Object (use import org.apache.struts.util.LabelValueBean; )
    Eg:
    ArrayList myList  = new ArrayList();
    for( int i=0; i<10 ; i++ )
       myList.add( new LabelValueBean(  "Label of  "+ i , " value of " +i  ) );
    }put myList either in request or session
    eg
    session.setAttribute(  "DisplayList", myList  );****************************************************************
    in JSP use JSTL Tags for JSP
    eg
    <html-el:select property="listToDisplay"  style="width=200" size="1">
    <html-el:option value="-1">--Select One--</html-el:option>
    <html-el:options collection="DisplayList" property="value" labelProperty="label" />
    </html-el:select>Here "DisplayList" will be ref'ed from session scope or request scope.
    Hope this can solve ur Doubt.
    Ganesh

  • Password protection compatibility and using from our website

    I have a spreadsheet that was created in Excel 2013 with each sheet password protected, and there are two problems with opening it in Excel 2003, on a computer that has the Microsoft compatibility add-on fileformatconverters.exe that allows it to open files
    created with later versions.
    1) When I open the spreadsheet in Excel 2003, I can unprotect it without entering the password. Is there a way to require the password in 2003, same as when someone opens it in Excel 2013?
    2) I posted a link to the spreadsheet on our website. If I try to open it from the website with Excel 2003, it thinks it is a zip file. I can save it to my desktop by changing the file extension to xlsx, but is there a way to make it so that outside
    users can simply click on the file and it recognizes the file type?
    Thanks in advance to anyone who can help with these two issues.

    It's actually very easy to password protect a non-iWeb site on MobileMe.
    But you need iWeb first.
    Go to MobileMe and make a copy if your current index.html file.
    Start iWeb.
    Create a Site.
    Select password protect in the setup and publish to MobileMe
    Visit your site and make sure it displays the login window.
    Do not login otherwise you cannot verify it in the next steps.
    Go to MobileMe again and open the folder with the Sitename.
    Delete everything you see.
    Publish your RW pages to that folder.
    Delete the index.html file in the root and rename your copy index.html again.
    Now visit your protected Site.
    Enter the details.
    Your RW site will show.
    Go back to iWeb.
    Change the publish settings to folder. No need to select one.
    You can now safely deelte the Site if you want.
    Or keep the site and make a note on the page to remember the password in the future.
    Practice.

  • Compatibility of pictures from iPhoto to a PC

    I shared some photos I imported from my digital camera to iPhoto '08 to some PC users. They said they could not open and view the pictures.
    Is it possible to share photos that have been imported to iPhoto '08 to PC users? If so, what must you do?
    Thank you for looking;

    If you burned a disk of photos using the Share->Burn menu option then that would create a disk that's intended to be read by iPhoto. You want to export the photos to a folder on the desktop via the File->Export->File Export menu route and then burn that folder to disk via the Finder.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Platform compatibility question(s) from new user!

    I'm confused.
    I picked up Java a few days ago, with the intention of converting a long-standing JavaScript project that I have to run as an applet. I downloaded and installed the Java2 SDK (1.4) and associated runtime environment, and a simple but good IDE (JCreator 2).... and I'm happily developing applets to my heart's content. Cool language, by the way.
    HOWEVER, none of my colleagues (on IE5/5.5 on Win2K/Millenium) can view my resulting efforts. Their browsers complain that they can't find the class. Works on mine, on-line, just not theirs. I've sadly made the assumption that it's because I've installed the 1.4 JRE and they haven't.
    I REALLY want to use 1.4 to develop if I can. My JavaScript project that I'm converting is heavily dependant upon regular expression operations, and it would be a pity not to have them available - but platform compatibility is a must; this is a commercial project.
    I'm missing something here, and I need to ask some really fundemental questions.
    1. I was assuming that most browsers over 4.0 would support "Java2". Just what IS their level of support, by default. I hate new plug-ins, and the Java ones arent trivial!
    2. I had thought that any flavour of Java2 (1.2/3/4) would work on the same virtual machine release, and that new features in 1.4 would simply compile to existing bytecode sequences. Am I wrong?
    3. If I have to develop for maximum compatibility with earlier browsers, can I do this with 1.4 and some compiler switch, or do I have to download older SDKs?
    4. If the worst comes to the worst, is there a class out there that handles regular expression "style" operations that will work on older releases of the language.
    Sorry that there's a fair bit there to answer, but since I can't find this info ANYWHERE on the web, I guess I won't be the only newbie facing such issues.
    Peter McKean.

    just a few points to add to the other answer :
    HOWEVER, none of my colleagues (on IE5/5.5 on
    Win2K/Millenium) can view my resulting efforts. Their
    browsers complain that they can't find the class.
    Works on mine, on-line, just not theirs. I've sadly
    made the assumption that it's because I've installed
    the 1.4 JRE and they haven't.
    Yeah the Java support in IE is whack. The m$ JVM never got past java 1.1.4 compatability for various reasons. So unless you want users to install the java 2 pluggins, you have to code applets with the java 1.1 api. You can still do this with a java 2 sdk - you just have to watch the parts of the api you use.
    >>
    2. I had thought that any flavour of Java2 (1.2/3/4)
    would work on the same virtual machine release, and
    that new features in 1.4 would simply compile to
    existing bytecode sequences. Am I wrong?Yeah you are wrong ;) . When do do:
    import java.<package>.<class>
    you are telling the compiler where to find the classes you are about to re-use in your code. You are not including them in your final compiled class files. So when the program runs, it looks for the classes in the classpath. If you use classes that don't exist in an older jvm, the program won't run in that jvm. (Same as if a C or C++ program is dynamically linked to dlls (in Win32) or shared objects on unix - they need to be on the system that the program is executed on.)
    hope this helps...

  • How to populate form bean (Action form) from Action  (Struts)

    Hello to all..
    I have a problem populating a from bean in struts from Action class...
    What I would like is ..
    1. how can I populate a formbean from Action so when a page (JSP) with tags will be displayed some tags will be set and some no (depends on data from database)..
    example...
    look at the picture...
    http://freeweb.siol.net/peterv6i/ax1.jsp
    I have a AO2.jsp page linked to action2 and also i have a formbean with set/get methods...
    nex step.. when I call action2 I' retrive datas from my database and in Action class I would like to populate formbean which is from page AO3 (which will be displayed)..
    Is this possible? here is my code but work only for 1 user.. if there are 2 or more users on page I get internal server error (Exception)..
    this is my Action class
    public class Action2 extends Action
    public[b] ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    System.out.println("Action2");
    session = request.getSession();
    if (session.isNew()) {
    response.sendRedirect("AO2.jsp");
    AO3formbean frm = new AO3formbean(); <-- this is formbean from page AO3.jsp which I like to populate
    frm.setName("xxxxxx");
    frm.setSurname("ekekelek");
    session.setAttribute("AO3formbean", frm); <-- here I put a formbean in session
    return mapping.findForward("success");
    then the AO3.jsp page will be called which use a AO3formbean... and here problems come... If only one user use the application all is ok.. but when two or more users use the same form with different session the page will not work well.. sometimes i get exception, sometimes white page.. sometimes nonsense datas are displayed..
    Anybody know if is possibile to populate a formbean and store it in session or I must change whole code?
    for example...
    In my form i must enter a car assicurance policy number... (page AO2.jsp)..
    then in the action form I must connect to my database and retrive information from table and populate bean which is also a formbean on the page AO3 which will be desplayed.. (if I'am doing something wrong please let me know the right way)
    best regards

    http://freeweb.siol.net/peterv6i/ax1.jpg

  • SAP E-Commerce for mySAP CRM / mySAP ERP from struts to Visual Composer?

    Actually, "Internet Sales" as known by most of the people,   is based on STRUTS (from Apache) that it's not so much common in SAP NetWeaver based solutions.
    Anybody knows if SAP E-Commerce will be released also based on Visual Composer or Web Dynpro?

    closed

  • Jsp, struts, problem in session invalidation

    Hello,
    Though have seen many topics here related to this, still cudn't get a proper solution. I'm having a struts application with many jsp's. have used session.invalidate for expiring sessions. Now the problem is my jsp have both button specific action and <html:link> forwards. tried including "response.setHeader("Cache-Control", "no-cache"); //Forces caches to obtain a new copy of the page from the origin server
    response.setHeader("Cache-Control", "no-store"); //Directs caches not to store the page under any circumstance
    response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
    response.setHeader("Pragma", "no-cache"); //HTTP 1.0 backward compatibility"
    got it from one of the topics here only.
    Now when i logout from any of my jsp and press back button of browser, the jsp's having struts specific action(http://...../xyz/edituser.do)works fine but forward specific jsp's(http://...../xyz/edit.jsp) is not redirecting to my login page(page not found error :- /xyz/edit.jsp). Also what if i press the browser back button more thn once????? weather this thing works on client side???at the moment in my application even the action specific logout is not working.........how can i solve this problem elegantly?????

    I faced same problem.
    I used below code.
    This code in every Authorized page.
    <%
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.setDateHeader("Expires", 0);
    response.setHeader("Pragma","no-cache");
    %>
    <%
    String username=(String) session.getAttribute("user");
    if(null==username)
         response.sendRedirect("../jsp-modLogin/login.jsp");
    }This code in logout page
    <%
    session.removeAttribute("user");
    session.invalidate();
    response.sendRedirect("../index.jsp");
    %>For me, It is working fine...
    Check it with ur code
    Regards
    Ramesh

  • Upgrading Hard Drive from 200GB (7,200rpm) to 320GB (7,200rpm)

    I very much would like to upgrade the hard drive in my MacBook Pro 17" from the supplied 200GB 7,200rpm to the newer larger capacity of the 320GB 7,200rpm being recently made available.
    I purchased my MacBook Pro 17" as a custom spec in the second half of 2008. At the time it had to be ordered as a custom spec in order to have it supplied with the maximum 4GB RAM, only weeks before it became a standard spec on the current MacBook Pro 17" along with the new option of having the larger 320GB 7,200rpm fitted.
    I need at least 250GB to 300GB available hard drive space on my portable MacBook Pro, without the need to have to plug in any from of external unit (MacBook Pro only). I have installed some very large applications such as Apple Logic Studio, Apple Shake 4.1, Apple Final Cut Studio and some other's to name but a few, which have left little to no realistic working space, nor any realistic space for many additional user files which I later would like to store and be readily available on the MacBook Pro and not some inconvenient external drive which I would only use for time machine and archiving. The extra 120GB available on the newer 320GB 7,200rpm that was introduced and made available weeks after I obtained my unit, would certainly give a much needed working/storage capacity and with the much needed rotational speed of 7,200rpm as currently with mine being necessary for music studio use and HD video editing.
    Hard drive aside, I understand and am led to believe that the current MacBook Pro 17" currently and basically is the same unit as with my MacBook Pro 17" and Apple themselves pointed me in the direction of legitimate authorized Apple service and repair centers for arranging a hard drive upgrade. Using an authorized service/repair centre is necessary in order to keep the (extended 3 year) warranty intact. Trouble is on contacting the authorized service centre, they then allegedly checked this with Apple themselves before getting back to me and saying that it would not be possible due to the possibility of overheating from the newer drive, yet my MacBook Pro 17" runs quite cool with it's current 7,200rpm 200GB drive.
    Is my MacBook Pro 17" doomed and I therefore can't upgrade to the larger 320GB drive at the same 7,200rpm spindle speed? Is my only choice to get-rid of the MacBook Pro I currently have? To be able to upgrade to the now fitted 320GB 7,200rpm drive in the current MacBook Pro's 17" would help me 'no end' and save me from having to ever consider selling all that I've invested with Apply recently, that would be a shame.

    Thanks for both your suggestions.. I see that http://www.barefeats.com/ has some very useful info which I found on this page http://www.barefeats.com/mbpp08.html
    Here they show both the WD Scorpio Black 7K 320G (320GB 7,200rpm) and the Hitachi 7K320 HDD (320GB 7,200rpm) drives to be both quite suitable, with the latter being the one installed on current MacBook Pro 17' notebooks as an option.. however I am now becoming excited at the option of possibly being able to upgrade to the new Seagate Momentus 7200.4 which will feature 500GB of storage, 7200rpm and 9.5mm thickness, this really would help me very much for my intended use and all self contained within my MacBook Pro 17".
    However I am really left feeling a bit still unsure and weary as to the full and total compatibility for upgrading to one of these with my current MacBook Pro because of what the authorized Apple service/repair centre had told me. They seemed quit adamant at the time having took my MacBook Pro's serial number and then checking that with Apple technical as to it's compatibility to upgrade from it's current factory fitted 200GB 7,200rpm drive to the 320GB 7,200rpm HDD now on offer as an option to the current MacBook Pro 17" models.
    Therefore just to re-confirm, I have a MacBook Pro 17" Intel Duo 2.6GHz 4GB RAM 1920x1200 display 200GB 7,200rpm drive, which I purchased around August/September 2008 only weeks before the 320GB 7,200rpm drive became an option on newly ordered MacBook Pro's (I missed this option by weeks). For absolute verification, my MacBook Pro 17" system information is as follows:-
    Hardware Overview:
    Model Name: MacBook Pro
    Model Identifier: MacBookPro4,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.6 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 6 MB
    Memory: 4 GB
    Bus Speed: 800 MHz
    Boot ROM Version: MBP41.00C1.B03
    SMC Version: 1.28f1
    As you can see my Model Identifier is: MacBookPro4,1
    With these details, could it be verified that this/my MacBook Pro 17" would be fully compatible with any of these three aforementioned drives? i.e. the following three models (especially the 500GB seagate):-
    The WD Scorpio Black 7K 320G (320GB 7,200rpm)
    and/or
    The Hitachi 7K320 HDD (320GB 7,200rpm)
    and/or especially
    The new Seagate Momentus 7200.4 with 500GB of storage, 7200rpm and 9.5mm thickness
    or maybe any other very Large capacity and fast operational drive that may improve over the three drives mentioned above.
    All help and confirmation is very appreciated, thanx..

  • Eror downloading a XLS file on the portal hosted struts/j2EE application

    guys,
    1st of all please bare with for writing such a huge mail but to explain the scenario i had to do this.
    i am trying to download a XLS file from the web application (struts/J2EE) hosted on the portlet.
    on my portlet i have few text boxes and a button.
    onlcik of the buton there are few validation javascripts and if the valdatin is thrugh then the form is submitted.
    there are 2 ways i can submit the form to the struts action class.
    both approaches have some problem or the other.
    Apporach 1
    var postUrl = document.getElementById('getReportURL_$$PORTLET_ID$$').innerHTML;
    var post = new PTHTTPPOSTRequest(postUrl, form, handleInlinePostResponse_$$PORTLET_ID$$);
    post.invoke();
    this is like a AJAX request post where the response comes back in the function handleInlinePostResponse_$$PORTLET_ID$$ which can be then handled.
    Problems
    1. as from action class i am trying to send a XLS file, i am writing the byte stream of the XLS file on the output stream of the response. when the response reaches the function handleInlinePostResponse_$$PORTLET_ID$$ on portlet jsp it gives me an javascript exception 'End of file reached in invalid state for current encoding' but while sending the response i am encoding the byte stream.
    the code snippet from the action class is as below
    response.reset();
    response.resetBuffer();     
    response.setHeader("Content-disposition", "attachment; filename=" + reportData.getFilename());
    response.setCharacterEncoding("UTF-8");
    response.setContentType("application/vnd.ms-excel");
    response.getOutputStream().write(reportData.getContent()); //byte[] form of the XLS file
    return null; //as we write on the response out stream the response is already commited hence the return null has no significance.
    2. in case of the any exception on server side this approach is helpful as the error content jsp is rendered in to the portlet from where the action was fired.
    Approach 2
    form.action = "<pt:url xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' pt:href='downloadCommercialXLSReport.do'/>" ;
    form.submit();
    This approach is normal for submitting any struts from bean to the struts action class (i know this is not a aprropriate way to submit d form through portlet as it submits whole page inclusding all the portlet data)
    Problems
    1. here in case of the sucess the XLS file is returned to the browser which openes a browser specific dialogue box having 'Save' 'Open' and 'Cancel' buttons to save/open the XLS file. (please note no javascript exception occurs here as approach one as the byte streeam content is returned to the browser directly and not to any post response handler function as handleInlinePostResponse_$$PORTLET_ID$$)
    2. But here the problem is in case of any sever side exception the error jsp is rendered on whole browser page and not in portlet which is kinda goofy.
    so now i am in a catch 22 scenario each approach has 1 problem either in success or in failure flow.
    can sombody suggest me a way out from this as i desperately need to download a XLS file.
    lemme kno if anybody has done a similar download stuf through portal server.
    regards,
    Sush

    i have done this before although it was in .net. try the first approach but first pop to a new window....the xls response has to be the only response to the browser or else the browser will take the other bytes returned as garbage and call the stream corrupt. let me know how this goes for you.
    if you still have problems i can post the code that worked for me. it is in c# but looks very similar.

  • Context Root problem migrating from WAS 4.0.4 to WAS 5.11

    Hi,
    Hopefully this is the most appropriate forum, apologies if not.
    I have a problem in migrating an application from WAS 4.0.4 to WAS 5.11, whereby the Context Path of the application is not being included within the URL of a servlet.
    When a user submits one of the application forms (presented as a JSP) and the application is running on WAS 4.0.4, the Form Action URI is "re-written" to include the Context Path of the application i.e. where the URI is "/xx/list.html", the domain is "www.mydomain.com" and the Context Path is "/myapp", on the 4.0.4 server the form submission is redirected to:
    www.mydomain.com/myapp/xx/list.html
    However, once deployed on WAS 5.11 and updating the Context Path in the EAR file as required during deployment, the application redirects to:
    www.mydomain.com/xx/list.html
    ...which causes an HTTP 404 error as you might expect.
    I have included debugging to display the context path at the point of submission and it is what you would expect i.e. "/myapp". The problem seems to be some kind of disconnect between the servlets or application and the application server container(?), perhaps in that it doesn't understand the context in which it exists at the point when the URL is being constructed.
    Can anyone give me some pointers as to why the servlet URL isn't being constructed with the Context Path of the application on WAS 5.11 when it is on WAS 4.0.4 please?
    Thanks in advance
    Jon Sumpster

    I found the problem.
    The default value of the 'com.ibm.websphere.sendredirect.compatibility' variable changed from True in WAS 4.0.4 to False in WAS 5.11. Changing this resolved the problem.
    Regards
    Jon

  • Question about compatibility of OS X 10.6.8 system disk

    I recently bought a used early 2006 iMac Intel (Model 4.1) from an authorized Apple reseller (my old iMac G5's logic board finally died and was not worth fixing), which came with a fresh install of Snow Leopard OS X 10.6. I have updated all the Apple software on this computer and backed it up onto a bootable backup firewire external HD.
    My question is: If I buy a new OS X 10.6.8 system disk from Apple, and if I ever have to reinstall the operating system onto the iMac (NOT an erase and install), would there be compatibility problems resulting from my using a NEW disk on an iMac whose (updated) OS X 10.6.8 system software was originally installed with ANOTHER OS X 10.6 system disk? (I don't know for sure what version of OSX 10.6 was used in the original install, although I think it was 10.6.8.)
    Incidentally, having Snow Leopard is Great. It makes much more software available that was not compatible with Tiger. (I also have some newish PCs with Linux that help meet my computer needs.)
    Many thanks for any feedback.

    Apple sells Mac OS X 10.6.3 DVDs. These can be used on any Intel Mac which originally shipped with 10.6.2 or earlier without running into compatibility problems.
    (89825)

  • Want to shout it from the roof tops!

    I don't know if it is allowed to write this in here, but I really need to get it of my chest so here it is:
    About a month ago, after always having been a PC Windows user, I bought a MBP 2011. I had very high expectations and was expecting to be disappointed when it would finally arrive.
    (Well, not entirely a complete PC Windows user, my first contact with computers was with an Apple ][e, one of those great machines that Jobs had almost made with his own hands.)
    But, NOT AT ALL! I was not at all disappointed. On the contrary, today still I am so amazed by it's great power!
    I have been a software developer from my first computer until now. I even created my own OS (from scratch, not based on linux or something) when the intel 386 technology came. So I really know what's happening inside the hardware too. I was always mad when I saw how badly the hardware we have today is being used and how the only solution to this seemed to be "make faster processors".
    The mac has shown me that there is another world out there.
    Because my work is mostly under windows, I had to install a windows. I did so in bootcamp so that I would be able to play a DirectX 10/11 compatible game is I want to, and I installed parallels to enable windows under mac os.
    Wow! How great does this work together! And, lol, compiling our huge software takes the least time than everyone else on this company (even though they have recent pc's), and it even takes less time under parallels than running natively (explain that!). Windows seems to be continuously doing stuff on the HD while in parallels this is a lot less or something.
    Anyway... I thought that by now I had seen it all, but then I inserted my headphone in this new mac and played some of my favourite music... I have never heard a laptop that plays sound this crisp clear, no hiss, no static, just perfect! And this thing goes LOUD (which is good, because my high fidelity headphone takes more power).
    So again, sorry if I shouldn't post this on this forum, but I really had to tell someone and... I know you are all smiling now, so what's the harm.
    Dirk.

    From the start of your comment, I wasn't sure which direction you were going to go in. It's always nice to hear about people having good experiences. For starters... created your own OS?... even the most basic rudimentary OS created from scratch is quite an accomplishment.
    One of the reasons OS X is as efficient as it is is because Apple pretty much abandoned legacy OS support with OS X... and legacy hardware with the into of Leopard. This lets them keep the OS streamlined and efficient. As Windows needs to support such a vast amount of hardware and needs to be compatible with versions going back quite some time, it has tended to get a bit bloated. Frankly, I'm sure Microsoft could manufacture an efficient clean OS (Windows 7, even with it's legacy support, isn't bad... although it does need its resources). The problem is that so many businesses run on Windows... and quite often dated versions... that Microsoft can only do so much while maintaining backwards compatibility. Apart from OS related compatibility issues, things like newer file systems are almost impossible to implement when so many organizations have so many interconnected systems. I started a job about six years ago... and they were actually running NT and they were one of the largest insurance companies in the world. Not being the business OS of choice has let Apple be a bit more nimble in terms of their development path.
    The great thing about having a strong PC background is that you can enjoy playing around with OS X and learning how things work and how the OS differs from Windows. Quite often people who just "use" Windows are frustrated when they try any different OS (BeOS, Linux, OS X... etc). They want to be able to do the same thing the same way. For me, learning the differences is the fun part.
    I remember growing up... computers didn't really become mainstream until I was in late middle school or early high school. At that time, I thought "Wow... kids being born today will be so much more fluent in this technology than I ever will be since they'll be growing up with this stuff for their whole life". Interestingly, that never happened. Computers pretty much became tools. Most people know how to turn them on, play their games, check out FaceBook, and that's about it. I guess it's sort of like cars. Most people know how to start them up and use them... they might be able to turn on the air conditioning and radio... but they have no idea how anything actually works or the ability to fix anything should something happen. While you can certainly appreciate the Mac ecosystem as a novice user... it's a lot more fun when you can really appreciate what's going on "under the hood".
    +*I don't know if it is allowed to write this in here*+
    Oh... and technically... I would say it's not allowed
    We're usually pretty quick to tell people who complain that it's against the Terms of Use. Positive comments are against the Terms of Use for the same reasons. Of course we all like to hear good things and tend to be a bit reactionary when someone seems to be just complaining... but they're both non-technical rants (either good or bad). No one is ever going to pull a positive comment though and I aways enjoy reading them. I guess that makes me a bit prejudiced as I don't really have a problem with that. But... you did ask.

Maybe you are looking for