Please help, jsp pages does not display...

Hi, I am writing simple JSP pages and running it on
Tomcat.
I create a jsp file that has frame in it
(call this chat_entry_frame.jsp)
In the frame I call other 2 jsp pages.
(which is chat_entry.jsp and chat_control.jsp)
When I test both chat_entry.jsp and chat_control.jsp
separately, they both fine.
But when I try to call chat_entry_frame.jsp, it did not
show anything.
I have not create web.xml file inside my application...
I just call both jsp files by specifing their path (relative
path). All jsp files I put in the same directory.
So, I wonder what is wrong?
Thanks in advance for help and suggestion!
Here are the jsp files:
chat_entry_frame.jsp:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ page errorPage="chat_error.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=x-user-defined">
</meta>
<title> Online Chat Frame </title>
</head>
<body>
<frameset cols="25%, 75%" border="0">
<frame src="/chat/jsp/chat_control.jsp" name="entry_control">
<frame src="/chat/jsp/chat_entry.jsp" name="entry_screen">
</frameset>
</body>
</html>
chat_control.jsp:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ page errorPage="chat_error.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=x-user-defined">
</meta>
<title> Online Chat </title>
</head>
<body bgcolor="#00FFFF">
<font face="Verdana" color="black">
<table border=0 cellspacing=0 cellpadding=0 rows=4 cols=1 width=100% bgcolor=#00FFFF>
<tr>
<input type="hidden" name="chatCommand" value="register_entry"></input>
<input type="submit" value="Register" name="register"></input>
</tr>
<tr>
<input type="hidden" name="chatCommand" value="faq_entry"></input>
<input type="submit" value="FAQ" name="faq"></input>
</tr>
</body>
</html>
chat_entry.jsp:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ page errorPage="chat_error.jsp" %>
<%
String username = "";
try
username = (String) session.getAttribute("username");
if (username == null)
username = "";
catch (java.lang.NullPointerException ex)
username = "";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=x-user-defined">
</meta>
<title> Online Chat </title>
</head>
<body bgcolor="#00FFFF">
<font face="Verdana" color="black">
<h3 align="center"> Login Page </h3>
<br>
<h5>
<form name="chat_entry" method="POST" action="/chat/servlet/ChatEngine">
<table border=0 cellspacing=0 cellpadding=0 rows=4 cols=1 width=100% bgcolor=#00FFFF>
<tr>
<td><label for="username">Username: </label></td>
<td><input type="text" name="username" value=<%=username%> ></input></td>
</tr>
<tr>
<td><label for="password">Password: </label></td>
<td><input type="password" name="password"></input></td>
</tr>
<tr>
<td><input type="hidden" name="chatCommand" value="check_login"></input></td>
<td><input type="submit" value="login" name="submit"></input>
<form name="forgot_password" method="POST" action="/chat/servlet/ChatEngine">
<input type="hidden" name="chatCommand" value="forgot_password"></input>
<input type="submit" value="Forgot Password" name="submit"></input>
</form>
</td>
</tr>
</h5>
</body>
</html>

Hi,
Your problem is not with TomCat, When you specify a frameset, the HTML code cannot have the body tag, just remove it from your chat_entry_frame.jsp and it has to work.
Hope this helps...

