JSP problem.
登录 | 论坛导航 -> 华新鲜事 -> 社会百科 | 本帖共有 7 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:青锋 (等级:6 - 驾轻就熟,发帖:359) 发表:2004-06-09 11:50:24  楼主  关注此帖
JSP problem.
After intalling the JSDK and Apache Tomcat I can run simple .jsp file but whenever I use the <useBean> action on the page I get the error saying that the useBean class is invalid. I did put the related .java file in the same directory. what else should I do?

I am just a beginner and thank you for your help.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表
作者:air (等级:2 - 初出茅庐,发帖:462) 发表:2004-06-09 11:54:46  2楼 评分:
what you mean the .java file?
if you use as bean, should compile to .class at first.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表
作者:va (等级:1 - 微不足道,发帖:71) 发表:2004-06-09 12:41:09  3楼
compile and try again
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表
作者:青锋 (等级:6 - 驾轻就熟,发帖:359) 发表:2004-06-09 12:41:59  4楼 评分:
what you mean the .java file?if you use as bean, should compile to .class at first.
I also put the .class in the same directory,
but still displays error like below

org.apache.jasper.JasperException: /ValidateUser1.jsp(1,1) The value for the useBean class attribute com.instantjsp.LoginManager is invalid.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表
作者:Flying (等级:18 - 华新水车,发帖:16849) 发表:2004-06-09 18:33:03  5楼 评分:
I also put the .class in the same directory,but still displays error like below org.apache.jasper.JasperException: /ValidateUser1.jsp(1,1) The value for the useBean class attribute com.instantjsp.LoginManager is invalid.
NOT the same folder!
Please read the Tomcat manual first before you try to ask. In fact, it is stated clearly in the manual where you should put all your "beans," either in .class format or in .jar/.war form.

P.S.,
It is a good habbit to always refer to the product manuals if you have doubt. You need not to read through the whole manual, just search for the few key sections such as "installation instructions," "configurations," "trouble-shooting guide," etc. Those can most probably bring out of most common troubles easily.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表
作者:MrDJay (等级:10 - 炉火纯青,发帖:10172) 发表:2004-06-09 20:53:30  6楼
NOT the same folder!Please read the Tomcat manual first before you try to ask. In fact, it is stated clearly in the manual where you should put all your "beans," either in .class format or in .jar/.war form. P.S., It is a good habbit to always refer to the product manuals if you have doubt. You need not to read through the whole manual, just search for the few key sections such as "installation instructions," "configurations," "trouble-shooting guide," etc. Those can most probably bring out of most common troubles easily.
agree, :P always try ./configure --help before configure sth
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表
作者:青锋 (等级:6 - 驾轻就熟,发帖:359) 发表:2004-06-10 11:45:35  7楼
agree, :P always try ./configure --help before configure sth
Thank you all, got it.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表
论坛导航 -> 华新鲜事 -> 社会百科 | 返回上一页 | 本主题共有 7 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码