Error on Page import

I installed Oracle Portal 3.0.8.9.8 on Windows 2000.
I am trying to import the page
pageimp.cmd -s portal30 -p portal30 -o portal30 -m new -d d:\0p\csumb.dmp -c newdb
and getting error:
Start Portal Page Import
Please Wait...
declare
ERROR at line 1:
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL30.WWUTL_POB_TRANSPORT", line
1879
ORA-01403: no data found
ORA-06512: at line 6
I got the same error trying to install MyCompany demo.
Please help !!!!!!!!!!!
null

Can you provide some additional info? For e.g., what is the version of Portal from where you exported the page, What does the page contain, etc. Remember, export-import does not work in between versions i.e., you cannot export from 3.0.7 and import into 3.0.8

Similar Messages

  • A  classpath error while  importing a class with @page import property

    Hi ,
    I am using Tomcat contaniner for jsp applications. I have developed a page that i have import a class. when i use
    <%@ page import="myclass" &>
    i got an error that myclass not found. I have placed into tomcat\webapps\myproject\web-inf\classes directory. So How will I set the classpath for myclass to work?
    thanks.

    I was able to simulate your problem when I created a mismatch in the case of the name of the class.
    for example if my program is called MyClass.java
    and in the import I do <@page import="myclass" %>
    Are you sure about the case of class name that you are using? Please check that the file is called myclass.java the class defined inside it is called myclass and the class file that is copied into the WEB-INF/classes directory is also myclass.class. There should be no difference in the case of the names. like MyClass.java or MyclaSS.class
    Other things to check are
    1. If myclass is defined in a package then you have to import with the package.
    2. Make sure that your jsp is located in the myprojects directory and the class file is copied under myprojects/WEB-INF/classes.
    Let me know if things still don't work
    regards,
    Abhishek.

  • Page Not Found error trying to import a large application into ApEx XE DB

    I have an ApEx application that I'm trying to import from a Standard DB into Express Edition. I have 2 separate installs of ApEx both on XE and I'm getting the same problem on both.
    PROBLEM:
    After I import the application I get the error: PAGE NOT FOUND standard error.
    The import file is 4.8 Mbytes. When I view the import repository it shows increments of the file being loaded.
    for e.g. First time 3 MBytes are loaded before the error is shown
    Second time 3.2MBytes are loaded then it falls over again.
    any suggestions?
    Smaller sized apps load up with no problems.
    If it weren't for the sad state of the internal XE web server I could at least have a look at the HTTP logs. But alas someone in their wisdom had the bright idea to hide the webserver away in the bowels of the XE database.
    thanks in advance for any help
    Paul P

    Paul,
    You can try the suggestion in this thread on the XE forum:
    Re: Problem with importing HTML DB applications
    It also shows how to turn on logging in the XE web server.

  • An error with tag " %@ page import" that imports EJBs

    Hello,
    I write an small examples demonstrate how EJB,Java Persistences and JSP work together.
    I have one session bean:
    +CustomerSession.java
    +CustomerSessionLocal.java
    +CustomerSessionRemote.java
    and some persistence classes:
    +Address
    +Customer
    +Subscription
    Well, my JSP page looks like:
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    <fmt:setBundle basename="LocalStrings"/>
    <%@ page language="java" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="enterprise.customer_cmp_ejb.persistence.Customer" %>
    <%@ page import="enterprise.customer_cmp_ejb.persistence.Subscription" %>
    <%@ page import="enterprise.customer_cmp_ejb.ejb.session.*" %>
    <%@ page import='java.util.*' %>
    InitialContext ic = new InitialContext();
    Object o = ic.lookup("java:comp/env/CustomerSessionLocal");
    CustomerSessionLocal custSession = (CustomerSessionLocal) o;
    When I build the war file, NetBeans 5.5 announced that there are some errors:
    Compiling 1 source file to D:\Projects\EESample_JavaPersistence\EESample_JavaPersistence-war\build\generated\classes
    D:\Projects\EESample_JavaPersistence\EESample_JavaPersistence-war\build\generated\src\org\apache\jsp\createCustomer_jsp.java:7: package enterprise.customer_cmp_ejb.persistence does not exist
    import enterprise.customer_cmp_ejb.persistence.Customer;
    D:\Projects\EESample_JavaPersistence\EESample_JavaPersistence-war\build\generated\src\org\apache\jsp\createCustomer_jsp.java:8: package enterprise.customer_cmp_ejb.persistence does not exist
    import enterprise.customer_cmp_ejb.persistence.Subscription;
    D:\Projects\EESample_JavaPersistence\EESample_JavaPersistence-war\build\generated\src\org\apache\jsp\createCustomer_jsp.java:9: package enterprise.customer_cmp_ejb.ejb.session does not exist
    import enterprise.customer_cmp_ejb.ejb.session.*;
    I don't understand why. However, i also try editing the web.xml as follow:
    <ejb-local-ref>
    <description> EJB Session</description>
    <ejb-ref-name>CustomerSessionLocal</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local-home/>
    <local>
    enterprise.customer_cmp_ejb.ejb.session.CustomerSessionLocal
    </local>
    <ejb-link>CustomerSession</ejb-link>
    </ejb-local-ref>
    In spite of trying hard, the build can't complete.
    I hope I'll get your supports.
    Thanks very much!!!

    Where is PA ? I just know La because LA Lakers (I
    hate this team and i like Kings and Rockets because of
    YAO MING, haha )Opposite side of the country. PA stands for Pennsylvania, on the East coast. LA (Los Angeles) is in California on the West coast. Philadelphia's basketball team is the 76ers, but they don't play the Lakers,
    Kings, or Rockets very often.
    As for my other info, I'm sorry, I don't give that out to people. Just a personal policy.

  • Error occuring during import of certificate for SSO configuring in BI

    Hi,
    I am configuring the SSO with logon ticket for BI system.
    I downloaded the certificate from portal server.
    But while importing this certificate on R/3 server it shows error
    "Error occurred during import"
    Message no. TRUST008
    Please suggest me any solution on it.
    Thanks & Regards,
    Vishal.

    Hi Vishal,
    Probably the certificate already exists - see https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0077873d-0b01-0010-1abb-cfbf21d1aa43 page 4.
    Hope it helps
    Detlev

  • Error Copying pages based on a template

    I get the following error while copying pages based on a template. The template also contains a top horizontal navigation bar (portlet), a footer (portlet) and one item (portal smart text - Current Page). I'm using Portal 9iAs Rel 2 on win2000.
    Error while copying page. (WWC-44262)
    An unexpected error occurred: User-Defined Exception (WWC-44088)
    This region was not found. (WWC-44089)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    An unexpected error occurred: ORA-01403: no data found (WWC-44082)
    If I delete all the portlets and items from the template I'm able to make copies of the page.
    Has anyone else faced a similar problem? Please let me know if anyone has a solution.

    We've seen this problem on pages imported from another site. Please report this problem to Oracle Tech Support.
    Thanks,
    Portal PM

  • Error message when importing data using Import and export wizard

    Getting below error message when importing data using IMPORT and EXPORT WIZARD
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    <dir>
    <dir>
    Messages
    Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'.
    Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
    (SQL Server Import and Export Wizard)
    Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Destination - Buyer_.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination
    - Buyer_First_Qtr.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - Buyer" (28) failed with error code 0xC0209029 while processing input "Destination Input" (41). The
    identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information
    about the failure.
    (SQL Server Import and Export Wizard)
    Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
    (SQL Server Import and Export Wizard)
    </dir>
    </dir>
    Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - Buyer_First_Qtr returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    (SQL Server Import and Export Wizard)
    Smash126

    Hi Smash126,
    Based on the error message” Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting
    autogrowth on for existing files in the filegroup”, we can know that the issue is caused by the there is no sufficient disk space in filegroup 'PRIMARY' for the ‘REPORTING’ database.
    To fix this issue, we can add additional files to the filegroup by add a new file to the PRIMARY filegroup on Files page, or setting Autogrowth on for existing files in the filegroup to increase the necessary space.
    The following document about Add Data or Log Files to a Database is for your reference:
    http://msdn.microsoft.com/en-us/library/ms189253.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Trying to page import directive in a JSP  access a class in default package

    I am trying to import a class the is in my default package directory for Tomcat 4.1.18 (context-root\web-inf\classes\*.java). I am getting the following error
    This is error using Tomcat 4.1.18
    org.apache.jasper.JasperException:Unable to compile class for JSP
    C:\Program Files\Tomcat4.1\work\Standalone\localhost\csc297\HTML\SearchByName_jsp.java:9: '.' expected
    import Product;
    C:\Program Files\Tomcat4.1\work\Standalone\localhost\csc297\HTML\SearchByName_jsp.java:10: '.' expected
    import Category;
    This is error using Tomcat 4.0.6
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\forte4j\tomcat401\work\localhost\C_3A_5Cforte4j_5Ctomcat401_5Cwebapps_5Ccsc297\HTML\SearchByName$jsp.java:5: Class Product not found in import.
    import Product;
    ^
    C:\forte4j\tomcat401\work\localhost\C_3A_5Cforte4j_5Ctomcat401_5Cwebapps_5Ccsc297\HTML\SearchByName$jsp.java:6: Class Category not found in import.
    import Category;
    Here is snippet of code from my JSP:
    <%@ page import= "java.util.*"%>
    <%@ page import= "java.text.DecimalFormat"%>
    <%@ page import="Product"%>
    <%@ page import="Category"%>
    Remember these classes are in my default package of my context-root
    Any ideas would greatly appreciated

    Weird error. Never seen this one before.
    Try packaging your classes eg:package myClasses;and import them:<%@page import="myClasses.*"%>Should fix the problem.
    Anthony

  • JSP page import directive

    I'm running JSPs and servlets under Netscape (Tomcat) web server and am getting errors with my jsp file's first line:
    [%@page import="java.util.*, myclass" %]
    Netscape server throws an error saying that it can't import myclass. I've put the myclass.class file in various locations in the server but it still can't find it. Does anyone know a foolproof way to make the server find such a class when it's compiling jsp's?
    Thanks,
    David

    I think you have to specify package name of your class & not your calss name.

  • JSP page import problems

    Hi,
    i've got a problem with importing java classes into my jsp file. i use the following method:
    <%@ page import="Person" %>
    Person is originally a selfwritten class which lies in the subdirectory WEB-INF/classes of my webapps directory of my tomcat server. when i use the above method i get the following error output:
    org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 125 in the jsp file: /ShowPersonsView.jsp Generated servlet error:
    [javac] Compiling 1 source file 3 3 /usr/local/tomcat/work/Standalone/localhost/address/ShowPersonsView_jsp.java:7: '.' expected
    import Person;
    ^
    /usr/local/tomcat/work/Standalone/localhost/address/ShowPersonsView_jsp.java:231: cannot resolve symbol
    symbol : class Person
    location: class org.apache.jsp.ShowPersonsView_jsp
    Person tempperson;
    ^ An error occurred at line: 125 in the jsp file: /ShowPersonsView.jsp Generated servlet error:
    /usr/local/tomcat/work/Standalone/localhost/address/ShowPersonsView_jsp.java:238: cannot resolve symbol
    symbol : class Person
    location: class org.apache.jsp.ShowPersonsView_jsp
    tempperson = (Person)it.next();
    ^
    3 errors at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
    at ShowPersonsPrepare.doGet(ShowPersonsPrepare.java:51)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:536)
    Thus, the Person class can not be found but i dunno why. Where do I have to make an entry? I already tried to set a classpath to this file, but it doesn't work. Has anyone an idea?
    Thanx

    Put the class in a package and call it accordingly. Example:
    WEB-INF
       |
        --- classes
               |
                --- example
                       |
                        --- Person.java
    //then in Person add:
    package example;
    //and in jsp
    <%@ page import="example.Person" %>

  • Renderfarm error: Pre-Flight Error: Unable to import previously rendered file

    I have an error message I am receiving during network rendering on a  renderfarm, and was hoping for some help. The error is this: "Pre-Flight  Error: Unable to import previously rendered file."
    Here is my setup and some details:
    The user makes a comp, and adds it to the render queue set to render as a  quicktime movie file. Then they run a script which precomps everything  and sets it to render as a image sequence with "Skip existing files"  checked. This comp also has a post-render action set to import &  replace usage. After this comp is rendered, it gets pulled back into the  project and the original render item starts rendering the movie file  using the previously rendered image sequence as it's only layer.
    This project gets saved to a server where our render nodes are watching  the folder. All the render nodes pick up the project and proceed to  render the image sequence. Then, after they are done, 1 machine will  pick up the second render item and begin rendering the image sequence  into the final quicktime movie.
    All of this goes smoothly about 90% of the time. However, in some cases  an error shows up in the watch folder html page for the 2nd render item  (the one converting the image sequence to the movie). The error says  "Pre-Flight Error: Unable to import previously rendered file." After the  error occurs, no machines will start rendering the project.
    My first guess is that the render engine on one machine somehow skips  rendering the image sequence comp, and then tries to render the  quicktime movie comp and fails because the image sequence has not yet  been rendered. However, I can't figure out why After Effects would skip  rendering the first comp.
    Does anyone have any idea?
    Thanks for the help, and let me know if you have any more questions about the setup,
    Adam

    Well, you should get used to the fact that it's simply gone... Just looking at your screenshot makes me grind my teeth. From delayed writing of files to fragmentation in user folders to Windows doing obscure things this could be anything, but seriously, saving important files on the desktop? That is simply sloppy data management. There is no other way to say it. Read up on what proper file naming, incremental saving and backups are good for and why keeping work files separate and away from your user home directories is actually a quite simple, yet effective concept to avoid exactly that kind of issue.
    Mylenium

  • Wwv_flow.accept, error 404 page not found

    I am trying to install the OEHR Sample Objects for the Hosted Demo environment at apex.oracle.com site so I can do the Oracle Application Express 2 Day + Tutorial. I downloaded the zip file and got the .sql file extracted ok. The import works ok for the application, but hangs when trying to load the Supporting Objects. It eventually gives me that nasty old error 404 page not found when on MS windows 2000 and IEexplorer 6 ( and a similar result in xp using IEexplorer 7).
    I cannot do much in the tutorial without the samples.
    Any ideas, anyone else gotten stuck here? Thanks

    Dimitri,
    Many thanks for the reply.
    The problem appears to be intermittent and can happen on, quite literally, any link or button. Anything which causes either a page submit or link through to another page is a likely candidate. And this isn't just whilst running the app - it's within the app design part, too. It seems to be an issue (possibly) with page delivery.
    My gut feeling is that it seems to happen more after the DB has been up for a while. However, this may just be a matter of perception as I've also had it happen within minutes of a DB restart.
    I'll have a play around with apex.oracle.com, but my suspicion is that the Oracle site works fine (this would be a far more visible error if it happened on apex.oracle.com, too).
    One thought is that it might be an EPG config issue - it'd be interesting to check the config of an Oracle-supplied Apex area, if that were possible. Another thought is that it could be the network, though (typically) everything else on the network appears to be running fine...
    Many thanks,
    David

  • Page Imports in Abstract Portal Component

    Hi,
    I have created an abstract portal component where I have called a JSP using IResource.
    The JSP is called and displayed.
    <%@ page import = "java.util.*;" %>
    <%@ page import = "com.sapportals.portal.prt.component.*;" %>
    <html>
    <body>
    hello
    </body>
    </html>
    In my JSP the moment I add the second import i.e. prt.runtime, it throws an error when I run the application:
    Error when rendering jsp.
    Am I missing out something?

    Hi Prem,
    Add that particular jar file in the lib folder of your application and also add it to the build path of your project properties.
    <b>Project -> Properties -> Java Build Path -> Libraries</b>
    Add to this build path as well.
    I hope this helps you.!!
    Regards
    Pravesh
    PS: Please consider rewarding points if solved and helpful.

  • Error on page when selecting a Risk for Mitigation from CUP

    Hi,
    I am not getting the link to Mitigate the riks for the Roles requested from CUP. when I am trying to select the risk to mitigate after the Risk Analysis is done from RAR and the report is fetch to CUP no links are showing. It shows error on the screen "Correct the following errors: Select a risk."
    The message "Error on page" shows in the bottom left corner of the browser. I can not go any further to mitigate the risk.
    The soluition was put to import the AE_init_append_data.xml as instructed n the A 5.3 installation guide. This file contains lines for background color that ar enecessary for display of the Risk. each support package of 5.3 has this file and is delivered in the .SAR file, and this should always be updated if delivered.
    I have tried this and still falling to Mitigate the risk as the problem remains. May I know if you have some other solution or if you can provide me with the correct and update file for above request.
    Thanks,
    Abhimanyu

    Hi,
    Have you configured the mitigation controls?
    There are mitigation control Exit URIs in workflow configuration in CUP Configuration-Miscellanious setting?
    Put all these configuration in place if you dont have, and please check that active status is checked for all these.
    Regards,
    Sabita

  • Error in page

    hi to all
    1. i created a calendar program for start date and end date to compare two days.
    in my first jsp is for showing the Start date and End date and the popup calendar.
    there is also an button called Check.
    this check button is used in second jsp page
    it checks that start date should be less than end date
    and end date should be greater than start date
    this is my first jsp page code
    <%@ page language="java"%>
    <%@ page import= "java.util.Calendar"%>
    <%@ page import= "java.util.GregorianCalendar"%>
    <%@ page import="java.io.*"%>
    <html>
    <head>
    <title>Valedate Start and End Date</title>
    <script language="javascript">
    function show_calendar(str_target, str_datetime)
         var arr_months = ["January", "February", "March", "April", "May", "June",
              "July", "August", "September", "October", "November", "December"];
         var week_days = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
         var n_weekstart = 1; // day week starts from (normally 0 or 1)
         var dt_datetime = (str_datetime == null || str_datetime =="" ?  new Date() : str2dt(str_datetime));
         var dt_prev_month = new Date(dt_datetime);
         dt_prev_month.setMonth(dt_datetime.getMonth()-1);
         var dt_next_month = new Date(dt_datetime);
         dt_next_month.setMonth(dt_datetime.getMonth()+1);
         var dt_firstday = new Date(dt_datetime);
         dt_firstday.setDate(1);
         dt_firstday.setDate(1-(7+dt_firstday.getDay()-n_weekstart)%7);
         var dt_lastday = new Date(dt_next_month);
         dt_lastday.setDate(0);
         var str_buffer = new String (
              "<html>\n"+
              "<head>\n"+
              "     <title>Calendar</title>\n"+
              "</head>\n"+
              "<body bgcolor=\"White\">\n"+
              "<table class=\"clsOTable\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n"+
              "<tr><td bgcolor=\"#4682B4\">\n"+
              "<table cellspacing=\"1\" cellpadding=\"3\" border=\"0\" width=\"100%\">\n"+
              "<tr>\n     <td bgcolor=\"#4682B4\"><a href=\"javascript:window.opener.show_calendar('"+
              str_target+"', '"+ dt2dtstr(dt_prev_month)+"'+document.cal.time.value);\">"+
              "<img src=\"prev.gif\" width=\"16\" height=\"16\" border=\"0\""+
              " alt=\"previous month\"></a></td>\n"+
              "     <td bgcolor=\"#4682B4\" colspan=\"5\">"+
              "<font color=\"white\" face=\"tahoma, verdana\" size=\"2\">"
              +arr_months[dt_datetime.getMonth()]+" "+dt_datetime.getFullYear()+"</font></td>\n"+
              "     <td bgcolor=\"#4682B4\" align=\"right\"><a href=\"javascript:window.opener.show_calendar('"
              +str_target+"', '"+dt2dtstr(dt_next_month)+"'+document.cal.time.value);\">"+
              "<img src=\"next.gif\" width=\"16\" height=\"16\" border=\"0\""+
              " alt=\"next month\"></a></td>\n</tr>\n"
         var dt_current_day = new Date(dt_firstday);
         str_buffer += "<tr>\n";
         for (var n=0; n<7; n++)
              str_buffer += "     <td bgcolor=\"#87CEFA\">"+
              "<font color=\"white\" face=\"tahoma, verdana\" size=\"2\">"+
              week_days[(n_weekstart+n)%7]+"</font></td>\n";
         str_buffer += "</tr>\n";
         while (dt_current_day.getMonth() == dt_datetime.getMonth() ||
              dt_current_day.getMonth() == dt_firstday.getMonth())
              str_buffer += "<tr>\n";
              for (var n_current_wday=0; n_current_wday<7; n_current_wday++)
              if (dt_current_day.getDate() == dt_datetime.getDate() &&
              dt_current_day.getMonth() == dt_datetime.getMonth())
              str_buffer += "     <td bgcolor=\"#FFB6C1\" align=\"right\">";
              else if (dt_current_day.getDay() == 0 || dt_current_day.getDay() == 6)
              str_buffer += "     <td bgcolor=\"#DBEAF5\" align=\"right\">";
              else
              str_buffer += "     <td bgcolor=\"white\" align=\"right\">";
              if (dt_current_day.getMonth() == dt_datetime.getMonth())
              str_buffer += "<a href=\"javascript:window.opener."+str_target+
              ".value='"+dt2dtstr(dt_current_day)+"'+document.cal.time.value; window.close();\">"+
              "<font color=\"black\" face=\"tahoma, verdana\" size=\"2\">";
              else
              str_buffer += "<a href=\"javascript:window.opener."+str_target+
              ".value='"+dt2dtstr(dt_current_day)+"'+document.cal.time.value; window.close();\">"+
              "<font color=\"gray\" face=\"tahoma, verdana\" size=\"2\">";
              str_buffer += dt_current_day.getDate()+"</font></a></td>\n";
              dt_current_day.setDate(dt_current_day.getDate()+1);
              str_buffer += "</tr>\n";
              str_buffer +=
              "<form name=\"cal\">\n<tr><td colspan=\"7\" bgcolor=\"#87CEFA\">"+
              "<font color=\"White\" face=\"tahoma, verdana\" size=\"2\">"+
              "Time: <input type=\"text\" name=\"time\" value=\""+dt2tmstr(dt_datetime)+
              "\" size=\"8\" maxlength=\"8\"></font></td></tr>\n</form>\n" +
              "</table>\n" +
              "</tr>\n</td>\n</table>\n" +
              "</body>\n" +
              "</html>\n";
              var vWinCal = window.open("", "Calendar",
              "width=200,height=250,status=no,resizable=yes,top=200,left=200");
              vWinCal.opener = self;
              var calc_doc = vWinCal.document;
              calc_doc.write (str_buffer);
              calc_doc.close();
    function str2dt (str_datetime)
         var re_date = /^(\d+)\-(\d+)\-(\d+)\s+(\d+)\:(\d+)\:(\d+)$/;
         if (!re_date.exec(str_datetime))
         return alert("Invalid Datetime format: "+ str_datetime);
         return (new Date (RegExp.$3, RegExp.$2-1, RegExp.$1, RegExp.$4, RegExp.$5, RegExp.$6));
    function dt2dtstr (dt_datetime)
         return (new String (     dt_datetime.getDate()+"-"+(dt_datetime.getMonth()+1)+"-"+dt_datetime.getFullYear()+" "));
    function dt2tmstr (dt_datetime)
         return (new String (     dt_datetime.getHours()+":"+dt_datetime.getMinutes()+":"+dt_datetime.getSeconds()));
    </script>
    </head>
    <body bgcolor=pink>
    <form name="tstest" method=post action=check.jsp>
    <br>Start Date : <input type="Text" name="timestamp" value="">
    <a href="javascript:show_calendar('document.tstest.timestamp', document.tstest.timestamp.value);"><img src="cal.gif" width="16"
    height="16" border="0" alt="Click Here to Pick up the Start Date"></a></br>
    <br><br>End Date : <input type="Text" name="timestamp1" value="">
    <a href="javascript:show_calendar('document.tstest.timestamp1', document.tstest.timestamp1.value);"><img src="cal.gif" width="16"
    height="16" border="0" alt="Click Here to Pick up the End Date"></a> </br></br>
    <br>                  &
    nbsp;<input type="submit" value="Check" onclick="compareDates(timestamp,timestamp1)" ></br>
    </form>
    </body>
    </html>in this page there is no errror
    this is my second jsp page, were i am validating two dates
    <%@ page language="java" import="java.io.BufferedReader, java.io.InputStreamReader, java.util.Date, java.text.*" %>
    <html>
    <head>
    </head>
    <body bgcolor=rose>
    <%
    String dDateA = request.getParameter("timestamp");
    String dDateB = request.getParameter("timestamp1");     
    public class compareDates
    public static boolean compareDates(String dDateA, String dDateB)
                   System.out.println("Entered into Compare Dates");
                      SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
            ParsePosition pos = new ParsePosition(0);
            ParsePosition pos1 = new ParsePosition(0);
            Date startDate = formatter.parse(dDateA, pos);
            Date endDate = formatter.parse(dDateB, pos1);
                     boolean flag = false;
                     System.out.println("Start Date :"+startDate);
                     System.out.println("End Date   :"+endDate);
                     if(startDate.before(endDate))
                     flag = true;
             System.out.println("Compare Flag :"+flag);
                     return flag;
        public static void main(String args[])
      try
        compareDates cd= new compareDates();
        boolean before = cd.compareDates(dDateA,dDateB);
         if(!before)
        System.out.println("Please enter the Correct Date ");
      catch(Exception e)
       System.out.println("Exception in main Class :"+e.getMessage());
    %>
    </body>
    </html>in this page i am getting error.
    and the error message is this
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 8 in the jsp file: /validation/check.jsp
    Generated servlet error:
    Illegal modifier for the local class compareDates; only one of abstract or final is permitted
    An error occurred at line: 8 in the jsp file: /validation/check.jsp
    Generated servlet error:
    The method compareDates cannot be declared static; static methods can only be declared in a static or top level type
    An error occurred at line: 8 in the jsp file: /validation/check.jsp
    Generated servlet error:
    The method main cannot be declared static; static methods can only be declared in a static or top level type
    An error occurred at line: 8 in the jsp file: /validation/check.jsp
    Generated servlet error:
    Cannot refer to a non-final variable dDateA inside an inner class defined in a different method
    An error occurred at line: 8 in the jsp file: /validation/check.jsp
    Generated servlet error:
    Cannot refer to a non-final variable dDateB inside an inner class defined in a different method
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    if any one knows plz help me

    hi,
    now i did like this in the program
    here is my first jsp page
    <%@ page language="java"%>
    <%@ page import= "java.util.Calendar"%>
    <%@ page import= "java.util.GregorianCalendar"%>
    <%@ page import="java.io.*"%>
    <html>
    <head>
    <title>Valedate Start and End Date</title>
    <script language="javascript">
    function show_calendar(str_target, str_datetime)
         var arr_months = ["January", "February", "March", "April", "May", "June",
              "July", "August", "September", "October", "November", "December"];
         var week_days = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
         var n_weekstart = 1; // day week starts from (normally 0 or 1)
         var dt_datetime = (str_datetime == null || str_datetime =="" ?  new Date() : str2dt(str_datetime));
         var dt_prev_month = new Date(dt_datetime);
         dt_prev_month.setMonth(dt_datetime.getMonth()-1);
         var dt_next_month = new Date(dt_datetime);
         dt_next_month.setMonth(dt_datetime.getMonth()+1);
         var dt_firstday = new Date(dt_datetime);
         dt_firstday.setDate(1);
         dt_firstday.setDate(1-(7+dt_firstday.getDay()-n_weekstart)%7);
         var dt_lastday = new Date(dt_next_month);
         dt_lastday.setDate(0);
         var str_buffer = new String (
              "<html>\n"+
              "<head>\n"+
              "     <title>Calendar</title>\n"+
              "</head>\n"+
              "<body bgcolor=\"White\">\n"+
              "<table class=\"clsOTable\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n"+
              "<tr><td bgcolor=\"#4682B4\">\n"+
              "<table cellspacing=\"1\" cellpadding=\"3\" border=\"0\" width=\"100%\">\n"+
              "<tr>\n     <td bgcolor=\"#4682B4\"><a href=\"javascript:window.opener.show_calendar('"+
              str_target+"', '"+ dt2dtstr(dt_prev_month)+"'+document.cal.time.value);\">"+
              "<img src=\"prev.gif\" width=\"16\" height=\"16\" border=\"0\""+
              " alt=\"previous month\"></a></td>\n"+
              "     <td bgcolor=\"#4682B4\" colspan=\"5\">"+
              "<font color=\"white\" face=\"tahoma, verdana\" size=\"2\">"
              +arr_months[dt_datetime.getMonth()]+" "+dt_datetime.getFullYear()+"</font></td>\n"+
              "     <td bgcolor=\"#4682B4\" align=\"right\"><a href=\"javascript:window.opener.show_calendar('"
              +str_target+"', '"+dt2dtstr(dt_next_month)+"'+document.cal.time.value);\">"+
              "<img src=\"next.gif\" width=\"16\" height=\"16\" border=\"0\""+
              " alt=\"next month\"></a></td>\n</tr>\n"
         var dt_current_day = new Date(dt_firstday);
         str_buffer += "<tr>\n";
         for (var n=0; n<7; n++)
              str_buffer += "     <td bgcolor=\"#87CEFA\">"+
              "<font color=\"white\" face=\"tahoma, verdana\" size=\"2\">"+
              week_days[(n_weekstart+n)%7]+"</font></td>\n";
         str_buffer += "</tr>\n";
         while (dt_current_day.getMonth() == dt_datetime.getMonth() ||
              dt_current_day.getMonth() == dt_firstday.getMonth())
              str_buffer += "<tr>\n";
              for (var n_current_wday=0; n_current_wday<7; n_current_wday++)
              if (dt_current_day.getDate() == dt_datetime.getDate() &&
              dt_current_day.getMonth() == dt_datetime.getMonth())
              str_buffer += "     <td bgcolor=\"#FFB6C1\" align=\"right\">";
              else if (dt_current_day.getDay() == 0 || dt_current_day.getDay() == 6)
              str_buffer += "     <td bgcolor=\"#DBEAF5\" align=\"right\">";
              else
              str_buffer += "     <td bgcolor=\"white\" align=\"right\">";
              if (dt_current_day.getMonth() == dt_datetime.getMonth())
              str_buffer += "<a href=\"javascript:window.opener."+str_target+
              ".value='"+dt2dtstr(dt_current_day)+"'+document.cal.time.value; window.close();\">"+
              "<font color=\"black\" face=\"tahoma, verdana\" size=\"2\">";
              else
              str_buffer += "<a href=\"javascript:window.opener."+str_target+
              ".value='"+dt2dtstr(dt_current_day)+"'+document.cal.time.value; window.close();\">"+
              "<font color=\"gray\" face=\"tahoma, verdana\" size=\"2\">";
              str_buffer += dt_current_day.getDate()+"</font></a></td>\n";
              dt_current_day.setDate(dt_current_day.getDate()+1);
              str_buffer += "</tr>\n";
              str_buffer +=
              "<form name=\"cal\">\n<tr><td colspan=\"7\" bgcolor=\"#87CEFA\">"+
              "<font color=\"White\" face=\"tahoma, verdana\" size=\"2\">"+
              "Time: <input type=\"text\" name=\"time\" value=\""+dt2tmstr(dt_datetime)+
              "\" size=\"8\" maxlength=\"8\"></font></td></tr>\n</form>\n" +
              "</table>\n" +
              "</tr>\n</td>\n</table>\n" +
              "</body>\n" +
              "</html>\n";
              var vWinCal = window.open("", "Calendar",
              "width=200,height=250,status=no,resizable=yes,top=200,left=200");
              vWinCal.opener = self;
              var calc_doc = vWinCal.document;
              calc_doc.write (str_buffer);
              calc_doc.close();
    function str2dt (str_datetime)
         var re_date = /^(\d+)\-(\d+)\-(\d+)\s+(\d+)\:(\d+)\:(\d+)$/;
         if (!re_date.exec(str_datetime))
         return alert("Invalid Datetime format: "+ str_datetime);
         return (new Date (RegExp.$3, RegExp.$2-1, RegExp.$1, RegExp.$4, RegExp.$5, RegExp.$6));
    function dt2dtstr (dt_datetime)
         return (new String (     dt_datetime.getDate()+"-"+(dt_datetime.getMonth()+1)+"-"+dt_datetime.getFullYear()+" "));
    function dt2tmstr (dt_datetime)
         return (new String (     dt_datetime.getHours()+":"+dt_datetime.getMinutes()+":"+dt_datetime.getSeconds()));
    </script>
    </head>
    <body bgcolor=pink>
    <form name="tstest" method=post action=check.jsp>
    <br>Start Date : <input type="Text" name="timestamp" value="">
    <a href="javascript:show_calendar('document.tstest.timestamp', document.tstest.timestamp.value);"><img src="cal.gif" width="16"
    height="16" border="0" alt="Click Here to Pick up the Start Date"></a></br>
    <br><br>End Date : <input type="Text" name="timestamp1" value="">
    <a href="javascript:show_calendar('document.tstest.timestamp1', document.tstest.timestamp1.value);"><img src="cal.gif" width="16"
    height="16" border="0" alt="Click Here to Pick up the End Date"></a> </br></br>
    <br>                  &
    nbsp;<input type="submit" value="Check" onclick="compareDates(timestamp,timestamp1)" ></br>
    </form>
    </body>
    </html>here is my another jsp page
    <jsp:useBean id="myBean" class="validation.compareDates" scope="application" />
    <html>
    <head>
    </head>
    <body bgcolor=rose>
    <%
    String dDateA = request.getParameter("timestamp");
    String dDateB = request.getParameter("timestamp1");     
    myBean.compareDate(dDateA,dDateB);
    %>
    </body>
    </html>and this is my java page were i am calling this in jsp second page
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.util.Date;
    import java.text.*;
    public class compareDates
         // Compare two dates
            public static boolean compareDate(String dDateA, String dDateB)
            SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
          //SimpleDateFormat formatter1 = new SimpleDateFormat("dd/MM/yyyy");
            ParsePosition pos = new ParsePosition(0);
            ParsePosition pos1 = new ParsePosition(0);
            Date startDate = formatter.parse(dDateA, pos);
            Date endDate = formatter.parse(dDateB, pos1);
              // Compare the Dates
                boolean flag = false;
                System.out.println("Start Date :"+startDate);
                System.out.println("End Date   :"+endDate);
                if(startDate.before(endDate))
                 flag = true;
                 System.out.println("Compare Flag :"+flag);
                 return flag;
    /*      public static void main(String args[])
          try
        compareDates cd= new compareDates();
        boolean before = cd.compareDates(dDateA,dDateB);
        if(!before)
        System.out.println("Please enter the Correct Date ");
      catch(Exception e)
       System.out.println("Exception in main Class :"+e.getMessage());
    }and i am getting error in my second jsp page
    org.apache.jasper.JasperException: /validation/check.jsp(1,1) The value for the useBean class attribute validation.compareDates is invalid.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1223)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3284)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    help me plzzzz

Maybe you are looking for

  • 2760p ONLY detects 8gb of RAM

    Hi, this is the first time I post something in this forum even though I have found it very useful in the past, sadly I have not found my issue in any other posts. What happens to me is the following: I have an HP 2760p, I have two 8GB 1333 RAM module

  • Hp compaq 615 strange behaviour

    my compaq 615 is behavin strange in many ways here are some examples 1: icon images dissapeared and where replaced by other images after going in to safety mode this stopped 2: audio error once when i started it the soun one of the sound channels was

  • Having trouble downloading software for my newer phone.

    I have just purchased a second Blackberry Curve 8310.  I am trying to get my information from my original one onto the new one.  However, when I plug in my newer one, Windows says New Hardware Found, and then will not let me install it.  I have tried

  • Error occurred while saving SAP Lumira 1.15.1 document

    Hi All, I got error while saving document in SAP Lumira 1.15.1(Error Desc. : you do not have permission to save the document to its current location). and also occurred while sharing on cloud. Below fig.1 shows while saving and fig 2.shows error whil

  • Weird clicking sound, iMac freezes or is dead slow, and turns itself off!

    I've had my iMac for a good 3-4 years, during which it has been fitted with a new hard drive. About a year ago, during watching DVDs, there was a weird click-clack sound for a good 10 seconds which was followed by the freeze. Sometimes it would go of