CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Java >  J2SE / 基础类

一个简单的JSP文件

楼主xujinwu77(龙昌)2005-04-04 18:58:10 在 Java / J2SE / 基础类 提问

我写一个很简单的jsp文件,为什么总是编译不了,各位高人指点一下啊!!不胜感激~~~  
  javac:   invalid   flag:   D:\Program   Files\JCreatorV3\May.jsp  
  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  
      -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  
      -source   <release>                   Provide   source   compatibility   with   specified   release  
      -target   <release>                   Generate   class   files   for   specific   VM   version  
      -help                                           Print   a   synopsis   of   standard   options  
   
   
  Process   completed. 问题点数:50、回复次数:7Top

1 楼kingfish(工作很忙,很少来csdn...)回复于 2005-04-04 19:05:26 得分 10

用javac编译jsp?  
   
  jsp你放在web服务器的相应位置,启动时会由它自动编译的(转为servlet编译)Top

2 楼zhutouzip(醒了的鸟)回复于 2005-04-04 19:06:46 得分 10

javac怎么能用来编译jsp文件啊?  
  你要下载一个jsp,servlet容器,在浏览器中浏览jsp文件!  
  到www.apache.org上去下载一个tomcat!Top

3 楼steedhorse(晨星)回复于 2005-04-04 19:07:36 得分 5

JSP由JSP容器(如Tomcat)负责编译执行。Top

4 楼lxt322625(霞涛)回复于 2005-04-04 19:09:47 得分 10

还是去配置一下你的servlet容器吧     比如说tomcat     需要放在root文件夹下面Top

5 楼aqining(阿启)回复于 2005-04-04 19:10:34 得分 10

呵呵,蛮有想象力的。  
  其实JSP为什么不能用Java编译了?  
  他的过程无非是*.jsp==〉*.java==>*.class,当然了,还是用Web容器自动编译的好。  
  javac   *.jsp我不会!Top

6 楼apple21(编姑娘的小花篮)回复于 2005-04-04 19:23:08 得分 5

javac怎么能用来编译jsp文件啊?  
  要在容器中才行Top

7 楼xfanghua(红尘摆渡人)回复于 2005-04-04 20:51:14 得分 0

哈哈  
  方法错了Top

相关问题

  • 寻求JSP文件操作的简单例子
  • 简单问题,关于tomcat下不能显示jsp文件
  • 文件的读写 (简单)
  • 简单文件问题。
  • jsp文件问题
  • 由<input type=file>得到request,如何用最简单的方法取出文件名(jsp)
  • 在jsp文件中怎么设置oracle的路径:很简单的,只是因为我不会;
  • 要让Tomcat5支持一个简单的JSP页跑起来,我需要写哪些文件
  • 怎样用jsp做一个简单的关键字全文搜索,只要搜索一个目录中的文件即可(全是.htm文件)
  • 简单问题,如何复制文件

关键词

  • 编译
  • 文件
  • jsp
  • source
  • tomcat
  • 容器
  • javac
  • specified
  • generate
  • debugging info

得分解答快速导航

  • 帖主:xujinwu77
  • kingfish
  • zhutouzip
  • steedhorse
  • lxt322625
  • aqining
  • apple21

相关链接

  • CSDN Java频道
  • Java类图书
  • Java类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo