1,在MyEclipse选项卡里配制好Tomcat~
2,在你的MyEclipse Web项目上右键--->MyEclipse--->Add And Remove Project Deployments...--->Add--->选中你配好的Tomcat--->OK
  
  

解决方案 »

  1.   

    谢谢daniel_kaka(卡卡)   试过了,好象还是不行哦.我把步骤再写一下,再帮我看看.
    1.file---myeclipse----j2ee----webproject 己经 add struct capablities,加入了10个jar文件。
    2.在webRoot中右键 new---jsp(advanted tenplates), 什么都不做,就在body中 写了几个单词!
    3.window----preferences-----myeclipse-----application serves----tomcate5----选enable----增强C:\Program Files\Apache Software Foundation\Tomcat 5.5---ok
    4.项目上右键--->MyEclipse--->Add And Remove Project Deployments...--->Add--->选中配好的Tomcat--->OK
    5.找开tomcate 还是不行哦,请帮我看看!!!!
      

  2.   

    补充一下错误是这样,
    message description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to load class for JSP
    org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:591)
    org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause java.lang.ClassNotFoundException: org.apache.jsp.aa.WebRoot.MyJsp_jsp
    java.net.URLClassLoader$1.run(Unknown Source)
    java.security.AccessController.doPrivileged(Native Method)
    java.net.URLClassLoader.findClass(Unknown Source)
    org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
    org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
    org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:589)
    org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
    --------------------------------------------------------------------------------
      

  3.   

    3.window----preferences-----myeclipse-----application serves----tomcate5----选enable----增强C:\Program Files\Apache Software Foundation\Tomcat 5.5---ok-----------------------------------------------------------------------你还没设定Tomcat的JDK把~~不能用jre接着你的这一步写~这些Tomcat----JDK-----添加你的JDK(注意不能是JRE)
      

  4.   

    另外,启动Tomcat直接从Eclipse的上面toolbar上启动即可
      

  5.   

    mebRoot右键,----new---jsp(advance Template)----这里出现出现一个对话框,第三栏
    Template to use   如果用default jsp template 生成的jp是可以的,如果用Standard jsp useing Struts 1.2 生成的jsp就不能用,请问是为什么呢?
    .window----preferences-----myeclipse-----application serves----tomcate5----下jdk怎么设置啊??tomcat  jdk name 已经有 jdk1.5.0  还要点旁边的add吗?试了一下加不上哦
      

  6.   

    <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
        
        <title>My JSP 'first.jsp' starting page</title>
        
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->  </head>
      
      <body>
        This is my JSP1111 page. <br>
      </body>
    </html>这个是可以运行的,!!!
    <%@ page language="java" pageEncoding="ISO-8859-1"%><%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html:html lang="true">
      <head>
        <html:base />
        
        <title>sec.jsp</title> <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->  </head>
      
      <body>
        This a strut3333333333s page. <br>
      </body>
    </html:html>这个就不行了,为什么呢