Tomcat 4.1.24 : JSP page displayed blank in browser

Hi,
I am facing a problem where a blank screen is displayed to the user in browser even though the JSp page is getting executed successfully on my Tomcat server. The application and catalina logs show no errors / exceptions, still blank screen is displayed to the user sometime. If the user clicks on browser back button, the request is processed again and the page content is displayed properly.
I am using JDK 1.4.2_09 with Tomcat 4.1.24 on Windows 2003 server.
Is it to do with JSP:Forward mechanism? I forward the request from one JSP to second JSP and this second JSP gets executed on server but shows blank screen.
Requesting for help.
Thanks in advance.
Thanks and Regards,
Amit Paliwal

Hi Alisha ,
Thanks for reply. I can not put any debug message at online page,my problem is that i can not simulate the same senario at my development site.
Amit Paliwal

Similar Messages

  • JSP Page displays code

    I have a site written in jsp sent to me by a client. We are running Apache 2.0 with Tomcat but some (index.jsp) pages simply return the jsp code to the browser instead of running the scripts whereas others run just fine. I am new to JSP however I have experience with ASP and Java so I have an idea of what is going on. There are no errors however and the files are all in the same directory. Here are links to pages that work and some that do not.
    http://www.majorgamesinc.com/site/htdocs/index.jsp
    http://www.majorgamesinc.com/site/htdocs/majorgames.jsp

    The type of the file is set incorrectly. I don't know what caused it to be set incorrectly.
    But the type for index.jsp shows up as : jsp_auto_file
    The correct type for JSP files is : JSP File (as it appears on file properties in MS Windows)
    So try changing the files type or perhaps the MIME type (I'm not sure if you need to change the MIME type).
    Once you change the file type, Tomcat/ Apache servers should be able to handle the files correctly as they handle the rest of the JSP files.

  • JSP page display wrong time when compared to the server time

    Hi,
    This problem seems to weird but it is happening
    I have web application running where time is displayed in the page. In this application time is very critical. Currently, time is an hour behind the orginal time.
    I checked the server it is displaying proper time.
    As a matter of troubleshooting, I wrote a java program and run the program in the same server, where the application is running. The java program returns me proper time , but JSP is still displaying time an hour behind. To trouble shoot further, I created a test jsp page to just display the time and accessed the time and the jsp displayed wrong time as well, an hour behind.
    I am running[ tomcat 4.0.3 and j2sdk1.4.3 in suse linux enterprise server 9.0
    My Java program
    import java.util.*;
    import java.text.*;
    public class TestDate
    public static void main(String s[])
         try{
              DateFormat DF = new SimpleDateFormat( "dd/MM/yyyy");
    DateFormat DT = new SimpleDateFormat("hh:mm aa");
              SimpleDateFormat fmt=new SimpleDateFormat("HH.mm");
              Calendar cal= Calendar.getInstance();
              java.util.Date dt=cal.getTime();
              String curdt=DT.format(dt);
              System.out.println("Server Time" + curdt + "\n");
              int hh = cal.get(Calendar.HOUR);
              int mm = cal.get(Calendar.MINUTE);
              int aa = cal.get(Calendar.AM_PM);
              System.out.println("Time" + hh +":"+mm+":"+aa+"\n");
         }catch(Exception e) {
         e.printStackTrace();
    This display Time3:30:1
    My JSP Page
    <%@ page import="java.util.*,java.text.*"%>
    <%
    Calendar calen;
    calen = Calendar.getInstance();
    int hh=calen.get(Calendar.HOUR);
         int mm=calen.get(Calendar.MINUTE);
         int aa=calen.get(Calendar.AM_PM);
    %>
    <%=hh%> <%=mm%> <%=aa%>
    This display 2 30 1
    When I run Date in linux server it gives 3:30 PM EST 2004
    I am really confused, why this is happening, If you have any solutions or idea please post the solution.

    My guess is that the weirdness is caused by Daylight savings time.
    I will presume that you and the server are in the same timezone :-)
    Alternatively it could be caused by getting a different Locale.
    Try the following
    Print out "date.getTime()" value (ie long representing number of millis)
    They should be the same (or close) in both the app and in JSP
    Try simple date format in your JSP as well - what does that result in?
    Print the calendar object, and look for the difference.
    It might be in Locale, Timezone, or whether DST is set or not.
    Hope this helps,
    evnafets

  • Form Based Authentication on Tomcat with custom index.jsp page...

    Hi there ppl,
    I've got Form Based Authentication working correctly on my Tomcat server but I want to override the default generated index.jsp after successfully logging on. I've tried placing my own index.jsp in the directory that's restricted, but its only overridden by the default one when successfully logged on which displays:
    "Authentication Mechanism FORM"
    This means having to navigate by typing the url in the address bar to another page which is gets really annoying afterawhile.
    Any help on this would be much appreciated,
    thanks already

    Yes there's a default generated index.jsp page that I'm having trouble overriding with one of my own. Have you used Form Based Authentication before? To do so you have edit the WEB-INF/web.xml file by adding:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Secure Area</web-resource-name>
    <url-pattern>/test/secure/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>admin</role-name>
    </auth-constraint>      
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/test/secure/loginpage.jsp</form-login-page>
    <form-error-page>/test/secure/errorpage.jsp</form-error-page>
    </form-login-config>
    </login-config>
    When you attempt to first go to any page in my /test/secure/ directory you get redirected to the /test/secure/loginpage.jsp where you have to login as a tomcat user, when succesfully logged on you get redirected to an index.jsp page which is NOT the one I created in test/secure/index.jsp. Even when I type in the url to go to my own test/secure/index.jsp I still don't get my own one that exists there, but instead get the default one that's generated that displays:
    "Authentication Mechanism FORM".
    Hope that makes more sense.
    I've tried restarting tomcat but it makes no difference.

  • Click on jsp page Display records on another html page

    Hi All,
    I am new in jsp. I am making discussion forum. I have one jsp page "Post.jsp" I want when I clicked on submit button on jsp page all records display on html page "index.html". Plz. help me.
    Raj

    I have a html page (index.jsp) and a jsp pages (post.jsp) in Post.jsp page three fields: Id, Sub, message and submit button.
    I want when i click on submit button of post.jsp page then store in database and display these records on index.html.

  • Tomcat - Error when executing JSP pages

    Hi,
    I installed tomcat 5.0.30 on a Windows XP os.
    I tried to write a simple JSP page, the classic "Hello World", but when I access the page, I obtain the following error message:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    javac: invalid flag: -source
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -O Optimize; may hinder debugging or enlarge class file
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are used
    -classpath <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -target <release> Generate class files for specific VM version
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:437)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    What can be the problem? I use JRE v. 1.4.2.
    Thank for any help.

    I use JRE v. 1.4.2.What is your JAVA_HOME variable set to?
    Do you have a full Java1.4 installation? - ie not just the JRE but the compiler as well?
    javac: invalid flag: -sourceThis message would indicate that the -source flag is invalid for javac.
    This flag was introduced with java1.4.
    Most probably you have a java1.3 installed on the machine confusing tomcat.

  • Can a servlet make a jsp page display?

    A total newbie question. If I do this in a servlet:
    RequestDispatcher rd = request.getRequestDispatcher( "/index.jsp" );
    rd.forward( request, response );
    - does index.jsp in the context path actually display?
    If yes, what's wrong if it doesn't display?

    Yes, you can pass control from your servlet to the JSP page that way. If it isn't displaying, then you should show us the error message you are getting so that we can help you more effectively.

  • Pdf pages display blank in safari

    Using Safari, when I go to a webpage with a .pdf URL the page is blank.  I recently upgraded to Lion and purchased/installed Adobe Acrobat X Pro  (I was using Acrobat 7.0 with Snow Leopard). The only to access these types of pages is by trying to download linked file (which sometimes doesn't work).

    Quit Safari. Look in the /Library/Internet Plug-ins folder (not the home folder).
    If you see anything with PDF in the middle of it, drag that file to desktop. Then re-start Safari and enjoy.

  • CR for Eclipse version 2.0.1 Report JSP page display problem

    I create report and Report viewer JSP page. When i run JSP page I meet with this [screen|http://www.sendspace.com/file/r2ys55]. When I select print preview the [screen|http://www.sendspace.com/file/4661oa] like this.
    I use CR for Eclipse all in one pack 2.0.1.
    Anyone know what is the problem ?
    Any help would be greatly appreciated.
    Thanks;

    Yes, we are.  We have to set the password unless there is a way to save the password in the report.  The CR designer always asks for the password.  Is there away to save the password in the report from the designer?
    Do you have an ETA on the bug fix?
    It is good to know the problem is being looked into.
    Thanks,
    GregD

  • JSP page not refreshing in browser

    Everytime I edit a JSP file, and try to refresh the JSP in the browser, I don't get an updated version... just the original page that I viewed first. Anyone got a solution?
    I tried deleting the work directory under the %tomcatHome% directory, and that seems to work until I view the page, and tomcat creates this work directory again. So when I try to refresh the page, because the work folder is still there, the page does not get refreshed. Weird... any solutions? Thanks again.

    I'm not sure if your using Tomcat or not but if you are give this a try:
    The ROOT context is the default Web application in Tomcat, and is convenient to use when you first learning about servlets and JSP (although you'll use your own Web applications once you're more experienced). The default Web application is already enabled in Tomcat 3, Tomcat 4.0.1-4.0.3, and Tomcat 4.1. But, in Tomcat 4.0.4 it is disabled by default. To enable it, uncomment the following line in install_dir/conf/server.xml:
    <Context path="" docBase="ROOT" debug="0"/>
    Taken from: http://www.moreservlets.com/Using-Tomcat-4.html#Enable-Root-Context
    This will make the server request a new page every time, not recommended for production apps but for development it will make life easier.

  • Why won't AngularJS pages display from DW browse?

    I am learning AngularJS, a JavaScript based framework, and when I create a page with the AngularJS library called the page doesn't work when browsed. Why would this happen? It works fine when viewed directly from the server or using Sublime. The code is very simple:
    <html ng-app>
    <head>
    <title>First AngularJS App with Controller</title>
    <script type="text/javascript" src="scripts/angular.js"></script>
    <script>
    function CostCtrl($scope) {
      $scope.cost = 1000.1;
    </script>
    </head>
    <body ng-controller="CostCtrl">
    Cost: <input type="text" id="cost" ng-model="cost" placeholder="cost" />
    <p>
    This is your cost: {{cost|currency}}
    </p>
    </body>
    </html>

    What do you mean by "from DW browse"?
    Do you mean from within Design View, Live View or while previewing local files in the actual browsers via the Preview In Browser button?

  • 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 : )

  • Follow up to .JSP page will not display on GoDaddy Linux hosting

    I think my last post got locked but I wanted to explain my reasoning (I am not trying to abuse a forum). I think forums are filled with wonderful people who may have dealt with similar issues. This is my first Java hosted project so I was just hoping someone had some insight.
    http://forums.sun.com/thread.jspa?messageID=10571512#10571512
    I am not trying to use this as a GoDaddy support forum. I have tried calling GoDaddy multiple times and they do not know why it does not work. There response is&hellip; &ldquo;we do not provide support for scripting&rdquo;. Please, correct me if I am wrong here, but the JSP file I am trying to display does not contain any scripting. Is that a true statement?
    To give an update&hellip;
    I logged in this morning and now, the JSP page displays. I was aware that GoDaddy redeploy&rsquo;s Tomcat every night at around 1:00 am Arizona time, but I am not sure why this corrected the issue.
    When I was testing locally, I could place any new JSP files in Tomcat and view it without having to do a redeploy. Why does this work differently on GoDaddy? I am assuming it has something to do with the shared hosting but I am not sure what. Does any one have any insight on this?

    Stop creating OT threads in this forum. Your question isn't related to Java programming at all. Ask the GoDaddy support.
    I'm locking this thread, and your account might get blocked if you continue to create new threads with questions that aren't related to Java.
    Kaj

  • Can't read yahoo Email after the update page display is blank, why?

    After I update my ipad2 with iOS 5 when I log in in yahoo to check mail the page display blank, why?

    Tap Settings / Safari.
    Clear the History, Cookies, and Cache.
    Then restart your iPad.    Hold the On/Off Sleep/Wake button down until the red slider appears. Slide your finger across the slider to turn off iPhone. To turn iPhone back on, press and hold the On/Off Sleep/Wake button until the Apple logo appears.
    If you need help with your iPad / iOS 5 in the future, please post in that forum here.
    This is the Safari for Mac OS X forum.

  • Opening a Java Window from a jsp page on the client side

    Hi all,
    Thanks in advance to all who could help me for this problem.
    I've written some jsp pages. In one of them, I open a new Java Window,
    which is a simple Java Frame. If I test this directly on the Tomcat
    server, everything works well.
    But when I call the jsp page through a web browser of a distant client
    (normal use), and when I want to see the java window, no window pops
    up. It appears that the Java Window pops up on the server, and not on
    the client side, which is what I wanted.
    Could someone tell me how to make the Java frames appear on the client
    side ? (Is it linked to the code or to the configuration of Tomcat ?)
    Thanks in advance,
    Alexis.

    JSP always run on the server. On the client you only see the results.
    But you can use applets on the client side: http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html

Maybe you are looking for

  • Why can't i play cw on my ipod touch with the ipico

    how can i play the cw app with my ipico?

  • Transferring pics from Macbook to desktop wirelessly

    Is there an app or a way to do this that I can't seem to find ? I use my Macbook Pro for editing and my older desktop to store and interface with my Apple TV.

  • Group by in reports using Datalink

    I have following queries Q-1 select a1, a2, Amount1 from table1 ,table 2, table 3 where some condidtions group by a1, a2 Q-2 select a1, a2, amount 2 from table 1, table 2, table3 where some condition group by a1, a2 In my report have display the colu

  • 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

  • Airport and DNS

    Just replaced my old Linksys with a Airport Extreme. I use DMZ to have all traffic go to my iMac thats running OS/X Server. Everything seems to be working just fine, ftp, www, smtp, etc but for some reason, it looks like port 53 (DNS) is being blocke