Problem in jsp page

hai everybody,
I wrote a html page and jsp. In HTML we will take values and gets calculated in the jsp ,but jsp page is not working "CAN U GUYS HAVE A LOOK AND TELL ME"
Thank you in advance.
this is the html page.
Specify the quantity you want to buy :
CD Writer: $0.50/each :
Floppy Disks: $10.99/package:
Music CD: $15.50/each :
this is jsp code:
<%@ page language ="java"%>
<%@ page import = "java.io.*"%>
<HTML>
<HEAD>
<TITLE>Invoice process </TITLE>
</HEAD>
<BODY>
<tr><td align=right><h2> Item Unit price Quantity SubTotal </h2></td>
     </tr><br><br>
<%
     String x="0";
     String y="0";
     String z="0";
     double t1;
     double t2;
     double t3;
     x = request.getParameter("cd");
     y= request.getParameter("flopy");
     z = request.getParameter("cdmusic");
     t1 = (Integer.parseInt(x)) * 0.50;
     t2 = (Integer.parseInt(y)) * 10.99;
     t3 = (Integer.parseInt(z)) * 15.50;
%>
     CDR      $0.50 <%= t1 %><br><br>
     Disks     $10.99 <%= t2 %><br><br>
     Music     $15.50 <%= t3 %><br>
</BODY>
</HTML>

hai thanks for u r help, but now I am getting 0
sorry, I don't know
<%@ page language ="java"%>
<%@ page import = "java.io.*"%>
<HTML>
<HEAD>
<TITLE>Invoice process </TITLE>
</HEAD>
<BODY>
<tr><td align=right><h2> Item Unit price Quantity SubTotal </h2></td>
     </tr><br><br>
<%!
     String x="0";
     String y="0";
     String z="0";
     double t1;
     double t2;
     double t3;
%>
<%
          x = request.getParameter("cd");
          if (request.getParameter("cd")!=null)
          x= request.getParameter("cd");}
          else
          x= "0";
          y= request.getParameter("flopy");
     if (request.getParameter("flopy")!=null)
          y= request.getParameter("flopy");}
          else
          y= "0";
     z = request.getParameter("cdmusic");
     if (request.getParameter("cd")!=null)
          z= request.getParameter("cdmusic");}
          else
          z= "0";
%>
     <%
     t1 = (Integer.parseInt(x)) * 0.50;
     t2 = (Integer.parseInt(y)) * 10.99;
     t3 = (Integer.parseInt(z)) * 15.50;
     %>
     CDR      $0.50 <%= t1 %><br><br>
     Disks     $10.99 <%= t2 %><br><br>
     Music     $15.50 <%= t3 %><br>
</BODY>
</HTML>

