JSP with two different response options.

Hello to all.
Is there a way to handle this. (Please do not ask why i need this. I simply want it to work it that way!)
I do have a JSP File, where i process all 'logical' part at the top of the page.
than, at the buttom i do have my tags and the 'HTML' components.
Now: If the Client on the browser what's this view to be 'printable', i what this very same JSP file to return a different output.
Any idea?
kind regards,
Chaim
Edited by: chaimS on Jul 22, 2009 3:13 AM

the best solution for me would be to use CSS to control this.
http://www.alistapart.com/articles/goingtoprint/
Otherwise, you'd get something like an if/else for print view or web view.

Similar Messages

  • Set up itunes account with two different credit cards

    Is it possible to set up an existing iTunes Store Account with two different credit cards?
    I am currently registered with a personal card but wish to make one purchase for work (Lion OS) using a company credit card.
    many other sites let you choose what card to pay from, multiple addresses, etc. but I don't see any options from apple site.
    for this purchase I am considering:
    1. going into the "edit payment information".
    2. editing all the info related to the company card and address.
    3. completing the purchase and download
    4. going back to the payment info and putting back my original personal informaton.
    there must be an easier way -- or is this the only apple offering.
    any advice appeciated. TIA.

    the_0ne wrote:
    but this discussion is clearly for people that have multiple accounts because they have multiple credit cards.
    This is incorrect.
    It is very clearly for people with a single iTunes account and they want to use multiple credit cards for purchases on that single iTunes account.
    If I had one iTunes account with multiple credit cards registered (which again, is what this discussion is in reference to),
    Huh? You just wrote it was NOT that.
    I bought Lion through my company, which means I logged into the App Store with my company's credentials, of which I have my company credit card registered.
    You mean your company paid for it. You are simply the one who did the purchasing using company funds.
    I now have a new iMac of which I want to install Lion.  Apple allows you to install this same install multiple times on your own personal machines.  I had to remember which account I bought Lion on so that I logged into the App Store correctly.  If I would have logged into my new iMac with my personal account, I would have then bought Lion again, of which I didn't want to do.
    But you did not purchase Lion with your personal account. It was purchased on your business account.
    If you want Lion on your persona/home computers, you will need to purchase it.
    I also wanted to install iPhoto.  I bought iPhoto on my personal account.  I had to then log out of the app store from my company account and log back in using my personal account to install iPhoto or I would have just bought iPhoto with my company's credit card, of which I would have been in a good amount of trouble.
    Imagine if I bought 3 or 4 apps a week and these apps were scattered across my business account and my personal account.  Each time I wanted to install these apps on one of my multiple machines in my  house, I would have to remember which account I bought the app on. or go to my purchases or which there could possibly be dozens of apps in each account.
    I would hope that your company requires you to track purchases you have made with their money.
    And I would think that you would want to keep track of all business purchases so you can get reimbursed (for the purchases you made on their behalf). If/when you leave the company, they can get company owned software that you purchased with their funds.

  • I am using Windows 8 with iTunes.  How do I manage iTunes with two different Windows User Accounts?

    I have recently bought a laptop running Windows 8 and downloaded iTunes.  I subscribe to iTunes Match and have a large amount of purchased music and imported CDs, along with some films purchased from iTunes.
    I have downloaded all of the music and the films to the laptop using iTunes Match when logged in under my User Account in Windows 8.  However, when we switch to my girlfriend's User Account, she can load up iTunes but all the music and films have the cloud symbol on them indicating that they need to be downloaded
    Is is necessary to download everything to the computer twice (I can't really believe this is the answer) or are we missing something in terms of using iTunes with two different User Accounts?
    Thank you.

    Step 1
    Create a new user account on your device. For Mac users, choose “System Preferences” from the Apple Menu and navigate to the “View” menu. Click on “Accounts” and select the “+” button to add a new user account to your machine. Edit the user information and grant any relevant privileges by following the on-screen prompts.
    For Windows users, click on the Windows "Start" button, select “Control Panel” and choose “Add or Remove User Accounts.” A new window will open. Click “Create a New Account.” Name the account and set any relevant privileges by following the on-screen prompts.
    Step 2
    Sign in to the new user account you created.
    Step 3
    Open iTunes and click “Sign in.” Enter your Apple ID and password and log in.
    Step 4
    Download purchases through the iTunes store. All files related to these purchases are stored under the separate user account, thus separating both iTunes accounts and their libraries on the same computer.
    Step 5
    You can share music from both libraries by dragging your music library to a publicly accessible location on your computer. Click “Preferences” from the iTunes menu and deselect “Copy files to iTunes Media Library when adding to library file.” Add the shared folder to your library from the “File” menu.
    Tip
    Create more than one library from the same user account by deselecting “Copy files to iTunes Media Library when adding to library file” from the “Preferences” menu. Add the files you want to iTunes by dragging and dropping or by opening from the “File” menu and sync your device to that library. Quit iTunes after the sync and reopen iTunes while holding the "Shift" key in Windows or the "Option" key on a Mac.
    (tour du lịch nước ngoài)

  • Vendor open item amount to settle with two different banks  in F110.

    Hi
    Actually client requirement is one vendor line item to settle two different banks. Is there possible in APP program TC F110?
    How we can configure and how to settle one line item with two different banks in APP program.
    Please give me suggestions as soon as possible.
    Venkatesh
    Edited by: vdd08381 on Nov 5, 2011 1:19 PM
    Edited by: vdd08381 on Nov 5, 2011 1:20 PM

    Hi,
    Actually client requirement to work on one line item to settle two different banks.
    Once we have done partial payment to vendor can not give to cheque to vendors. My point view this is not possible.
    Is there any option please post the customization?
    Venkatesh
    Edited by: vdd08381 on Nov 7, 2011 5:36 AM

  • Dealing with two different sets of users but same OAM/SSO/OID Server?

    In our application server's (OAS 10.1.2.) ssl.conf, we need to have the following as following since it's part of the requirement,
    to ask for the user's Cert (CAC, SMARTCARD, X509). We have OAM 10.1.4.2.
    SSLVerifyClient require
    However, using the same exact OAS 10.1.2.3 server, for only a specific URL containing
    /web_html/ as a part of the URL, we need to bypass the SSLVerifyClient require and only
    a server based SSL handshake is required when the SSO resource*(/sso/auth, or /pls/orasso/..)* is hitting
    the OID server that is configured with the SSLVerifyClient.
    SAME OID Server has to deal with two different organizations:
    org1 ---> SSO ---> Client based X509 Cert Based Auth
    org2 ---> SSO ---> Server Based SSL Handshake only
    The SSLClientVerify does have the optional option to use and the users
    can just click on CANCEL but the customer thinks is not very user friendly.
    The screen that is displayed as a result of the SSLVerifyClient (Choose a Digital Certificate) seems to be
    operating system dependent.
    I hope, we won't need to have anther server just for this other organization.
    Thx for your time in advance.
    KA
    Thanks in advance,
    KA

    Daniel,
    We have OAM and it's performing the authentication.
    The SSLVerifyClient is bring up the Choose a Digitial Cert screen and by selecting Cancel, everything works for userlogin/password users. The problem is the screen user friendliness.*
    We are just trying to customize this screen so there is additional message or a different screen would be displayed instead of the generic screen from MicroSoft with OK OR CANCEL.
    Thx for your time,
    KA

  • I have two Ipods andwant t oset up two Itune accounts with two different libraries

    I have two Ipods and want to set up two Itune accounts with two different libraries.  Can this be done?

    You can, but switching iTunes libraries and store accounts is generally more hassle than it is worth. You can sync each device with selected purchases and if you have more than one iOS device disable the option to Automatically include new apps, then apps purchased on one device won't automatically load onto the other.
    tt2

  • Can I have two iPads with two different credit cards linked to one iTunes account?

    Can I have two iPads with two different credit cards linked to one iTunes account?

    It is still not possible to have two credit cards with your iTunes store account. I've just had a discussion with an Apple representative who suggested I give feedback to Apple about this. The more we are, Apple might listen to us in the end.
    This is the link
    http://www.apple.com/feedback/itunesapp.html
    Please feel free to use or modify what I wrote there:
    I’m surprised as are many other people who have the same issue (can see this in many forum threads) that Apple don’t give us the possibility to have at least 2 credit cards with one AppleID/account like most other vendors do (even much smaller than Apple). This certainly forces people to buy some stuff elsewhere that they otherwise would have purchased from Apple (for example books) or restrain from buying things they would have bought if they had a choice to use a second Credit Card.
    Not having this option puts me in a precarious situation since it would not be OK to buy just anything with the Credit Card that is tied to my business (and in many cases like mine the business is only one person, the VAT No being the same as my social security No).
    Sole traders need an option too.
    Greetings
    Anna

  • How to enter invoice with two different tax codes in one line?

    Dear friends,
    I have this PO for which I enter the invoice.
    I recieve later a subsequent debit for this PO from the transporter. This subsequent invoice has got extra debits, one with 21% VAT and one with 19% VAT, which means two items with two different tax codes.
    I want to enter this subsequent debit for each item of the PO, and I want to enter both debits in every item of the PO.
    How can I enter in one row in MIRO a debit with two different tax codes.
    Thank you.

    I want in the same line item to enter two tax codes.
    Do you Know if there is any way to do this?
    It is a subsequent debit and it has two items with two different tax codes. I want to enter the subsequent debit for a PO with many items and enter the value of the whole subsequent invoice. So there is the need to enter one line item with two tax codes.
    How can this be done?
    Thank you?

  • I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory  slots.Is it compatible and would like to know about the cost?

    I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory  slots.Is it compatible and would like to know about the cost?

    this sub forum is about running windows on macs maybe you should try
    https://discussions.apple.com/community/notebooks/macbook

  • One MIRO document with two different vendors for two different line items

    Can it possible to make MIRO for a PO which is having two conditions(Basic price+Freight) with two different vendors.
    MIRO document needs:
    GR/IR Clearing    Dr.
    Freight Clearing  Dr.
    Vendor RM(X)         Cr.
    Vendor Freight(Y)   Cr.
    Is it possible to post the above document at a time not individually for each condition.

    Hi,
    Yes, It is possible to post Material and delivery cost in one document.where in material supplier is different than the Frieght vendor.
    Itm PK  BusA Acct no.   Description                    Tx     Amount in   USD   
    001 89       130001     Stock-Ingredients               244 0            880.00 
    002 96       320001     GR/IR Account - Ing.            244 0          1,200.00-
    003 86       520002     Ingredients - PPV               244 0          3,297.87 
    004 50       320008     GR/IR Account - Duty            244 0            797.87-
    005 50       320009     GR/IR Account - Fre.            244 0          2,180.00-
    Thanks
    Dinabandhu

  • One Material with two Different In-House Production Days

    Dear Experts,
    We have 1 semi-finished material (HALB) that is common to two different locations (production version) with two different in-house Production days.  How can we separate the 2 different in- house prod. days for this specific material? Could we setup in the production version? if not, could you give us an advice.
    Ex:
    JDXZ011111 with Prod. version I000 = 3 days
    JDXZ011111 with Prod. version X000 = 1 day
    We are hoping for your help..
    Thank you.
    Regards,
    Marnelli

    Dear Mamelli,
    1.You cannot maintain  the in-house production time in the production version.
    2.In-house production time in days can be maintained in MRP2 view.
    3.If Lead time scheduling is carried out at the time of MRP run then the system uses the in-house time for the calcualtion onf basic
    start and end dates.Based on the routing data the system proposes the production start and end time.
    4.Generally exception messages 64     Production finish after order finish
    63     Production start before order start are  shown after MRP run.
    5.If basic scheduling is carried out then the system proposes only the basic dates.
    Regards
    S Mangalraj

  • How to process reports with two different date fields

    Morning all,
    This question is somewhat similar to what I asked few days back. I created two different reports for two different departments (Credit Control and Free of Charge Control).
    These two reports pull data from two different date fields and has different status check ups.
    Few days back my director requested me if he can have both reports in one report. That is when I asked question from all of you regarding two reports.
    Anyhow, that was created by implementing two sub reports however, the director asked me to combine the two different reports into one in such a way that the output records should be added up with each other hence one single report with all combined data of Credit Control and Free of Charges (not two sub reports in one report).
    The problem here which I am getting is that, both reports uses two different date fields. I can live with two different statuses as that can be easily done within formula/RT however how to create a report with Report Selection Formula condition which looks in both date fields and produces results accordingly?
    I have tried this by not putting any condition in report selection formula and ran the report, it produced total results from past 6 years.
    Any ideas how to produce combined report which has two different date fields?
    Many thanks in advance
    Regards
    Jehanzeb
    What I

    Charliy,
    No the both dates are from two different databases, tables and fields. The Credit date field is from KLAB database under max table where as the FOC date field is from SAE database under maxmast table. Klab date is under credit2 table where as foc date is under order header table.
    So its more like this:
    Klab->Max-Credit2--->Credit_date
    Sae->Maxmast->Order_header---Date entered.
    two dates totally different tables, dbs
    however, I will try your idea too and see if that works.
    Regards
    Jehanzeb

  • HT204053 If I have set up my Mac with two different users,  can I use two different Apple IDs on the same Mac?

    If I have set up my Mac with two different users,  can I use two different Apple IDs on the same Mac?

    Each user account may have its own Apple ID.

  • I have two different 5s's with two different phone numbers but they are both using the same iCloud/apple account. After upgrading to iOS8 when I get a phone call on one phone both phones ring.

    I have two different 5s's with two different phone numbers but they are both using the same iCloud/apple account. After upgrading to iOS8 when I get a phone call on one phone both phones ring. One phone is for work and one is for private and I don't need both phones to ring from one call. It's bizarre.......is this supposed to be like this? If so where can I turn it off?? And while we are at it iOS8 has installed iBooks on both of my phones and iTunes won't let me uninstall it. I don't need or want iBooks on my phones.

    Hi,
    There are two easy fixes to this.
    One, you can set up Family Sharing, in which you can have two different iCloud Accounts, yet still share the same apps, music, media etc.
    Two, go to Settings and turn-off "Handoff". This can be found under the General page.
    Hope this helps!

  • How do I sync two ipods with two different IDs on the same computer?

    How do I sync two ipods with two different IDs on the same computer?

    Simply connect them.  One computer with one iTunes can manage multiple devices.  They're tracked by S/N but you might wish to assign them unique names so that you can track them yourself.
    The only minor issue is app updating and purchases while on the computer.  It's necessary to log out and back in to the "correct" ID.  Much easier to do these things from the iPods.

Maybe you are looking for

  • Interactive report for sales order

    how to create an Interactive Report which displays all the sales orders for one particular customer, the materials ordered, quantity ordered, goods issue date of that particular order and contact information about that particular customer.

  • 3g Crashes --- NEVER had a problem with 2G (original iPhone...)

    Using iPhone 3G 2.0.2 for 1 day after having the original since it launched. NEVER had a significant problem with 2G, but ALREADY my 3G has frozen several times, most recently this pm and I had to do the "Mr.Buzz" MULTIPLE reset x 15-20minutes to get

  • X79A-GD65 (8D) (Info)

    Hi could someone tell me how many chokes there are on the entire board ? I know there are about 12 Super Ferrite Core chokes on the board. But how many are there in total ? I cant tell by looking at the pics .....perhaps someone got the answer for me

  • JavaHelp preventing java shutdown...

    Hello! I have a pretty strange problem. I have an application that uses SWT for all GUI stuff, except for JavaHelp which, of course, uses AWT/Swing. As soon as I have had a JavaHelp window open, the application won't exit, the AWT thread hangs on exi

  • Configuring new hr timetypes for BI extraction

    Hi - can anyone tell me the procedure/steps required to follow to configre new hr timetypes/paycodes for BI extraction? Thanks abhi.