由买买提看人间百态

topics

全部话题 - 话题: jsp
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
e******x
发帖数: 925
1
来自主题: BuildingWeb版 - 请问hostmonster支持ASP.NET与JSP吗?
ASP.NET 只能使用 Windows 主机,JSP的话,最好用VPS或虚拟主机。
D*J
发帖数: 141
2
来自主题: BuildingWeb版 - 请问hostmonster支持ASP.NET与JSP吗?
JSP support, too.
z******a
发帖数: 64
3
来自主题: BuildingWeb版 - 有用java servlet/jsp+tomcat/apache的么?
新人,刚浏览了一下帖子,发现都是用php的,想问一下有用java servlet/jsp+tomcat
/apache做电子商务网站的么?
y****i
发帖数: 5690
4
【 以下文字转载自 Java 讨论区 】
【 原文由 yongqi 所发表 】
Except JDBC, are there any other solutions for Java-based technologies(such
as JSP, Servlets, etc) to connect to Databases including IBM DB2 and Oracle?
The major operations on the database will be information retrival, browsing,
or searching. I guess it's mainly web-based too. It's for an University Library project and not enterprise so
couldn't afford expensive solutions.
I can only think of JDBC. When I searched google, I found something named JDO
but J
h****e
发帖数: 204
5
JDBC is simple and good enough for normaly SQL queues.
in JSP, Servlet, u still use JDBC to connect with database layer
JDO? sounds like ADO's Java version? interesting :)
m*****e
发帖数: 126
6
来自主题: Database版 - HELP!!!Connect to MySQL in JSP
Not necessarily Tomcat's problem. You should test your JDBC driver program. It
should be in your CLASSPATH. One thing you can do is to write a standalone
program to do a database query. If this works, then copy the db access code to
your JSP.

i
working
configuration,
m*****g
发帖数: 8
7
来自主题: Database版 - HELP!!!Connect to MySQL in JSP
Hi thanks man
That what i did, the JDBC driver standalone testing code is working well when
it called by a JAVA main file, but not when called by JSP file. The code i use
is following:
try{
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
con = DriverManager.getConnection(
"jdbc:mysql://localhost/mike ?user=mike&password=mike");
System.out.println("connected to database");
} catch(ClassNotFoundException cnfe){
error="ClassNotFoundException: Could not loc
B**z
发帖数: 153
8
来自主题: Database版 - HELP!!!Connect to MySQL in JSP
it's a typical ClassNotFoundException for JDBC, it occurs at Class.forName()
check the classpath setting in your JSP environment.
B**z
发帖数: 153
9
来自主题: Database版 - HELP!!!Connect to MySQL in JSP
the CLASSPATH for your user profile is for the user environment, for JSP,
it's different,you have to put the classpat in WEB-INF/lib as you described.
m*****g
发帖数: 8
10
来自主题: Database版 - HELP!!!Connect to MySQL in JSP
Thx Buzz
I notice that is tomcat4.1 doc, but i am using 3.3. So when i tried it , seems
doesn't work anymore.

got
can
JSP,
yb
发帖数: 171
11
I am desperately needing help for DB2 connection in the jsp through jdbc.
1) I have DB2 version 7 installed on my own machine ( personal edition) for
both server and client. I created a data base and bunch of tables. I can use
the control center to access the tables.
2) I use tomcat4.0.6 for the web application server. The java I am using is
j2sdk1.4.0_01. I use tomcat's servlet.jar for servlet.
3)The window I use is win NT.
4)I set the class path in the control panel/system/environment and also
g***p
发帖数: 139
12
来自主题: DotNet版 - ASP.NET能移植到jsp上吗?
JSP能移植到ASP.NET的平台上呢?
thx
d*****p
发帖数: 13
13
来自主题: Internet版 - JSP: How to decide which field?
How can I decide which field in the jsp file invoke my servlet action class?
I find that request.getParameter("button")!=null will tell me which button is
selected. But how about a select box? How do I know it is the select box
invoked the action?
Thank you!!
l****o
发帖数: 2
14
来自主题: Java版 - Re: about jsp and servlet
I don't know the Chinese version.
One solution is to use IBM websphere application server
to plug in a web server. That's a commercial solution.
You can use IBM visual age for java to develop servlet
and debug jsp.
You can get a trial version of websphere application server
and visual age for java from IBM web page.
Leo
y***e
发帖数: 39
15
来自主题: Java版 - PHP vs ASP vs JSP
转自: http://www.phpchina.com
PHP是一种没有前途的嵌入式脚本语言。原因是多方面的。
一,PHP缺乏规模支持。与之类似的嵌入语言,一个是ASP,一个是JS
P前者可以通过
Microsoft Windowsd的COM/DCOM获得ActiveX支持,后者可以通过SUN
Java的Java
Class和EJB获得支持
二,缺乏多层结构支持。对于大负荷站点,解决方法只有一个:分布
计算。数据库、应
用逻辑层、表示逻辑层彼此分开,而且同层也可以根据流量分开,组
成二维阵列。ASP
可以通过DCOM和微软的Transcation Server来获得
这种结构支持,JSP可以通过EJB/CORBA以及众多厂商的Application
Server来获得这种
结构支持,但PHP没有这样的条件。
三,PHP极其没有道理地实现了一个混乱的不能统一的数据库接口支
持,比如对Oracle,
MySQL, Sybase的接口,彼此都不一样。这一点让人感觉不可思议,
而且也使它在电子
商务中运用受阻----连PERL都通过DBI而获得一个抽象的数据库接口

