刚学jsp不久,
  今天我找了个整站,jsp+mysql 的,
jdk,tomcat, mysql, 我都装了,path也设置了,
netstat检验,端口8080,3306,都已打开,
可就是在浏览器里打不开jsp页。

解决方案 »

  1.   

    tomcat启了没
    还是路径错了
      

  2.   

    tomcat启动没有,有没有什么错误显示,
    在浏览器上面输入的是什么,http://127.0.0.1:8080
    这样看看能打开不,你什么都不说,总有什么错误吧
      

  3.   

    肯定说找不到文件吧 开始打开的哪个页面肯定用到数据库了 可能是因为你表空间里缺少表或是表中数据没有数据造成的 删掉那个文件夹 关闭在复制进去写个简单的HEML页面重起服务器 直接打开那个HEML文件看能打开不:)
      

  4.   

    type 异 常 报 告信 息 描 述 服务器遇到内部错误,无法满足这个访问请求异 常 org.apache.jasper.JasperException: 无法编译JSPGenerated servlet error:
    Syntax error on token "*", delete this tokenGenerated servlet error:
    Syntax error on token ";", delete this tokenAn error occurred at line: 3 in the jsp file: /common.jsp
    Generated servlet error:
    GetConfig cannot be resolved to a type
      

  5.   

    /common.jsp把这个文件的代码放出来
      

  6.   

    <%@ page import="net.ijsp.forum.*,net.ijsp.database.*,net.ijsp.util.*,java.util.*,net.ijsp.ip.*;"%><%
    GetConfig getConfig = new GetConfig();
    String picurl = getConfig.getConfig("Picurl");
    String companyName = getConfig.getConfig("CompanyName");
    String[] forumWealth = getConfig.getConfig("forum_wealth").split(",");
    String forumURL = getConfig.getConfig("ForumURL");
    String forumNameA = getConfig.getConfig("ForumName");
    String logo = getConfig.getConfig("Logo");String tableBackColor = "#0099cc";
    String aTableBackColor = "#777777";
    String tableTitleColor = "#99ccff";
    String aTableTitleColor = "#e8f4ff";
    String tableBodyColor = "#f2f8ff";
    String aTableBodyColor = "#e8f4ff";
    String tableFontColor = "#000000";
    String tableContentColor = "#000000";
    String alertFontColor = "#ff0000";
    String contentTitle = "#00008b";
    String fontColor = "#000000";String stats000 = "";String ijspUserName = ""; 
    String ijspPassword = "";
    int ijspUserClass = 4;
    GetSession sess001 = new GetSession(); 
    IUser user001 = sess001.getIjspSession(session);try{
    ijspUserName = user001.getUserName();
    ijspPassword = user001.getUserPassowrd();
    ijspUserClass = user001.getUserClass();
    }catch(Exception e){}%><%!
    //主题类型
    String img(int id){
    String s="";
    String images="";
    String alt="";
    switch(id)
    {
    case 1:
    images="closed.gif";
    alt="开放的主题";
    break;
    case 2:
    images="closedb.gif";
    alt="锁定的主题";
    break;
    case 3:
    images="hot.gif";
        alt="点击超过50次";
    break;
    case 4:
    images="istop.gif";
    alt="固定顶端的主题";
    break;
    case 5:
    images="jh.gif";
    alt="精华帖子";
    break;
    case 6:
    images="tp.gif";
    alt="投票";
    break;
    }
    s += "<img border='0' src=images/" + images +" alt="+alt+">";
    return s;
    }
    %>