Including multiple resources into response

In a servlet, I am including a text file and an image seperately using RequestDispatcher.include() method. But when I view the output in the browser, i see the content of the text file along with the content of the image, instead of the image itself. i tried setting a content type of text/html but it didn't work. What should i do? i want the content of the text file as well as the image.
I am using Weblogic server. I tried including only the image by setting the content type as "image/gif" but that didn't work too.
Please suggest.

For text file you include as you are doing it currently and for images use img html tag just do this in servlet.
response.setContentType("text/html ");
PrintWriter out = response.getPrintWriter();
RequestDispatcher.include("TextfilePath") ;
out.println("<img src='/images/ting.jsp'> </img>");
I think this will solve your problem.

Similar Messages

  • How to include multiple image components into a single custom component???

    How to include multiple image components into a single custom component???

    Hi Marcel,
    an ABAP transaction can only run or at least be started on one single system. A portal transaction can be assigned using a URL. This doesn't need any logical component.
    Regards
    Andreas

  • Inserting Multiple queries into a workbook

    Hi Friends,
    I have to insert multiple queries into a workbook and each query should be in a different worksheet of the work book.
    I have gone thru some of the SAP documentation, for example http://help.sap.com/saphelp_nw04/helpdata/en/3a/89883989676778e10000000a11402f/frameset.htm 
    In above link under the fatures section it says
    If you want to insert a query into the active workbook:
    Open a workbook and, from the BEx toolbar, choose Tools ® Insert Query.... The query is then inserted into the current worksheet starting at the active cell
    But when i chech in the tools under desig tools, i have lot of options like insert grid,insert checbox, radio button extc, but i dont have "Insert query".
    I am using BI7 Bex analyazer, The Only way i am able to insert a new query into a work sheet using BI7 is that first i have to design the work sheet but including design elemenst in my case i am using Grid. But this is not giving the correct display.
    Did anyone insert multiple queries in the same workbook? if you can you please let me know how did u acheive this?.
    Thanks in adv.
    Regards
    BN

    Hi Rajesh,
    Thanks for your response, but in BI7 Bex analyser you dont have the option of insert query from tools.
    Rather what i did is (maynot be the correct way), i have executed the query and saved it as work book and in the tools there is an option "copy Sheet". If you select this the same layout is copied to the 2nd sheet, there just change the assignment of design items to a new Dataprovider. Attach the new query to the new Dataprovider.
    It works for me, as of now
    But i have  questions regarding selection screen.
    1. In this work book i am embbeding 6 queries and each query individually has variables. When i execute the workbook i get the selection screen, in the selection screen all the common variables are shown in one grouping and other in a different grouping. Is this correct way of selection screen display?.
    2. I want to see the variable screen every time i open the work book, how can i acheive this?.
    Regards
    BN

  • How do I add multiple images into one file?

    I'm sure this is something that's been covered in another post (or even in the help portal) but I think my wording in my search terms are not correct or... I don't know, because I just can't find what I'm looking for.
    I want to know how to add multiple images into one file/one image, both horizontally and/or vertically. To give you an idea of what I mean, check out :
    http://www.best10apps.com/apps/comic-story,531596060.html
    If you scroll down, you'll see a heading entitled : Screenshots of Comic Story. Notice how there's 3 pictures (divided by borders). 2 of those pictures are side by side, and 1 of them is below the first 2 pictures.
    I want to know how to add different pictures/images and put them into one picture.

    One way is to create template PSD files and populate them with your images using Photoshops scripts.
    Photo Collage Toolkit UPDATED June 12, added Picture Package Support via PasteImageRoll and BatchPicturePackage scripts.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    There are eleven scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    Documentation and Examples

  • How do i put multiple albums into one huge album collection?

    How do i put multiple albums into one huge album collection?
    Some examples include: Linkin Park - Studio Collection, Michael Jackson - The Indisposable Collection

    Hi skullkrunch3r,
    Thanks for visiting Apple Support Communities.
    If you "Get Info" on the tracks that are part of your collection, you can use the Compilation option in iTunes.
    In iTunes 8 and later, you find the option to mark multiple items as "Part of a compilation" in the Options tab of the Multiple Item Information window.
    See this article for more information on marking your albums as part of a compilation:
    Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Best Regards,
    Jeremy

  • How do I include multiple hyperlinked indices in a document and include keyword different from the word they link to?

    I would like to include multiple indices in my ID document. How do I do that? I only managed to create a single index. And how do I let an index refer to a different word than the one in the text (e.g. "car" and "plane" are in the text but their index entry is "vehicle")? And how do I turn all index entries into hyperlinks?

    I would like to include multiple indices in my ID document. How do I do that? I only managed to create a single index. And how do I let an index refer to a different word than the one in the text (e.g. "car" and "plane" are in the text but their index entry is "vehicle")? And how do I turn all index entries into hyperlinks?

  • PSC 1210 Mac OS 10.6 Scan multiple pages into one pdf., and ink levels

    Now that I upgraded my Mac OS to Snow Leopard (10.6.8), I have needed to scan on my HP all-in-one psc 1210 either from Preview or from Scan & Fax in System Preferences. Once I scan a page and that page opens up, I AM able to scan additional pages, but each becomes a separate document. The only system driver available from HP is print only and also doesn't include a utility to check ink levels. Can someone help me with these two issues? (1) how to scan multiple pages into a single pdf. doc with my configuration, and (2) how can I check ink levels
    This question was solved.
    View Solution.

    Hi C_Maier,
    I can not see the available options when it is disconnected. A screenshot when it is connected would be best. I have done some research though, and believe the option to select 'save all pages to a single file' may only be available if your printer has a document feeder, and of course as you know, yours does not
    I know with 10.7 and higher the option is there even with flat bed only printers. You might consider upgrading the OS.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Multiple resource objects provision issue in OIM10g

    Hi Team,
    We're facing an issue regarding multiple access policy trigger for a specific resource object in OIM.
    The scenario is whenever we try to process the enablement or creation of users through flat file recon, users are created / enabled with multiple resource objects in their resource profiles.
    When we checked in User Resource Access History report, we observe that the access policy has been triggering multiple times for these users resulting in users with multiple resource objects. Amongst these one shows provisioned/Enabled and the other shows provisioning/in some cases Provisioned/Enabled.
    Please advise as this has become an ongoing issue and also has led into data mess-up.
    Appreciate your help on this one..
    Regards,
    Sagar

    The terminology sounds a little confusing to me:
    If you mean you wanna create multiple IT Resources for a single IT Resource Instance so that the user can select the appropriate IT Resource during request creation -> All good upto here. But then since the Object/Request Form attached to a resource would be the same, so any user would always see the same form fields for creationg request.
    Example: Users creating request for Oracle Database Accounts but different server locations
    If it means you just need to create multiple Resource Objects then its a straighaway standard requirement and could be handled with normal Connector Development methodology.
    Example: Users creating requests for different resources like Oracle Database Accounts & Active Directory Accounts

  • SQL Query -How2bring multiple results into one field using Formatted Search

    Hi Everyone
    i am trying to bring in the results of the field dbo.Lot_ITEM.LOT using a formatted search into a row level using the following query:
    SELECT     dbo.LOT_ITEM.LOT
    FROM       dbo.DLN1 INNER JOIN dbo.LOT_ITEM ON dbo.DLN1.ItemCode = dbo.LOT_ITEM.ITEM
    WHERE     dbo.LOT_ITEM.ITEM=$[DLN1.ItemCode]
    however the result of the dbo.Lot_ITEM.LOT field could be more then one value depending on how many lots are assigned for that item
    (for example this query would be similar to assigning batch/serial numbers to an item being despatched - as you can choose multiple batches/serials depending on the quantities available and required and then move from the left to the right side of the selection window) if that makes sense!
    is it possible to bring in the multiple results into one field? and how can i amend the above query to include this?
    Thankyou in advance :o)
    Edited by: Asma Bi on Apr 23, 2008 7:22 PM
    Edited by: Asma Bi on Apr 23, 2008 7:24 PM

    Hi Suda
    Thanks for replying :o) but im not sure about the query?
    just to simplify it (as the query im working with is to do with 3rd party addons) i have used the serial/batchs field instead and used standard demo database fields from SBO 2005 sp01:
    SELECT     dbo.ixvSerialNoFact.SRI1_IntrSerial
    FROM       dbo.DLN1 INNER JOIN
                    dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
    WHERE     dbo.ixvSerialNoFact.ItemCode='g1000' and dbo.ixvSerialNoFact.SRI1_BaseEntry = '193'
    The above brings me the relevant results but when i change it to be used in a formatted search:
    SELECT     dbo.ixvSerialNoFact.SRI1_IntrSerial
    FROM       dbo.DLN1 INNER JOIN
                    dbo.ixvSerialNoFact ON dbo.DLN1.DocEntry = dbo.ixvSerialNoFact.SRI1_BaseEntry
    WHERE     dbo.ixvSerialNoFact.ItemCode=$[dln1.itemcode] and dbo.ixvSerialNoFact.SRI1_BaseEntry = $[dln1.DocEntry]
    i cant seem to get it to work - now this may be because the serial number is not allocated until teh record is added to the system, however when this happens i am unable to go back in and manually trigger the query as the delivery note rows cannot be selected!
    i  think as what im originally wanting an answer for is same as this example, im wanting to know if this is even possible?
    Thanks
    Edited by: Asma Bi on Apr 24, 2008 3:53 PM
    Edited by: Asma Bi on Apr 24, 2008 3:55 PM

  • Include a Servlet into a JSP page

    Hi guys,
    When i try to include a Servlet into my JSP, the execution of the JSP stops...Somebody know why???

    Hi guys,
    When i try to include a Servlet into my JSP,the
    execution of the JSP stops...Somebody knowwhy???
    No, and do you know why ? Bcos including a
    servlet
    in
    a jsp doesnt stop the execution of the jsp. Sotell
    us that you tried to do, post some relevant
    code,
    for us to help you.
    ram.<%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page buffer="500kb"%>
    <html>
    <head><title>JSP Page</title></head>
    <body>
    <jsp:include page="/showCryptValue"
    ptValue" flush="true" />
    asdfasdfasdfasdfasdf
    </body>
    </html>
    that's the source code....do you have any idea????
    Thak's a lottttFrom linxpda:
    1) setting the flush="false" parameter for thejsp:include tag?
    Here is the problem that I, and perhaps linxpda,
    think you have:
    You get an exception in the servlet.
    You have already written to and flushed the response,
    therefore you can not see the exception on your
    screen (seeing the exception on screen requires a
    send redirect to the error page, which can't happend
    when the response is already committed).
    The exception that is occuring MAY be alreay written
    in your logs, take a look.
    To see the problem on screen so as to be able to
    identify it, make sure your include tag DOES NOT
    flush the buffer. That means change
    <jsp:include page="/showCryptValue" flush="true" />
    to
    <jsp:include page="/showCryptValue" flush="false" />Hi!
    No even setting flush false or true it works...If somebody have done this before tell me how have you did....If you can post your code!
    []'s
    Falow

  • Making Multiple Entries Into iTunes Library Columns

    Is there any way to enter the same data for multiple songs into a column I have selected for my iTunes library? For instance I would like to subdivide my jazz songs into categories like Bop, Bosa Nova and Progressive. I added the columns "Category" and "Description" to my library by selecting View>View Options and checking the boxex for Category and Description. Those columns now appear in my library and I can enter data for one song at a time by clicking on the column for that song. However, I cannot find a way to enter data for multiple songs in those columns at one time. I can highlight multiple songs and go to File>GetInfo>Info to enter the same data for the selected songs but only for the fields included in the Info dialogue box. The new columns I selected, "Category" and "Description", were not added to the Info dialogue box so I cannot modify this data there. A simple solution from Apple would seem to be to automacally add all selected fields to the GetInfo>Info dialogue box, but that option does not seem to exist at this time. Does anyone know how I can enter the same data in multiple songs in these additional columns all at once. Thanks
    HP Pavillion dv1000   Windows XP Pro   iTunes version 7.0.2.16

    OK, I'm done writing the app.
    Go to my iTunes scripts page and follow the link there for downloading Perl (if you don't have it already). Install Perl, and then download my itunes_info script. Select the track(s) in iTunes, then run the script to edit the Comment and Description fields for multiple (or single) tracks. You can get a freeware utility similar to GhostTyperXML to attach the script to a key combo if you're going to be doing this a lot.
    In addition to allowing you to edit the comment and description fields, it will allow also you to rate songs using 1/2 stars (e.g. 2.5 stars).
    Sorry, you cannot use it to change the artwork.

  • Export multiple tables into one flat file

    I have data in multiple tables on a processing database that I need to move up to a production database. I want to export the data into a flat file, ftp it to the production server and have another job pick up the file and process it. I am looking for
    design suggestions on how to get multiple tables into one flat file using SSIS?
    Thank You.

    Hey,
    Without a bit more detail, as per Russels response, its difficult to give an exact recommendation.
    Essentially, you would first add a data flow task to your control flow.  Create a source per table, then direct the output of each into an union all task.  The output from the union all task would then be directed to a flat file destination.
    Within the union all task you can map the various input columns into the appropriate outputs.
    If the sources are different, it would probably be easiest to add a derived column task in-between the source and the union all, adding columns as appropriate and setting a default value that can be easily identified later (again depending on your requirements).
    Hope that helps,
    Jamie

  • Possible to include camera videos into iDVD Slide Show?

    I would like to include the short camera videos with my still pictures in a slide show, is IDVD or iPhoto slide show capable of this.
    My nephew used a program (ROXO -I think) on his PC to do what I am attempting on my MAC - can someone tell me if they have been able to do this using Apple's programs.
    Ron

    Hi Peter,
    One question I do have is that if I "assemble" the pictures and movie clips in iMovie, then export them to iDVD..
    ..What about incorporating that with the Themes and structure that iDVD uses ??
    Not sure I understand your question. iMovie is for editing movies (including still images). iDVD is for publishing a DVD using movie and still image assets. iDVD cannot edit any of the imported assets. The themes in iDVD are for setting up menu pages that allow the viewer to control the flow of the movies/still images, e.g. you can set up a button to start a movie, a button to start a slideshow, a button to a submenu with movie chapters.
    It's a shame you can't drag'n'drop movies into iDVD like you can picures - Would make iDVD even more useful and powerful.
    You do able to drag'n'drop a movie into iDVD, this will add a button on the menu page. It is just not able to "assemble" multiple assets into one long movie, that requires iMovie.

  • Multiple resources on one task

    Hi all
    I'm a little rusty.  I'm working in 2010.
    I have been given the durations (in days) that tasks will take.  I have multiple resources, all of whom will be working on the same tasks, all assigned units will differ, example, resource A will spend 60%, B will spend 20% and C will spend 20%. 
    Apparently each resource with have a different number of effective hours per day.
    How should I handle this in the schedule?
    thanks
    JD
    J Day

    Hi J Day,
    1- You can set the task type based on your business context. You can for example set your task to fixed unit. Doing this, if the work increases, the duration will increase accordingly and the %unit will be kept. Thus you'll see a duration variance.
    2- Be aware that setting the max unit of a resource in the resource sheet is NOT taken into account while assigning the resource on a task. It is only used to flag weither or not a resource is overallocated. For example, if  you set the resource A has
    a max unit of 50% (4hrs/day) and then you assign it at 100% on a task, it will be assign at 8hrs thus shown as overallocated. Project will not make the calculation that the 100% you set in the assignment is 100% of 50%, meaning 4hrs. You have to do this calculation
    by yourself while creating assignments. Note also that the max unit is used when you assign a resource without entering a %unit; Project will take by default the max unit. Hope this is clear.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Export to MS Project and multiple resources to one role

    Ok, after this rather cryptic title i will explain my problem:
    We are currently in a project where we have the following requirement:
    A download of cProjects needs to be imported into MS Project 2007.
    When a project role is staffed with multiple resources in cProjects it is imported into MS Project as a single role with only the first resource attached to it. All the other resources are nowhere to be found.
    Does anyone have a solution to this?
    Edited by: Miel Claessens on Jul 16, 2010 12:57 PM
    Edited by: Miel Claessens on Jul 16, 2010 12:58 PM

    Hello Meil,
    You can try to implement your requirement in BAdI DPR_MSP_CUST_FIELDS method CUST_CONVERT_DPR2MSPINT. Here you have to convert each and every Resource assigned to a Role as individual resource in MS Project. You have to use method CUST_CONVERT_MSPINT2DPR to convert it back in Project's format.
    e.g. 1) Downloading Project to MSP --> Role 1 has Resource 1 and Resource 2 then in first method you need to Create entry for Resource 1 and Resource 2 and keep track of to which role these are staffed. But this will create individual entries for each resource and will not add the resources name to Project role. Other possible implementation would be that you can maintain the Employee number of each Resource in some Text field which is not used in Field Mapping and accordingly decode these Emplyee numbers while uploading the Project from Ms project.
    2) Uploading Project from MSP --> Use second method CUST_CONVERT_MSPINT2DPR to decode the above implementation to fill the Project structure for Role and Resources.
    You may check it if it is possible to implement it in that way.
    As a standard, as metioned earlier, it is not possible.
    Thanks and Regards,
    Piyusha