美国现在电子商务非常流行
y***e
发帖数: 39
16
来自主题: Java版 - The Problems With JSP
From Jason Hunter, the author of the famous O'Reilly Book
"Java Servlet Programming"
http://www.servlets.com/soapbox/problems-jsp.html
f***o
发帖数: 31
17
来自主题: Java版 - new in JSP 2.0 spec
expression language, so that you can write scripts like ${foo.bar}.
those are supposed not java, but 'simpler' language for page authors.
SimpleTag or 'tag file'. the taglib can be implemented in JSP syntax,
not have to be in a java class. this is a lot easier.
SimpleTag is decoupled from servlet context, so that it 'COULD' be
used as template page independently in 'FUTURE'. I want this badly,
but still it's not available.
yb
发帖数: 171
18
I am desperately needing help for DB2 connection in the jsp through jdbc.
1) I have DB2 version 7 installed on my own machine ( personal edition) for
both server and client. I created a data base and bunch of tables. I can use
the control center to access the tables.
2) I use tomcat4.0.6 for the web application server. The java I am using is
j2sdk1.4.0_01. I use tomcat's servlet.jar for servlet.
3)The window I use is win NT.
4)I set the class path in the control panel/system/environment and a
f***o
发帖数: 31
19
no need for classpath. put your jsp under webapps/ROOT
put db2 driver jar under webapps/ROOT/WEB-INF/lib
s*******g
发帖数: 59
20
i think what he needs to do is first successfully connect to
DB from java itself, then JSP.
Make sure the URL and driver are right or not.
c*****a
发帖数: 5
21
I want to build a server side app with JSP or EJB which in turn call methods
in ActiveX (.ocx) on the server. Does anyone know of some way to implement
this?
Thanks a million!!!
y*******d
发帖数: 7
22
来自主题: Java版 - JSP and TOMCAT 问题
1,I download tomcat, sometime, it is easy to set up the server by
set path=C:\j2sdk1.4.0_03
set JAVA_HOME=C:\j2sdk1.4.0_03
why this sometimes does not work. I can not start the server?
2,Where to put my jsp or html file? I tried to put it in one of many folders,
never saw my file. why?
Thanks
F******y
发帖数: 1988
23
thank you very much!

display)
"hidden.jsp"
from
xt
发帖数: 17532
24
来自主题: Java版 - JSP is rubbish!

