PLEASE HELP - cant switch frame from html to excel and vice versa!!

Hi
I'm have been unable to dynamically change an html frame to display in excel format.
The variable that determines whether this page should be html or excel comes from another frame.
Its not working...
Any ideas why this would be?
seems to be a straight forward issue, but I can't seem to solve it.
****code below****
<%
String xFmt = (String)request.getParameter("passFmt");
if (xFmt == "1")
response.setContentType("application/vnd.ms-excel");
else
response.setContentType("text/html");
%>

SORRY...."my bad" (as it were)...
should have been
if (xFmt.equals("1"))
rather than
if (xFmt == "1")

Similar Messages

  • How to change view in iPhone from vertical to horizon and vice versa?

    How to change view in iPhone from vertical to horizon and vice versa?

    Not all applications will go from Portrait to Landscape. Changing just requires you to turn the device. However, if you have the orientation lock activated, then it will not change to landscape. To check, look in the status bar and see if you can see a small lock shaped icon near the battery icon. If you do, then orientation lock is activated. To turn it off, swipe upwards from the bottom of the iPhone screen to bring up Control Center. The orientation lock is the last icon on the top row to the right. Tap on it to turn it off. White is on, black is off.

  • How do I transfer songs from Itunes to Iphone and vice versa?

    How do I transfer songs from Itunes to Iphone and vice versa?

    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • Server not found when switching from 4g to wifi and vice versa.

    I've had this issue for a while across multiple phones and multiple versions of Firefox for Android, and it does not happen with any other browser (which is upsetting). Whenever I am surfing the web and have multiple tabs open, and I switch from 4g to wifi or vice versa, I always get a "Server not found" error on both existing tabs and new tabs. This is an annoying issue that I am surprised to see hasn't been fixed. The only way I've been able to fix it is to quit and relaunch the app. I have tried removing plug-ins and reinstalling, but it has not helped.
    Anything I could do to alleviate the issue?
    LG G2 and Samsung Galaxy Note 3. Both on Android 4.4.2
    Firefox for Android Ver. 35.0.1

    ''Roland Tanglao [[#answer-698502|said]]''
    <blockquote>
    Hi scruffy90:
    You wrote "LG G2 and Samsung Galaxy Note 3. Both on Android 4.4.2 Firefox for Android Ver. 35.0.1 "
    I just tried switching between HSPA+ aka 3G and WiFi on a Galaxy S5 running Android 5 and have had no issues but I think this may have been an issue in the past (I did a search for a bug in bugzilla.mozilla.org but couldn't find anything).
    Are there any other details you could provide that could help us debug?
    e.g.
    # Are you using a proxy?
    # Who is your WiFi provider?
    # Have you tried other WiFi (e.g. the Wifi both at home and work)
    Cheers!
    ...Roland
    </blockquote>
    Hello Roland,
    No proxy on the phone or wi-fi network.
    My ISP is Time Warner, but I supply my own router (Linksys e4200)
    And this happens on every wi-fi network, at home and away from home.

  • My screen goes off and on once its changes power from AC to Battery and vice versa

    Dear All
    I started noticing this from today ownwards that whenever the power is switched off and goes to battery mode and vice versa the screen turns off and on for 1 second. I dont know this is normal or i did mess up with some kind of power options. I am using T410i.
    Please help me out in this.
    Solved!
    Go to Solution.

    Hi sanku500, and welcome to the Lenovo User Community!
    What you're seeing is the video refresh rate switching:
    http://forums.lenovo.com/t5/ThinkPad-Edge-Knowledg​e-Base/Display-screen-flickers-blinks-goes-blank-o​...
    Hope this helps!
    I don't work for Lenovo. I'm a crazy volunteer!

  • Syncing photos from iPad to macbook and vice versa

    I recently synced my ipad with my new macbook air. I successfuly imported all my photos from my iPad to iPhoto on my laptop.  However, now everytime I connect my ipad and laptop iPhoto opens and asks me to import all the photos all over again, despite the fact that they are still all there.
    I haven't synced my photos with another computer before. I want to be able to add a photo onto my ipad and have it on my laptop and vice versa.
    This doesn't have to be done wirelessly, I am happy to only have it happen when I plug them togerther, but I want the same photos on both my laptop and iPad.
    I havent really messed around with anything as I am afraid of wiping my photos. I understand that I may have to do this via a third party or something, any help would be great.
    Thanks.

    Connect the iPad to your Mac then launch iTunes.
    Select the iPad under Devices then select Photos from the menu.
    Deselect:   Sync Photos from
    You probably have iPhoto selected from the pop up menu.
    Deselecting Sync Photos from should prevent the prompt to sync every time you connect the iPad.

  • How to sync garageband projects from mac to iPad and vice versa

    how can I sync garageband projects from iPad to MAC and vice versa

    Hi Marko,
    Please send your .muse file to [email protected] Add link to this forum post  and refer it to me. I'll investigate the issue.
    Also, please send the file you created on MAC.
    Regards,
    Aish

  • UCCX changing time variables from AM to PM and vice-versa

    Hi all.
    I have an extremely irritating issue that I'm hoping someone can shed some light on.
    I'm currently making improvements to one of our contact centre scripts. We require to activate redirection on the fly quite often, and in the past I used a modified script with different time of day tests.Going forward I wanted to provide the ability for this to be activated and times set through the GUI.
    So I made some variables as parameters, of note these are RedirectOperation (boolean), RedirectFrom (Time) and RedirectUntil(Time).
    The flow is that if RedirectOperation is true, a time test is performed to dictate when we redirect - this is in the form of:
    (T[now] >= RedirectFrom) && (T[now] <= RedirectUntil)
    Now I know I can use T[now].before(xxx) etc but the operation itself isn't the issue, it does work perfectly fine this way, but the times change from AM <<>> PM under certain conditions.
    To explain:
    I set the default (on the script itself) RedirectFrom to "T[6:00:00 PM]" and RedirectUntil to "T[11:59:59 PM]".
    When debugging the script, I can see that the system changes the times from PM to AM (under the variable list on CCX editor during a reactive debug) ! That's if I've not selected these parameters on the GUI. If however, I do select the parameters and still use the default values, when debugging, they stay as PM!!
    This is surely a bug??
    To try something else, I changed my time format to 24 hour clock - so 18:00:00 and 23:59:59 respectively. I can set these on the script itself, and if the parameters are unchecked and left at default, it works fine. However when I select the parameter and try to change the times to (for example) 19:00:00 and 22:59:59, the GUI spits an error saying:"* Please enter a valid date for the Date configurable variable." I can only assume there is a mismatch between what you're allowed to put into the script and what the GUI thinks you're allowed to.
    But certainly the script surely should not be changing between AM and PM when a variable is left to default??
    Any ideas would be greatly appreciated!
    Thanks in advance.
    Scotty

    After choosing your start time you should be able to click to the right to change from AM to PM or vice versa by using the up/down button.  I just did it.
    If your DVR is not cooperating, try rebooting it.

  • Replication of Custom Fields from CRM to ISU and Vice versa

    Hi Experts,
    We are working on adding Z fields on BP level. For this how does the replication of the values takes place from CRM to ISU or vice versa. What are the middleware enhancement we need to do in CRM side or in the ISU side. We would add the fields on web UI crm side by AET but at ISU side how we need to do that and how would the field values replicate in both the system.
    A approach for adding BP custom fields in CRM and its interaction with ISU and vice versa would be appriciated.
    Thanks,
    Mayur

    Excuse, you may enter more in detail?
    I have created a custom field on BP using the AET would now like to replicate this custom field in BP also in ISU.
    I can do all this using the EEWB, but I would avoid it, since, in ISU we already have custom fields on BP, I just can not link them with CRM.

  • Syncing contacts from iPhone to Outlook and vice versa

    I have the new iPhone and I have set up an account in Outlook and have it sync from my MSN Hotmail account. Everything syncs and looks good with the exception of my contacts. I need to know how to put a contact into my phone and have it sync into my Outlook and vice versa. Currently if I put a contract in my phone it does not go to Outlook and if I put a contact in Outlook it does not go to my iPhone.
    Do I have to add a new contact to the MSN hotmail account and then it will sync to my Outlook and then my iPhone? How do I get the contacts to go from my iPhone to my Outlook and then to my Hotmail?
    Same issue with Calendars.
    Thanks!

    The iPhone supports syncing contacts and calendar events with Outlook 2003 or 2007, which is selected under the Info tab for your iPhone sync preferences with iTunes. Syncing contacts and calendar events direct with Outlook 2003 or 2007 via the iTunes sync process syncs direct with the Outlook address book and calendar - with what is available locally on your computer in the Outlook address book and calendar.

  • Please help me capturing data from HTML table

    Hello Everyone,
    Our Storage subsystem generates a html table containing all LUN allocation for printing. I am saving this html file on disk to collect all table infomation and to put it into a database.
    I am having problems extracting table information from the html file. I tried using regular expressions but still not going anywhere. Below is a sample few lines from the html file.
    Please your help is appreciated solving this problem how to collect this information from a HTML file or if Java has any class for this type of purpose.
    Please advice
    arsi
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!-- saved from url=(0068)https://10.210.44.14/cgi/rsConfigPrintDisplay?200702121685061633,FS,2 -->
    <HTML><HEAD><TITLE>Volume Assignments</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252">
    <META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
    <BODY><FONT face="Times New Roman,Times" size=2>
    <TABLE cellSpacing=1 cellPadding=3 border=2>
    <CAPTION>
    <H2>Volume Assignments</H2></CAPTION>
    <TBODY>
    <TR vAlign=top>
    <TH><FONT face="Times New Roman,Times" size=2>Volume</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Location</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>LSS</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Volume Type</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Size</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Storage Type</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Host Port</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Host Nicknames</FONT></TH></TR>
    <TR vAlign=top>
    <TD><FONT face="Times New Roman,Times" size=2>02A-25015</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>Device Adapter Pair 1</FONT>
    <BR><FONT face="Times New Roman,Times" size=2>Cluster 1, Loop A</FONT>
    <BR><FONT face="Times New Roman,Times" size=2>Array 2, Vol 042</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>0x10</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>Open System</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>000.9 GB</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>RAID-5 Array</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>Fibre Channel</FONT>
    <BR><FONT face="Times New Roman,Times" size=2>ID 00, LUN 502A</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>R1L01_0,</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>R1L01_1,</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>R2L08_1,</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>R2L08_0,</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>S3L06_0, S3L06_</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>1, S4L06_0,</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>S4L06_1</FONT></TD></TR>
    <TR vAlign=top>

    i wrote the programme for 2 stepper motor as attachment file below. they are run. but when the "start" button is ON then the "emergency stop" is not effects.
    for "emergency stop" functions, i used 4 limit contactors. if one of them is "on" then the programme will be stop.
    but in fact, when the system is running, i can not stop if one of the limit contacor is on.
    cuold you please help me to do with this problem.
    thanks
    Attachments:
    EMERGENCY STOP.vi ‏435 KB
    toolpaths-ut.vi ‏64 KB
    parallel program motor 1,2.vi ‏96 KB

  • How to send multiple objects from appleto to servlet and vice versa

    how can i send multiple objects(ArrayLists and String) from servlet to applet and applet to servlet?

    Use an HTTPUrlConnection from the Applet to the Servlet to send data to the server, or request information from the servlet. To actually transfer the objects you will have to use a serialized version of the objects, almost always by wrapping the streams generated via the UrlConnection in ObjectOutputStream and ObjectInputStreams.

  • Please help-cant add apps from ipod can buy them but they dont install

    i have a ipod touch, but i cant get apps on my ipod if i buy them on there, i can pay for them but it wont install them. If  plug it in to the comp they will normally go on, but i used to be able to get them straight from the ipod??

    I would try:
    - Resetting the iPod:
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Next reset network settings on the iPod: Settings>General>Reset>Reset Network Settings.
    - Next would be to restore the iPod.  However, I would wait on that since maybe Apple is having a server problem.

  • Logic error in rotating a bot towards a target (switch from -180 to 180 and vice versa causes error)

    Hi,
    I am making a Bot class. This function rotateTo makes the bot rotate towards some coordinates, xTarget and yTarget.
    There are two targetRadians lines because it is easier to read for me.
    The target radians shows the angle of the target from the bot where the bot angle is this.angleRot.
    if the bot-angle minus the target-angle (it says in radians but is actually in degrees) is less than 0 it turns right and if it is greater than or equal to 0 then it turns left.
    public function rotateTo(xTarget, yTarget):Void {
                        targetRadians = Math.atan2(yTarget-this.yPos, xTarget-this.xPos);
                        targetRadians = Math.round(radiansToDegrees(targetRadians));
                        trace(targetRadians);
                                  if (this.angleRot-targetRadians<0) {
                                            turnBot(5);
                                  } else {
                                            turnBot(-5);
    This basically works. The bot rotates towards the target at 5 degrees per frame.
    The angle setup is that if the target x, y is below the bot x, y, the target angle is about 90, if it's to the right its about 0, if its above it's about -90 but as the angle is decreased to -180 from above to the left of the bot, when it goes below the bot (and to the left) the target angle switches to 180.
    So something like: with the bot in the middle and the target being located at one of the numbers;
              -90
    -180               -1
    180               1
               90
    The fact the target angle switches from -180 to 180 or 180 to -180 confuses the bot and the bot decides to turn ALL the way the opposite direction BECAUSE;
    if the bot angle is 160 and target angle is 175, the bot angle increases because target is greater than bot angle. If the target angle changes to -180, bot angle decreases even though it's more efficient to change from 160 to -180 through increasing the bot angle as at 180 it changes to -180. I just cannot work out the logic to use to make this work though.
    Any suggestions? Thanks.

    Hey I got it to work finally:
    public function rotateTo(xTarget, yTarget):Void {
                        targetRotation = Math.atan2((yTarget-this.yPos), xTarget-this.xPos)*180/Math.PI;
                        if (this.angleRot-targetRotation>180) {
                                  this.angleRot -= 360;
                        } else if (this.angleRot-targetRotation<-180) {
                                  this.angleRot += 360;
                        if (this.angleRot-targetRotation<0) {
                                  turnBot(5);
                        } else {
                                  turnBot(-5);
    so basically I added a couple of if statements before the main business.... I don't really have a coherent explanation for the fix but it works!

  • Problem loading safari webpage after switch from EDGE to 3G and vice versa.

    ok, very simple question
    i'm on edge, i want to go on safari, so i enable 3G. after that i go on safari and try to open a webpage. even after the 3G icon displays on top, it still takes a very long time before the webpage starts to load. Sometimes i get a message saying Safari could not open the page because the server stopped responding. IS THIS NORMAL?
    also if im on 3G and switch down to EDGE and then open a page in safari i get a message saying Could not activate cellular data network, even though the page loads anyway. IS THAT NORMAL?
    Message was edited by: Stevendo

    are you on 4.0.1?
    if so then this of course is not normal but it is also happening to me
    ill be at home and have 3G on 4 bars and i try to load a page on safari and nothing happens, then i switch it to edge and it connects, but like u when switching from 3G to edge i get those messages.. also i noticed that this only happended after i updated to 4.0.1 and i NEVER got these problems b4 on 4.0 and to make things worse.. in order for my 3G data to work i have to make a phone call, hang up, then ill get connectivity on 3G..
    so the fix... i dont kno??
    but im suffering like u...

Maybe you are looking for

  • GR Print Out Put Types

    Hi Wats the diff between invidual slip and collective slip in MIGO screen Wats the std out put type for GR print out in mb90 Vijay

  • Using an external hard drive for an apple and a pc

    I recently bought a Seagate 250g external hard drive to store files from both an apple and a pc. What is the best way to format the drive (or partitions) so that i can reliably back up files from both the mac and the pc? I am using OS 10.4.2 on the m

  • Updating table

    hi friends, i have one table in my application. i will update cells by enetering data into it. here the problem is after i typed digits i need to press ENTER or i need to press TAB to update the entered value into table cell. is there any way that wi

  • Segregate the scrap as an operation wise during operation confirmation

    Hello PP Gurus,            One  FERT item's BOM contains 4 HALB items in which 3 are mentioned as an negative qty, ( it may be reusable scrap using in production again), and having 5 operation sequence. The problem is while confirming first operation

  • Publishing Bug

    I have set up several shows that can be successfully rehearsed, recorded, and reviewed with VC 3. However, longer shows (3-5 minutes) freeze during publishing. I have used pack and go and tested the show on three different computers. I have even unin