Displaying content in JSP page, want BR but not other Html tags

I have a page and am reading files and displaying the contents of the files onto the page in a <div> Oneissue is that in the file the end of line are \n or \r\n whichever operation system. I replaced those with <BR> no problem. Now my issue is that I display that in the JSP page:
<c:out value="${filecontents}" escapeXml="false" />I use escapeXml so that <BR> will add the line breaks. Now my issue is that the file might contains other HTML tags that I want to display simply as text - I don't want the browser to render the other HTML tags.
Is there a way to do that? Would I have to replace HTML tags with something special?

Hmm... your file contains HTML tags, but you don't want the browser to interpret them as HTML tags, right? So the way to do that is to use escapeXml="true" in your c:out element.
But then that also escapes the <BR> tags that you carefully put in there. And you don't want that. You want the browser to interpret those as HTML tags.
I guess you can't have it both ways. Can you do something like outputting one line of the file at a time with <c:out ... escapeXml="true"> followed by <br>?

Similar Messages

  • Please help, jsp page wants missing ";" but not to good with jsp?

    I have a JSP page called ftplogin.jsp
    I want the jsp page to call a ftpbean.
    It will pass server, username and login into the ftpbean.
    It will then set the directory and finaly retrieve a a document from it.
    The ftpbean works but my jsp page doesn't. Please help with compilation problem?????
    Please also tell me if the syntax of accessing the bean is correct?
    <!-- ftplogin.jsp -->
    <html>
    <head>
    <title> FTP Login </title>
    </head>
    <body>
    <%@ page import= "ftp.* " %>
    <jsp:useBean class="ftp.FtpBean" id="ftpbean" scope="session" />
    <%
    try
    String servername = request.getParameter("serverName");
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    ftpbean.ftpConnect(servername, username, password);
    catch(Exception e)
    %>
    Sorry but your must have entered an incorrect login ingotmation.
    You are not allowed to login.
    Please leave the ftp portal.
    <%
    %>
    <h1> Welcome to the FTP Login. </h1>
    <FORM ACTION="ftplogin.jsp" METHOD=post>
    Please login
    Enter name of server:
    <input type="text" name="servername"><br>
    Enter user name?
    <input type="text" name="username"><br>
    Enter password
    <input type="text" name="password"><br>
    <input type="submit" name="Submit info">
    </FROM>
    <%=
    try
    // set the directory
    ftpbean.setDirectory("/home/eland/u6/k3074/w0109699/simple-bean");
    catch(Exception e)
    System.out.println(e);
    %>
    <%=
    try
    // Get the binary file '????' and save it to hard disk
    // the name will be 'local_file_name' .
    ftpbean.getBinaryFile("accessbean.jsp", "local_file_name", this);
    catch(Exception e)
    System.out.println(e);
    %>
    <%=
    try
    ftpbean.close();
    catch(Exception e)
    System.out.println(e);
    %>
    </body>
    </html>
    Location: /myJSPs/jsp/grid-portal-project/ftplogin.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile Note: sun.tools.javac.Main has been deprecated.
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:110: Missing term.
    out.print(
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:110: ')' expected.
    out.print(
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:120: Missing term.
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:120: ';' expected.
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:121: Invalid expression statement.
    ^
    5 errors, 1 warning
         at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
         at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:536)

    Please note I have solved the compilation problem.
    But now getting runtime error. Here is the error:
    Error: 500
    Location: /myJSPs/jsp/grid-portal-project2/ftplogin.jsp
    Internal Servlet Error:
    javax.servlet.ServletException
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
         at jsp.grid_0002dportal_0002dproject2.ftplogin_1._jspService(ftplogin_1.java:128)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
         at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
         at org.apache.tomcat.core.Handler.service(Handler.java:235)
         at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:536)
    Root cause:
    java.lang.NullPointerException
         at java.net.Socket.(Socket.java:282)
         at java.net.Socket.(Socket.java:118)
         at ftp.FtpBean.ftpConnect(FtpBean.java:323)
         at ftp.FtpBean.ftpConnect(FtpBean.java:293)
         at jsp.grid_0002dportal_0002dproject2.ftplogin_1._jspService(ftplogin_1.java:91)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
         at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
         at org.apache.tomcat.core.Handler.service(Handler.java:235)
         at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:536)
    Here is my directory structure for ".jsp" and ".html" pages:
    C:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\jsp\grid-portal-project2
    Here is my directory structure for java classes,
    C:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\WEB-INF\classes
    ftp
    ftp\FtpBean.java
    ftp\FtpBean.class
    Here is the modified source code:
    <html>
    <head>
    <title> FTP Login </title>
    </head>
    <body>
    <%@ page import= "ftp.* " %>
    <jsp:useBean class="ftp.FtpBean" id="ftpbean" scope="session" />
    <%
               String servername = request.getParameter("serverName");
               String username   = request.getParameter("username");   
               String password   = request.getParameter("password");
               ftpbean.ftpConnect(servername, username, password);
    %>
    <h1> Welcome to the FTP Login. </h1>
    <FORM ACTION="ftplogin.jsp" METHOD=post>
    Please login
    Enter name of server:
    <input type="text" name="servername"><br>
    Enter user name?
    <input type="text" name="username"><br>
    Enter password
    <input type="text" name="password"><br>
    <input type="submit" name="Submit info">
    </FORM>
      <% 
               ftpbean.setDirectory("/home/eland/u6/k3074/w0109699/simple-bean");
      %>
      <%
               ftpbean.getBinaryFile("accessbean.jsp", "local_file_name");
      %>
      <%
                ftpbean.close();
      %>
    </body>
    </html>

  • Display content in Jsp page

    Hi All,
    When I am trying to display large the data in jsp I have problem...
    It will display entire content in one page but I want some data and Click the next hipar link than it will display the next data...
    Like yahoo mail box....
    Please give me the idea on this issue

    you can have a hidden field which stores information about the current record number. so that you can start from the record pointed by the value in the hidden and proceed till delta records and finally increment the value of the hidden field by delta.
    for instance, if you have 20 records, and your hidden field value at the beigning is 0.
    when the page loads you can read this hidden field value and display 5 records starting from the hidden field value. Finally you can increment the hidden field value by 5. Your link must post your form to this page.

  • Junk characters like" � � "displayed in the jsp page please help.

    Hi,
    I am getting junk characters like � � displayed in the jsp page.
    In the JSP page i used javascript "& nbsp" for appending spaces to a string "CCR" to get "CCR " .
    Now the Resultant string "CCR " has three spaces appended to its right.
    This String is set in session in that JSP page.
    In the next JSP page i am getting that string from session.
    After getting the string the "substring" function is performed to get only the first 5 charcters of the string. Now the result is displayed as " CCR� � " with has last 2 characters as junk values � � insteed of displaying as "CCR ". Please help me in solving this issue.
    Please note that initially the sting "CCR" is got from the Oracle database in Solaris Machine.
    Regards,
    Vijay

    have you tried:
    strenuously inspecting the string that is coming from the db? do an actual loop over the string, character by character, dumping to System.out to make sure the characters are EXACT coming out of the db.
    note you have to append " " not just "& nbsp"
    post the code that is doing the output. the relevant bean code, the jsp, everything relevant - WITH COMMENTS discussing where things are happening.
    Also, is it "weird characters" in the browser only? have you done a view source on the actual html source that the browser is rendering (right click in IE and click view source). browsers can act odd if you don't feed then exactly what they want, and it looks like you're feeding it escaped characters that it is rendering as something else.

  • I'm Stuck at: Safari can't display content on this page.???

    I'm still somewhat new to Apple so bear with me here.
    As I use Safari I attempt to listen to a Radio Player online I'm greeted with this message:
    Safari can't display content on this page.
    Some content on this page requires an Internet plug-in that Safari doesn’t support. The application “Windows Media Player” may be able to display this content. Would you like to try?
    I try that also but to no avail.
    Thanks ahead of time

    There is no windows media player support for the Intel Macs. MS has dropped support for Windows Media on the Mac platform.
    Filp4Mac should have an Intel compatible plugin soon - I have no idea if it will solve this problem, though.

  • Display image on jsp page

    I have to display image on jsp page with some text output. This image is already saved at a location parallel to web-inf and is generated dynamically using a servlet. I have used img tag html to display the image. Other outputs are taking their values from database.
    First problem is that image will be taking time to display in comparision of other outouts from database. I have to refresh the page to get imageon my page.
    Second is that if I save image in a folder parallel to web-inf in my project then it will not be displaying the image.
    Can I use any jsp functionality to display image with other outputs from database. I have used "*include*". but it shows only that image and other outputs.

    Best way is to use a servlet for this.
    <img src="path/to/imageservlet?id=someidentifier">
    <!-- or -->
    <img src="path/to/imageservlet/someidentifier">In the servlet's doGet() just write code which gets an InputStream of the image (either directly generated, or just read from the local disk file system, if necessary with help of ServletContext#getRealPath(), or even from the DB by ResultSet#getBinaryStream()) and writes it to the OutputStream of the response. That's basically all. Don't forget to buffer the streams properly to speedup performance and to save memory.
    You can find here a basic example: [http://balusc.blogspot.com/2007/04/imageservlet.html].

  • Problem in Retrieve Image from DB and display in the JSP page

    Hi All,
    I did one JSP Program for retriveing image from DB and display in the JSP Page. But when i run this i m getting "String Value" output. Here i have given my Program and the output. Please any one help to this issue.
    Database Used : MS Access
    DSN Name : image
    Table Name: image
    Image Format: bmp
    Output : 1973956
    Sample Program:_
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.io.*" %>
    <%
         try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              Connection conn = DriverManager.getConnection("jdbc:odbc:image");
              Statement st = conn.createStatement();
              ResultSet rs = st.executeQuery("SELECT images FROM image");
              String imgLen="";
              if(rs.next()){
                   imgLen = rs.getString(1);
                   out.println(imgLen.length());
              if(rs.next()){
                   int len = imgLen.length();
                   byte [] rb = new byte[len];
                   InputStream readImg = rs.getBinaryStream(1);
                   int index=readImg.read(rb, 0, len);
                   System.out.println("index"+index);
                   st.close();
                   response.reset();
                   response.setContentType("image/jpg");
                   response.getOutputStream().write(rb,0,len);
                   response.getOutputStream().flush();
         }catch(Exception ee){
              out.println(ee);
    %>
    Thanks,
    Senthilkumar S

    vishruta wrote:
    <%
    %>Using scriptlets is asking for trouble. Java code belongs in Java classes. Use a Servlet.
                   out.println(imgLen.length());Your JSP was supposed to write an image to the output and you wrote some irrelevant strings to the output before? This will corrupt the image. It's like opening the image in a text editor and adding some characters before to it.
                   byte [] rb = new byte[len];Memory hogging. Don't do that.
              out.println(ee);You should be throwing exceptions and at least printing its trace, not sending its toString() to the output.
    You may find this article useful to get an idea how this kind of stuff ought to work: [http://balusc.blogspot.com/2007/04/imageservlet.html].

  • Website page displays and javascript runs correctly in IE8 but not in Firefox 3.6.10

    website page displays and javascript runs correctly in IE8 but not in Firefox 3.6.10

    Can you post a link?
    Then we can take a look.

  • Printer just started feeding a blank page after some, but not all printed documents

    Printer just started feeding a blank page after some, but not all printed documents

    Hi @cam21 ,
    I understand that you are having issues printing, after some documents you are getting blank pages. I would be happy to help you.
    I would do a hard reset to see if that will resolve the issue.
    Leave the printer on and unplug the power cable from the printer and wall outlet for 60 seconds.
    Then reconnect the power cable to the printer and wall outlet rather than a surge protector.
    This ensures the printer is receiving full power and may help this situation.
    What application are you printing from?
    It may be a setting in the application.
    Does this happen from all applications?
    Download and run the Print and Scan Doctor. It will diagnose the issue and might automatically resolve it. http://www.hp.com/go/tools>Using HP Diagnostic Tools for HP Printers in Windows.
    How is the printer connected? (USB/Ethernet/Wireless)
    What were the results when you ran the Print and Scan Doctor? (did it print or scan, any error messages)
    If there is anything else I can help you with, just let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Error:  Namespace prefix 'split-by-page-break' used but not declared.

    I have my machine reimaged, now when I try to preview an rtf template I get the below error. Nothing has changed in my template and I am using 1.0.0 Build 9 as before my reimage as well. This is an uregent problem that I am not able to find the solution for on my own. Please advise with any help.
    Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'split-by-page-break' used but not declared.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:782)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:564)
         ... 14 more
    Thanks

    I'm just new to XMLP and am receiving the same error.. My error is occuring when trying to use sub-templates in my master template.
    I believe I have the syntax correct:
    To import template file:
    <?import:file:h:///CN_LTR_TEMPLATES.rtf?>
    to call the sub-template:
    <?call-template: signature:?>
    Its the call-template to signature thats generating my error message.. My only thought is that its not calling my import properly..
    Anyway.. Hope this might help you a bit.. you never mentioned anything about using a sub-templates. Perhaps since you formated your computer, your template may be in a different location or gone all together (that is if you are using sub-templates).
    If i figure anything out in the mean time, i'll let you know..
    Edited by: user8682333 on Aug 16, 2009 6:51 AM

  • Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • My iPhone4 docks correctly with some devices but not others, please help!

    Hi,
    Firstly spologies if this is old news but sometimes its easier to 're-ask' than trawl thousands of pages!.....
    I have a 3-year old iPhone 4 that has developed a problem which i'm trying hard to solve;
    *Phone used to dock fine with anything and everything - this was about 1 year ago.
    *for no apparent reason it ceased docking with my Bose Soundock and a Logic3 accessory dock (connected to a hi-fi) at home
    *symptoms were; it would charge and operate as normal whilst docked but would not play music through either (the Logic3 dock did not acknowledge it was docked). Otherwise it would sync and connect normally with iTunes, etc. and connected fine when plugged into my car.
    *I reset it, restored it from back-up, updated/reinstalled iOS (this has since updated at least twice) with no other effects. Also checked and reset all settings.
    *I subsequently bought a Pure Contour dock as I was able to try it in the shop and my phone worked with it, plus it has Airplay anyway. I have since, in an attempt to find a bedside DAB radio/alarm dock that works with it, found that it works fine with some devices but not others with no rhyme or reason as to which.
    *2 days ago I changed out the docking port myself using a cheap replacement bought from Amazon, to see if it would cure.
    * now the problem is reversed! The Bose and Logic3 docks I have, that it wouldn't work on before, it now DOES....and the Pure dock and my car, which it DID work with before now fail to connect with it!
    *just to reiterate this, my wife's gen3 and gen5 iPods dock and work faultlessly with all devices mentioned....and mine had done previously.
    to my knowledge it is NOT;
    - a compatibility issue. The phone used to work fine on everything I had. Then it stopped. How's that?!
    - a connector issue. The male connectors on all docks haven't changed.......and the female connector in my phone has changed from liking selected devices to then liking the others!! (it is female after all ;-) !)
    -a software issue. iOS has been updated and the phone wiped and restored and all sorts so many times I can;t see how it can be!
    could it be a problem with the data exchange between phone and device when it is docked??
    or do I really need to try changing the port for an 'official' one??
    or is it just broken and that's that?!

    It's either a problem with the connector on your phone (dirt, lint, bent pin, corrosion) or with its connection to the motherboard inside. Cleaning the connector is a good place to start; either a dry toothbrush, air blast can or wood toothpick. Next inspect it carefully with a good magnifying glass or jeweler's loupe. If nothing turns up it is probably damage inside, which will be difficult to fix. Aren't you due for an upgrade about now? Your iPhone 4 is 3 generations out of date!

  • Problem viewing streaming video in some wifi networks, but not others

    When I am at work (university), I can not view YouTube videos or video streaming from news sites such as cnn mobile on my ipod touch 2g.
    <m.cnn.com/videos.jsp?ckey-cnn)06#__1_>
    When I called Apple support, they had me reset-restore. I still had the problem. I went to the Apple store Genius bar and the problem no longer existed, the videaos downloaded and played from both sites!
    But at my diner and at work, I get the message, "This movie could not be played" in a popup box with an OK button. The same message appears if I use the YouTube application. I click on any video, and the same popup appears. In Cnn the popup is preceded by a shaded capital Q that looks like the blue Quicktime Q; in Youtube the pupup is preceded by a YouTube icon in gray with the "Tube" surrounded by the rounded rectangle, their icoon...
    At the Apple store the popup never appeared, and the videos downloaded and played.
    I have no trouble playing movies I have downloaded from iTunes.
    I did not have this problem when I initially got my iPod Touch, and I think it appeared after one of the last two system upgrades, but I am not sure.
    I am curious that it the problem happens at two places, my diner and at work.
    The speed of my wireless work network, as judged by the ipod app speed test is 9915 kbps download and 6971 kbps upload, so plenty fast.
    The first time I noticed this issue was with the application "At Bat Lite" which also won't play video highlights at work.
    I do not have WiFi at home
    Any thoughts about what would cause this lack of functionality apparantly only at some networks but not others?
    Oh, one more piece of data: at work a Macbook will play YouTube both on ethernet and using wifi...
    Thanks for any thoughts or suggestions,
    Paul

    It seems I have two networks available at work, one is behind our firewall, and I login to it. This is the network that I can't view streaming video. There is also a "Guest" network that I don't need to login to. This one works with the YouTube and the news site videos.
    Thus, I conclude there is a setting that WiFi network administrators can invoke that specifically can block streaming video on some protocols (whatever the ipod touch uses) and not others (whatever the Macbook uses). But the same router hardware supplying the Guest network does not block these protocols. Presumably this has to do with security on one side of the firewall(?)
    Anyway, apparently outside of the WiFi controls available in the ipod touch settings.
    Weird...
    Paul

  • WMP will play some mp3 and mkv files to my Sony TV but not others

    Hi,
    Windows Media Player will play some mp3 and mkv files to my Sony Bravia TV (KDL70W850B) but not others. I get the error: “Failed to retrieve media information”. Sometimes if I make a copy of the files that don’t play, I am able to play the copied files.
    I normally right click on files and select ‘Play to’ and then pick my TV from the list. The following is an example of some files (as displayed in Windows Explorer) and which do and don’t play:
    File Type                    Size        Length              Result
    mkv              1,122,598 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 432,333 KB        00:41:30           Plays
    mp4                 291,948 KB        00:41:30           Plays
    mkv              1,203,197 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv              1,350,122 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mp4                 429,571 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 305,643 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 313,371 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 353,589 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 331,899 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 328,495 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 415,954 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mp4                 340,388 KB        00:41:30           Failed to retrieve media information
    from server. Will play when file is copied and copied file is played.
    mkv                 106,936 KB        00:10:53           Plays
    mkv                 212,223 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 219,336 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 191,884 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 178,798 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 218,238 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 191,887 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 197,373 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 180,367 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    mkv                 180,894 KB                               
    No ‘Play to’ option. Still no ‘Play to’ option when file is copied.
    I have stopped and restarted the Windows Media Player Network Sharing Service and the UPnP Device Host Service; I also linked a Windows Live ID but this did not help. All devices have access to my PC and my TV has the latest software.
    I have Windows 7 and WMP 12 and according to my TV specs, the DLNA supported formats are: MPEG1/ MPEG2PS/ MPEG2TS/ AVCHD/ MP4Part10/ MP4Part2/ AVI(XVID)/ AVI(MotionJpeg)/ MOV/ WMV/ MKV/ WEBM/ 3GPP/ MP3/ WMA/ LPCM/ JPEG/ MPO
    I would appreciate any help you can offer.
    Thank you

    It seems to be an issue with Sony Bravia TV. According to the following article:
    Supported File Formats for DLNA® and USB Compatible Sony® TVs
    Under -Not all files are guaranteed to play.
    Sometimes HandBrake
    does help. I shall suggest you to contact Sony Bravia TV support.
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • Flash file works sometimes, but not others

    Here is the page with what I am trying to do. It is volunteer
    work for a non-profit, and I am not an uber flash programmer, but I
    have come this far, and would appreciate any helps diagnosing the
    possible causes for this. Please view this link to see what I am
    talking about. Clicking on the thumbnails opens a separate window
    with a photo gallery.
    http://www.coafkids.org/dev/photovideo/
    On my computer, this works fine, both on the authoring end
    and the server end. On some others, reportedly, they can view some
    of the gallery slideshows, but not others. The reports have been
    random, so there is no consistency with which shows work and which
    do not.
    The flash file is the same exact file for each of the
    galleries. Each gallery has its own folder on the server. In this
    folder, there is a flash file(same exact file in all galleries) an
    XML file specific to that gallery, and an images folder. The XML
    file gives the flash file the location and respective caption for
    each image that is located in the images folder. With all the flash
    files named exactly the same in each folder, with exactly the same
    code, how does it not work on only some machines??
    Any light, anything at this point would be extremely
    helpful..
    Thank you in advance,
    Armo

    The people that report problems are only reporting them for
    one, two, or sometimes just three out of the 9 galleries.
    Therefore, since it is exactly the same flash file used in all 9,
    why would some choose not to work. And even worse, why are the ones
    that do not work varied across each person?
    Thank you for your response.... hope we can all solve this
    mystery together...

Maybe you are looking for

  • Albums in iPhoto on ipad

    I am using iPhoto on my iPad.   How can you create an Album in iPhoto?  I can share, email, creat journals, etc....but how can I take photos uploaded on my iPad sitting in photo stream, and creat an album out of them?

  • Authorised more than 5 devices

    Hi Sorry not really sure where to post this. I'm setting up a media network using apple stuff but I think I'm going to have a problem. You can only asign 5 computers to itunes. I will have upto 8. The list being as follows: macbook air mac mini Iphon

  • Windows Audio Services will not start

    The sound on my HP Presario stopped working. Diagnostics said it was because the Windows Audio Services was not running. When I go to the Microsoft Management Console and try to start it again, I get Error 1068 - The dependency group failed to start.

  • Best practice for adding agents based on queue stats

    I am looking for some guidance (sanity check really) on the best way for to add agent to a CSQ base on call statistics. Scenario: 20 agents logged in and ready. The first 15 agents take all the calls until the contacts waiting reaches 10, then and on

  • Adobe Media Encoder "expands" my video from it's original size

    When I export an XDCAM HD422 file (as an .mxf) that has scaled or aspected SD footage on the timeline using Media Encoder it changes the aspect or expands the footage so it's out of frame slightly. If I have a mask on the timeline, it gets shifted to