The size of bytecode from a method cannot be more than 64 for JSP.
m******t
发帖数: 2416
25
来自主题: Java版 - JSP is rubbish!

I'm sorry, I misread your original post. Yes, that 64K limitation
is the general limitation of the JVM I was talking about. It's not
just for jsp.
f****y
发帖数: 70
26
来自主题: Java版 - jsp开发请教
tomcat+jsp,要求生成是soap encoding,我对这些不太了解,想来是生成xml格式,然后
要用xslt转成xhtml和wml。
像这样的开发要求,通常是如何做的?用些什么方法和工具,开发包?无法入手,特此
请教
f****y
发帖数: 70
27
来自主题: Java版 - jsp开发请教
requirement上就是这样讲,
jsp, outputing results using a soap encoding.
我想soap encoding是有规范的,就是xml
m******t
发帖数: 2416
28
来自主题: Java版 - jsp开发请教

looks like it's asking your to write a jsp that renders SOAP responses instead
of HTML.
r***l
发帖数: 67
29
Why it's the best?
Saw the short version demo, it's cool. However, nothing really new (jsp,
struts editing, debugging). IntelliJ and JDeveloper can do the same thing plus
more.
If it's free, it might be the best plug-in for eclipse. However, it's not.

studio
r***l
发帖数: 67
p***p
发帖数: 559
31
我这个学期刚刚写了个类似网上住址登记处的PROJECT,用了JSP,SERVLET,WEBSERVICE
,JAAS和JMQ,EJB,MY SQL和XML DB。东西不少,但是基本是东拉西扯四处抄了些代码和
SAMPLE,最终可以运行了,错误还不少,什么SESSION,安全问题等等。之前基本不会编J
SP,粗通JAVA,能撺在一起跑起来已经是很不错了。
这个学期还要一个比较进阶的类似项目,我想好好从头学一下如何规规矩矩写一个类似网
站。总之是希望培养好的编程习惯,学习如何写个大结构,合理用哪些技术。程序细节地
方该如何写,一些经验之谈。还有比如编程和设计时候要考虑安全,效率等等问题,并且
符合商业化,接近工作中编程要求。
两个问题,首先有哪些书能比较有关方面全面指导,而且还包括很多小经验(类似Thinkin
g in Java)。另外哪里有些现成的工程例子和原代码,值得学习,多谢了。哪些网站和讨
论区
请问这本书如何
http://www.oreilly.de/catalog/jsvltjspckbk/
e**o
发帖数: 131
32
tomcat是免费的servlet and jsp container,好像apache的网上有
访问数据库另外需要jdbc driver,google一下吧
c**g
发帖数: 274
33
来自主题: Java版 - 请问JSP里这个怎么设
if it is under unix/linux, you can set a link (using ln) to text.txt
from doc root of your web application.
If it is under windows, set a shortcut, but I am not sure if this
works.
another solution, you create a jsp, which reads text.txt and displays
it.
B******N
发帖数: 445
34
来自主题: Java版 - 请问JSP里这个怎么设
It's browser interpret "/" as your application root. not jsp in this case.
the browser always get other files relative to this page or relative to the
tag if it exists. If browser find the url init with "/" it will always
go to web application root to find the path.
now you should know how to set.
k*o
发帖数: 46
35
来自主题: Java版 - 问个JSP和Bean的问题
我想动态输出一个表格
+--------------------------------+
| month | click cnt | visitor cnt|
+--------------------------------|
| Jan | 1180 | 200 |
...
...
+--------------------------------|
| Dec | 1030 | 160 |
+--------------------------------+
这里月份,click cnt, visitor cnt都是动态的。
是调用Bean的函数算出来的。
JSP是可以打印HTML语句的。
有没有可能在Bean里面直接打印HTML的语句呢?
多谢。
c*y
发帖数: 137
36
来自主题: Java版 - 问个JSP和Bean的问题