Maybe you are looking for

  • Unable to Launch Application error while starting IR

    Dear friends I am not a BASIS trained person, but wearing different caps because I am the only SAP engineer in our company and so learning on the job. I have installed a new server that has (SAP ECC 6.0, EP and PI). This is an IDES version. The opera

  • Customer Service

    I am having real difficulty in getting someone to take this issue on because I am not a number (RMA). We bought the MP3 player in July 200 for my son who is autistic. It is very important to him that his stuff looks right and he simply will not use s

  • Error: 500 INTERNAL SERVER ERROR after deployed the office web server in SharePoint 2013

    Hi everyone, I just installed office web server in one virtual machine which name WAC, and I followed all steps for configure and deployer with SharePoint 2013. It did fine without errors. But When I opened a word or ppt or excel in office viewer mod

  • HT5587 Power button to turn off phone not working.... Help!

    Power bottom to turn iPhone off does not work.  Screen will turn off after a bit of no activity, but power off function when pressing does not work.  Any ideas for repair?  Thank you.

  • Cfdiv refreshes binding to radio buttons

    Hi, Fairly simple issue that I can't find much information about through google (just one report of it involving a workaround for a cfgrid rather than a cfdiv). I have a cfdiv that is bound to a cfselect and two radio buttons, ala: <cfdiv bind="url:s