JSP comments

hi ,
          We have around 150 JSPs in our web application.
          Lot of commenting code has gone inside these JSPs.
          Though it is essential for maintenance purpose that we preserve the comments, it has been found that the comments appear on client side if client sees the HTML - View Source.
          It is not a good idea to show the client the comments which divulge un-necessary details.
          Can someone throw some light on how to prevent this?
          Also suggest some ideas to reduce the final HTML o/p page size for faster loading.

hi ,
          I guess you are using the html comments in your JSPs, which obviously go to client side and are a part of page size.
          I will recommend use of JSP comments instead which can solve the issue of security and also the reduction of page size automatically.
          Well, other methods for size reduction may be removing formatting characters. I am not sure whether it helps.
          Can you try using zip streams? just a wild guess..

Similar Messages

  • HTML Comment Vs JSP Comment

    HTML Comment : <!-- Comment -->
    JSP Comment : <%-- --%>
    1) What is the different between HTML Comment and JSP comment.
    2) How the web container will treat these two comments??
    Regards
    Dhinesh

    Hi,
    JSP comments are used for documenting JSP code and are not visible client-side (using browser's View Source option) where as HTML comments are visible.
    cheers,
    k

  • HTML Comments in a JSP Document

    I am writing a JSP Document that has a number of comments. Some I want to be server-side such as version history and some I want to be client-side.
    Using a JSP page this is easily achieved using JSP comments <%-- JSP comment for server-side --%> and HTML Comments<!-- HTML comment client-side -->.
    Using XML syntax a number of things are apparent:
    1. There is no XML equivalent of a JSP comment (this has been well doc'd for a long time).
    2. In the Java EE tutorials the recommended alternative to a JSP coomment is a HTML comment.
    3. Using HTML comments in a JSP document the web container omits these in the page output - and so they are server-side only just like a JSP comment.
    Code Snippet:
    <template xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" version="1.2">
    <!-- this comment will not appear in the generated source on the client browser -->
    </template>
    <!-- JSP fragment for no caching policy -->
    So, my question is how do I generate a client-side comment in a JSP Document?
    Thanks
    Edited by: DJT on Mar 3, 2008 4:28 AM
    Edited by: DJT on Mar 3, 2008 4:30 AM

    I found this ....
    http://www.javaworld.com/javaworld/jw-07-2003/jw-0725-morejsp.html
    One significant disadvantage of JSP documents is that no XML-compliant version of JSP comments exists. A JSP document developer can use client-side (HTML-/XML-style) comments or embed Java comments in scriptlets, but there is no JSP document equivalent to <%-- -->. This is a disadvantage because the other two commenting styles JSP documents can use have their own drawbacks. You can see the client-side comments in the rendered page using the browser's View Source option. The Java comments in scriptlets require placing Java code directly in the JSP document.
    So try to embed the HTML comment inside scriptlet tags...
    <%
    <!-- HTML comment here -->
    %>

  • Bug or by Design? Commented-out ADF components still appear on .JSP page

    I normally use all .jspx pages, but for a couple of pages I'm using a .jsp page because I need to include <f:verbatim> HTML code.
    I'm noticing an odd occurrence where ADF component statements contained within comments still appear on the .jsp page (this does not occur with .jspx pages, and, regular comments w/o ADF components do not appear.) For example the following still shows up on the rendered page?:
    <!-- <af:panelLabelAndMessage label="#{bindings.View1mlm.label}">
    <af:outputText value="#{bindings.View1mlm.inputValue}">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.View1mlm.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage> -->
    This statement is not contained with the verbatim tag which appears later. I've also re-saved, re-compiled, etc. to make sure I wasn't using an older version of the page.
    Is this a bug or something I'm not aware of related to <!-- comments containing af: components --> within a .jsp page?

    The different comments jsp are:
    <!-- This is an HTML comment -->
    <%-- This is a jsp comment --%>
    The difference is the HTML comment is send to the browser, but the browser should not render comments to the user.
    The jsp comments are not send to the browser, since they are stripped off by the compiler.
    This reminds me of one project, where we used the write HTML comments on the jsp-pages like
    <!-- This sucks, please correct before next release -->. Luckily, the QAs corrected us before going live. ;o))

  • Compiler JSP with comment

    Hi,
    I want the comment ine the source Java while the line number of JSP page.
    I use Jasper for compiling the JSP pages.
    Why the compiler Jspc > v4.0 don't add this comment in the source code JAVA ?
    It is possible add this comment in the source ? with option (command line or call java) or do you know an another compiler free which add this comment.
    Thanks !

    I'm not exactly sure what you want to do, but it sound like you just want a comment in your jsp to show up in the generated source file.
    There are 3 kinds of comments you can use in your jsp. Firstly you have jsp comments (<%-- ... --%>) which only shows in the jsp. Secondly you have java comments (<% // ... %> or <% /* ... */ %>) which will show in the jsp and the generated source. And lastly you have html comments (<!-- ... -->) which will show in the jsp, source, and the response to the client.
    Hope this helps.

  • Error while calling a workflow process from a JSP

    Hi,
    I have a workflow program which is havign a process, which in turn calls 2 other processes.
    Below given is the procedure which i am using to call the main process.
    ===========================================================
    CREATE OR REPLACE PROCEDURE misProcFromJsp(
    Cart_Id in number,
    Email_Address varchar2
    ) IS
    itemtype varchar2(35);
    WorkflowProcess varchar2(35);
    itemkey varchar2(35);
    temp varchar2(35);
    BEGIN
    WorkflowProcess := 'CALLING PROCESS';
    itemtype := 'PPCUSTOM';
    select ITEM_KEY_SEQ.nextval into temp from dual;
    itemkey := temp;
    wf_engine.CreateProcess (itemtype => itemtype,
              itemkey => itemkey,
    process => WorkflowProcess);
    wf_engine.SetItemAttrText (itemtype => itemtype,
                   itemkey => itemkey,
                   aname => 'CART_ID',
    avalue => Cart_Id);
    wf_engine.SetItemAttrText (itemtype => itemtype,
                   itemkey => itemkey,
                   aname => 'EMAIL ADDRESS',
    avalue => Email_Address);
    wf_engine.StartProcess(itemtype => itemtype,
    itemkey => itemkey);     
    commit;
    END misProcFromJsp;
    ===========================================================
    The JSP page which I used is as follows,
    ===========================================================
    <%-- /* $Header: misasSalesCampaignDem.jsp 115.20 2006/06/22 16:59:55 pnambiar noship $ */ --%>
    <!-- METADATA_SOURCE - JRAD -->
    <html dir="ltr" lang="en-US-ORACLE9I">
    <head>
    <%@include file="jtfincl.jsp" %>
    <%@page import="java.sql.*, oracle.jdbc.pool.*" %>
    <%-- @page import = "oracle.apps.jtf.util.GeneralUtil" --%>
    <%-- @page import="oracle.apps.jtf.infrastructure.SecurityUtil" --%>
    <%-- @page import="oracle.apps.ibe.util.RequestCtx" --%>
    <%@page session = "false" %>
    <%-- @page errorPage = "jtfacerr.jsp" --%>
    <%     // commented by Pradeep 4 DBI
    String appName= "MISASFSP";
    boolean stateless = false;
    %>
    <%@ include file="jtfsrnfp.jsp" %>
    <head><title>Test Page Stores</title>
    <body>
    <%
    // current user id
    Integer loggedUserID;
    int userId;
    String sUserId;
    OracleConnection _connection = null;
    try {
         loggedUserID = GeneralUtil.getUserID();
         userId = loggedUserID.intValue();
         sUserId = String.valueOf(loggedUserID.intValue());
              _connection = (OracleConnection) TransactionScope.getConnection();
         java.sql.Statement stmt = _connection.createStatement();  
    if ( request.getParameter("CART_ID") != null && !(request.getParameter("CART_ID")).equals("") && !(request.getParameter("CART_ID")).equals("null")) {
    int par_cart_ID = Integer.parseInt(request.getParameter("CART_ID"));
    String par_email = request.getParameter("EMAIL_ADDRESS");
                   // For Pagination - Calling teh procedure.. to fetch the number of rows.
                        java.sql.CallableStatement proc = _connection.prepareCall("{call misProcFromJsp(?,?)}");
                        //please do keep in mind that the parameter names are the same as defined in teh procedure header.
                        //Any change in the header requires a change here too.
                        //registering the in parameters
                        proc.setInt(1,par_cart_ID);
                        proc.setString(2,par_email);
                        proc.execute();
                        //this particular result will be the total count of all teh records for lead details for the particular search condition.
                        if ((request.getParameter("showLog")).equals("Y")) {
                             out.println("Procedure Completed");
    %>
    <FORM NAME=MYfORM ACTION="misasTextButtonLat.jsp">
    <INPUT TYPE="text" NAME="CART_ID" value ='1378477'>
    <INPUT TYPE="text" NAME="EMAIL_ADDRESS" value ='[email protected]'>
    <INPUT TYPE="submit" value="Go">
    </form>
    <%
         catch ( Exception e )
    String errMsg="";
         StackTraceElement[] myErr;
         myErr = e.getStackTrace();
         errMsg = e.getMessage();
         out.println("<font color=red> <b><u>Error</u> : " + errMsg + "</b></font><font color=black> " + myErr[4].toString() + myErr[5].toString()+ myErr[6].toString()+myErr[7].toString()+ myErr[8].toString()+ myErr[9].toString()+ "</font><BR>");
         out.println("<font color=red> <b><u>Error</u> :</b></font><font color=black> " + myErr[0].toString() + myErr[1].toString() + myErr[2].toString()+ myErr[3].toString() + myErr[4].toString() + "</font><BR>");
    %>
         </body>
    </html>
    ==========================================================
    It is giving the following error
    ===========================================================
    Error : ORA-06550: line 1, column 7: PLS-00201: identifier 'MISPROCFROMJSP' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2185)oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2059)oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2976)oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:656)oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:734)
    Error : oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)oracle.jdbc.ttc7.Oall7.receive(Oall7.java:589)oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1972)oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
    ==========================================================
    What went wrong? Please let me know.
    Thanks

    I did some changes and the error now I am getting is,
    ===========================================================
    Error : null oracle.jsp.JspServlet.internalService(JspServlet.java:186)oracle.jsp.JspServlet.service(JspServlet.java:156)javax.servlet.http.HttpServlet.service(HttpServlet.java:588)org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)org.apache.jserv.JServConnection.run(JServConnection.java:294)java.lang.Thread.run(Thread.java:534)
    Error : oa_html._Text__Button__Lat._jspService(_Text__Button__Lat.java:712)oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    ============================================================
    Does the middle tier need to be bounced?
    Thanks

  • JSP for Vcard cannot strip carriage return in the last line of the file.

    I am using JSP to output a Vcard (http://en.wikipedia.org/wiki/VCard)
    The following code works great in Windows but fails on the mac:
    <%@ page contentType="text/x-vcard" %><%--
    --%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--
    --%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><%--
    --%>BEGIN:VCARD
    VERSION:2.1
    <c:choose><%--
    --%><c:when test="${not ((empty param.lan) and (empty param.fin)) }"><%--
    --%>N:${param.lan};${param.fin}
    FN:${param.fin} ${param.lan}
    </c:when><%--
    --%><c:otherwise><%--
    --%>FN:${param.org}
    </c:otherwise><%--
    --%></c:choose><%--
    --%>ORG:${param.org}
    TITLE:${param.title}
    TEL;WORK;VOICE:${param.phwork}
    ADR;WORK:;;${param.st};${param.city};${param.state};${param.zip};
    EMAIL;PREF;INTERNET:${param.email}
    REV:20080424T195243Z
    <c:out value="${fn:replace('END:VCARD','\\\r','')}" escapeXml="false"/>After some tests, I discovered that Mac (I used Tiger, latest update, not Leopard) needs extra white space and carriage returns stripped off. Once this is achieved, the vcard will automatically import into Address Book. I have followed other forums which advice on using JSP comments as in the code above. But for some strange reason the last line of the JSP outputs an extra carraige return. How do I get rid of the carriage return at the end of the file? the replace function from JSTL is not working.
    Edited by: shogo2040 on Dec 18, 2008 7:11 PM : I added more detail to the Subject

    I originally had that END:VCARD without any carriage return.
    But I still get an extra carriage return at the end when the JSP renders to VCF
    I'm using Tomcat running on Linux.
    I found this, article which implies (but does not explicitly say) JSP in general adds a newline to the last line:
    http://www.caucho.com/resin-3.0/jsp/faq.xtp (But its not tomcat either, so maybe this info is irrelevant).
    Edited by: shogo2040 on Dec 22, 2008 3:31 PM - changed rendered to VCF from rendered to JSP

  • Jsp jdbc connectivity problem.

    i'm getting the following error
    "HTTP Status 500-----
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /create_user.jsp(2,4) Invalid directive
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:527)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1568)
    org.apache.jasper.compiler.Parser.parse(Parser.java:132)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)"
    for the jsp file is :
    <%@ page import="java.sql.*" %>
    <%@ //page errorPage="exceptionHandler.jsp"%>
    <%
    String connectionURL = "jdbc:mysql://localhost:3306/decipher?user=localhost;password=passwd";
    Connection connection = null;
    Statement statement = null;
    ResultSet rs = null;
    %>
    <html><body>
    <%
    String nr="nr";
    String a= request.getParameter("emp_id");
    String b= request.getParameter("name");
    String c= request.getParameter("department");
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    connection = DriverManager.getConnection(connectionURL, "root", "passwd");
    statement = connection.createStatement();
    statement.executeUpdate("use decipher");
    statement.executeUpdate("Insert into candidate_details values ('" +a+ "','" +b+ "','" +c+ "')");
    %>
    sucesssfully created New Account
    </body>
    </html>"

    bmahesh7feb wrote:
    org.apache.jasper.JasperException: /create_user.jsp(2,4) Invalid directiveAt line 2, character 4 of create_user.jsp there's an invalid directive. This is a plain code syntax error.
    <%@ //page errorPage="exceptionHandler.jsp"%>What are those slashes doing there? Do you think that those Java style comments outcomments the JSP line? It is JSP code, it is not Java code. Remove the whole line or use JSP comments.
    As for the remnant of your JSP code, there are a lot of flaws in there. First step to in the right direction would be to stop using scriptlets in JSP. Good luck.

  • Javascript !--ipt tag in jsp    newbie question

    My jsp engine and/or the server is mangling javascript's <script> tag. Any ideas?
    I'm using Tomcat 4.0.3 and JDK 1.3.1_01. Will appreciate any help.
    Regards,
    Tom
    1.
    Original jsp:
    <SCRIPT language="javascript">
    // javascript code
    </SCRIPT>
    As seen by browser:
    <!--IPT language="javascript">
    // javascript code
    </SCRI-->
    The intermediate java source code produced by the jsp-compiler looks fine, e.g.:
    out.write("\r\n\r\n<html>\r\n<head>\r\n\r\n<SCRIPT language=\"javascript\">\r\n\r\nfunction test()\r\n{\r\n\talert(\"testing\");\r\n}\r\n\r\n</SCRIPT>\r\n</head> etc.
    2.
    Tried several other ways of generating the script tag. Result so far has been the same as above.
    a)
    <%= "<script ...>"%>
    b)
    <scr<%= "i"%>pt>

    Putting it inside the JSP comments <%-- <script> ... </script> --%>
    isn't working for me. Results in the entire javascript code not being outputted.
    By the way, if you notice the subject line, that's a similar phenomenon. I'd actually typed in "Javascript <script> tag ..." in the original subject line...
    Any other ideas?
    Tom

  • Is is standard for JSP to output every newline character it sees?

    I've encountered a very annoying problem using JSP. It seems JSPC outputs every newline character it sees in the JSP page -- even if it is after a JSP comment or JSP directive. Look at the sample JSP at the bottom: it will output 4 blank lines (3 from comments + 1 from directive) before it prints "JSP Body Line 1". Granted, this is not a big problem if the content is HTML and will be viewed in a browser. However, my content has to be plain text because the client in my case is not always a browser.
    I've tested this on both JRun and TomCat. Same results. I don't understand why is this, because intuitively the JSP designer would not have meant to output those blank lines, right? I'm wondering if this is really an "official" behavior prescribed by the JSP standard, or just an oversight in JRun and TomCat? Could any expert help me verify this in JSP standard (by the way, which one is the official document that spells out the JSPC implementation?) or anyone help me test it in other App Server (e.g. WebLogic, WebSphere, etc.) which I don't have access to? Your help is greatly appreciated!
    ======= Sample JSP code ========
    <%-- JSP Comment Line 1 --%>
    <%-- JSP Comment Line 2 --%>
    <%-- JSP Comment Line 3 --%>
    <@ page contentType="text/plain" %>
    JSP Body Line 1
    JSP Body Line 2
    ...

    The truth is, newlines (as far as HTML or most XML is concerned) are just any old kind of whitespace. An extra line or two isn't a major problem, the only time this will really cripple you is if you want to insert scriptlets above the <?xml...> line.

  • %@ include file="invoiceFtpPush.xhtml" % in jsp

    Hi All,
    I want to include my xhtml page into my jsp page like :
    <%@ include file="invoiceFtpPush.xhtml" %>I want to know is it possible or not? if not possible then any alternative or if possible then how can i do it?
    Right now it is not working.
    Any idea will be appreciated.
    Thanks and Regards,
    Khushwinder

    Hi Baluc,
    Thanks for your reply. After using <jsp:include../> i m getting the following exception :
    WARN  05-29 18:29:33 Component with id 'organizationForm:senderPanelTab:senderTab:_idJsp314' (org.apache.myfaces.taglib.html.HtmlPanelGridTag tag) and path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/organizationManagement/createOrganization.jsp][Class: javax.faces.component.html.HtmlForm,Id: organizationForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp6][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane,Id: orgPan][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: senderPanelTab][Class: javax.faces.component.UINamingContainer,Id: senderTab][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp115][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp314]}renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments.
    BodyContent:
    />  (UIComponentBodyTagBase.java:51)
    WARN  05-29 18:29:33 Component with id 'organizationForm:senderPanelTab:senderTab:_idJsp115' (org.apache.myfaces.taglib.html.HtmlPanelGridTag tag) and path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/organizationManagement/createOrganization.jsp][Class: javax.faces.component.html.HtmlForm,Id: organizationForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp6][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane,Id: orgPan][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: senderPanelTab][Class: javax.faces.component.UINamingContainer,Id: senderTab][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp115]}renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments.
    BodyContent:
    <!-- Search value -->
        <!-- Search value -->  (UIComponentBodyTagBase.java:51)
    ERROR 05-29 18:29:34 Servlet.service() for servlet default threw exception  (ApplicationDispatcher.java:712)
    java.lang.IllegalStateException
         at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:62)
         at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:783)
         at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:348)
         at org.apache.catalina.servlets.DefaultServlet.doPost(DefaultServlet.java:392)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.pages.organizationManagement.receiverTab_jsp._jspx_meth_h_panelGrid_9(org.apache.jsp.pages.organizationManagement.receiverTab_jsp:2315)
         at org.apache.jsp.pages.organizationManagement.receiverTab_jsp._jspService(org.apache.jsp.pages.organizationManagement.receiverTab_jsp:373)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.pages.organizationManagement.createOrganization_jsp._jspx_meth_f_subview_2(org.apache.jsp.pages.organizationManagement.createOrganization_jsp:729)
         at org.apache.jsp.pages.organizationManagement.createOrganization_jsp._jspx_meth_x_panelTab_2(org.apache.jsp.pages.organizationManagement.createOrganization_jsp:695)
         at org.apache.jsp.pages.organizationManagement.createOrganization_jsp._jspService(org.apache.jsp.pages.organizationManagement.createOrganization_jsp:224)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
         Actually previously i was using
    <%@ include file="invoiceFtpPush.jsp" %>which was working fine but now i want to change my invoiceFtpPush.jsp page to xhtml which is giving the above exception.

  • Conversion problem in jsp

    Hi!
    I have a jsp page which has a comment textarea. user can enter comment in it. when submitted comment gets stored into database. and in next jsp page comment filed same comment gets retrieved from database and gets displayed.
    my problem is:
    1>suppose user puts the comment as follows in the textarea.
    <script language="javascript">
    window.alert("hello xyz;)");
    </script>
    2>This script gets stored in database. and when is retrieved from database tobe displayed in the next jsp page, it keeps giving alertbox with xyz text in it.
    3>My requirement is I want to store the comment as it is entered by the user in the textarea i.e as
    <script language="javascript">
    window.alert("hello xyz;)");
    </script>
    and when it is retrieved from database, i want to populate the next jsp comment textarea field again as same script content i.e
    <script language="javascript">
    window.alert("hello xyz;)");
    </script>
    But, I want to make this happen without the browzer giving me that alertbox with text "xyz". I dont want it to give that alert box any more.
    How can I achieve this?
    thanks,
    pp

    yes i did that conversion. but in my next jsp the comment gets printed as follows.
    & lt;script language=& quot;javascript& quot;& gt; window.alert(& quot;hello rajesh ;)& quot;); & lt;/script& gt;
    instead of:
    <script language="javascript">
    window.alert("hello rajesh ;)");
    </script>
    shouldnt the browser render the effect of & lt; & gt; effectively??
    pp

  • JSP whitespace

    Hello,
    Would anyone happen to know of a clean way to disable whitespace output in JSP tags? The problem I am facing is that if I indent my JSPs properly, they will output an unacceptable amount of whitespace. I can split my tags on several lines:
    <c:out value="${SomeBean.someNestedBean.reallyDeepNestedBean.funkyIndexedProperty[indexCalculatedWithComplexELExpression].label}"/>
    but this will make the JSP hard to read. I could put line breaks inside JSP comments like this:
    <c:forEach items="${stuff}" var="stuffItem"><%--
    --%><c:choose><%--
    --%> <c:when test="${someCondition}"><%--
    --%> <c:out value="${stuffItem.this}"/><%--
    --%> </c:when><%--
    --%> <c:otherwise><%--
    --%> <c:out value="${stuffItem.that}"/><%--
    --%> </c:otherwise><%--
    --%></c:choose><%--
    --%>
    </c:forEach>
    But this seems like a kludgy solution. Would migrating to XML syntax help?

    No, using XML won't help. There's no real way to
    clean it up, however, if you are using HTML, and not
    using PRE tags, then I'm not sure why there's a
    problem. It shouldn't matter what the source is, the
    HTML page will still display properly.It is a problem when the document contains more whitespace than actual characters. It is also a problem when I want my JSPs to output valid XHTML (or other XML) documents and the taglib declarations and other directives are at the beginning of the file.

  • JDev 10G OSX Issues

    Hi-
    I am starting this thread as a discussion area for bugs and issues with JDev 10G on Apple OSX 10.3. JDev is not officially supported on OSX, however, I am hoping that by providing well defined issue lists we can move that process along. Please add to this list if you are running JDev on OSX and find other issues!
    Thanks Gerard for encouraging me to post these (and sorry for my slow response).
    Eric Everman
    ___Problems in the 10G release that were present in preview release___
    -The Apple LnF has some missing icons and general painting issues in the file browser.
    -com.apple.macos.useScreenMenuBar has been depreciated message on startup (noted other places)
    -(MAJOR) JDev cannot correctly resolve paths using symbolic links. I haven't tried this, but I would suspect this is a problem on Linux as well. If I open a project that uses a symbolic link within its path, JDev seems to think there are two copies each file - one on the linked path and one on the fully resolved path. Somehow out of this, Jdev ends up placing all files into a Miscellaneous package under Web Content and Application Sources.
    -Import... The dialog seems to have a hardcoded background color. When running under OSX with the Apple LnF, the background color is the dark color of the Oracle LnF in portions of the dialog.
    -The sort order for files in the file dialogs is case sensative is a unfriendly way: A-Z sorts as a group before a-z. Preferable would be Aa, Bb, etc, as OSX applications (and windows applications) do. Is this also a problem in Linux?
    -Quiting JDev results in the following error (terminal text from JDev start to JDev Quit):
    ================================
    Exception in thread "Thread-0" java.lang.SecurityException
    at oracle.ide.IdeCore$1.checkExit(IdeCore.java:165)
    at java.lang.Runtime.exit(Runtime.java:88)
    at java.lang.System.exit(System.java:715)
    at com.apple.eawt.Application.handleQuit(Application.java:406)
    JavaAWT: Assertion failure: Java exception thrown
    JavaAWT: File src/macosx/native/apple/awt/util/AWTException.m; Line 40
    JavaAWT: Assertion failure: _javaException
    JavaAWT: File src/macosx/native/apple/awt/util/AWTException.m; Line 48
    2004-04-30 10:54:36.344 java[2230] See Java exception object
    ================================
    -Dual monitors Issue: (partially fixed) Works great under Apple LnF as long as com.apple.macos.useScreenMenuBar is 'false'. When set to 'true' and working in the non-main window (the window w/o the menubar), context menus pop-up at the edge of the main window instead of at the mouse location.
    -Command-Q will quit JDev, but will not always kill the associated Embedded OC4J instance. I can't always reproduce this - perhaps it happens after I've switched projects, recompiled somethings, etc..
    -Quiting JDev using any method other File|Quit results in the open file list not being saved. (Other methods are Command-Q or the JDev menu item Quit option)
    ___Problems in the preview release that were fixed in the 10G release___
    -Fixed: The close/minimize buttons on tabs and panes now display properly in the Apple LnF.
    -Fixed: Save As... removes the original file from the project list. So it looks as if the file has been renamed - in reality the original file is still on the disc, just no longer part of the project.
    -Fixed: The state of open files is not restored when JDev is resarted. Somewhere along the line I ended up with the JDev Welcome page and a class file as being the open files each time I start JDev, regardless of what files were open when I closed JDev. Tried with OSX LnF and Oracle LnF.
    -Fixed: When running under OSX LnF, editing code will result in the addition of a 'Code' menu to the menu bar, however, all of the other menu items are de-activated (greyed out). When the context changes to something other then code editing, the 'Code' menu item disappears, but all of the other menu items remain de-activated. Also, the Code item is added after the Help item, which is non standard. Under the Oracle LnF, the behaviour is as expected.
    -(Have not replicated in 10G release) After switching from MS Windows to OSX using JDev 10G for both, leading square bracket characters ([) seem to be stripted from JavaScript in JSP pages. Additionally, an extra space is sometimes inserted after a litteral in square braces.  If you see something similar, please submit more details.  I have a more detailed writeup in the Technologies|Apple section - search for 'square bracket characters'.
    -Fixed: Structure pane incorrectly displayed multi-line JSP comments that started with carriage returns.
    ___New Issues in the 10G release (or not before found)___
    -On startup, several errors are listed in the JDev message pane:
    ================================
    /Applications/jdev/jdev/lib/ext/bc4j_installer.jar!/META-INF/jdev-ext.xml
    Error: <Line 4, Column 22>: XSD-2034: (Error) Element 'feature' not expected.
    Error: <Line 24, Column 14>: XSD-2021: (Error) Element not completed: 'extensions'
    /Applications/jdev/jdev/lib/ext/bigraphext.jar!/META-INF/jdev-ext.xml
    Error: <Line 4, Column 22>: XSD-2034: (Error) Element 'feature' not expected.
    Error: <Line 17, Column 14>: XSD-2021: (Error) Element not completed: 'extensions'
    ================================
    After adding the JUnit extension, I also get these messages at startup:
    =================================
    /Applications/jdev/jdev/lib/ext/jdev905_JUnit Folder/bc4j_junit_addin.jar!/meta-inf/jdev-ext.xml
    Error: <Line 4, Column 22>: XSD-2034: (Error) Element 'feature' not expected.
    Error: <Line 39, Column 14>: XSD-2021: (Error) Element not completed: 'extensions'
    /Applications/jdev/jdev/lib/ext/jdev905_JUnit Folder/junit_addin.jar!/meta-inf/jdev-ext.xml
    Error: <Line 4, Column 22>: XSD-2034: (Error) Element 'feature' not expected.
    Error: <Line 98, Column 14>: XSD-2021: (Error) Element not completed: 'extensions'
    ================================
    -The window location and/or size is not restored on startup. I typically run dual monitors with jdev full-screen on the larger of the two. jdev often starts less then full screen size or not in the full screen location.
    -Inner Classes are not properly used by JDev. This chunk of code:
    ================================
    import java.util.Map;
    //code in a method
    Map.Entry entry;
    ================================
    Results in JDev underlining Map.entry with a mouseover note that says 'Access not allowed for class 'java.util.Map.Entry'.
    -Find and Replace with 'prompt' option locks the editor (hard to replicate)
    -JDev will sometimes 'swallow' a keystroke while it is poping up a Code Insight box (hard to replicate)
    ___General Feature Requests___
    -Several of the common File menu options could be added to the context menu in the Application Navigator tab. For instance, Save As, Remove From Project, Delete, and Refactor-> are all common functions that are nice to have 'right there'.
    -When typing import statements, is there some way to have jdev continue showing context lists after a selection is made? For instance, when entering:
    import org.apache.commons.lang.RandomStringUtils;
    I type "org." which allows me to choose apache from the list. Then... nothing - I have to backspace to delete the '.' and retype it in order to get the next code completion popup. In JBuilder there was the option to select an item from the list by pressing the '.' (dot), which would immediately continue with another context selection box.

    Okay, lets see how many of these we can already deal with:
    ** General Look And Feel Issues:
    * Missing icons and redrawing issues in the file browser
    Loged as new bug 3609752
    * ...useScreenMenuBar has been depreciated message
    Can find this, are you sure this is not being confused with the antialiasing messages?
    * Dialog background colors
    Logged as bug 2610818
    * Open dialog sorting
    Logged as new bug 3609768
    * AWT exception on exiting:
    Logged as bug 3525259
    * Multi monitor bug
    Unfortunately we only have a few macs and non of them have more than one monitor at the moment. But from your description this problem seem to lie with Apple rather than us. I will keep an eye on it for you though.
    ** Error messages on startup
    I belive this is a common problem accross all platform.
    ** Inner classs issue
    Again this is a problem with all versions of JDeveloper. Logged as bug 3546309, not currently scheduled to be fixed until the next release. Note that this only seems to affect the highligthing in the editor and nothing else.
    ** Items not being saved, position not being restored.
    If you press Apple-Q the Java virtual machine will kill jdeveloper and not allow it to close down properly. This can be resolve by addin hooks provided by apple. For the 903 preview release we had an addin for this. I will look at providing a drop in for 9.0.5.1
    ** Symbolic links, and other enhancements
    In will invetigate symbolic links and get back to you. I will also look at tracing down ER or log bugs for the other enhancemnts you mention
    Thanks for the details,
    G.

  • Struts and arabic encoding

    hi all,
    i have a problem with my web application, when i enter an arabic text in the text fields and trying to save it in the database or print it into the command it appears with some strange encoding some like this " �����?�� " and i'm using
    the meta tag
    <meta http-equiv="Content-Language" content="ar-eg">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
    also
    <%@page pageEncoding="windows-1256"%>
    but nothing happened
    please if any one know how to solve this prob.
    thanks
    regards,
    Ahmed

    in your JSPs, comment the following lines:
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">and
    <%@page pageEncoding="windows-1256"%>Try this <%@ page contentType="text/html; charset=UTF-8"%>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head> instead

Maybe you are looking for

  • Macbook Pro/Canon help

    Hello i have a Canon Powershot Pro 1. I know its outdated but its what i love is there anyway i can get it to work on iphoto?

  • Diffrent Currency in AR Invoice and Incoming Payments

    Dear Experts, I have an situation here where the AR invoice reads one currency but the incoming payments read a different one. What could be causing this ?

  • People Picker search order with multiple forest domains

    I had customer with multiple forest domain environment. Now the problem is that all users from one domain synced to the resource domain(Domain A) where sharepoint is installed. The peoplepicker is now finding at first the user in Domain A where share

  • Create table with se11

    Hallo to all, I've successful installed the "SAP NetWeaver 04s ABAP". Now the first I want to do, is to create a Table with the Transaction SE11, but I receive the Message, that I need an OSS Developer Key. Is it not possible to create a table in thi

  • Line does not disconnect

    I have a BT Studio 1500 and BT Broadband. The phone works perfectly well on all incoming calls and on all outgoing calls when the person being called picks up the phone. However when the person being called does not answer and the call goes to a reco