Generally, you don't want to do that bah. That's not why you use Bean. Let
bean do the processing and leave the formatting/displaying to HTML/JSP
r****y
发帖数: 1437
37
来自主题: Java版 - JSP菜鸟一问
写了个jsp,需要调用同一目录下的一个package,执行的时候总是说
找不到那个package。单独运行java的话,那个package就可以被找到。很迷惑。
是不是该在tomcat哪儿设置一下classpath才行?
谢先。
m******t
发帖数: 2416
38
来自主题: Java版 - JSP菜鸟一问

You still need to import the package in the jsp. Read the documentation
on page directives.
m*****e
发帖数: 126
39
来自主题: Java版 - Re: JSP菜鸟一问
JSP files can be at anywhere under your document root. Supporting class files
should be in a special location defined by your web server. Usually the
location is WEB-INF/class. Below this you have the normal directory structures
for packages.
p***p
发帖数: 559
40
据我阅读,大概以下几种
SERVLET里面:
session.get/setAttribut("XXX",XXX)
request.set/getAttribut("XXX",XXX)
PageContext.get/setAttribut("XXX",XXX,SLOPE)
JSP里面可以直接用上面几个常量,或者set bean
请问前两种和最后一种有什么不同么?哪些利弊,一般用哪个
我转递一个自定义的BEAN,很奇怪的是只有session正常,其他都不对,好像程序死在那
里,也不出错,好怪。我觉得是最通常的应用呀,一般出问题会是什么地方呢
另外按一般经验,购物网站一般用REQUEST还是SESSION来保存比较合适。
p***p
发帖数: 559
41
一个普通的JSP/SERVLET实现的类似BBS应有。需要实现类似有短信给某个在线用户的时候
,马上提示该用户(比如弹出一个窗口)。
要求实时性很强,也就是即使该用户不刷屏也能得到消息,SERVER要PUSH。最好不要用每
隔两秒FLASH一下的办法,多谢了。
p***p
发帖数: 559
42
老大,请能详细讲讲么,或者给个例子
另外如果我用一个APLLET监听某端口,然后收到信号后就
作用于JSP网页,请问APPLET如何操作网页里面的JAVASCRIPT呢
p***p
发帖数: 559
43
网上个人资料网页,用户注册的时候可以上载照片.看个人
资料的时候能够显示照片.
请问
1 上载照片到某个目录会,如何将照片存入MYSQL数据库呢
2 如何将照片读出,然后显示在JSP网页上呢
多谢指导
c*y
发帖数: 137
44
It's fairly standard, and covered by almost all JSP/Servlet books. Or you can
google it. Basically you uses a "file" element in the html form, and when user
submit the form, your servlet will open the inputstream of the httprequest and
read the data (handling the multi-part msg).
f*****g
发帖数: 31
45
来自主题: Java版 - 关于Jsp timeout


Don't understand you business logic. But you can try to
create a new session in action of login.jsp
session = request.getSession (true);
w***y
发帖数: 6251
46
如果我的文件很多很多,是放在另外一个硬盘分区的咋办呀
我试过ln , 也不管用
大侠给支个招吧,实在不行就得换jsp server了
//bow
w***y
发帖数: 6251
47
【 以下文字转载自 Programming 讨论区 】
【 原文由 woomy 所发表 】
javascript能访问JSP里的arraylist么? 我google了半天也没找到怎么实现:(
thx a lot!
y*****n
发帖数: 48
48

不知道 :-( 我应该怎么查它啊.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper/docs/api/org/apache/jas
per/JspC.html#processFile(java.lang.String)
we
JSP
code
following
itself
人留
unchecked
which
compiling
after I
followings:
y*****n
发帖数: 48
49

怎么查这个dependency的package啊.谢谢
we
JSP
code
following
itself
人留
unchecked
which
compiling
after I
followings:
org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
org.apache.tools.ant.Target.performTasks(Target.java:369)
c*****s
发帖数: 214
50

java.lang.String[]
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper/docs/api/org/apache/jas
per/JspC.html#processFile(java.lang.String)
we
JSP
code
following
itself
人留
unchecked
which
compiling
after I
followings:
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)