MultiPart Response hide my all my HTML code .

Hello,
For my school project, i code a online compiler.
I finish it but i have a last problem : at the end of the code, i send back the program executable (compiled) trough the ServletOutputStream with a ("multipart/x-zip") header. It work but it hide all the html code of this jsp page !
How can i fix that ?
Here is the code of my jsp compiler code :
http://pastebin.com/769339
(Look at the end of the code)
Thx a lot !

Well you can't output a file AND html content at the same time to the browser, HTTP doesn't support multiple content-types.
What your code does is:
- generate the zipdata
- sets doMail to true
- sends the zip through e-mail
- outputs the zip as the response
- END
The html is only printed when doMail is set to false (as far as I can tell, the code is one big mess of misaligned curly braces).

Similar Messages

  • All the html code of my links shows when you roll over them

    I have spent weeks creating an e-commerce web site with iweb. Now, for the first time I notice that when you stop on one of the links to my shopping cart the entire html code is visible for all to see. Is there any way to stop this from happening?

    Lucas,
    Open System Preferences>Dock...and make the appropriate selections to match your Dock preferences.

  • How to import my html code in to portal?

    hi all,
    I have got designed all my htmls pages from a web designer now how can i put all this html code in to portal package without a long by line cut and paste from html in to pl/sql??please suggest as i have around 60 odd htmls pages and badly need a direct way to import all these to pl/sql pakage into portal
    thanx in advance
    anurag

    I have tried the above mentioned solutions but it only adds a link to the html page and the full page.The tutorial says add a perspective and add a file item to it(ur html page) and then publish that perpective as portlet.So i did it that way but first i couldn't get the genereated code for the portlet and then felt even if i would have get the page there would have been just a link to html page and not the page it self??please suggest a solution for this as I have around 60 html pages with vey complex designs so line by line code cut/paste gonna be avery time consuming/complex option.
    null

  • Remove html code from file

    I'm trying to figure out how to remove all the html code from a file.
    I've got an AppleScript but it doesn't remove all the code
    <code>
    on run {}
    copy (choose file with prompt "Remove markup from which file:") to the_file
    promptuser(thefile)
    end run
    on open (the_file)
    if length of the_file > 1 then
    display dialog "Please drop only one file on me at a time."
    else
    promptuser(thefile)
    end if
    end open
    on promptuser(afile)
    copy (read a_file) to message_text
    copy (open for access file ((path to desktop as text) & "Markup Removed") with write permission) to newfileID
    write removemarkup(messagetext) starting at eof to newfileID
    close access newfileID
    end prompt_user
    on removemarkup(thistext)
    set copy_flag to true
    set the clean_text to ""
    repeat with this_char in this_text
    set this_char to the contents of this_char
    if this_char is "<" then
    set the copy_flag to true
    else if the copy_flag is true then
    set the clean_text to the clean_text & this_char as string
    end if
    end repeat
    return the clean_text
    end remove_markup
    </code>

    The source code is from a Yahoo Movie listing (http://uk.movies.yahoo.com/)
    Most of the code is removed but there's still bits left over from Javascripts & images, I think.

  • Is it possible to use apex-ajax in html code written by me?

    Hello everyone.
    Is it possible to to ajax with html items written by me into the regions source?
    Here's the thing, i am a somewhat experienced user with php/javascript/html/css and old habbits die hard.
    I' ve been recently working with apex but i like to do my html my self rather than letting apex generate it.
    (i think apex has some limitations in flexibility but it might be because i m newbie and don t know how to use it.)
    Bottom line, i designed a couple of divs, added some cool efects with prototype/scriptaculous (apex responded good until here), how ever the content was all static. Now i have select list's and text fields inside some of my divs. (all the html code divs/select lists/etc is in a region source)
    Can i use ajax to alter the content in those select lists? Or the only way i can alter the content in select lists is if they were created by apex itself?
    Thank you very much for all the help.

    Hello, thanks for the quick help.
    I've been forced to work with apex by the company, not my first choice... But since i have to work with it at least for a while might as well make good use of it ;)
    I know i can change the css templates in apex, but they are so big i prefer to simply create new small styles of specifc things i need, the question was if i can construct a complext layout for example something like this:
    ------------------------------------------------------------------------ HTML CODE --------------------------------------------------------------------------------
    <table >
         <tr>
         <td colspan="3" class="topleft" > Temas </td>
         <td colspan="9" class="topright" >
              <input class="bigbutton" type="button" value="Imprimir" onclick="alert('Imprimir')" >
              <input class="bigbutton" type="button" value="Template" onclick="alert('Template')" >                          
              <input class="bigbutton" type="button" value="Copiar" onclick="alert('Copiar')" >
         </td>
         </tr>
         <tr>
         <td colspan="3" class="middleleft" >
              <select size="18" class="mediumselect">
                   <option>Tema 1</option>
                   <option>Tema 2</option>
                   <option>Tema 3</option>
                   <option>Tema 4</option>
              </select>
         </td>
         <td colspan="9" class="middleright" >
              <select size="18" class="bigselect">
                   <option>Mapa 1</option>
                   <option>Mapa 2</option>
                   <option>Mapa 3</option>
                   <option>Mapa 4</option>
              </select>
         </td>
         </tr>
         <tr>
         <td colspan="3" class="bottomleft" >
              <table>
                   <tr>
                   <td colspan="2"> <input class="bigbutton" type="button" value="Novo Tema" onclick="alert('Novo Tema')" > </td>               
                   </tr>
                   <tr>
                   <td> <input class="mediumbutton" type="button" value="Apagar" onclick="alert('Apagar')" > </td>
                   <td> <input class="mediumbutton" type="button" value="Editar" onclick="alert('Editar')" > </td>
                   </tr>
              </table>
         </td>
         <td colspan="9" class="bottomright" >
                   <table style="display:inline;">
                        <tr>
                             <td colspan="2"> <input class="bigbutton" type="button" value="Novo Mapa" onclick="alert('Novo Mapa')" > </td>               
                        </tr>
                        <tr>
                             <td> <input class="mediumbutton" type="button" value="Apagar" onclick="alert('Apagar')" > </td>
                             <td> <input class="mediumbutton" type="button" value="Editar" onclick="alert('Editar')" > </td>
                        </tr>
                   </table>
         </td>
         </tr>
         </table>
    ------------------------------------------------------------------------ HTML CODE --------------------------------------------------------------------------------
    Place the above code inside a region in a certain page, and then access the select lists:
              <select size="18" class="mediumselect">
                   <option>Tema 1</option>
                   <option>Tema 2</option>
                   <option>Tema 3</option>
                   <option>Tema 4</option>
              </select>
              <select size="18" class="bigselect">
                   <option>Mapa 1</option>
                   <option>Mapa 2</option>
                   <option>Mapa 3</option>
                   <option>Mapa 4</option>
              </select>
    and change their values wether on page load or after loading (with ajax).
    I know i have to assign an id to each of the selelect lists too access them (as you do in other languages) but does apex recognise the id's if add them myself?
    for example:
              <select id="select_list_temas" size="18" class="mediumselect">
                   <option>Tema 1</option>
                   <option>Tema 2</option>
                   <option>Tema 3</option>
                   <option>Tema 4</option>
              </select>
    would i know be able to change the values in the select lsit by referencing it in an ajax function as select_list_temas?
    Thanks again for all the quick help hope i made myself clearer now, i don t think i can post more specif code (company policy) but i will try to give more details if there are still some doubts to what i intend.
    Edited by: user10686093 on 16/Dez/2008 3:32
    Edited by: user10686093 on 16/Dez/2008 3:36

  • Receiving HTML Code

    In the last couple of days I have started receiving my e-mail with all the html code showing. It doesn't  matter who it is from. How do I fix it. My carrier was all but no help. I have a second 8320 just like this one and it has no problems.

    What is the OS on the BB, at Options > About? You must have OS 4.5 to get HTML mail.
    First off, I would suggest: With the BlackBerry device powered ON, remove the battery a few seconds and then reinsert the battery to reboot.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to Hide HTML code of web application (applet)?

    hi
    On web, while running application, if user open View\Source from browser, he can see all HTML code (base_jini.html). The problem is that we can't afford to show source code to client, because it has DB connection inf (username/password) as well. How this html code can be hide from client machine?
    I think, i convey my prblom. If not, please run any web application and try to see source code from browser view menu, U will see that all configuration details are visible including db password. I suppose there should be some way to hide these details to client.
    Please help in this regard, i will be very thankful
    regards
    Asif

    Forms Listener Servlet is just another way of setting up forms on the web. The main difference is instead of the client and the Forms runtime talking directly, they do so via the webserver. This means thay you only need to have one port opened in your firewalls (e.g. 80) instead of two (80 and 9000)
    Please read the paper I indicated and this will hopefully explain it all.
    As to the suggestion of using the LOGON built int - this would be a solution but you will have to consider if this is acceptable if you have more that one user since the person running the application would have to identify themselves in some way.
    The other option is do not add the username and password in teh HTML and the default logon dialog will appear.
    Regards
    Grant Ronald
    Forms Product Management

  • How to hide JSP & HTML code

    Hi,
    I have develop a web-site in JSP I want to hide the code like all the HTML and JSP CONTENTS . Like some sort of binay format.
    Is there any tool available like source safe or any thing like that, I can safe my code other than giving my html, jsp code to my client.
    Thanks
    Jawad

    Yep, the JSP generates a Servlet which in turn generates HTML which is sent to the browser resulting in the displayed page.
    There is no way for a person viewing your jsp page to get at the jsp code, only the results of it.
    - meMyselfAndI
    Or do you mean a system which converts the jsp into an executable file like in a CGI program - this is more likely since if Ur building a JSP system for a client you probably know about how it works - Not that I know of. Far as I know U just have to live with them seeing what you wrote.
    Anybody else know of any of these?

  • While in Edit Mode in Moodle - page content does not render at all, but I am able to display the underlying HTML code. Happens only after upgrade to Firefox 11.0.

    While in edit mode in the Moodle course management system, the Page Content window should display the page as it will appear to the user. If you click on the "Edit" button, you are able to view the HTML code for the page. However, when you return to the normal display mode, the page is blank. This has occurred after the upgrade to Firefox 11.0. Page is normally rendered in Internet Explorer.

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    See also:
    *http://kb.mozillazine.org/Error_loading_websites
    *https://support.mozilla.org/kb/Error+loading+web+sites

  • Html code are moving all the rest

    Hi,
    I work with muse now 4 weeks and i like it very much.  I have not a clue about html code but i helped myself building a great site.  (www.verfcentrum.com).  I have only a big problem.  I used the facebook likebox html code which I OBJECT, INSERT HTML COPY PAST and also the mailchimp code (OBJECT, INSERT HTML COPY PAST).  They both work perfect but i cannot place them somewhere in the middle of wherever i want.  They move all the pictures around it.  What do i do wrong?  Its like they want the place around the frame to be clear.  As you see on the website i solved a little bit the problem by placing the facebook likebook in my header and the mailchimp code down under.  But as soon i move the code a little bit up al the pictures go crazy.... HELP PLS......(by the way: if i do preview everything looks perfect.  Only after uploading with filezilla it starts.-)

    have going through FOXTAB's support center but nobody seems to have had same problem.

  • Function to remove ALL HTML codes

    I have a field to extract from primavera which is in BLOB format in the database and pump it into a view.
    we have injected codes to remove the HTML tags such as </> and a few other ASCII stuff ( got the help of a developer on that ACII stuff hence I don't know how to explain pardon me) but we still have surprises like &nbsp and &amp appearing depending on what is entered in primavera.
    how do I eliminate ALL html codes? currently the code looks like this:
    REPLACE(REPLACE(REGEXP_REPLACE(utl_raw.cast_to_varchar2(dbms_lob.substr(tm.task_memo)), '<[^>]+>'),CHR(13),''),CHR(10),'') AS Narratives
    Thank you.

    Your welcome, please do not forget to mark it as answered.
    If you can examine the string in the database, you can use dump to see which character is at the end of the line.
    In this sample I have placed a chr(0) at the end of the string to show it:
    Decimal:
    select dump('testing'||chr(0),8) from dual;
    Output: Typ=1 Len=8: 164,145,163,164,151,156,147,0
    Hex:
    select dump('testing'||chr(0),16) from dual;
    Output: Typ=1 Len=8: 74,65,73,74,69,6e,67,0
    Edited by: specdev on 6-aug-2012 5:08
    Answered without receiving helpful or correct answer points :-( but we make somebody happy today :-)

  • I am the web master for myschool. We use sharpschool and when I go into edit our web pages all is see is the html code. I would like to have the sharpschool user friendly "word" edit come up. This does not happen with IE.

    html code is all I see when editing the school website. As the web master I can write code but prefer the edit friendly version as it is quicker. IE does not show the html code.

    Could you help me by specifying how you converted LDAP schema files to LDIF files? I am trying to add a custom schema file on an Open Directory Master running Leopard and have been unable to get Open Directory to pick up the schema file.

  • Why do website forums keep telling me that my messages contain HTML, when they do not contain any HTML code at all?

    I am hoping someone more intelligent than me, can help me out here, as I've got a really infuriating problem.
    I tend to visit a lot of online forums, especially in recent days those at Sky (http://helpforum.sky.com/) and Vodafone (http://forum.vodafone.co.uk/)
    Whenever I log in, and try and post a message, I keep getting a very annoying error message that says:
    "Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied."
    The problem is, I never use ANY HTML code, as I don't know what it is. I do use spaces, capital letters, standard punctuation marks, and carriage returns/paragraph breaks. This problem doesn't manifest itself on Internet Explorer, nor Opera, nor Chrome.
    So what's going on please?!

    Please try the steps at [[Websites say that Firefox is outdated or incompatible even though it's the latest version]] before trying anything else, then update Firefox [[Update Firefox to the latest version]]

  • MIME Multipart/related to embed images in html files - Servlet

    Hello,
    My goal is to embed images in html/xhtml files to decrease latency when using slow networks. Think about mobile phones, if I have 10 images in one page, I will have 11 requests/responses to get the whole page.
    The solution would be to embed all images using Content-type multipart/related, so I have one request to the whole pack.
    How to do that in java? I mean, I need to set the content-type and build all parts encoding the images to base64.
    I tried JavaMail API, there I can build messages like this and instead of send an e-mail, I can write:
    myMimeMultipart.writeTo(response.getOutputStream());
    The problem is: I am getting everything as text in my browser, including the MIME headers of each part. Another think is that the first header (the main one) doesn't appear too.
    Any thoughts/other ideas?
    Thanks in advance,
    Andr� Carlucci

    If memory serves me right, I believe in the Servlet spec you have access to the Response object. You "should" be able to set any headers you need there. In addition, you can get the output streams just as you described.
    I did a similar thing, although slightly modified, to output dynamically-generated XLS (Excel Spreadsheet) files using a reporting engine called JasperReports. It wasn't a multipart response, however, so you may need to figure out how to handle that part of it, but in my case I set the mime-type header, then grabbed the output and started writing my XLS file too it. Once done, you close the streams and return the response. Worked perfect.

  • How to shorten the HTML code name when it's a hyperlink?

    Hi there,
    I'm trying to make all of my hyperlink html codes short and to the point. If you go to one of my site pages http://tinyurl.com/pj5rqz then roll your curser over the Download PDF and then roll it over the pictures them selves. You'll see that there is redundancy in the names and their all different. I'd like the code to simply read Best of Flowers 2. Is that possible? What do I need to do?
    Thanks.

    Hi RagnaRock,
    You can use the following form, hope it helps you.
    Regards,
    Ozcan.
    form get_data_from_url using iv_url type clike changing iv_data type string.
    DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
      clear  iv_data.
      CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
           EXPORTING
            URL                = IV_URL
    *          PROXY_HOST         = '10.1.1.1'
    *          PROXY_SERVICE      = '1234'
    *       SSL_ID             =
           IMPORTING
             CLIENT             = HTTP_CLIENT
           EXCEPTIONS
             ARGUMENT_NOT_FOUND = 1
             PLUGIN_NOT_ACTIVE  = 2
             INTERNAL_ERROR     = 3
             OTHERS             = 4.
      CHECK SY-SUBRC = 0.
      CALL METHOD HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
      CHECK SY-SUBRC = 0.
      CALL METHOD HTTP_CLIENT->RECEIVE
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2
          HTTP_PROCESSING_FAILED     = 3.
      CHECK SY-SUBRC = 0.
      iv_data = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
    endform.                    "get_data_from_url
    Edited by: Ozcan Gurdal on Aug 11, 2010 4:07 PM

Maybe you are looking for