Trouble displaying JSP document in IE

I am having some trouble displaying a JSP version 2 document in IE (though everything works fine in Mozilla).
All my jsp docs start off as follows:
<jsp:root version="2.0"
    xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
    xmlns:sql="http://java.sun.com/jsp/jstl/sql"
    xmlns:x="http://java.sun.com/jsp/jstl/xml"
    xmlns:fn="http://java.sun.com/jsp/jstl/functions">
    <f:view>
     <f:verbatim><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]></f:verbatim>
     <html xmlns="http://www.w3.org/1999/xhtml" lang="en">Firstly, IE refuses to show the file offline because it can't retrieve the dtd in the doctype for validation. Is there any way to work around this? Either by turning it off or by downloading the file to a local location?
When I am online (or remove the Doctype declaration) IE displays the file as XML rather than XHTML as the doctype suggests. Does anyone know what is up with that?
Thanks in advance for any help!

not sure what's ur req...but the kind of displaying the order numbers in basic or sec list and then navigating to change/display tcode of the order is easy using HIDE in AT LINE-SELECTION with combination of
SET PARAMETER ID pid FIELD f. and then
CALL TRANSACTION xyz AND SKIP FIRST SCREEN .
RB.

Similar Messages

  • How to display a document content in a JSP page

    Hi friends,
    I am trying to display a document's content in a JSP page after user authentication.For that I mapped a jsp file with extension ".sens" in Content Management SDK manager,and put the file in the directory '/ifs/jsp-bin' of webstarterapp,but it is not working.Please help me to solve the probleb as earliest.
    Regards
    Prasenjit

    under view put a new tag
    <f:view>
    <ui:script url="page.js"/>
    and thats it

  • How to display a document content in JSP page

    Hi friends,
    I am trying to display a document's content in a JSP page after user authentication.For that I mapped a jsp file with extension .sens in Content Management SDK manager,and put it the file in the directory '/ifs/jsp-bin' of webstarterapp,but it is not working.Down I am giving the code snippet,please help me.I need this to be done fast.
    <HTML>
    <HEAD>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="oracle.j2ee.connector.Login" %>
    <%@ page import="oracle.ifs.adk.filesystem.IfsFileSystem"%>
    <%@ page import="oracle.ifs.adk.http.HttpUtils"%>
    <%@ page import="oracle.ifs.beans.LibrarySession"%>
    <%@ page import="oracle.ifs.beans.DirectoryUser"%>
    <%@ page import="oracle.ifs.beans.PublicObject"%>
    <%@ page import="oracle.ifs.beans.Document"%>
    <%@ page import="java.io.*"%>
    <jsp:useBean id="login" scope="page" class="oracle.j2ee.connector.Login">
    <TITLE>FileExtension.jsp</TITLE>
    </HEAD>
    <BODY BGCOLOR="SILVER">
    <%
    String theDisplay = "initialized";
    String theHidden = "initialized";
    boolean theAdminRights = false;
    try
    login = (Login) request.getSession(true).getValue("IfsHttpLogin");
    LibrarySession ifsSession = login.getSession();
    IfsFileSystem ifsFile = new IfsFileSystem(ifsSession);
    DirectoryUser du = ifsSession.getDirectoryUser();
    String path = HttpUtils.getIfsPathFromJSPRedirect(request) ;
    PublicObject po = ifsFile.findPublicObjectByPath(path);
    if(po instanceof Document)
    Document doc =(Document) po;
    InputStream in= ifsFile.getDocumentContent(doc);
    int i=in.read();
    while(i!=-1)
    out.write(i);
    in.close();
    out.flush();
    out.close();
    theAdminRights = du.isAdminEnabled();
    theDisplay = po.getAttributeByUpperCaseName("DISPLAY").toString();
    theHidden = po.getAttributeByUpperCaseName("HIDDEN").toString();
    catch (Exception e)
    e.printStackTrace();
    %>
    Here is some static content.
    <P>
    The Display Value: <%= theDisplay %>
    <P>
    <%
    if (theAdminRights)
    %>
    The Hidden Value: <%= theHidden %>
    <%
    %>
    </jsp:useBean>
    </BODY>
    </HTML>

    these may help you.
    Google map integration to EBS

  • Displaying XML Document in new browser window

    Hi,
    I have a hyperlink on my page. When I click on it, it will open a new IE window and display xml document.
    The new window is displaying some of the xml and at the end displaying the following:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    End element was missing the character '>'. Error processing resource 'http://localhost:28080/benchmark/faces/displayXMLDocu...
    However, I cut and paste the xml String where I write it to the HTTPServletResponse to XMLSPY and it displays correctly.
    Please let me know.
    Rgrds

    Here are the steps:
    1. I created page1 that has a hyperlink.
    2. Hyperlink property are set to display page2 in a new window. (popup).
    3. page2.prerender() method, I set the response to the following:
    public void prerender() {
    javax.faces.context.ExternalContext ec = this.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ec.getResponse();
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.setHeader("Cache-Control","must-revalidate");
    response.setHeader("Cache-Control","max-age=0");
    response.setHeader("Pragma","no-cache");
    response.setHeader("Expires","0");
    response.setContentType("text/xml");
    response.setBufferSize(5000);
    String xmlString = getRequestBean1().getBookingPnrDetailsXML();
    try{
    xmlString="<?xml version=\"1.0\" encoding=\"UTF-8\"?><root><test1>this is a test</test1><victor>Hello Victor</victor></root>";
    PrintWriter out = new PrintWriter(response.getOutputStream());
    log(xmlString);
    out.print(xmlString);
    }catch(IOException io){
    System.out.println("" + io.getMessage());
    io.printStackTrace();
    4.page2.jsp code is the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/xml;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view/>
    <ui:page binding="#{displayXMLDocument.page1}" id="page1"/>
    <ui:html binding="#{displayXMLDocument.html1}" id="html1"/>
    <ui:head binding="#{displayXMLDocument.head1}" id="head1"/>
    <ui:link binding="#{displayXMLDocument.link1}" id="link1"/>
    <ui:body binding="#{displayXMLDocument.body1}" id="body1"/>
    <ui:form binding="#{displayXMLDocument.form1}" id="form1"/>
    </jsp:root>
    please let me know.
    Rgrds.

  • The requested URL /pls/portal/display.jsp was not found on this server.

    Hi,
    I managed to get ultrasearch running now. The crawling process seems to run smooth. Executing a search gives me the correct result. However, i can not display the documents that are listed in the resultpage.
    The link to the document is like this:
    http://myportal/pls/portal/display.jsp?type=file&f_url=C:\ultra_docs\sultan\filetransfer\htc\site.doc
    The path in the url seems ok to me.
    Cliking on this link gives me the following error:
    The requested URL /pls/portal/display.jsp was not found on this server.
    Please, help me out here :/
    mvg
    Bram

    I just tested it by accessing the search page with the following url:
    http://myportal/ultrasearch/query/search.jsp
    This gives me the same result and the links to the actual documents work fine now too! But it is not working from within portal, the links generated by the ultrasearch portlet give me an error.
    The requested URL /pls/portal/display.jsp was not found on this server.
    Please Help me Out
    thx

  • JSTL: header / referer in a JSP Document

    Hi all,
    I am about to get the HTTP referer in a JSP Document:
    <c:forEach items="${headerValues}" var="h">
         <c:if test="${h.key == 'referer'}">
              <c:set var="logReferer" value="${h.value}"></c:set>
         </c:if>
    </c:forEach>
    However, logReferer has a value like [Ljava.lang.String;@11a542b
    I suppose this is a internal hash mapping or something, but how do I get the original String value? Note: when listing the other headers, I get similar results.

    However, logReferer has a value like
    [Ljava.lang.String;@11a542bIt means it is an array of String. You will have to iterate over it and display.

  • Prelude and coda with JSP documents

    Hello.
    I have problems with adding prelude and coda templates to JSP documents (XML-format JSP).
    This is content of my web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
         <display-name>simple</display-name>
         <jsp-config>
              <jsp-property-group>
                   <display-name>simple</display-name>
                   <url-pattern>*.jsp</url-pattern>
                   <el-ignored>false</el-ignored>
                   <scripting-invalid>false</scripting-invalid>
                   <is-xml>true</is-xml>
                   <include-prelude>/prelude.jspx</include-prelude>
                   <include-coda>/coda.jspx</include-coda>
              </jsp-property-group>
         </jsp-config>
    </web-app>This is from prelude.jspx:
    <?xml version="1.0" ?>
    <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page">
         <jsp:directive.page contentType="text/html"/>
         <html xmlns="http://www.w3.org/1999/xhtml">This is coda.jspx:
         </html>
    </jsp:root>And this is simple index.jsp of my web application:
    <head>
         <title>Simple</title>
    </head>
    <body>
         <h2>Simple</h2>
    </body>When running this on Tomcat 5.0.24 for Windows (Windows 2000 SP4) I get following exception on first request
    org.apache.jasper.JasperException: /prelude.jspx(4,45) XML document structures must start and end within the same entity.Anyone have idea why is this happening ? How to include prelude and coda without breaking XML structure ?
    Thanks, Nedim

    The problem with what you are trying to do is that include will inlcude the response and not the original document.
    In other words the jsp engine will try to compile prelude into a servlet, but because your xml document is not valid this would fail. Hence the XML error.
    Do you absolutely need to use the xml syntax? Because jsp page syntax would work in this situation.

  • Trouble displaying PDF's

    I'm experiencing trouble displaying PDF's from www.naga.net/Pages/naga.htm
    (specifically
    http://www.naga.net/Docs/NAGA43%20Registration%20Form%20R2.pdf
    and
    http://www.naga.net/Docs/TBR%20Transportation.pdf
    It works in Safari!

    Your plugins list shows outdated plugin(s) with known security and stability risks.
    # Java 1.3.1 Plug-in
    # Shockwave Flash 10.0 r12
    Update the [[Java]] plugin to the latest version.
    http://java.sun.com/javase/downloads/index.jsp#jdk (you need JRE)
    Update the [[Flash]] plugin to the latest version.
    http://support.apple.com/kb/HT2312 - About Java 2 Platform Standard Edition (J2SE) 5.0 Release 1 for Tiger
    http://support.apple.com/kb/DL847 - Java for Mac OS X 10.4, Release 9
    http://support.apple.com/downloads/Java_2_SE_5_0_Release_1

  • Unable to display customs document in SAP GTS

    Hello,
    I am using SAP GTS 7.2 Compliance services. SPL and Embargo services are working well (I am not using License determination).
    Indeed, when I save a sales order in ERP, it is effectively checked for compliance, as I receive a message when it is blocked by GTS..
    In GTS, I can check that concerning business partners are effectively blocked, using:
    "Display Blocked Business Partners" and "Display Business Partners with Embargo Situation".
    But I cannot display any customs document in SAP GTS, using transaction /SAPSLL/CUHD_DISPLAY (Display all documents) or SAPSLL/CON_BLOCKED_DOCS_EXP (Display blocked documents).
    I get the following error message "No data was found for the selection criteria specified".
    As I understood, SAP GTS performs the compliance checks not on ERP documents but on corresponding GTS customs document. Thus I guess they are effectively created somewhere! If it was not the case, I guess the process should not work.
    When I look in the audit trail of SPL for documents, I can see all the SPL checks that have been performed. Looking in the corresponding table "/SAPSLL/SPLAUD", I can even find the numbers of the different customs documents...
    But there is nothing in table "/SAPSLL/CUHD", where they should be copied... The only entries I found concern biling documents that were transferred for customs purposes...
    Could you please help me on this matter?
    Many thanks,

    Hi Sameer,
    Thank you for your fast answer. I checked in the debug mode creating a breakpoint at statement RFC and it effectively stops at RFC /SAPSLL/API_6800_SYNCH.
    But when I check the log in transaction SLG1, nothing appears concerning /SAPSLL/API_6800_SYNCH.
    I think the customs document is effectively created in GTS as I can see it has a number assigned in the audit trail for SPL screening. And compliance services work.
    Though when going through the transaction of displaying all documents in GTS there is nothing. Table "/SAPSLL/CUHD" is empty (except some billing documents that were transferred for customs purposes).
    This is really weird... Anyway, thank you for your help.
    Kind Regards,

  • Report to display accounting documents

    What is the report to display accounting documents
    Moderator: Please, avoid asking basic questions

    S_ALR_87012287 - Document Journal
    S_ALR_87012289 - Compact Document Journal

  • Is it possible to display the document link for each record  in Report ?

    Hi,
         Is it possible to display the document or Image link for each master record in the Report  with the help of RSA1->Document->Master Data.
    Usefull answers are really helpfull.
    Advance Thanks for the userful answers.
    Regards,
    MRC.

    Hi  JAYASHREE PARASMAL ,
          Thanks for your valuable answers.
          Now i got the document in my Report,while executing the report through query designer as per your suggestion done on Setting Tab option.
          But i can't able to get the same thing,while i executing the Repory through WAD.
          What setting i need follow in the WAD for getting the same thing.
          Kindly give your suggestion to get the document in my Report,while i am executing through my WAD.
          Once again thanks for your helpful answer and awaiting for your suggestion.
    Regards,
    MRC.

  • How to disable Format Warning when displaying JSP in Excel under MS-Office

    We have an application running in WebSphere 6.0 container, the application displays jsp data in Excel, it had no problem before MS-Office 2007 was install. However, after MS-Office 2007 is used, following format warning dialog box is always displayed:
    The file you are trying to open, ’Requests[1].xls’, is in a different format than specified by the file extension.
    Verify that the file is not corrupted and is from a trusted source before opening the file.
    The user has to click the "Yes" button before the Excel report can be successfully displayed. This is not acceptable by our production users, and I need your helps to get rid of this dialog box.
    The application uses struts. The Action class retrieves data from database and the data is forward to the result jsp
    in an data object set in an attribute of the session's Request object. The Action class also set the display info, such as the contentType,etc., in session's Response object (please see below for details).
    The result jsp retrieves data from the data object and display in Excel according to the display info provided in the
    session response object.
    To eliminate any possible problem that may be caused by the data, I have simplified the result jsp by removing original
    codes (such as data object forwarded from Action, and Tag Library, etc.), and just hardcoded few data for displaying in Excel, however, the same format warning box still always shows up.
    My Action class set display info as below:
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Expires", "0");
    response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
    response.setHeader("Pragma", "public");
    response.setHeader("content-disposition","attachment; filename=Requests.xls");
    My simplified result jsp is listed below:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <!-- <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt'%> -->
    <TITLE></TITLE>
    </HEAD>
    <BODY>
    <TABLE border="1">
         <TBODY>
         <TR>
         <td><p align='left'>myData1</p></td>
         <td><p align='left'>myData2</p></td>
         <td><p align='left'>myData3</p></td>
         <td><p align='left'>myData4</p></td>
         </TR>
         </TBODY>
    </TABLE>
    </BODY>
    </HTML>
    So, I reduced the result jsp to contain only few hardcoded data, but the format warning always shows up. Is it caused by inconsistency between the MS-Office 2007 browser and the JSP engine in WebSphere 6.0 Web container? Need your help to resolve this problem.
    Thanks in advance.

    That's the caveat of fooling your webbrowser and Excel with a plain HTML page along an Excel content-type and Excel extension.
    Don't do that. That's plain stupid. Provide a real binary Excel file. You can create one using Apache POI HSSF or Andy Khan's JExcelAPI. Alternatively -and more recommended in case of large reports-, just use the CSV format. It's easy to create a CSV file in 20 lines of code and Excel perfectly understands CSV formats. Don't forget to change content-type to CSV.

  • HT4689 With mission control in Mountain Lion, is there a setting that displays a document name when it is selected?

    For example, if I have 4 word documents open, and go to mission control so they are all displayed, can I turn a feature on that displays the document name when my mouse is over each document?
    Like in the picture, if I have my mouse over a document, the name of the document isn't displayed.  Can I change this?

    Hey! 
    I just got a new mac and was trying to figure out the same thing today!! I went from an older version to this 10.9.  I called apple support, the tech had no idea what I was talking about.  I was transferred to a manager who told me that it is not feature available on the new models.  After a 40 minute conversation I was about to let it go and then I saw this post and became determined LOL ... and I figured it out (SMH apple support).  So here is how you do you it:
    system preferences > trackpad > you want to make sure the "App Expose" is checked off > and you're done!!
    I am not able to upload a 2 photos so I will post a second screenshot of what it looks like once the preferences are set.

  • How can I display Excel document saved as html in ebDynpro Office Contol?

    Hello,
    I have a problem with displaying of Excel document saved as html inside WebDynpro Office Control.
    Could you explain why OfficeControl cannot display Excel document with content type =text/htm?
    How you know, control must be bound to binary data. And then mime type is set as
    bin.setMimeType(new WebResourceType("html", "text/html", false));
    The empty document is displayed always.
    Nevertheless, excel file is displayed perfect, when
    bin.setMimeType(new WebResourceType("xls ", "application/msexcel", false));

    The OfficeControl UI element is made available as an ActiveX control, so that the UI element can be displayed in browsers that support ActiveX controls.
    The ActiveX control enables display of the following documents:
    1.Microsoft Word documents with the doc file extension
    2.Microsoft Excel documents with the xls file extension
    This is the reason why document with other content types are not displayed.
    Data source must be bound to binary data because files are read as bytes in this scenario.
    Hope this helps you.
    Do let me know if your problem is solved.
    Regards,
    Vijith

  • Using  cl_gui_textedit, text blocks always display prior document.

    We have two containers and we're using two instances of cl_gui_textedit.
    On the first call to the text screen, we see the two texts that we should see.
    The user saves the data and backs out to the selection screen, which contains an ALV display of documents. 
    The user selects the next document to process.  During initialization, we attempt the FREE destructor but it does not destroy the text editor ref to cl_gui_textedit.  We can initialize with clear and free as ABAP statement.  Upon entry to the PBO, we can see that we have forcibly cleared the ref to cl_gui_textedit.  It's 0: INITIAL for both text editors.  We watch the table being built and the internal tables contain the correct text.   After our set read_only true or false, we get a beep, and then arrive at our text screen without any error message.
    What is on the screen at that point will be the texts from the prior document.  We've tried inserting lifetime parameters for our custom container.  We've tried CALL METHOD cl_gui_cfw=>flush (which appears to always be necessary in PAI when we get the unprotected portion and the indices, etc.).  Neither of these alter the behavior of the screen and the erroneous content of the text editor blocks.
    Question:  is there a method or something that anyone can suggest to "force" the text blocks to contain the data that was in the table, rather than the data that was in the table for the prior transaction?

    Did you try calling the method DELETE_TEXT of the CL_GUI_TEXTEDIT before setting up the next text.
    This is how I get rid of the existing text:
    * Delete the Text
      me->o_editor->delete_text( ).
    * Set the new text
      me->o_editor->set_textstream( EXPORTING text = iv_text ).
    Regards,
    Naimesh Patel

Maybe you are looking for

  • No thumbnails in PP Media Browser

    Hello, I am working on MacOS X with Adobe CS4 Production Premium. Our footage is either Sony XDCAM EX or AVCHD. The XDCAM files are copied via Sony's Clip Browser, i.e. with the complete BPAV structure. The AVCHD files are transfered via iMovie, resu

  • Transport Controls (Playback) Not Working Premiere Pro CC 2014

    I've tried everything for the past couple of days and I can not seem to get my playback controls to work for Premiere Pro CC 2014. Help! Please!

  • Kernel Panic - imac rebooting please help?

    Hello My 2009 iMac continues to reboot due to kernel panic during the past couple of week. It happes several times a day. I cannot find any specific cause and it seems to happen randomly. That is even when the computer is on standby. I hvae searched

  • Can you share links from facebook on the iPad?

    I would like to know if I can share links, photos, etc from facebook on the new iPad. Thanks

  • Rtp media server

    Hello, I'am want to devolp "RTP media Server " Project that will run on linux machime . rtp client will request the server for MP3 audio and vedio file and server will send this .this server will capable of handling multipal clients request.this will