Similar Messages

  • Problem in Jsp page it  doesnt shows users from database

    hi dear all...
    in my project i am creating new user by user registration(filling all details UserId,Passwd,retypepwd,name,emailid,dob,mob.no.,images-browse) so it will stored in my backend database oracle which is shown by using sql commands i.e.select * from userdetails until its ok BUT I FACE PROBLEM WHEN I CLICK VIEWUSERS IN MY JSP PAGE IT DOESNOT SHOW THE USERS...IN ECLIPSE10 I GOT ERRRO AS BELOW..
    log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.BeanUtils).
    log4j:WARN Please initialize the log4j system properly.
    in registerDAO connection is .oracle.jdbc.driver.T4CConnection@15c998a
    in dao dob5-Mar-2013
    qqqloginid
    photo=C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Winter.jpg
    fole=105542
    java.lang.NullPointerException
         at com.multistep.action.RegisterAction.doPost(RegisterAction.java:76)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:619)
    ANY HELP APPRICIATED.....
    -AVINASH

    You should format that date. See SimpleDateFormat in Java API.

  • History problem in jsp page,internet explorer back button

    hi everyone
    i have a jsp page suppose a.jsp.in which i am using dropdown menu to displays:list of data from database,one submit button i am using name select and click here.after selecting the value from dropdown menu ,again some other data will be displayed from some other table in same a.jsp page.
    my problem is:
    when user selects one value from drop down menu ,it is diplaying the value in same page .upto here is ok
    and i click back button from I.E only one page back it is showing
    but when user select the value form drop down menu 2nd time ,and after data get dipalyed in same apge a.jsp.then
    whne i click back button ,now it is showing two a.jsp page .history is not going .
    this is the problem.i dont want to this morw than one page get displayed in back button.only one page a.jsp
    if anyone has understood my problem ,please help.
    thanku

    thanks java2006
    but it is not working .i will try to explain once again
    1. one page called a.jsp.this page contains one drop drown menu list box ,and one submit button.
    2.data in drop dropdown is coming from db.as the user select value from drop down box .relalted value is diplayed on same a.jsp page.
    3.again user select the 2ndvalue from drop down box ,related value is displayed.
    this i explained about my a.jsp page.
    problem is
    4.when user select the 1st value and clcik on submit button related value is displaying.upto here its ok.and in back button of Internet explorer it is showing only one a.jsp page
    5.but whenever i am trying to see 2nd or 3rd or more value from drop down after related value is being diplayed in same a.jsp page.
    the back button of internet exlorer showing two a.jsp page after clcicking submit button
    .as u have told the code aso but it is not working
    i have added ur code indisde html tags .

  • Java Mail Problems within JSP Page

    Hi all,
    I'm encountering the following problem. I hava a jsp file named common.jsp with holds all common functions like write header and footer and also a send mail function. i include this page in all my other jsp pages. In the signup page - i need to send out 2 emails, one to the administrator and the other to the user who signed up. so i call that send mail function twice. the first call works(meaning it sends out the email) but the second call gives me a No SMTP Provider exception. Can anyone help me with this.
    thx a bunch
    p.s: i have included the sendEmail Function below
    public void sendEmail(String emailServer, String sEmail, String sName, String rEmail,
         String subject, String strmsg) throws Exception {
         java.util.Properties props = new java.util.Properties();
         props.put("mail.host", emailServer);
         javax.mail.Session mailConn = javax.mail.Session.getInstance(props, null);
         javax.mail.Message msg = new javax.mail.internet.MimeMessage(mailConn);
         javax.mail.Address sender = new javax.mail.internet.InternetAddress(sEmail, sName);
         javax.mail.Address receiver = new javax.mail.internet.InternetAddress(rEmail);
         msg.setContent(strmsg,"text/html");
         msg.setFrom(sender);
         msg.setRecipient(javax.mail.Message.RecipientType.TO, receiver);
         msg.setSubject(subject);
         javax.mail.Transport.send(msg);
    }

    This is what i use and it works just fine
    import java.io.*;
    import java.net.InetAddress;
    import java.util.Properties;
    import java.util.Date;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class sendMail {
    public sendMail(String To,String Subject,String message) {
    String to = To, subject = Subject, from = null,
              cc = null, bcc = null, url = null;
         String protocol = null, host = null, user = null, password = null;
         boolean debug = false;
         try{
    Properties props = System.getProperties();
         Session session = Session.getDefaultInstance(props, null);
         Message msg = new MimeMessage(session);
         if (debug)
              session.setDebug(true);
    msg.setFrom(new InternetAddress("[email protected]"));
         msg.setRecipients(Message.RecipientType.TO,
                             InternetAddress.parse(to, false));
         msg.setSubject(subject);
    msg.setText(message);
         msg.setHeader("Mail","test.com");
         msg.setSentDate(new Date());
         Transport.send(msg);
         System.out.println("\nMail was sent successfully.");
         } catch (Exception e) {
         e.printStackTrace();

  • Problems with JSP pages and BC objects

    Hi all. I have a new problem. I'm creating an application based on a database, using BC and JSP pages. I created entity objects from tables and then view objects. I put these view objects in an Application Module. When I test my view objects from This Application Module all works, but when I create a new JSP, I can't drag and drop any view objects in it. I'm using Jdev 10.1.2.
    Is there any one who can help me?
    Thank you,
    Caterina.

    I'm using the MVC pattern, so I have a Model directory that contains my BC, and a ViewController directory in which I want to create JSP pages with a Struts page flow.

  • EL problem in JSP page, boolean vs. String

    We are migrating from WebSphere 6 to WebLogic 11g and are receiving the following error from the JSP pages where we use EL to determine if an element is readonly or not:
    The method setReadonly(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
    In doing some testing I can simplify the problem to this:
    works (just using EL to set tab index)
    jsp:
    <c:set var="myTabIndex" value="765" />
    <html:text property="user.email" size="28" tabindex="${myTabIndex}" readonly="true" />
    source output:
    <input type="text" name="user.email" size="28" tabindex="765" value="[email protected]" readonly="readonly">
    doesn't work (added EL to set readonly attribute)
    jsp:
    <c:set var="myTabIndex" value="765" />
    <c:set var="myReadOnly" value="true" />
    <html:text property="user.email" size="28" tabindex="${myTabIndex}" readonly="${myReadOnly}" />
    error output:
    userProfile.jsp:60:86: The method setReadonly(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
    <html:text property="user.email" size="28" tabindex="${myTabIndex}" readonly="${myReadOnly}" />
    I'm not sure what is going on here and have spent two days researching this and trying different things to no avail. I don't believe any casting should be necessary. I thought for a while EL was not enabled but in my working sample EL is being used to determine tab index. The 'does not work' code works ok in WebSphere 6 and Tomcat 6, so it is just WebLogic we are having an issue with.
    Thanks in advance for any help that can be provided.
    Michael

    Found more output in the log file that might be helpful (this is output from the real code, not the sample code I mentioned previously):
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/modules/ContactTile.jsp
    ContactTile.jsp:241:17: The method setReadonly(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
    readonly="${displayonly}"
    ^--------------^
    at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:226)
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:162)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
    Truncated. see log file for complete stacktrace
    Michael

  • Problems with JSP-Pages in more than 1 Frame

    I have 4 Frames on my Page and every Frame is a JSP-Page. Every Page has different Data Tags, different View Objects etc.
    I could run each of the 4 Pages without getting an error-message, but after starting the Frameset-Page, I get the Error-Message:
    Error Message: JBO-27022: Failed to load value at index 1 with java object of type
    java.lang.String due to java.sql.SQLException.
    Now I press the Reload-Button of my Browser and it works !!!
    Could anyone help me ?

    Um, what am I missing? What is the work around? Is it impossible to use frames and data tag JSPs? Heino, how did you get around this problem?
    Do I have to create separate App Modules for each frame (yuck)
    Thanks!

  • Problems opening JSP pages through netbeans

    I recently upgraded from netbeans 5.5RC1 to netbeans 5.5 and am no longer able to open JSP pages. I am still able to edit java pages and I am still able to compile/build packages, however I get the following error when attempting to open the JSP pages. Any input/help would be appreciated.
    Thanks,
    java.lang.StackOverflowError
         at java.io.Win32FileSystem.normalizePrefix(Win32FileSystem.java:76)
         at java.io.Win32FileSystem.normalize(Win32FileSystem.java:107)
         at java.io.Win32FileSystem.normalize(Win32FileSystem.java:170)
         at java.io.File.<init>(File.java:196)
         at org.netbeans.modules.masterfs.ResourcePath.getFile(ResourcePath.java:64)
         at org.netbeans.modules.masterfs.MasterFileObject.isValid(MasterFileObject.java:86)
         at org.netbeans.modules.masterfs.Cache.get(Cache.java:68)
         at org.netbeans.modules.masterfs.Cache.getOrCreate(Cache.java:89)
         at org.netbeans.modules.masterfs.MasterFileObject.getParent(MasterFileObject.java:537)
         at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:971)
         at org.netbeans.modules.java.freeform.Classpaths.findClassPathImpl(Classpaths.java:139)
         at org.netbeans.modules.java.freeform.Classpaths.access$000(Classpaths.java:85)
         at org.netbeans.modules.java.freeform.Classpaths$1.run(Classpaths.java:123)
         at org.openide.util.Mutex.readAccess(Mutex.java:227)

    This happens very frequently during development, I just do ctrl+F5 in IE to keep refreshing till I finally get a response back from the jsp or servlet... usually it takes about 2-4 refreshes to get the jsp to respond and after that its smooth till you change the jsp or restart Apache. Also this problem, in my experience, is associated with Apache forwarding requests to OSE via mod_ose and I dont see this problem if I access the jsp directly using the database listener http endpoint.
    Hope this helps.

  • I have problem in jsp page

    i have build jsp page using javascript and java for the database connectivity .....i have dbtest.java in which i write the sql quiry and set the sql column in setter and getter another java class.in dbtest.java i pass a date from jsp which restrict the sql query according to that date.this date when i write hard coded its works but when i pas i from jsp calender it not works.Now i want to print the Date value in dbtest.java to test whether  the date is passed corect or not.How i can do once,  If i want to print the date in XML how i can do it.Beacuase i have xml file to print the data return from the
    dbtest.java???

    First i would suggest to print the date which you are passing from jsp to java, in java class where you executing your query.
    Second : For data not coming when passed the calender date, i would suggest to check the date format.

  • Plugin problem in JSP page with applet

    i am using applets in my jsp page. the applet works properly if the java plugin is installed. it is not working with the default jvm.
    my question is
    if any client who does not have java plug in, views the page the plugin should be downlaoded automaticllly.
    how do i get this happen.
    Need support from Applet Gurus
    Cheers!!!!!!!!!!!!!!

    If you are using the <applet> tag, then it will not try to download the plugin. You should use the <object> and <embed> tags, which will only use the plugin, not the default JVM.
    See the bottom of this page...
    http://java.sun.com/products/plugin/1.3/docs/intranet.html
    Only IE has a JVM built-in (and Netscape 4.x, if anyone still uses it). And in either case, that JVM is version Java 1.1.4, so it's very old.

  • Occasional problem loading JSP page

    Sometimes the server cannot load a JSP. This is a problem that comes and goes. One minute it will work, and the next minute it will not. Has any one else seen sporadic behaviour like this?Here is an excerpt from the weblogic.log:Mon Nov 20 09:42:12 EST 2000:<E> <ServletContext-Servlets> Error loading servlet: jsp._ps._synchrony._sales._funNewMon Nov 20 09:42:12 EST 2000:<E> <ServletContext-Servlets> java.lang.ClassNotFoundException: jsp/_ps/_synchrony/_sales/_funNewat java.lang.ClassLoader.findSystemClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.parentLoadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.loadClass(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.getServlet(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.isStale(Compiled Code)at weblogic.servlet.JSPServlet.getStub(Compiled Code)at weblogic.servlet.JSPServlet.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.RequestDispatcherImpl.forward(Compiled Code)at sync.server.util.ServletUtils.forward(Compiled Code)at sync.server.bs.CAHandlerServlet.doPost(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)at weblogic.socket.MuxableSocketHTTP.invokeServle
              

    Sometimes the server cannot load a JSP. This is a problem that comes and goes. One minute it will work, and the next minute it will not. Has any one else seen sporadic behaviour like this?Here is an excerpt from the weblogic.log:Mon Nov 20 09:42:12 EST 2000:<E> <ServletContext-Servlets> Error loading servlet: jsp._ps._synchrony._sales._funNewMon Nov 20 09:42:12 EST 2000:<E> <ServletContext-Servlets> java.lang.ClassNotFoundException: jsp/_ps/_synchrony/_sales/_funNewat java.lang.ClassLoader.findSystemClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.parentLoadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)at weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.loadClass(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.getServlet(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.isStale(Compiled Code)at weblogic.servlet.JSPServlet.getStub(Compiled Code)at weblogic.servlet.JSPServlet.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.RequestDispatcherImpl.forward(Compiled Code)at sync.server.util.ServletUtils.forward(Compiled Code)at sync.server.bs.CAHandlerServlet.doPost(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)at weblogic.socket.MuxableSocketHTTP.invokeServle
              

  • Syntax problem in JSP page (PDKSTRUTS tag)

    I have got a Struts project inside JDev 10.1.2.
    Here is a part of my source code project:
    <a href="procedure.do?event=DrillDown&procName=<c:out
    value=${Row['Name'}"/>">click here
    I am deploying this project inside Portal, so I am using PDK-STRUTS tag for
    rewriting some specific tags (error, form, a, ...).
    This part of source code must be replaced using LINK tag:
    <pdkstruts:link action="procedure.do?event=DrillDown&procName=<c:out
    value="${Row['Name']}"/>">click here</pdkstruts:link>
    The following error message appears at compilation:
    Error(31): Attribute: ${Row['Name']}"/ is not a valid attribute name
    I think that this is a problem with the "dynamic" part of my link, generated by
    <c:out value="${Row['Name']}"/> command.
    I have also tried to following: (<c:out value=\"${Row['Name']}\"/>)
    Compilation is ok but the <c:out> tag is not interpreted.
    The question is : How can I translate this URL for preventing this error and
    correctly interpretating the <c:out> tag ?

    one thing i noticed from your codes, you missed the < ) > character.. try to look at your codes

  • Problem in jsp with container(JEUS)

    Hi I am a developer in Korea
    Nowadays I have a problem in jsp pages which have contained some pakage directive in a library path
    so my problem is changing some of the classes in the package during service time.
    Error result is
    -Root Exception stack trace :
    -jeus.servlet.jsp.compiler.JspCompileException: fail to compile : source = C:\TmaxSoft\JEUS6.0\webhome\epims_container1\_generated_\j2ee-modules\harweb\jeus_jspwork\_custermg\_html\_mypage\_600_MyReqJob_5fjsp.java, -error msg = C:\TmaxSoft\JEUS6.0\webhome\epims_container1\_generated_\j2ee-modules\harweb\jeus_jspwork\_custermg\_html\_mypage\_600_MyReqJob_5fjsp.java:76: cannot access custermg.MyPageQuery
    bad class file: C:\epims\harweb\WEB-INF\classes\custermg\MyPageQuery.class
    -class file has wrong version 8241.8224, should be 49.0
    -Please remove or make sure it appears in the correct subdirectory of the classpath.
    -     MyPageQuery myquery = null;
    I don't know why this could be happed in random period of time It happens nearly each 10 hours . after this failure, the same error happen in other classes.
    Before ten hours?.... No problem with the jsp pages
    The number 8241.8224 tells me that it is not generated by java compiler but I don't have any clue but the above error
    my run time environment is
    - HP Server, Windows Server 2003, 64bit
    - Jeus, jdk1.5.0_15
    so any help from you will be appreciated...
    thanks

    Mr. Ahmed,
    Excuse-me by my bad english.
    I experienced the same problem when surrounded my scripts with comment caracters:
    <!--
    < SCRIPT ...
    -->
    If this is your case, simply uncomment it and the script will work fine.

  • Urgent Solution needed--Problem in JSP compilation with JDK 1.5 and JDK 1.6

    Hi,
    I m using JDK 1.5 and Tomcat 5.0 the problem is that after starting server when I m going to access my application at that time instead of displaying HomePage it directly display the blank page on screen.
    After analyzing tomcat log I have found that there was a problem with JSP page compilation.
    The exception logged in Tomcat Log is given below
    An error occurred at line: 1 in the generated java file
    The type Collection is not generic; it cannot be parameterized with arguments <? extends E>
    Stacktrace:
    *     at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)*
    *     at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)*
    *     at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)*
    *     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)*
    *     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)*
    *     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)*
    *     at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)*
    *     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)*
    *     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)*
    *     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)*
    *     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*
    *     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)*
    *     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)*
    *     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)*
    *     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:447)*
    *     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)*
    *     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)*
    *     at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424)*
    *     at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:343)*
    *     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)*
    *     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)*
    *     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)*
    *     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)*
    *     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)*
    *     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)*
    *     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)*
    *     at java.lang.Thread.run(Thread.java:619)*
    After getting this kind of error I have analyzed my code furhter then I came to know that there was problem with static include tag.
    In my jsp page I have used following line which is the main cause of error
    <%@ include file="top.jsp" %>If I ommit this line then it is working properly.
    Instead of static include I have used jsp:include also.
    Still I m getting same problem.
    We have to migrated from JDK 1.5 to 1.6 and Tomcat 5.0.28 to 6.0.14, still same problem is there.
    We have tried a lot but didnt get success to overcome this problem.
    If anybody having any solution then ur each reply will be appreciated.
    Thanks in advance..........!!!!!!!
    Edited by: JBOSS2000 on Jan 15, 2008 9:29 AM

    Hi "mshanu" and "amit" Thanks for ur replies Here I m posting the code of "top.jsp"........!!!!
    <%@ page errorPage="errordisplay.jsp"%>
    <table cellpadding="0"
           cellspacing="0"  height=50 width=780>
           <tbody>
             <tr class="header">
               <td class="logo"><IMG SRC="assets/Logo.gif" BORDER=0 ALIGN=top></td>
               <td align="right"><span class="applicationtitle"><%@ include file="/contents/logo.htm" %></span><br>
               <span class="companyname"><%@ include file="/contents/companyname.htm" %></span></td>
             </tr>
            </tbody>
    </table>To include top.jsp I have tried
    <jsp:include page="top.jsp" flush="true">
    </jsp:include>
             AND       
    <%@ include file="top.jsp"%>but none of this worked.
    If I remove the include then It is working properly.
    But I need inluded file too so that I am wondoring for the solution.
    This problem seems very wiered to me. I dont know why it is happening.
    This problem is started only when I used the TOMCAT 6.14.
    Is it the bug of TOMCAT 6.14 or What somebody Plz help.
    I got stuck here.........!!!!!!!!!!
    It doesn't seem any problem with top.jsp. As per my thinking the problem is there in include due to that it doesn't compile the JSP page in Tomcat 6.0.
    Earlier I am having same code running on the Tomcat 5.0.28 and JDK 1.5.0.
    But problem occured when I have used Tomcat 6.x...!!

  • Problem with displaying BLOB images on JSP page using a servlet

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
    Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
    here is one of my image servlet's working versions (the essential part of it) :
                   BLOB blob=null;
              rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
              while (rset.next())
                   blob=((OracleResultSet)rset).getBLOB(2);
              response.reset();
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition","filename=42.jpeg");
                    ServletOutputStream ostr=response.getOutputStream();
                   InputStream istr=blob.getBinaryStream(1L);
                    int size=blob.getBufferSize();
              int len=-1;
                    byte[] buff = new byte[size];
                         while ((len=istr.read( buff ))!=-1 ) {
                   ostr.write(buff,0,len);
             response.flushBuffer();
             ostr.close(); and my JSP page code :
    <img src="/ImageServlet" border="0"  > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.

    I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
    here's the magic tag : <img src="ImageJSP.jsp" border="0"  > enjoy : )

Maybe you are looking for

  • Can I have two address books on one computer

    Hi, I have my standard address book I use and love. I am an artist and forever having to make slide labels. I have used many programs and databases to do this task. To my surprise address book would accomplish this amazing well. I just don't want to

  • Unable to install itunes.  Service Apple Mobile Device failed to start. Trying to install on home computer?

    Itunes quite working on home computer. Now trying to re-install.  It says serivce Apple Mobil Device failed to start?

  • Get form field value using an offset

    I have a Form created using Perl that has a table with a row for each invoice in a large table. I display all the rows in a table and allow the user to edit some info for each record: for ($item_cntr = 0; $cntr < $record_cnt; ++$item_cntr) { print qq

  • The power of Mac and your creation....

    Please check out the following YouTube site... When six people come together with 5 MacBooks... and they bring their imaginations and love of music. This is what this company is really about... .The average person, not the famous, and what we can do

  • Quicktime crashes vista when trying to play .mov

    Hi all, When trying to play .mov files with quicktime it instantly runs very slowly and then I get the blue screen of death and the system crashes. I can play the same .mov files in window media player, no problems. I was just wondering if anyone had