Template files display as code in the browser.

I recently had to reinstall DW and delete my preferences from my machine.   I now have an odd issue.
When working in a template file (.dwt) If I do a "preview in browser" (Firefox, IE, or Chrome) the browser shows me the template as a text file (code view) not rendering it.
I have the newest browsers and DW CC 2014.2  - Windows 8.1
Any ideas?   This worked before I removed and reinstalled DW (except in IE).  Now it does not work in any of the browsers.
I have tried old sites and files... same for them all.
Using html5 files.
I know it is probably something simple... but I cannot seem to find it or and answer in the nets.
Thanks for your help!

Here is my basic css file.
@charset "utf-8";
/* ======================================================== */
/*  GENERIC RESETS  */
/* ======================================================== */
body, div, a, img, span, iframe, audio, video,
p, h1, h2, h3, h4, h5, h6, strong, small, ul, ol, li,
pre, code, blockquote, sub, sup,
table, th, td, tr, tbody, tfoot, thead,
form, fieldset, legend, label, input, textarea,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary  {
margin: 0px;
padding: 0px;
border: 0px;
img {
border: none;
max-width: 100%;
-ms-interpolation-mode: bicubic;
vertical-align: middle;
nav ul {
    list-style:none;
table {
border-collapse: collapse;
border-spacing: 0;
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, nav, section, summary {
display: block;
/* Corrects `inline-block` display not defined in older browsers */
audio, canvas, video {
display: inline-block;
*display: inline;
*zoom: 1;
/* Corrects issue for `hidden` attribute not present in older browsers */
[hidden] {
   display: none;
body {
/* Prevents iOS text size issues after orientation change */
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
* Correct overflow not hidden in IE9
svg:not(:root) {
overflow: hidden;
/* ======================================================== */
/*   BASIC STYLES OF SITE - STANDARD STYLES FOR ALL SIZES */
/* ======================================================== */
body {
font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
font-size: 100%;
line-height: 1.3;
background-color: rgba(255,255,255,1.00);
header {
margin-left: auto;
margin-right: auto;
padding: 10px 2%;
nav {
padding-top: 5px;
padding-bottom: 5px;
margin-top: 10px;
margin-bottom: 10px;
text-align: center;
font-weight: bold;
background-color: rgba(255,255,255,0.85);
color: rgba(255,255,255,1.00);
font-size: 1.125em;
nav li {
display: block;
width: 100%;
nav li a:link, nav li a:visited  {
text-decoration: none;
color: rgba(255,255,255,1.00);
display: block;
padding-top: 5px;
padding-bottom: 5px;
background-color: rgba(9,167,230,1.00);
nav li a:hover {
text-decoration: none;
color: rgba(0,0,0,1.00);
padding-top: 5px;
padding-bottom: 5px;
background-color: rgba(255,255,255,1.00);
#mainContent {
background-color: rgba(255,255,255,0.85);
padding: 10px 2%;
footer {
background-color: rgba(34,99,183,0.65);
margin-top: 10px;
padding: 10px 2%;
#copyright {
padding: 20px 1%;
font-size: 0.75em;
text-align: center;
/* ======================================================== */
/*  TEXT AND LINK SETTINGS   */
/* ======================================================== */
h1 {
font-size: 1.5em;
color: rgba(9,167,230,1.00);
h2 {
font-size: 1.375em;
color: rgba(43,43,43,1.00);
h3 {
font-size: 1.25em;
color: rgba(9,167,230,1.00);
h4 {
font-size: 1.125em;
color: rgba(238,22,150,1.00);
h5 {
font-size: 1em;
color: rgba(252,176,52,1.00);
h6 {
font-size: 0.875em;
color: rgba(115,158,1,1.00);
#mainContent a:link, #mainContent a:visited {
color: rgba(9,167,230,1.00);
text-decoration: none;
#mainContent a:hover {
color: rgba(238,22,150,1.00);
text-decoration: none;
#copyright a:link, #copyright a:visited  {
text-decoration: none;
color: #09A7E6;
#copyright a:hover {
text-decoration: none;
color: rgba(9,167,230,1.00);
#mainContent ul li {
margin-left: 30px;
line-height: 1.3em;
#mainContent ol li {
margin-left: 30px;
line-height: 1.3em;
.clearfix {
clear: both;
margin-left: auto;
margin-right: auto;

Similar Messages

  • Is it the code or the browser

    i don't use this application often, but it has worked previously within the last month.  However now my cffile is ALWAYS translating mime type to "application/x-itunes-itlp" even though it is sometimes a pdf, sometimes a word doc, sometimes an excel file etc.
    My <form> tag has enctype="multipart/form-data"
    The error is being thrown on the following line of code:
    <cffile action="upload" fileField="docUpload" destination="#dirPath#" nameConflict="overwrite" result="fileUpload" accept="application/vnd.ms-word, application/msword, application/vnd.ms-powerpoint, text/plain, application/x-pdf, application/pdf, application/vnd.wordperfect, application/vnd.ms-excel, application/zip, application/x-zip, application/x-zip-compressed, application/octet-stream, application/x-compress, application/x-compressed, multipart/x-zip">
    and the error, no matter what file so far (except text files) is:
    The MIME type of the uploaded file application/x-itunes-itlp was not accepted by the server.
    My question: who decides what mime type a file has?  is it the browser or the cffile tag?  If it's the browser, which i'm starting to suspect, is it something i can change in my own browser? (I have both firefox 3.5.7 and IE 6) if it's the cffile tag, can i change how it behaves?

    OK.  So i never found a good solution, although Adam's suggestions help find the problem, the solution may not be within my means, what i did find out was that  every file uploaded from this machine (and this machine only) to any server running my code is being identified at some point as an itunes/ipl file.  I'll be glad to find out where the problem was as i checked this computer's registry and it appeared to be correct, but didn't know how to see whether it was the browser or the server after that.
    I removed "accept" from the call and then ran the following code (which modifies the structure created by cf, see my note above) if the file extension matched my pre-arranged set of file extensions and threw an error if it did not (I did this is because i'm actually storing the mime type for when i output it, not because a filter that rejects by file extension didn't work for me)
    NOTE: macintosh and unix users may encounter issues because of this code on files without extensions.  But they would have trouble with most  measures as they are all based on file extension and thankfully, all of my admin users uploading documents are inside my firewall and i know they have windows pcs.
    Code: (note fileUpload is the variable created by cffile)
    <cfif fileUpload.clientFileExt eq "doc" and fileUpload.CONTENTSUBTYPE NEQ "msword">
        <cfset fileUpload.CONTENTSUBTYPE = "msword">
        <cfif fileUpload.contenttype neq "application">
             <cfset fileUpload.contenttype = "application">
        </cfif>
    </cfif>
    <cfif fileUpload.clientFileExt eq "ppt" and fileUpload.CONTENTSUBTYPE NEQ "vnd.ms-powerpoint">
        <cfset fileUpload.CONTENTSUBTYPE = "vnd.ms-powerpoint">
        <cfif fileupload.contenttype neq "application">
              <cfset fileUpload.contenttype = "application">
        </cfif>
    </cfif>
    <cfif fileUpload.clientFileExt eq "txt" and fileUpload.CONTENTSUBTYPE NEQ "plain">
         <cfset fileUpload.CONTENTSUBTYPE = "plain">
         <cfif fileupload.contenttype neq "text">
              <cfset fileUpload.contenttype = "text">
         </cfif>
    </cfif>
    <cfif fileUpload.clientFileExt eq "pdf" and fileUpload.CONTENTSUBTYPE NEQ "pdf">
          <cfset fileUpload.CONTENTSUBTYPE = "pdf">
          <cfif fileupload.contenttype neq "application">
              <cfset fileUpload.contenttype = "application">
           </cfif>
    </cfif>
    <cfif fileUpload.clientFileExt eq "wpd" and fileUpload.CONTENTSUBTYPE NEQ "wordperfect">
           <cfset fileUpload.CONTENTSUBTYPE = "wordperfect">
           <cfif fileupload.contenttype neq "application">
               <cfset fileUpload.contenttype = "application">
           </cfif>
    </cfif>
    <cfif fileUpload.clientFileExt eq "xls" and fileUpload.CONTENTSUBTYPE NEQ "vnd.ms-excel">
           <cfset fileUpload.CONTENTSUBTYPE = "vnd.ms-excel">
           <cfif fileupload.contenttype neq "application">
                <cfset fileUpload.contenttype = "application">
           </cfif>
    </cfif>
    <cfif fileUpload.clientFileExt eq "zip" and fileUpload.CONTENTSUBTYPE NEQ "zip">
            <cfset fileUpload.CONTENTSUBTYPE = "zip">
            <cfif fileupload.contenttype neq "application">
                  <cfset fileUpload.contenttype = "application">
            </cfif>
    </cfif>
    <cfif fileUpload.contentsubtype eq "x-itunes-itlp">
           <cfset fileupload.contentsubtype = "octet-stream">
    </cfif>
    The final if is effectively a catch all for this specific problem which was that it was returning "application/x-itunes-itlp", and so if going through all that stuff on code with the proper file extensions doesn't work, then there's a bug in this code, it is, however, not the best way to handle it, and i hope to have time next week to follow Adam's advice and follow up WHERE the type is being modified.
    Adam, can you point to a resource explaining how to use JWS to upload files? I'm still new to the java underbelly.

  • Complied chm file displays 'HTML help' on the title bar instead of the window name

    Complied chm file displays 'HTML help' on the title bar instead of the window name.
    I tried several ways like:
    1. Changed File>Project settings name and also set the language to English (US).
    2. Checked the Title name in .hhp file
    3. Used the window while compling.
    4. Robohelp language settings.
    5. Also uninstalled and reinstalled robophelp.
    But nothing helped
    The title name is displayed correctly if the same project is compiled on another machine.

    When the code in the HHP and the regional settings on a PC match, the correct title is displayed. Or other way around is also true the help title is displayed in the language specified in the help project IF (and only if) the regional settings of the PC match that language. Otherwise, "HTML Help" is displayed.
    Hope this help.
    Thanks and Regards,
    Rahul Karn

  • How to display "Image" object in the browser?

    can anyone please tell me how can i display "Image" object in the browser?
    I have an image object that i retrieved from AS400 BLOB object by using toolbox.jar (for as400 access for java including all necessary classes like jdbc driver, security etc.).
    i want to display this object in the browser so i will be able to web-enable my BLOB objects stored on as400.thx...

    In your HTML:
    <img src="ImageServlet">
    In ImageServlet:
    Make calls to DB to get your image as byte array and store it in:
    byte[] buffer = new byte[imageSize];
    ServletOutputStream out = response.getOutputStream();
    for(int i = 0; i < imageSize; i++)
    out.write(buffer, i, 1);
    out.close();

  • EML files are not opened in the browser

    EML files opened from a SharePoint 2010 document libraries are not opened in the browser. Instead, a dialog box is opened and prompts to save the file.  
    Since there's no standard application that knows how to handle EML files, and since the EML format is built into SP (send emails to document libraries), I think this behavior is unacceptable.
    EML files should be opened in the browser, similar to SP 2007.  

    Seems the solution is in the client side configuration.
    If eml files (as all other file types) are not configured to open by default in Outlook 2007 (or Windows Live Mail), they will be prompted for download or open.
    The registry change link I provided earlier did not work for me. I tried this:
    http://webcache.googleusercontent.com/search?q=cache:-hgG6T55trAJ:john-h-selnes.spaces.live.com/blog/cns!6C7F16530F119E8D!3092.entry+how+to+configure+sharepoint+to+opem+eml+file+in+outlook+2007%3F&cd=1&hl=en&ct=clnk&gl=us&source=www.google.com and
    solved my problem. Seems by default eml file set to MIME message/rfc822 and associated with windows live mail - SharePoint team hates Outlook team, right?
    If you do not have such assoication, it opens in browser!
    My settings: MOSS 2007, windows 7, outlook 2007.

  • Hello! I am writing to inform you that about that you have a problem displaying your website in the browser.

    Hello! I am writing to inform you that about that you have a problem displaying your website in the browser.
    In Yandex browser. I decided to tell you, because the site is not displayed correctly. As in the screenshot.

    apart from the fact there's no way I could have answered your question confidently, I was also not able to supply my non-answer within your very tight time constraints.
    what happened? how'd you get on?

  • Displaying XML content in the browser without creating the XML file

    Hi,
    In my web application, i am getting the data from the database and generating an XML file based on that. This file is created, read and its content is displayed in the browser when the user clicks a specific link on the jsp.
    As per the new requirement, i am not supposed to generate the XML file. Instead when the user clicks on the specific link on the jsp, the XML should get displayed in the browser directly without generating the XML file.
    Can someone plz help me in how to do this?
    Moreover, this XML generation application should support multiple clients. Do i need to make my application thread-safe explicitly even though i am using a servlet to do this?
    Please suggest
    Thanx

    Avoid multi post
    http://forum.java.sun.com/thread.jspa?messageID=9858529

  • Excel Output is being displayed as HTML in the browser

    Hi All,
    I am using PeopleSoft XML Publisher 5.6.2 to generate an Excel report using RTF template. The report runs successfully.
    However, when I click the Output file link in the View Log page of process scheduler, the file is being displayed as a HTML page, though the extension of the file is .xls.
    Also when I try to save the file by using 'Save Taget as' option, the browser prompts me to save the file as 'mhtm' file and not 'xls' file.
    The following is an extract from the output file.
    <html>
    <!-- Generated by Oracle XML Publisher 5.6.2 -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>IM Top 10 Surplus &amp; Deficit Locations</title>
    After doing some research on Internet, I found the following blog post(dated back in 2008) to describe my situation and a workaround to the problem.
    http://peoplesofttipster.com/2008/04/16/xls-xmlp-output-opening-in-browser-not-excel/
    http://peoplesofttipster.com/2008/04/18/xls-xmlp-output-opens-in-browser-workaround/
    Workaround described in the above blog post is to update the charset to us-ascii replacing UTF-8. This seems to work. But with limited file processing capabilities of peoplecode, this workaround is not a simple solution.
    I also verified the mime-type mapping in the web.xml file in the webserver. Please find below the .xls mime-type mapping in the web.xml file.
    <mime-mapping> <extension> xls </extension> <mime-type> application/vnd.ms-excel</mime-type></mime-mapping>
    Question:
    1.How do I force the browser to open the excel output file using either Excel plugin or Excel Application instead of displaying it as HTML page?
    2.If not the above, how can I force the system to promt the user to save the file as Excel file instead of mhtml?
    Additional details :
    work enivronment
    PeopleSoft FSCM 8.9
    PeopleTools 8.48.17
    Oracle 10g
    Windows NT
    Any help would be greatly appreciated.
    Thanks & Regards,
    Vamsi Krishna

    Please try this by Open windows explorer, Click Tools -> Folder Options ->,Click on File Types and Select XLS from the list, Click Advanced, select "Open" and Make sure the “Browse in same window” is not selected.
    Hope this helps,
    Ramesh

  • Displaying a jpg on the browser using a simple http server.....

    Hi
    I've written a simple server which responds by sending a jpg file .
    BROWSER ---request---> SERVER ( reads a jpg file, converts to byte[] and writes to browser )
    ^
    |
    |
    <----response ----------
    So I connect from the browser and the server sends a jpg and I'd to display that. Everything is thru sockets. There is no webserver as such.
    The problem is, I'm getting the text fine, but instead of the picture, I get lots of characters...probably the browser is unable to interpret the jpg . How to I display the jpg ? Do I have to convert the characters in the server code before sending it ?
    Anything to do with Base64 encoding ??
    Thanks !!

    All answers to this question including mine disappeared ??????
    In order to serve an image or any other type of data over the HTTP protocol you have to supply the correct HTTP response header with the data.
    The stream of bytes written to the client should be structured like this:
    A status code followed by several lines of key/value pairs with header information, a blank line and finally the bytes of the image.
    All lines in the header should end with \r\n no matter what OS the server is running.
    HTTP/1.1 200 OK
    Date: Wed, 07 Nov 2001 18:37:47 GMT
    Server: MyServer/0.1
    Content-Type: image/jpeg
    Content-Length: 4321The Content-Length field must have the length of the image data in bytes. The Content-Type field must be the correct mime type for the image data.
    Read RFC 2068 if you want or need more information.

  • Correct display of characters in the Browser - Pls Help - Urgent

    Hi,
    We have a java application running on solaris 8 connected to oracle 8.1.6 database. The database characterset has been changed to WE8ISO8859P15 to support Western European Characters and the Euro symbol.
    The problem we are facing is, when the euro symbol (Alt + 0128) is entered thru the HTML form and then retrieved from the database and again displayed on the HTML form, it shows as inverted question mark or some other character.
    If any one can tell us exactly the steps to follow overcome this problem, it would be of great help. What settings have to be changed in the webserver, database and the client side so that there is proper data conversion.
    Immediate response is apprecited.
    Thanks

    Couple of samples to try:
    1)
    <%@ page contentType="text/html;charset=ISO-8859-15" %>
    <HTML>
    <HEAD>
    <TITLE>Hello</TITLE></HEAD>
    <BODY>
    <%
    String charset = response.getCharacterEncoding();
    %>
    <BR> encoding = <%= charset %> <BR>
    <%
    String nameValue = request.getParameter("euro");
    String euroVal = "\u20ac";
    if (nameValue == null || nameValue.length() == 0) { %>
    <FORM METHOD="GET">
    Please input your name: <INPUT TYPE="TEXT" NAME="euro" value="<%=euroVal%>" size=20> <BR>
    <INPUT TYPE="SUBMIT">
    </FORM>
    <% }
    else
    nameValue= new String(nameValue.getBytes("ISO8859_1"), charset); %>
    <H1> Hello, <%= nameValue %> </H1>
    <%
    //insert nameValue into database
    %>
    </BODY>
    </HTML>
    2)
    <%@ page contentType="text/html;charset=ISO-8859-15" %>
    <HTML>
    <HEAD>
    <TITLE>Hello</TITLE></HEAD>
    <BODY>
    <%
    String charset = response.getCharacterEncoding();
    request.setCharacterEncoding(charset);
    %>
    <BR> encoding = <%= charset %> <BR>
    <%
    String nameValue = request.getParameter("euro");
    String euroVal = "\u20ac";
    if (nameValue == null || nameValue.length() == 0) { %>
    <FORM METHOD="GET">
    Please input your name: <INPUT TYPE="TEXT" NAME="euro" value="<%=euroVal%>" size=20> <BR>
    <INPUT TYPE="SUBMIT">
    </FORM>
    <% }
    else
    %>
    <H1> Hello, <%= nameValue %> </H1>
    <%
    //insert nameValue into database
    %>
    </BODY>
    </HTML>We have tired your code and here are the answers to your questions:
    1. Does the euro example work in your environment?No it is not working.we could not run the second example because'
    we don't have a "request.setCharacterEncoding(charset)" method.
    we are using servlet 2.2 api
    2. Is the HTML form a JSP/Servlet or a HTML calling CGI?we are having HTML/JSP form calling a servlet.
    the results and forms are always JSP.
    3. Try using a HTTP GET in the form and observe the URL on
    the browser. Does it show the parameter as:
    http://host:port/euro01.jsp?euro=%A4
    Euro symbol's code point is A4 in ISO-8859-15. We'd like to make
    sure it is not corrupted when it is sent to the server.your previous example shows it as %A4 but it is not inserting correctly
    in the database.The ascii value of the inserted value is 191 but we guess the correct
    ascii value is 164.
    4. After insertion, check the value on the database server.
    Assume you insert the data in the following table:
    create table tab01 (col01 varchar2(100));
    You can query the euro code point:
    select dump(col01, 16) from tab01;
    Check to see if the value shows A4.the result we have is Typ=1 Len=1: bf
    5. Please be aware that the example above is for varchar/char
    column. You mentioned uploading blob content into database. Is
    it a separate issue? Or do you just request a blob example?Actually blobs are not a problem. What we actually meant is that we are uploading some blob content into the database for which we have to use com.oreilly.servlet.MultipartRequest. But inserting euro symbol becomes a problem when we use this. If we use without multipart request we are able to insert euro but will not be able to upload blob. Blob content is not related to euro.
    6. If problem still persists, I suggest that you send us a simple
    program of yours that include the HTML/JSP and your schema
    (SQL). Here is the program we are using to test.
    <html>
    <HEAD>
    <title>Charset Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
    </head>
    <body>
    <form name='f' action="CharsetTestJSP.jsp" method=post enctype="multipart/form-data">
    <input type=text name="TestValueMpr">
    <input type=submit value="Submit for MultipartRequest">
    </form>
    <form name='forn' action="CharsetTestReqJSP.jsp" method=post >
    <input type=text name="TestValueReq">
    <input type=submit value="Submit for OrdinaryRequest">
    </form>
    </body>
    </html>
    this is the html file with two forms , one with multipart request and the other without it. When used the form without multipart request, inserting euro into the db, stores it correctly and displays it correctly when retrieved. The html form calls 2 jsp files which are as follows:
    CharsetTestReqJSP.jsp
    <%@ page contentType="text/html; charset=ISO-8859-15" %>
    <%@ page import="com.interactive1.kf.Config,java.sql.*"%>
    <%
              //response.setContentType("text/html");
    //response.setHeader("Content-Type", "text/html; charset=ISO-8859-15");
    //java.io.PrintWriter out = response.getWriter();
    String test = "test";
    String testFromForm = request.getParameter("TestValueReq");
    * Here instaed of the test value we are
    * inserting what is coming from the form
    Connection con = null;
    try {
    con = Config.getInstance().getConnection();
    StringBuffer sql = new StringBuffer("INSERT INTO x_temp VALUES (?)");
    PreparedStatement pstmt = con.prepareStatement(sql.toString());
    pstmt.setString(1,testFromForm);
    pstmt.executeUpdate();
    pstmt.close();
    pstmt = con.prepareStatement("SELECT * FROM x_temp");
    ResultSet rst = pstmt.executeQuery();
    while(rst.next()) {
    out.println(rst.getString("text"));
    rst.close();
    pstmt.close();
    } catch (SQLException se) {
    out.println("problem sql exception : " + se.getMessage());
    } finally {
    if (con!=null) {
    try {
    con.close();
    } catch (SQLException se) {
    se.printStackTrace();
    out.println(response.getCharacterEncoding());
    out.println("");
    System.out.println("");
    %>
    CharsetTestJSP.jsp
    <%@ page contentType="text/html; charset=ISO-8859-15" %>
    <%@ page import="com.interactive1.kf.Config,java.sql.*,com.oreilly.servlet.MultipartRequest"%>
    <%
    System.out.println("request="+request.getParameter("TestValueMpr"));
    MultipartRequest mpr = new MultipartRequest(request,5*1024*1024);
    System.out.println("mpr="+mpr);
              //response.setContentType("text/html");
    //response.setHeader("Content-Type", "text/html; charset=ISO-8859-15");
    //java.io.PrintWriter out = response.getWriter();
    String test = "test";
    String testFromForm = mpr.getParameter("TestValueMpr");
    * Here instaed of the test value we are
    * inserting what is coming from the form
    Connection con = null;
    try {
    con = Config.getInstance().getConnection();
    StringBuffer sql = new StringBuffer("INSERT INTO x_temp VALUES (?)");
    PreparedStatement pstmt = con.prepareStatement(sql.toString());
    pstmt.setString(1,testFromForm);
    pstmt.executeUpdate();
    pstmt.close();
    pstmt = con.prepareStatement("SELECT * FROM x_temp");
    ResultSet rst = pstmt.executeQuery();
    while(rst.next()) {
    out.println(rst.getString("text"));
    rst.close();
    pstmt.close();
    } catch (SQLException se) {
    out.println("problem sql exception : " + se.getMessage());
    } finally {
    if (con!=null) {
    try {
    con.close();
    } catch (SQLException se) {
    se.printStackTrace();
    out.println(response.getCharacterEncoding());
    out.println("");
    System.out.println("");
    %>
    I hope this will help you to suggest a remedy for our problem.
    Thanks

  • Can not select a PDF file in the file uploader window after clicking the Browse... button for a file type input element.

    After upgrading to 5 (this worked in 4) I can not select a PDF file in the File Upload dialog that appears when I click the Browse button next to an HTML file type input element. The specific HTML element source code has the attribute: ACCEPT="image/*". I can select image files such as jpg, png, tiff, etc. But not PDF. This worked great in Furefox 4 and works in the latest version of Safari.
    The HTML code for the form element is:
    INPUT TYPE="file" NAME="file_1" ACCEPT="image/*" SIZE=35
    The File Upload dialog lists all files with PDF extension as dimmed and not selectable in Firefox 5.
    Can you help?

    Hi Purush
    Unfortunately we couldn't solve the problem. Our IT specialist checked it with SAP directly. SAP doesn't support the SAP KW solution anymore. Therefore we checked-in the document in ".doc"-Format.

  • Displaying xml content in the browser

    Hi,
    In my application i am generating an XML content which i was storing into a file. Now as per the new requirement, this xml content needs to be displayed in the browser. (The way it gets displayed when we double click on an xml file).
    Can some one plz tel me how to do this? I am using the jsp/servlet architechture..? plz help
    Thanx

    Program 1
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SendXml extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        //get the 'file' parameter
        String fileName = (String) request.getParameter("file");
        if (fileName == null || fileName.equals(""))
          throw new ServletException(
              "Invalid or non-existent file parameter in SendXml servlet.");
        // add the .doc suffix if it doesn't already exist
        if (fileName.indexOf(".xml") == -1)
          fileName = fileName + ".xml";
        String xmlDir = getServletContext().getInitParameter("xml-dir");
        if (xmlDir == null || xmlDir.equals(""))
          throw new ServletException(
              "Invalid or non-existent xmlDir context-param.");
        ServletOutputStream stream = null;
        BufferedInputStream buf = null;
        try {
          stream = response.getOutputStream();
          File xml = new File(xmlDir + "/" + fileName);
          response.setContentType("text/xml");
          response.addHeader("Content-Disposition", "attachment; filename="
              + fileName);
          response.setContentLength((int) xml.length());
          FileInputStream input = new FileInputStream(xml);
          buf = new BufferedInputStream(input);
          int readBytes = 0;
          while ((readBytes = buf.read()) != -1)
            stream.write(readBytes);
        } catch (IOException ioe) {
          throw new ServletException(ioe.getMessage());
        } finally {
          if (stream != null)
            stream.close();
          if (buf != null)
            buf.close();
      public void doPost(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        doGet(request, response);
    Program 2
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLConnection;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class ResourceServlet extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        //get web.xml for display by a servlet
        String file = "/WEB-INF/web.xml";
        URL url = null;
        URLConnection urlConn = null;
        PrintWriter out = null;
        BufferedInputStream buf = null;
        try {
          out = response.getWriter();
          url = getServletContext().getResource(file);
          //set response header
          response.setContentType("text/xml");
          urlConn = url.openConnection();
          //establish connection with URL presenting web.xml
          urlConn.connect();
          buf = new BufferedInputStream(urlConn.getInputStream());
          int readBytes = 0;
          while ((readBytes = buf.read()) != -1)
            out.write(readBytes);
        } catch (MalformedURLException mue) {
          throw new ServletException(mue.getMessage());
        } catch (IOException ioe) {
          throw new ServletException(ioe.getMessage());
        } finally {
          if (out != null)
            out.close();
          if (buf != null)
            buf.close();
      public void doPost(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        doGet(request, response);
    }Have fun

  • Content Query Web Part (CQWP) displaying ASCII code for the colon portion of a time

    I'm having an issue with a CQWP displaying &#58; for the colon portion of a time.  For example, instead of 6:30, the CQWP shows 6&#58;30. 
    I checked our encoding which is set to UTF-8.  We also have a custom style on the CQWP and I've made sure that our custom itemstyle.xsl file has the disable-output-escaping property set to yes. 
    When I look at the list I'm querying from, the ascii code is not showing in there; it's displaying properly as 6:30.  I tried to flip this by replacing the colon with the ascii symbol in the list but it still showed the ascii code on the CQWP.
    Any ideas?

    Hi Cameron,  thanks for your reply.  The solution in the blog would work for an area that is only for date or time.  Unfortunately, this particular section of my CQWP is more than just a time; it's the summary of a news article--
    which may or may not contain a time depending on what the news article is about. 
    In further testing I have also noticed, when viewing the source code, that the colon is represented as
    &amp;#58; which tells me that the ampersand of the ascii code for the colon is also being convertied to ascii (in a sort-of double
    conversion situation.)  This isn't something I've ever seen before.

  • Generate and display pdf doc on the browser on click of a btn - struts/iTex

    Hi all
    I am using iText to generate a pdf document. My challenge is to upload the file as it is generated on the browser without letting the user
    click again. So basically cannot use Formfile provided by Struts to upload. Has any one tried uploading any doc on btn click .
    Please share.
    Thanks!

    Look at the File.openWithDefaultApplication() method.

  • Would like to allow PDF files to open straightway in the browser rather asking for open save option. pls help

    I m running a website on intranet. while accessing pdf file more than 8 MB in size. A window having Openwith, Save option pops up. i would like firefox to open PDF files of any size strightway in the browser without pop ups. Please help
    Thanks in anticipation

    kearly - thanks a million for posting both the question & the reply! I just unchecked that little box by accident, & couldn't figure out for the life of me how to fix it. Thanks again!!

Maybe you are looking for

  • Can't connect to the iTunes store after upgrading to iTunes 8

    I just updated to iTunes 8 and am trying to download the iPhone update. Whenever I try to get the download, I keep getting an error saying that a connection could not be made and I should check my internet connection. Is there a problem with the iTun

  • Current period in Accounting 1 view of Material Master

    Dear Experts, In Accounting 1 view of Material Master there is a current period, now it is 12 2009. Is it possible to make it 11 2009, if yes how to do it. Please help if you have solution. it is very crucial for me. Thank you for your support. Regar

  • Itunes does not allow me to play or import songs from my CD

    I just installed a new external Cd rom drive and Itunes recognizes the Cd is there and lists the song titles but when I try to play the songs it zooms through the songs not playing any and when i try to import them it says that all of them are obsurd

  • Migration assistent and built out time machine hdd

    Hi all, my MacBook Pro got stolen and miraculously my time machine died at the same time. I got out the hard drive and put it in a casing with firewire. My problem is: I try to run Migration Assistant on my new MacBook Pro, but when I select "From a

  • Deployment of ADF Application in Oracle  Application  server

    I am tring to deploy my application in Oracle 10.1.3 SOA Suite server. But, during deployment time of my xyz.deploy file I am getting following error -> Binding GlobalSalesService6.0 web-module for application GlobalSalesService6 to site default-web-