Similar Messages

  • Please help: my website does not display properly in firefox

    (note) everything works fine clientside
    I'm totally new here but I really really need help debugging
    my website. The problem is I have a flash file the loads an xml
    file to display pictures. Basicallly a gallery. It works in IE but
    not Firefox and I can't understand why.
    here is the offending pages
    3dart Page |
    Print Page
    as you can see they display fine in IE. try in mozilla
    firefox and the server just hangs. here is the actionscript from
    the .fla:
    function loadXML(loaded) {
    if (loaded) {
    xmlNode = this.firstChild;
    image = [];
    description = [];
    total = xmlNode.childNodes.length;
    for (i=0; i<total; i++) {
    image
    = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
    description
    = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
    firstImage();
    } else {
    content = "file not loaded!";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("freelance.xml");
    listen = new Object();
    listen.onKeyDown = function() {
    if (Key.getCode() == Key.LEFT) {
    prevImage();
    } else if (Key.getCode() == Key.RIGHT) {
    nextImage();
    Key.addListener(listen);
    previous_btn.onRelease = function() {
    prevImage();
    next_btn.onRelease = function() {
    nextImage();
    p = 0;
    this.onEnterFrame = function() {
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    if (loaded != filesize) {
    preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
    preloader._visible = false;
    if (picture._alpha<100) {
    picture._alpha += 10;
    function nextImage() {
    if (p<(total-1)) {
    p++;
    if (loaded == filesize) {
    picture._alpha = 0;
    picture.loadMovie(image[p], 1);
    desc_txt.text = description[p];
    picture_num();
    function prevImage() {
    if (p>0) {
    p--;
    picture._alpha = 0;
    picture.loadMovie(image[p], 1);
    desc_txt.text = description[p];
    picture_num();
    function firstImage() {
    if (loaded == filesize) {
    picture._alpha = 0;
    picture.loadMovie(image[0], 1);
    desc_txt.text = description[0];
    picture_num();
    function picture_num() {
    current_pos = p+1;
    pos_txt.text = current_pos+" / "+total;
    stop();
    if anyone would help me debug this I would really appreciate
    this, I'm not good with code. I'll give you the source files to
    look at if need be, i'm desperate! thanks

    Can you attach some [http://en.wikipedia.org/wiki/Screenshot screenshots] for comparison to show what you mean?
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).

  • JSP error page does not displayed on its own, includes in the original JSP

    Problem Description: - Exceptions in a Condition cause pages to fail to render.
    The actual issue is, the JSP error page does not displayed on its own, included in the original JSP Page when exception occurs.
    Problem Cause: As per the JSP specification when jsp content reached the buffer size (default 8KB) the page being flushed (Part of condent displays). The default �autoFlush� value is true.
    When the page buffer value is default size (8KB), and if any exception occurs after flushing the part of the content, instead of redirecting into error page, the error page content included in the original page.
    If i specify autoFlush="false" and with default buffer size, at the runtime if the buffer size is reached, i am getting stackoverflow error.
    To solve the above problem we can make it autoFlush=�false� and buffer=�100KB�. But we can�t predict the actual size of the page.
    I found in one of the weblogic forum as no solution for this issue. Ref.
    http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_clfydoc&answerpage=solution&page=wls/S-10309.htm
    Please provide me any solution to resolve the problem.

    Error-Page tags work best with an error.html pages. If you have an error.jsp page what I would do, and I have, is wrap my classes and jsp pages in a try catch block where you forward to the error jsp page and display anything you want. YOu can also do this with if else statements. I have used the tomcat error pages before but when I've implemented them I used java.lang.Exception as the error to catch not Throwable. I don't know if this would make a difference or have anything to do with your problem.

  • The edit JSP page does not appear...

    Hi!
    I make a simple JSF application, I would like to show a DB table in a h:dataTable component and edit a given row after click, but the edit JSP page does not appear. I click the on link in the table, but the list is loaded again and not the edit page...:(
    (no exception in application server console)
    Please help me!
    my code:
    **************************************** listmydata.jsp***************************
                   <h:dataTable
                             value="#{myBean.myDataList}"
                             var="myDataItem"
                             binding="#{myBean.myDataTable}"
                   >
                        <h:column>
                             <f:facet name="header">
                                  <h:outputText value="Ajdi"/>
                             </f:facet>
                             <h:commandLink action="#{myBean.editMyData}">
                                  <h:outputText value="#{myDataItem.id}"/>
                             </h:commandLink>
                        </h:column>
    ********************************* MyBean.java *******************************
    package bean;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.html.HtmlDataTable;
    import javax.faces.context.FacesContext;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    import wrapper.MyData;
    public class MyBean {
         private List myDataList;
         private HtmlDataTable myDataTable;
         private MyData myDataItem;
         protected Connection Conn;
         // *********************** actions ***********************
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
         public String saveMyData() {
              try {
                   updateDataInDB();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              return "listmydata";
         // *********************** setter ***********************
         public void setMyDataList(List myDataList) {
              this.myDataList = myDataList;
         public void setMyDataTable(HtmlDataTable myDataTable) {
              this.myDataTable = myDataTable;
         public void setMyDataItem(MyData myDataItem) {
              this.myDataItem = myDataItem;
         // *********************** getter ***********************
         public List getMyDataList() {
              if (myDataList == null || FacesContext.getCurrentInstance().getRenderResponse()) {
                   loadMyDataList();
              return myDataList;
         public HtmlDataTable getMyDataTable() {
              return myDataTable;
         public MyData getMyDataItem() {
              return myDataItem;
         // *********************** others ***********************
         public void loadMyDataList() {
              try {
                   getDataFromDB();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
         void getDataFromDB() throws NamingException, SQLException {
              myDataList = new ArrayList();
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement("SELECT id, name, value FROM BEA_JSF_SAMPLE");
              PreStat.execute();
              java.sql.ResultSet Rs = PreStat.getResultSet();
              while(Rs.next()) {
                   MyData OneRecord = new MyData();
                   OneRecord.setId(Rs.getLong(1));
                   OneRecord.setName(Rs.getString(2));
                   OneRecord.setValue(Rs.getString(3));
                   myDataList.add(OneRecord);
         void updateDataInDB() throws SQLException, NamingException {
              String sql = new String("UPDATE BEA_JSF_SAMPLE SET name=?,value=? WHERE id=?");
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement(sql);
              PreStat.setString(1,myDataItem.getName());
              PreStat.setString(2,myDataItem.getValue());
              PreStat.setLong(3,myDataItem.getId().longValue());
              PreStat.execute();
              ownGetConnection().commit();
         Connection ownGetConnection() throws SQLException, NamingException {
              if (Conn == null) {
                   InitialContext IniCtx = new InitialContext();
                   DataSource Ds = (DataSource)IniCtx.lookup("JDBCConnectToLocalhost_CRS");
                   Conn = Ds.getConnection();
              return Conn;
    ******************************* editmydata.jsp *****************************
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
    <body>
    <f:view>
    <h:form>
         <h:panelGrid columns="2">
              <h:outputText value="Name"/>
              <h:inputText id="name" value="#{myBean.myDataItem.name}"/>
              <h:outputText value="Value"/>
              <h:inputText id="value" value="#{myBean.myDataItem.value}"/>
         </h:panelGrid>
         <h:commandButton action="#{myBean.saveMyData}" value="Save"/>
    </h:form>
    </f:view>
    </body>
    </html>

    I have put his lines in the faces-config.xml and now it works:
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>editmydata</from-outcome>
                   <to-view-id>editmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>listmydata</from-outcome>
                   <to-view-id>listmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    I don't understand, that I define the next JSP page in the bean java file, which must be shown, but I must define this in the faces-config.xml as well.
    for example:
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
    is it right or Do I make a mistake somewhere?

  • Page does not display properly in 3.0.4

    If someone from apple reads these postings, the following page does not display properly in Safari 3.0.4 with mac os leopard.
    I can not find an email to email directly to you.
    http://bigten.cstv.com/sports/m-wrestl/spec-rel/021308aab.html

    Hi
    Welcome to Apple Discussions
    Best way to reach Apple is to send a Bug Report via the Safari Menu>Report Bugs to Apple. While Apple doesn't respond directly to these notes, the information gets in the hands of Software Engineers at Cupertino.
    Specific to the referenced site, there are multiple code errors, which would contribute to the rendering problem. Safari is a lot more specific about following correct code than other browsers. I suggest passing the Validation report on to the site developers. Good code practices (W3) makes for better uniformity and security on the Internet.

  • I can not install the Express after the Extreme tha AirPort tool is of no help. It does not display any base station.

    I can not install the Express after the Extreme tha AirPort tool is of no help. It does not display any base station.

    What is the exact model of the AirPort Express that you are trying to install? Which version of the AirPort Utility are you using? What is the operating system and version, and on what device, are you running the AirPort Utility on?

  • Help! Bridge does not display Indesign Documents as spread thumbnails anymore.

    Adobe please fix this issue. Adobe Bridge CC and (also CS6) does not display Indesign documents as spreads like it always used to. It displays a preview of the left hand page only not both left and right. This is very frustrating as this was a very useful feature from day one. Why is it not there and what can you do to get it reinstated asap.

    Moving this discussion to the Bridge General Discussion forum.

  • Photos page does not display photos in some browsers

    Hi All:
    I published my "Photos" page,
    http://web.mac.com/funkyoldude/
    It appears to work fine on Opera v. 9.24, Firefox v.2.0.0.7, and Safari v. 2.0.4.
    It does not display my photos on Mac IE v. 5.2, AOL v.10.3, and Mozilla v. 1.7.13
    On these browsers I get the message:
    # Exception: ReferenceError
    # Message : detectBrowser is not defined
    Any ideas? That's a lot of folks that can't view my webpage.

    Hi
    Welcome to Apple Discussions
    Best way to reach Apple is to send a Bug Report via the Safari Menu>Report Bugs to Apple. While Apple doesn't respond directly to these notes, the information gets in the hands of Software Engineers at Cupertino.
    Specific to the referenced site, there are multiple code errors, which would contribute to the rendering problem. Safari is a lot more specific about following correct code than other browsers. I suggest passing the Validation report on to the site developers. Good code practices (W3) makes for better uniformity and security on the Internet.

  • Pages does not display on Mission Control

    I use three fingers on the trackpad to initiate Mission Control.  Even though I have a document open under Pages on my desktop, Mission Control does not show me an image or icon for pages that I can select.  I see a vertical white line where the icon should be, but I cannot select it.  Do I not have an option to select Pages from Mission Control?  The same thing happens when I hit F3.
    I have a Macbook Pro.
    Thanks!

    That's what I mean...it does not have its own pile.  Pages does not appear at all when I go to MC, even though I have it open on my desktop.  When I move windows around to bring it to the front and go back to MC, the document dissappears to a thin vertical white line in MC and my other open programs have their own pile.  When I exit out of MC, the document appears from where the thin vertical line is.  I can't click on the line either, so I'm not sure what the problem is.  I've restarted it three times and nothing has changed.

  • My jsp page is not displayed - tomcat does not pick up the class file

    Hi everybody,
    I have a Java code which is a controller for a jsp page, called: HomeController.java. Code is as follows:
    @Controller
    public class HomeController {
    protected final transient Log log = LogFactory.getLog(getClass());
    @RequestMapping(value = "/mypage")
        public String home() {
            System.out.println("HomeController: Passing through...");
            return "home";
    }There is nothing especial in the jsp page: home.jsp. If I go to this url:
    http://localhost:8080/adcopyqueue/mypage
    I can view mypage and everything works fine. Also in the tomcat Dos page I can see the comment:
    HomeController: Passing through...As expected.
    Now under the same directory that I have HomeController.java, I've created another file called: LoginController.java. Following is the code:
    @Controller
    public class LoginController {
    protected final transient Log log = LogFactory.getLog(getClass());
    @RequestMapping(value = "/loginpage")
    public String login() {
            System.out.println("LoginController: Passing through...");       
            return "login";
        }And under the same place which I have home.jsp, I've created login.jsp.
    Also under tomcat folders, LoginController.class exists under the same folder that HomeController.class exists and login.jsp exists under the same folder which home.jsp exists.
    But when I go to this url: http://localhost:8080/adcopyqueue/loginpage
    Nothing is displayed! I think tomcat does not pick up LoginController.class b/c on the tomcat Dos window, I do NOT see this comment:
    LoginController: Passing through...Instead I see following which I do not know what do they mean?
    [ INFO] [http-8080-1 01:43:45] (AppInfo.java:populateAppInfo:34) got manifest
    [ INFO] [http-8080-1 01:43:45] (AppInfo.java:populateAppInfo:36) manifest entrie
    s 8The structure and the code for HomeController.java and LoginController.java plus the jsp files match. I have no idea why tomcat sees one of the files and not the other?
    Clean build did not help. Does anybody have any idea? Any help is greatly appraciated.
    Edited by: ronitt on Nov 16, 2011 3:55 PM

    Hi,
    Please check the following path if your application is deployed or not properly if you are using eclipse:
    Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps

  • Please help, jsp page wants missing ";" but not to good with jsp?

    I have a JSP page called ftplogin.jsp
    I want the jsp page to call a ftpbean.
    It will pass server, username and login into the ftpbean.
    It will then set the directory and finaly retrieve a a document from it.
    The ftpbean works but my jsp page doesn't. Please help with compilation problem?????
    Please also tell me if the syntax of accessing the bean is correct?
    <!-- ftplogin.jsp -->
    <html>
    <head>
    <title> FTP Login </title>
    </head>
    <body>
    <%@ page import= "ftp.* " %>
    <jsp:useBean class="ftp.FtpBean" id="ftpbean" scope="session" />
    <%
    try
    String servername = request.getParameter("serverName");
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    ftpbean.ftpConnect(servername, username, password);
    catch(Exception e)
    %>
    Sorry but your must have entered an incorrect login ingotmation.
    You are not allowed to login.
    Please leave the ftp portal.
    <%
    %>
    <h1> Welcome to the FTP Login. </h1>
    <FORM ACTION="ftplogin.jsp" METHOD=post>
    Please login
    Enter name of server:
    <input type="text" name="servername"><br>
    Enter user name?
    <input type="text" name="username"><br>
    Enter password
    <input type="text" name="password"><br>
    <input type="submit" name="Submit info">
    </FROM>
    <%=
    try
    // set the directory
    ftpbean.setDirectory("/home/eland/u6/k3074/w0109699/simple-bean");
    catch(Exception e)
    System.out.println(e);
    %>
    <%=
    try
    // Get the binary file '????' and save it to hard disk
    // the name will be 'local_file_name' .
    ftpbean.getBinaryFile("accessbean.jsp", "local_file_name", this);
    catch(Exception e)
    System.out.println(e);
    %>
    <%=
    try
    ftpbean.close();
    catch(Exception e)
    System.out.println(e);
    %>
    </body>
    </html>
    Location: /myJSPs/jsp/grid-portal-project/ftplogin.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile Note: sun.tools.javac.Main has been deprecated.
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:110: Missing term.
    out.print(
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:110: ')' expected.
    out.print(
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:120: Missing term.
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:120: ';' expected.
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:121: Invalid expression statement.
    ^
    5 errors, 1 warning
         at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
         at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:536)

    Please note I have solved the compilation problem.
    But now getting runtime error. Here is the error:
    Error: 500
    Location: /myJSPs/jsp/grid-portal-project2/ftplogin.jsp
    Internal Servlet Error:
    javax.servlet.ServletException
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
         at jsp.grid_0002dportal_0002dproject2.ftplogin_1._jspService(ftplogin_1.java:128)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
         at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
         at org.apache.tomcat.core.Handler.service(Handler.java:235)
         at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:536)
    Root cause:
    java.lang.NullPointerException
         at java.net.Socket.(Socket.java:282)
         at java.net.Socket.(Socket.java:118)
         at ftp.FtpBean.ftpConnect(FtpBean.java:323)
         at ftp.FtpBean.ftpConnect(FtpBean.java:293)
         at jsp.grid_0002dportal_0002dproject2.ftplogin_1._jspService(ftplogin_1.java:91)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
         at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
         at org.apache.tomcat.core.Handler.service(Handler.java:235)
         at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:536)
    Here is my directory structure for ".jsp" and ".html" pages:
    C:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\jsp\grid-portal-project2
    Here is my directory structure for java classes,
    C:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\WEB-INF\classes
    ftp
    ftp\FtpBean.java
    ftp\FtpBean.class
    Here is the modified source code:
    <html>
    <head>
    <title> FTP Login </title>
    </head>
    <body>
    <%@ page import= "ftp.* " %>
    <jsp:useBean class="ftp.FtpBean" id="ftpbean" scope="session" />
    <%
               String servername = request.getParameter("serverName");
               String username   = request.getParameter("username");   
               String password   = request.getParameter("password");
               ftpbean.ftpConnect(servername, username, password);
    %>
    <h1> Welcome to the FTP Login. </h1>
    <FORM ACTION="ftplogin.jsp" METHOD=post>
    Please login
    Enter name of server:
    <input type="text" name="servername"><br>
    Enter user name?
    <input type="text" name="username"><br>
    Enter password
    <input type="text" name="password"><br>
    <input type="submit" name="Submit info">
    </FORM>
      <% 
               ftpbean.setDirectory("/home/eland/u6/k3074/w0109699/simple-bean");
      %>
      <%
               ftpbean.getBinaryFile("accessbean.jsp", "local_file_name");
      %>
      <%
                ftpbean.close();
      %>
    </body>
    </html>

  • 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

  • Link to a file in the jsp page does not open correctly

    Hi all,
    I have a JSP application which is similar to a discussion forum and the messages usually carry a link to an attachment file which could be of any extension.
    The client pool I am dealing with are concerned only with MS Word/Excel/PPT files. When the user clicks on the file, a new browser window opens but it does not open the file in the correct application. I know that browsers can display Doc, ppt and xls files.
    In my case, the browser just shows some garbage. THe link is to the correct file, I know that because I can right click and download the file and then open it in the correct application. But I want browser to find the application and open the file.
    Can somebody give me hints as to what may be wrong?
    Also, I am in the development stage and therefore I have only 100 odd messages in the database. Many have attachements. But only one attachment to a particular message works well..ie the browser finds MS Word and displays the doc.
    Why not the remaining doc/ppt files?
    Help please!!
    Thanks in advance.
    m_asu

    Add the following code to web.xml mime-mapping section and restart tomcat:
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/msexcel</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ppt</extension>
    <mime-type>application/ms-powerpoint</mime-type>
    </mime-mapping>

  • Hyperlinked JSP Page does not refresh contents

    I have a very typical problem.
    In my application whenever I call a jsp page using hyperlink without any querystring attached to it the page called does not refresh. However when I press refresh on the browser it does refresh the contents. Basically in this page I am using some session variables to fetch data. So I do not call the page by passing querystring instead set the attributes of session variables and then the page is called as a hyperlink.
    However if I call the same page using submit the values are refreshed.
    Help on this urgently will be appreciated.
    Thanks
    Manish

    Just set 'no-cache' option for the jsp page and test it. It should work. only you need to do is
    response.setDateHeader("Expires",0);
         response.setHeader("Pragma","no-cache");
         if(request.getProtocol().equals("HTTP/1.1")) {
              response.setHeader("Cache-Control","no-cache");
    have fun!!
    ---rajsekhar

  • My jsp page does not get refreshed

    I have a jsp page which looks like -
    the top portion of the page has 3 textboxes and a submit button to add an entity.
    the rest of the page displays a list of all the entities in the system.
    when i load the jsp and add a new entity, the new entity shows up on the list. when i try to add a new entity second time, the entity does get added into the database, but does not show up in the list.
    In the action class, i make a request to the dao and print all the values from the list, returned by the dao. Since the newly added values are present in the list, returned by the dao, i dont think there is anything wrong with my business layer or the DAO layer.i dont understand, why it does not show up in the jsp page.
    any ideas. i am wondering if the data is being cached, so, in the jsp page i have also set the following parameters:
      <head><meta http-equiv="Expires" CONTENT="0"><meta http-equiv="Cache-Control" CONTENT="no-cache"><meta http-equiv="Pragma" CONTENT="no-cache">
    --------------------------------------------------------------------------------Has this to do anything with Struts and Hibernate which i use in my application? The same thing happens, when i edit. when i click on edit button, it takes the user to a different page, i edit the details and click on save button. the control returns back to the list page, but the changes are not shown, although the changes are saved to the db. how do i prevent cache. i am putting my entire list in a request object, before doing an action forward to the jsp page

    Hi,
    instead of using the cache in the meta tag try with the following lines,
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("Expires", 0); Regards,
    Bala A

Maybe you are looking for

  • Please help! dvd studio pro 3/ m2v issues

    hi, i have been attempting to burn a simple dvd for 9 hours now. i'm using dvd studio pro 3 on a macbook pro (OS X Tiger); the video assets comprising my dvd studio pro project are mpeg2 files. everything looks beautiful when i simulate the menu with

  • Transferring iPhoto Library from 10.3 to 10.8

    My folks recently upgraded from an eMac running 10.3 / Whatever Cat to an iMac running 10.8 / Mountain Lion.  I have transferred the old iPhoto Library to the new computer, and renamed it slightly (but did not replace or throw away the new iPhoto Lib

  • Is Ping enabled by default?

    I have noted in several threads that people recommend turning off PING for battery life. I don't have restrictions enabled so I can't turn off PING without enabling restrictions which probably would be OK but I didn't care before. I have not started

  • PeopleSoft XMLP and Query problem

    Hello, I have defined a query to fetch multiple rows for an XMLP report, I also have define Burst field on XMLP report, I have written App. Engine to run this XMLP report. When I run app. eng. program I only get 1 row, instead of multiple rows. When

  • Tv icon on musicvideos

    I had musicvideos and movies on my ipod. Now the tv icon disappeared and the ipod won't play them anymore. I tunes plays them just fine but won't let me put them under musicvideos. They were purchased on i tunes. Can anybody give me some advice on ho