JSP warning

I have a webroot/WEB-INF/jsp directory with my jsps. When I compile I get the following warning for all my jsps:
Warning: package name web2d_inf._jsps does not match source file name C:\CVSHome\Orion\jdev\registration\regView\classes\.jsps\_WEB_2d_INF\_jsps\_testname.java
I am using JDev

I have the same problem, Jdev team what do u think of this??
Thanks

Similar Messages

  • When trying to download Acrobat Pro XI Student I only get this " http error: 404/support/downloads/dlm/main.jsp " warning.

    Hi!
    When trying to download Acrobat Pro XI Student I only get this " http error: 404/support/downloads/dlm/main.jsp " warning. This happens with Akamai and the altervative method too. I've paid it, is this because Adobe hasn't progressed my payment yet?
    Kind regards, xpooler.

    Luckily the problem seems to have vanished. I am not sure what happened but I think the reason was one of the browser extensions, thanks for the advice anyway!

  • JSP classes warning:

    I have a webroot/WEB-INF/jsp directory with my jsps. When I compile I get the following warning for all my jsps:
    Warning: package name web2d_inf._jsps does not match source file name C:\CVSHome\Orion\jdev\registration\regView\classes\.jsps\_WEB_2d_INF\_jsps\_testname.java
    I am using JDev 9.03x

    I've had the same problem. I'm interested in this on too.

  • Warning Messages when starting Application

    Hello,
    I get those messages when starting my application:
    WARN - [ConverterRule]{faces-config/converter} Merge(null,java.math.BigDecimal)
    WARN - [ConverterRule]{faces-config/converter} Merge(null,java.math.BigInteger)
    WARN - [ManagedBeanRule]{faces-config/managed-bean} Merge(Login)
    WARN - [NavigationRuleRule]{faces-config/navigation-rule} Merge(/home_new.jsp)
    WARN - [NavigationRuleRule]{faces-config/navigation-rule} Merge(/records/index.jsp)
    WARN - [NavigationRuleRule]{faces-config/navigation-rule} Merge(/admin/*)
    WARN - [NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
    WARN - [ManagedBeanRule]{faces-config/managed-bean} Merge(Record)
    WARN - [ManagedBeanRule]{faces-config/managed-bean} Merge(User)
    WARN - [ManagedBeanRule]{faces-config/managed-bean} Merge(conLayout)
    WARN - [ManagedBeanRule]{faces-config/managed-bean} Merge(UserMgr)
    WARN - [ManagedBeanRule]{faces-config/managed-bean} Merge(AdmMgr)
    WARN - [ComponentRule]{faces-config/component} Merge(MessageImg)
    Should I do something to avoid those messages?
    Thanks
    Rene

    JSF sees and merges all configuration files listed below:
    (1) WEB-INF/faces-config.xml
    (2) some xml files you specify using the context-param element of WEB-INF/web.xml
    (3) META-INF/faces-config.xml files included in all jar files
    Check the all configuration files and see whether they have doubled elements
    and merge them.

  • HELP.....!!!!! Chinese jsp compilation problem.....

    Hi,
    Could someone please help on the above mentioned?
    I'm using JDeveloper 3.2.3 for my program development under Chinese windows platform. I have created a simple JSP page, which contains few static Chinese words and I have included the line
    <%@ page contentType="text/html;charset=UTF-8"%>
    at the top of the page. When I tried to compile it using encoding "UTF8" (under compiler option), the compiler gave me this error:
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
    Error: (0) sun.io.MalformedInputException.
    Btw, when I have removed the line <%@ page contentType="text/html;charset=UTF-8"%> from the page and compile, I've got this error:
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
    Warning: (0) ISO-8859-1 character set may not match project compiler setting.
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java
    Error: (0) malformed input character in C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java.
    I do appreciate your help on this. Thank you.

    Here's some info one of the JSP Developers sent me:
    1. HELP.....!!!!! Chinese jsp compilation problem.....
    The customer is trying to parse a document generated by
    Windows's notepad. When saved in UTF-8, the byte
    order mark is saved too. We have a know bug that
    JSP parser doesn't recognize Byte Order Mark. The
    bug is : 1915285.
    2. CHINESE CHARACTER ON JSP
    . SQLPLUS depends on NLS_LANG setting. If you
    check the windows registry, the default of NLS_LANG
    depends on the OS. The user environment is Traditional
    Chinese, so does NLS_LANG. If we set NLS_LANG
    to .UTF8, SQLPLUS dumps the data in UTF8, however,
    the command prompt will have problem displaying them.
    . For JSP, as mentioned in a previous mail:
    <%@ page contentType="text/html;charset=UTF-8" %> for all languages
    <%@ page contentType="text/html;charset=GB2312" %> for simplified Chinese
    <%@ page contentType="text/html;charset=Big5" %> for traditional Chinese
    . When you enter Chinese characters on a browser,
    the data is automatically converted to page encoding
    (UTF-8 in your case) before sent back to the server.
    But your receiving servlet/JSP needs to have request
    encoding set correctly.
        I'm not sure about the JDeveloper environment,
    but here is a simple JSP you may try to verify your
    OC4J environment:
    a.    To set up the schema:
    connect scott/tiger
    create table tab01(col varchar2(100));
    b. Edit the connect string in nls.jsp
    c. Run the nls.jsp in oc4j instance.
    <!-- nls.jsp -->
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page import="oracle.jdbc.*,java.sql.*,java.io.*"%>
    <HTML>
    <HEAD>
    <TITLE>Hello</TITLE></HEAD>
    <BODY>
    <%
    request.setCharacterEncoding("UTF-8");
    String sampledata="\u7D20";
    String paramValue = request.getParameter("myparam");
    String connStr = "jdbc:oracle:thin:@dlsun478:5521:j2ee01";
    String user = "scott";
    String passwd = "tiger";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(connStr, user, passwd);
    if (paramValue == null || paramValue.length() == 0) { %>
       <FORM METHOD="GET">
       Please input your name: <INPUT TYPE="TEXT" NAME="myparam"
    value="<%=sampledata%>" size=20>
    <BR>
       <INPUT TYPE="SUBMIT" value="Insert Data">
       </FORM>
    <%
      selectData(conn, out);
    else
    %>
       <H1> Insert Data: <%= paramValue %> </H1>
       <br/>
    <%
      insertData(conn, paramValue);
    %>
    <a href="nls.jsp">back</a>
    <%
    %>
    </BODY>
    </HTML>
    <%!
      public void insertData(Connection aConn, String myval)
        try {
          PreparedStatement stmt = aConn.prepareStatement("insert into tab01
    values(?)");
          stmt.setString(1, myval);
          stmt.executeUpdate();
          aConn.close();
        catch (SQLException e) {
          e.printStackTrace();
      public void selectData (Connection aConn, JspWriter out)
        try {
          Statement stmt = aConn.createStatement( );
          ResultSet r = stmt.executeQuery("SELECT col FROM tab01");
          out.println("<H1>List of Data:</H1>");
          while (r.next()) {
            out.println(r.getString(1)+"<br/>");
          aConn.close();
        catch (SQLException e) {
          e.printStackTrace();
        catch (IOException e) {
          e.printStackTrace();
    %>

  • JSP/Struts - Detect Caps Lock

    I have an application in struts on a tomcat server and i'm looking to add some caps lock functionality to my login form.
    I'd like for my page to display a warning - WARNING: You have caps lock on, on the login page every time the user hits it, similar to the caps lock warning in any windows login.
    So its something like:
    login.jsp
    WARNING: CAPS LOCK ON
    UserName: _________
    Password: __________
    Any suggestions on how to go about this?
    I found a couple of solutions on google:
    1) Use javascript. The problem with this is that all solutions have:
    <input type="text" onclick=checkcapslock()>
    so the check is only made when the user types something in, and the only way to alert the user is through a javascript popup, which is user unfriendly, as opposed to writing to the document
    2) java based solutions. These seem the best way to do it, but i would have to have a constant thread running which will constantly check for the key press. Ideally i dont want an extra thread in addition to the tomcat thats already running. How can i integrate this with the tomcat server?
    Thanks y'all

    You can't from the server side, you could only do this from the client side. This "checkcapslock()" Javascript thing... that would be one way, you could call it anywhere, presuming you can actually tell that caps-lock is on with Javascript, and I am not sure there is a way.
    The only other way might be if you used an applet that maybe could check. Otherwise, I would generally not worry about it.

  • Error while running the OAF page

    Hi,
    I am working on R12.0.6 and I downloaded patch 7523554 for jdev.
    I created one Page and did all the jobs of creating an EO, VO and AM.
    When I am trying to run the page. the following exception is thrown. I can see it in the jDev - Embedded OC4J Server Log and the same exception propogates at the browser level.
    Target URL -- http://anbhard-idc.idc.oracle.com:8988/OA_HTML/runregion.jsp
    WARNING: Code-source D:\jdev_10g\jdevbin\jakarta-struts\lib\commons-logging.jar (from manifest of /D:/jdev_10g/jdevbin/jakarta-struts/lib/struts.jar) has the same filename but is not identical to /D:/jdev_10g/jdevbin/webservices/lib/commons-logging.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\jdev_10g\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.APPS_HTML:0.0.0.
    WARNING: Code-source D:\jdev_10g\jdevbin\xdoclet-1.2.1\commons-logging.jar (from <classpath> in D:\jdev_10g\jdevhome\jdev\myhtml\OA_HTML) has the same filename but is not identical to /D:/jdev_10g/jdevbin/webservices/lib/commons-logging.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\jdev_10g\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.APPS_HTML:0.0.0.
    11/04/30 10:41:24 TIME: runregion: initialization [0 ms]
    11/04/30 10:41:26 java.lang.IllegalStateException: ClassLoader "default.root:0.0.0" (from <application> in /D:/jdev_10g/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml): This loader has been closed and should not be in use.
    11/04/30 10:41:26      at oracle.classloader.util.ClassLoadAsserts.fail(ClassLoadAsserts.java:154)
    11/04/30 10:41:26      at oracle.classloader.PolicyClassLoader.checkState(PolicyClassLoader.java:1994)
    11/04/30 10:41:26      at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1659)
    11/04/30 10:41:26      at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
    11/04/30 10:41:26      at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
    11/04/30 10:41:26      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    11/04/30 10:41:26      at oracle.apps.fnd.common.Pool.processAbandonedObjects(Pool.java:1513)
    11/04/30 10:41:26      at oracle.apps.fnd.common.Pool.resize(Pool.java:2075)
    11/04/30 10:41:26      at oracle.apps.fnd.common.Pool.run(Pool.java:1991)
    11/04/30 10:41:26      at java.lang.Thread.run(Thread.java:595)
    11/04/30 10:43:03 TIME: runregion: session and transaction creation [98969 ms]
    Apr 30, 2011 10:43:07 AM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    *11/04/30 10:43:08 java.lang.IllegalArgumentException: Unknown signal: ALRM*
    *11/04/30 10:43:08      at sun.misc.Signal.<init>(Signal.java:126)*
    *11/04/30 10:43:08      at oracle.apps.fnd.framework.AppsDiagnosticsHandler.install(Unknown Source)*
    *11/04/30 10:43:08      at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.initializeSignalHandler(Unknown Source)*
    *11/04/30 10:43:08      at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.<clinit>(Unknown Source)*
    *11/04/30 10:43:08      at java.lang.Class.forName0(Native Method)*
    *11/04/30 10:43:08      at java.lang.Class.forName(Class.java:242)*
    *11/04/30 10:43:08      at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:38)*
    *11/04/30 10:43:08      at oracle.jbo.common.JBOClass.forName(JBOClass.java:164)*
    *11/04/30 10:43:08      at oracle.jbo.common.JBOClass.findCustomClass(JBOClass.java:177)*
    *11/04/30 10:43:08      at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:836)*
    *11/04/30 10:43:08      at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML(ApplicationModuleDefImpl.java:770)*
    *11/04/30 10:43:08      at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:534)*
    *11/04/30 10:43:08      at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:547)*
    *11/04/30 10:43:08      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:425)*
    *11/04/30 10:43:08      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:358)*
    *11/04/30 10:43:08      at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:340)*
    *11/04/30 10:43:08      at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:700)*
    *11/04/30 10:43:08      at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:232)*
    *11/04/30 10:43:08      at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:401)*
    *11/04/30 10:43:08      at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)*
    *11/04/30 10:43:08      at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.createStaticAKApplicationModule(Unknown Source)*
    *11/04/30 10:43:08      at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.getStaticAKApplicationModuleSync(Unknown Source)*
    *11/04/30 10:43:08      at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.getStaticAKApplicationModule(Unknown Source)*
    *11/04/30 10:43:08      at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)*
    *11/04/30 10:43:08      at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)*
    *11/04/30 10:43:08      at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)*
    *11/04/30 10:43:08      at OA.jspService(_OA.java:71)*
    *11/04/30 10:43:08      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)*
    *11/04/30 10:43:08      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)*
    *11/04/30 10:43:08      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)*
    *11/04/30 10:43:08      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)*
    *11/04/30 10:43:08      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)*
    *11/04/30 10:43:08      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)*
    *11/04/30 10:43:08      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)*
    *11/04/30 10:43:08      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)*
    *11/04/30 10:43:08      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)*
    *11/04/30 10:43:08      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)*
    *11/04/30 10:43:08      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)*
    *11/04/30 10:43:08      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)*
    *11/04/30 10:43:08      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)*
    *11/04/30 10:43:08      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)*
    *11/04/30 10:43:08      at java.lang.Thread.run(Thread.java:595)*
    *11/04/30 10:49:54 java.lang.IllegalStateException: ClassLoader "default.root:0.0.0" (from <application> in /D:/jdev_10g/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml): This loader has been closed and should not be in use.*
    *11/04/30 10:49:54      at oracle.classloader.util.ClassLoadAsserts.fail(ClassLoadAsserts.java:154)*
    *11/04/30 10:49:54      at oracle.classloader.PolicyClassLoader.checkState(PolicyClassLoader.java:1994)*
    *11/04/30 10:49:54      at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1659)*
    *11/04/30 10:49:54      at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)*
    *11/04/30 10:49:54      at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)*
    *11/04/30 10:49:54      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)*
    *11/04/30 10:49:54      at oracle.ias.cache.Bucket.checkTtl(Unknown Source)*
    *11/04/30 10:49:54      at oracle.ias.cache.Bucket.cleanIdle(Unknown Source)*
    *11/04/30 10:49:54      at oracle.ias.cache.CacheInternal.cleanIdle(Unknown Source)*
    *11/04/30 10:49:54      at oracle.ias.cache.CacheCleaner.run(Unknown Source)*
    Please help me out with this and let me know if I am wrong somewhere.
    Thanks,
    Ankit

    Ankit
    Regarding design of page, if you will create single page responsible for both searching as well as creating new records. It will become complex to handle. So you can proceed with a approach in which you can have a search region with employee id and a results region with all the columns. You can have a create employee/resp button on the results table region that will navigate you to a new page where user can type data and click on save button, then navigate back to search page.
    Depending on the action selected from the drop down.. i want to initiate one workflow giving all the info to it as parameters.. verify all the info using pl/sql..send a notification to the employee's >manager.. if he approves ..add/update/end accordingly.. after that drop a mail to the employee .. You didnt mention where this drop down exists. You can initiate the workflow using plsql API and this plsql you can call from OAF controller using callable statement. Below link you may use for callable statement.
    http://oracleanil.blogspot.com/2009/04/itemqueryvoxml.html
    Thanks
    AJ

  • Error while defining :- createStatement(ResultSet.TYPE_SCROLL_SENSITIVE)

    What I am trying to do is, get the current row and compare with the previous from the resultset.
    To achieve it I am using the previous(), absolute() and next() methods from ResultSet. Now to be able to use these methods I believe I need to define connx as:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con1 = DriverManager.getConnection("jdbc:oracle:thin:@uaix02....","....","....");
    stmt1 = con1.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE);
    By doing so when I compile from JDeveloper, I am getting the following error:
    C:\Program Files\Oracle\JDeveloper 3.2\myhtml\test548_html\untitled10.jsp
    Warning: (0) ISO-8859-1 character set may not match project compiler setting.
    Error: (82) method createStatement(int) not found in interface java.sql.Connection.
    I am importing java.sql and oracle.jdbc libraries.
    Any pointers to it would be greatly appreciated.
    Thanks in Advance
    Ajith
    null

    Fixed...
    Actually createStatement() takes zero or no arguments....
    kash! the error messages had been more developer friendly....
    Ajith

  • Deprecated Message

    Why when I use:
    <jsp:forward page = "<%= FormatUtils.nvl(request.getParameter("servico"), "") %>">
    <jsp:param name = "matricula" value = "<%= FormatUtils.nvl(request.getParameter("matricula"), "") %>" />
    <jsp:param name = "senha" value = "<%= FormatUtils.nvl(request.getParameter("senha"), "") %>" />
    <jsp:param name = "competencia" value = "<%= FormatUtils.nvl(request.getParameter("competencia"), "") %>" />
    </jsp:forward>
    I receive:
    "Documentos.jsp": Warning #: 368 : method encode(java.lang.String) in class java.net.URLEncoder has been deprecated

    "deprecated" means you're not supposed to use that function anymore. You probably upgraded to a more up-to-date version of Java, which has broken all of your old code.
    Go to the Java API documentation websites, look up the function that's giving you problems. Make sure you're looking up the section for the version you're using. Most of the time, all they did was change the name of the method to something more "kool." Such as "enabled" vs. "isEnabled". "putValue" vs. "setAttribute". That kind of crap. Other times, they moved the functionality to a completely different object. "Date" vs. "Calendar". In any event, the documentation generally explains what the "new improved" way of accomplishing something has become.
    Remember, Java people don't give a rats tail for backwards compatibility.

  • The Include Directive (at Page Translation Time)

    Version: 5.1
              Service Pack: 6
              I am generating the following error when I attempt to manually compile a JSP
              file:
              [jspc] parsing /vobs/projects/public_html//test.jsp:
              WARNING: Failed to include file 'test.inc' in include directive of page
              /test.jsp
              I've attempted practically every permutation of full and relative path
              locations, and cannot get it to work. Weblogic's JSP documentation did not
              have much to say about this either.
              Is anyone aware of a bug in the jsp compiler that would cause such a
              problem?
              

    Really strange, I used absolute path and put it under docroot, and I didn't
              put that folder into my any of my classpaths, the wls can find it without
              any problem. I used wls5.1 and sp6, do I miss sth?
              Thanks.
              mreiche <[email protected]> wrote in message
              news:[email protected]...
              >
              > No, it's not useless to add the include directory to the classpath - due
              to a bug in WLS 5.1,
              > it looks in the classpath for include files that begin with '/'.
              >
              > He is using the absolute path. That's why WL does not find it.
              >
              > Mike.
              >
              > "Tao Zhang" <[email protected]> wrote:
              > >
              > >Anchal Jain <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> I added the directory that contains the included files to the
              > >> classpath but I still get the error below.
              > >It's useless to add such directory to the classpath. Please remove it.
              > >In order to recompile it dynamically you have to set it up in
              > >weblogic.properties file.
              > >
              > >>
              > >> WARNING: Failed to include file 'authenticate.jsp' in include
              > >> directive of page /analyze.jsp
              > >>
              > >You should inlcude all these jsps under your docroot.
              > >
              > >Make sure the relative path of include directive is right. Or you can use
              > >the absolute path and try.
              > >
              > >> Do I have to compile the included files
              > >> individually and then compile the main jsp?
              > >>
              > >> Any suggestion will be greatly appreciated.
              > >>
              > >> Anchal
              > >>
              > >>
              > >> "Greg Panzer" <[email protected]> wrote:
              > >> >The Weblogic JSP compiler is looking in the classpath for the include
              > >files.
              > >> >
              > >> >When manually compiling the JSPs, put the docroot in the CLASSPATH.
              > >> >
              > >> >Greg Panzer <[email protected]> wrote in message
              > >> >news:[email protected]...
              > >> >> Version: 5.1
              > >> >> Service Pack: 6
              > >> >>
              > >> >> I am generating the following error when I attempt to manually
              compile
              > >a
              > >> >JSP
              > >> >> file:
              > >> >>
              > >> >> [jspc] parsing /vobs/projects/public_html//test.jsp:
              > >> >> WARNING: Failed to include file 'test.inc' in include directive
              of
              > >> >page
              > >> >> /test.jsp
              > >> >>
              > >> >> I've attempted practically every permutation of full and relative
              path
              > >> >> locations, and cannot get it to work. Weblogic's JSP documentation
              did
              > >> >not
              > >> >> have much to say about this either.
              > >> >>
              > >> >> Is anyone aware of a bug in the jsp compiler that would cause such a
              > >> >> problem?
              > >> >>
              > >> >>
              > >> >>
              > >> >>
              > >> >
              > >> >
              > >>
              > >
              > >
              >
              

  • 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.

  • Warning message on JSP page

    Hi all,
    I have 2 JSP Pages, page 1 contains attachment button for (attachment to be uploaded ) and Done button for navigating to second JSP page. Currently Done button is not wait for the attachment to be uploaded .When user clicks on Done Button if attachment is in processing I need to display warning message like "attachment have not been attached. if you continue, attachment will be lost".with OK Cancel buttons.
    Can anyone please suggest
    Thanks in advance.
    Bhavana

    Please post JSP related queries here...
    JavaServer Pages (JSP) and JSTL
    Thanks
    --Anil
    http://oracleanil.blogspot.com

  • Java.lang.NullPointerException warning beside components on ADF JSP page

    java.lang.NullPointerException warning beside components on ADF JSP page problem
    Hello
    i developed a web application with the help of the Adf technology On jdeveloper 10.1.3.3.0 . Everything is Ok.
    But when i use application sometimes on the page i take a java.lang.NullPointerException warn beside the some components like a inputbox or a radio button ..)
    i looked the logs but nothing.
    How can i solve this problem.
    Have you got any idea?

    Hi,
    it's the validator property on inputText components that causes it. not validation or StateValidation or EnableTokenValidation.
    Paste your inputText source from the page if you are not sure.
    Brenden

  • Warning - When Compiling .jsp pages under WEB-INF

    Created a directory jsp under WEB-INF and when i compile the jsp pages i get the following warning message
    Warning: package name web2d_inf._jsp does not match source file name C:\ProviderEnrollment\ProvEnrollView\classes\.jsps\_WEB_2d_INF\_jsp\_searchprovider.java
    Need help
    Thanks

    We have encountered this warning too.
    I'm not an Oracle employee, but it looks like there's a bug in JDev that preserves the case for the output directories but not for the package name that is supposed to correspond to the output directories.
    In any case, we haven't seen any runtime problems that seem to be related to this warning, so you may be safe to disregard it. It does foul up the build log though.
    Any JDev team members watching this topic are welcome to chime in with a confirmation and details of this apparent bug, as well as any workaround that might exist to avoid having the warning appear. Thanks!

  • When i try to run my jsp i get "File Download Security Warning"

    Hi,
    I have created a jsp file which is called UpdateEmpDetails1.jsp
    This jsp file picks up the employee id of the employee and transfers it to the backend servlet called UpdateEmpDetails1.java. The backend servlet looks up the table stored in the database and pulls up all the information stored corresponding to the employee id.Then the servlet stores the information in a session object and forwards it to the UpdateEmpDetails2.jsp
    I display the information which has been forwarded by the servlet in the HTML fields of UpdateEmpDetails2.jsp.
    Here the manager can also update the information. When he clicks on submit, the second serlvet UpdateEmpDetails2.java which is linked to UpdateEmpDetails2.jsp picks up the updated information and updates the database. The servlet also displays the message "Your information has been updated". But here is the real problem
    The session variables are being transferred perfectly to the jsp file UpdateEmpDetails2.jsp.
    But when i make any changes to this file and click on submit I get File Download Security Warning. It Says:
    File Download Security Warning
    Do you want to save this file
    Name UpdateEmpDetails2
    Type UnknownFileType
    From LocalHost
    Then I get another file which says
    FileDownload
    Getting FIle Information
    UpdateEmpDetails2 from localhost
    Estimated time left
    Download to:
    Transfer rate:
    Close this dialog box when download is complete
    I am just simply not able to update the employee information in the database due to this message.

    this is what i am trying to do:
    my UpdateEmpDetails1.jsp is as follows:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional //EN">
    <html>
    <head>
    <title>UpdateEmpDetails1.jsp</title>
    <link REL=STYLESHEET
    HREF="JSP-Styles.css"
    TYPE="text/css">
    </head>
    <body BGCOLOR="lightyellow" text="black">
    <h2 align="left"><font color="black">Update Employee Details Page</font></h2>
    <form action="UpdateEmpDetails2" Method="Get">
    <h2 align="left">Please enter the Employee ID of the employee whose details you want to edit</h2>
    <table width=50% align="center">
    <tr><td>Employee ID : </td>
         <td><INPUT TYPE="TEXT" name="employeeid"><br></td></tr>
    <tr><td><center><INPUT TYPE="SUBMIT" VALUE="SUBMIT"></center></td></tr>
    <tr><td><center><INPUT TYPE="RESET" VALUE="RESET"></center></td></tr>
    </table>
    </form>
    </body>
    </html>
    my update EmpDetails1.java is as follows:
    package com.update;
    import com.database.*;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    public class UpdateEmpDetails1 extends HttpServlet
         public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
              HttpSession session = request.getSession();
              String X = request.getParameter("employeeid");
              System.out.println("Employee ID:" + X);
              //Establishing the jdbc connection
              try
                   Database db = new Database();
                   Connection con = db.useConnection();
                   String query = "Select * from employees where employeeid=?";
                   PreparedStatement stat = con.prepareStatement(query);
                   System.out.println(stat);
                   stat.setString(1,X);
                   ResultSet rs = stat.executeQuery();
                   while(rs.next())
                        String A = rs.getString("employeeid");
                        String B = rs.getString("firstname");
                        String C = rs.getString("lastname");
                        String D = rs.getString("gender");
                        String E = rs.getString("dateofbirth");
                        String F = rs.getString("address");
                        String G = rs.getString("postalcode");
                        String H = rs.getString("phone");
                        String I = rs.getString("mobile");
                        String J = rs.getString("designation");
                        String K = rs.getString("joindate");
                        String L = rs.getString("leavedate");
                        String M = rs.getString("email");
                        String N = rs.getString("qualification");
                        String O = rs.getString("empstatus");
                             System.out.println("comparison successful");
                             session.setAttribute("employeeid",A);
                             session.setAttribute("firstname", B);
                             session.setAttribute("lastname", C);
                             session.setAttribute("gender", D);
                             session.setAttribute("dateofbirth", E);
                             session.setAttribute("address", F);
                             session.setAttribute("postalcode", G);
                             session.setAttribute("phone", H);
                             session.setAttribute("mobile", I);
                             session.setAttribute("designation", J);
                             session.setAttribute("joindate", K);
                             session.setAttribute("leavedate", L);
                             session.setAttribute("email", M);
                             session.setAttribute("qualification", N);
                             session.setAttribute("empstatus", O);
                             String url="/UpdateEmpDetails2.jsp";
                             RequestDispatcher dis = request.getRequestDispatcher("/UpdateEmpDetails2.jsp");
                             System.out.println("Dispatching" + dis);
                             dis.forward(request, response);
              catch(Exception e)
                   System.out.println(e);
    my UpdateEmpDetails2.jsp is as follows:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>UpdateEmpDetails2.jsp</title>
    <link REL=STYLESHEET
    HREF="JSP-Styles.css"
    TYPE="text/css">
    </head>
    <body BGCOLOR="lightblue" text="black">
    <h1 align="center"><font color="black">Update Employee Details Page</font></h1>
    <form action="UpdateEmpDetails2" Method="Get">
    <table width=50% align="center">
    <tr><td>EMPLOYEE ID:</td>
         <td><INPUT TYPE = "HIDDEN" name="employeeid" value=<%=session.getAttribute("employeeid")%> ></td></tr>
    <tr><td>FIRST NAME :</td>
         <td><INPUT TYPE = "TEXT" name="firstname" value=<%=session.getAttribute("firstname")%> ></td></tr>
    <tr><td>LAST NAME :</td>
         <td><INPUT TYPE = "TEXT" name="lastname" value=<%=session.getAttribute("lastname")%> ><br></td></tr>
    <tr><td>GENDER :</td>
         <td><INPUT TYPE = "TEXT" name="gender" value=<%=session.getAttribute("gender")%> ><br></td></tr>
    <tr><td>DATE OF BIRTH (IN MM/DD/YYYY FORMAT) :</td>
         <td><INPUT TYPE = "TEXT" name="dateofbirth" value=<%=session.getAttribute("dateofbirth")%> ><br></td><tr>
    <tr><td>ADDRESS :</td>
         <td><INPUT TYPE = "TEXT" name="address" value=<%=session.getAttribute("address")%> ><br></td></tr>
    <tr><td>POSTALCODE:</td>
         <td><INPUT TYPE = "TEXT" name="postalcode" value=<%=session.getAttribute("postalcode")%>><br></td></tr>
    <tr><td>PHONE:</td>
         <td><INPUT TYPE = "TEXT" name="phone" value=<%=session.getAttribute("phone")%> ><br></td></tr>
    <tr><td>MOBILE:</td>
         <td><INPUT TYPE = "TEXT" name="mobile" value=<%=session.getAttribute("mobile")%> ><br></td></tr>
    <tr><td>DESIGNATION : </td>
    <td><INPUT TYPE="TEXT" name="designation" value=<%=session.getAttribute("designation")%> > <br></td></tr>
    <tr><td>JOIN DATE:</td>
         <td><INPUT TYPE = "TEXT" name="joindate" value=<%=session.getAttribute("joindate")%> ><br></td></tr>
    <tr><td>LEAVE DATE:</td>
         <td><INPUT TYPE = "TEXT" name="leavedate" value=<%=session.getAttribute("leavedate")%> > <br></td></tr>
    <tr><td>EMPLOYEE EMAIL:</td>
         <td><INPUT TYPE = "TEXT" name="email" value=<%=session.getAttribute("email")%> ><br></td></tr>
    <tr><td>EMPLOYEE QUALIFICATION:</td>
         <td><INPUT TYPE = "TEXT" name="qualification" value=<%=session.getAttribute("qualification")%> > <br></td></tr>
    <tr><td>EMPLOYEE STATUS:</td>
         <td><INPUT TYPE = "TEXT" name="empstatus" value=<%=session.getAttribute("empstatus")%> > <br></td></tr>
    <tr><td><center><INPUT TYPE="SUBMIT" VALUE="SUBMIT"></center></td></tr>
    <tr><td><center><INPUT TYPE="RESET" VALUE="RESET"></center></td></tr>
    </table>
    </form>
    </body>
    </html>
    my UpdateEmpDetails2.java is as follows:
    package com.update;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import com.database.*;
    public class UpdateEmpDetails2 extends HttpServlet
         public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
              PrintWriter out = response.getWriter();
              response.setContentType("texthtml");
              String A = request.getParameter("employeeid");
              out.println(A);
              String B = request.getParameter("firstname");
              out.println(B);
              String C = request.getParameter("lastname");
              out.println(C);
              String D = request.getParameter("gender");
              out.println(D);
              String E = request.getParameter("dateofbirth");
              out.println(E);
              String F = request.getParameter("address");
              out.println(F);
              String G = request.getParameter("postalcode");
              out.println(G);
              String H = request.getParameter("phone");
              out.println(H);
              String I = request.getParameter("mobile");
              out.println(I);
              String J = request.getParameter("designation");
              out.println(J);
              String K = request.getParameter("joindate");
              out.println(K);
              String L = request.getParameter("leavedate");
              out.println(L);
              String M = request.getParameter("email");
              out.println(M);
              String N = request.getParameter("qualification");
              out.println(N);
              String O = request.getParameter("empstatus");
              out.println(O);
              try
              Database db = new Database();
              Connection con = db.useConnection();
              String query= "update employees set employeeid=?,firstname=?,lastname=?,gender=?,dateofbirth=?,address=?,postalcode=?,phone=?,mobile=?,designation=?,joindate=?,leavedate=?,email=?,qualification=? where employeeid=?";
              PreparedStatement stat = con.prepareStatement(query);
              stat.setString(1, B);
              stat.setString(2, C);
              stat.setString(3, D);
              stat.setString(4, E);
              stat.setString(5, F);
              stat.setString(6, G);
              stat.setString(7, H);
              stat.setString(8, I);
              stat.setString(9, J);
              stat.setString(10, K);
              stat.setString(11, L);
              stat.setString(12, M);
              stat.setString(13, N);
              stat.setString(14, O);
              stat.setString(15, A);
              System.out.println(stat);
              int i = stat.executeUpdate();
              if (i!= 0)
              System.out.println("The record has been updated");
              else
                   System.out.println("Sorry ! failure");
              ResultSet rs = stat.executeQuery("select * from employees");
              System.out.println(rs);
              while(rs.next())
                   out.print("<table border='1'>");
                   out.println(rs.getString(1) + "<br>");
                   out.println(rs.getString(2) + "<br>");
                   out.println(rs.getString(3) + "<br>");
                   out.println(rs.getString(4) + "<br>");
                   out.println(rs.getString(5) + "<br>");
                   out.println(rs.getString(6) + "<br>");
                   out.println(rs.getString(7) + "<br>");
                   out.println(rs.getString(8) + "<br>");
                   out.println(rs.getString(9) + "<br>");
                   out.println(rs.getString(10) + "<br>");
                   out.println(rs.getString(11) + "<br>");
                   out.println(rs.getString(12) + "<br>");
                   out.println(rs.getString(13) + "<br>");
                   out.println(rs.getString(14) + "<br>");
                   out.println(rs.getString(15) + "<br>");
                   out.print("<br>");
              catch (Exception e)
                   System.out.println(e);
                   e.printStackTrace();
    Now as soon as i click on the submit button of the first jsp i get "File Download security warning message"
    I am new to jsp and i am not able to troubleshoot this

Maybe you are looking for

  • Preview rasterizing PDFs- how do you stop this?

    I really am starting lean more on OSX PDF tools- but I have one recurring problem that is causing me a bit of pain. Some PDF files get rasterized when preview opens them. Then from that point on they look bad and have "no text in them" (can't be sear

  • How can I delete someone's icloud account from my iPhone 4?

    I Bought a iPhone 4 from Craigslist and  it has the guys icloud account ont there and I need to switch it to mine but can't because it keeps asking me for his password and I don't know it and can't get ahold of him to get it. What can I do?

  • No home directory! error...

    On a fresh install of Solaris 9 on a v210 server I created several accounts using Solaris Management Console. However, several days later these users are unable to login. The error is "No home directory!". That is just not true. The home directory is

  • How to reset UDDI settings

    Hi, I tried to configure UDDI for CE 7.1 SR3 under UDDI Client. Under Settings tab I changed the entries from localhost to my CE server IP. Now I am getting the error whenever I am trying to open UDDI client from my index page. 500   Internal Server

  • TS3221 error Oxe8000065 on Iphone when connecting to a MAC

    MY IPHONE 4 WILL NOT TURN ON AT ALL.  WHEN I SYNC TO MY MAC I GET THE ERROR OXE8000065.  I RESTARTED MY COMPUTER AND MY ITUNES IS UP TO DATE.  ANY SUGGESTIONS?