System.out.print from a java bean writes to the command prompt but how do i
write to a jsp page where inside that jsp page i call the java bean. must i
pass it in as a variable or can i write psuedo code such as
println(htmlblah/html);
if so how.
mike
My question is in the email above from Michael Ni
_
Instant message with integrated webcam using MSN Messenger 6.0. Try it now
FREE! http://msnmessenger-download.com
your browers to go to
123.45.67.89:80
as that is the default port for web services. there is no such thing as
serving on 123.45.67.89. any tcp/ip comm happens on a port on an ip
address.
or i am confused as well?
sai.
On Mon, 08 Sep 2003 21:32:06 -0700, Michael Ni wrote
Hi I have a domain
Hi I have a domain where i can set the ip as 123.45.67.89 however my apache
is set to 123.45.67.89:8080. How do I configure my port 8080 to direct to
123.45.67.89
mike
_
Use custom emotions -- try MSN Messenger 6.0!
Hi I have a domain where i can set the ip as 123.45.67.89 however my apache
is set to 123.45.67.89:8080. How do I configure my port 8080 to direct to
123.45.67.89
mike
_
Use custom emotions -- try MSN Messenger 6.0!
I have this problem where my applet will only work properly if I move the
mouse cursor over the applet. Once I do that all is ok but if I do not the
browser just hangs loading the applet, I just get a grey box. Does anyone
know why? im using java 1.4.1
mike
does anyone know if you can call instances to your own classes from java
applets?
ex.
class MyApplet extends Applet{
MyClass temp = new MyClass();
}
class MyClass {
MyClass()
}
for some reason when i do that everthing below my instantiation gets cut off
mike
i guess my question is in a java applet, can I import javabeans and use
them. I'm having trouble because I cannot make instances of the beans I
import.
mike
From: Michele Neylon :: BlacknightSolutions
[EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List'
of your
webapp.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 3:37 PM
To: [EMAIL PROTECTED]
Subject: RE: java applets
i guess my question is in a java applet, can I import javabeans and use
them. I'm
-INF. That's a protected
directory per the Servlet Specification.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 3:54 PM
To: [EMAIL PROTECTED]
Subject: RE: java applets
Hmm that really is dissapointing. I
I'm trying to make a multiplayer online game. Basically the game is a java
bean on the webserver. Multiple browsers access the same java bean...much
like an application scope scenario. Now I need to display the game with
information inside these beans. the beans reside in my
Hmm my solution to my problem is to get all the information i need first and
pass it to the client where he loads in the applet. Too bad applets aren't
server side.
From: Michael Ni [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: java applets
when i use java applets, i dont have to place them in my web-inf/classes
folder, i can just specify the codebase. However if the files are not in
the classes folder, can I still call the packages of my java beans in the
java applet? Basically I want to use my javabeans in the java applet.
This doesn't work for me.
% String aname = hi %
jsp:getProperty name=%= aname % property=game_id /
however this does
jsp:getProperty name=hi property=game_id /
can someone explain?
mike
_
MSN 8 helps eliminate e-mail viruses. Get 2
i will pay $2 usd if you can solve my problem. i'll send check by mail or
paypal.
my problem is i have a String variable s which stores the name of the
instance i want to create. how do i convert that variable to java code so
that i can use it in my java code.
for instance
this is what i
jsp:useBean id=temp scope=request class=beangame.GameInstance /
jsp:setProperty name=temp property=* /
%
String tempname = temp.getInstance_name();
beangame.Earthquake counter1 =
(beangame.Earthquake)getServletContext().getAttribute(tempname);
if (counter1 == null) {
out.println(is
:
session.setAttribute(tempName); and then later
session.getAttribute(tempName);???
Hamish
-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 1:11 PM
To: [EMAIL PROTECTED]
Subject: Re: instance names problem will pay $2 for solution
jsp:useBean id
How do I have groups of different clients from different browsers use the
same instance of a bean. I'm not talking about application scope.
Application scope is everyone using the same instance of a bean. I'm
talking about bob and joe using one instance of bean A and ken and barbie
using
I copied some code I picked up from a website about application and session
scope. Can someone explain how setAttribute and getAttribute works? what
do the actual parameters do? also when i use jsp useBean, i usually have a
name, which is the name of my instance. Where in servlet code does
if browser A has made an instance of my javabean of session scope, how does
browser B from another computer use the same instance of that javabean. in
otherwords i want to have different browsers use a session bean like an
application scope bean.
mike
if browser A has made an instance of my javabean of session scope, how does
browser B from another computer use the same instance of that javabean. in
otherwords i want to have different browsers use a session bean like an
application scope bean.
mike
context when it's instanciated with the first
client. Then get it out of ServletContext when you want the other client to
use it.
Hope it helps
-reynir
-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: 21. mars 2003 13:44
To: [EMAIL PROTECTED]
Subject: questions
hi,
im trying to implement this online game. currently my only solution to this
is having the browser auto refresh the database through my javabeans. what
are my alternatives? i only want to keep refreshing a bits of information,
not the whole jsp page. must i research into java applets?
for usebean, i know the bean expires for scope session when the browser is
closed. but for scope application, when does the bean expire? does it keep
running even after the person who called the bean exits his browser? if so,
how can the bean terminate itself in an application scope.
mike
except when the application
terminates. You can manipulate them using removeAttribute calls, etc.
On Sun, 2003-03-16 at 16:30, Michael Ni wrote:
for usebean, i know the bean expires for scope session when the browser
is
closed. but for scope application, when does the bean expire? does it
keep
in my javabean, must i include the line
import java.io.Serializable;
and if so, what is the purpose of that line?
mike
_
Protect your PC - get McAfee.com VirusScan Online
can someone explain to me how contructors work with java beans in a jsp
page? heres my question, in the following bean foo1 which does not have a
constructor, if i usebean and then getA, i can get the value of 3
class foo1 {
int a = 3;
int b = 4;
//the rest of the get and set methods
if i have a
C:\Tomcat 4.1\webapps\ROOT\WEB-INF\classes\database\DBConstants.class
that i want to use in my file,
C:\Tomcat 4.1\webapps\ROOT\WEB-INF\classes\database\DBPoolBean.java
how do i import the DBConstants bean to my DBPoolBean? they are in the same
package, database, by the way.
Hi
i put my java bean class files in my web-inf/classes folder but my tomcat is
not detecting it. what do i have to do, ive tried going to my
administrative tools services and restarting apacheive tried restarting
catalina from my command prompt...ive tried restartingwhat is the
i put them in a package called login
a folder called login under classes...what do you guys do after you edit a
javabean? do you stop and start under catalina? or do you restart the
apache service under administrative tools? or do you simply restart yoru
comp?
mike ni
From: Larry
i attached my java bean and my jsp page...its pretty simple...can anyone
find an error?
mike
_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
i have a javabean and i want to call another method from another bean in
another package. how do i do that?
mike
_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
i have a javabean and i want to call another method from another bean in
another package. how do i do that?
mike
_
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
i get this error when shutting down...does anyone know why?
mike
C:\Tomcat 4.1\binshutdown.bat
Using CATALINA_BASE: C:\Tomcat 4.1
Using CATALINA_HOME: C:\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Tomcat 4.1\temp
Using JAVA_HOME: c:\j2sdk1.4.1_01
Catalina.stop: java.net.ConnectException:
?
mike
From: Michael Ni [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: cannot shut down
Date: Thu, 06 Mar 2003 14:52:32 -0800
i get this error when shutting down...does anyone know why?
mike
C:\Tomcat 4.1\binshutdown.bat
Using CATALINA_BASE: C
running on windows.
If you are not running as a service you could always CTRL-C the window
tomcat is running on. or kill the java process via the task manager. At
this point i see that as your only option.
Lloyd
Michael Ni wrote:
heres my dilemma, i dont think my tomcat uses the WEB-INF folder
after i place a java bean in the classes folder such as bean.java, when does
it get compiled into a class? ive been shutdown and starting up but it
hasn't been working. i also restarted the computer and actually tried to
run my jsp page that calls the bean.
mike
the proper path
If it is a jar file, you can put it in lib directory.
This is how mine is done. You will then need to restart your tomcat and it
shoudl work
henry
- Original Message -
From: Michael Ni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 7:36 PM
Subject: when
does anyone have any good online reference material? I'm a student confused
on JavaBeans, EJBs, and what JSP can use. Someone said Java Beans are not
EJBs. Can jsp use java classes on tomcat?
mike ni
_
Help STOP SPAM with
Hi does anyone have examples of EJBs that connect to SQL Server 2000? I
have different queries that i want to run but i want to make my connection
and queries in a EJB so i dont have to retype it in my JSP pages every time
i need it. Also does anyone have examples of JSP pages calling EJBs?
15:01:10 -0500
Well, you should try search example online i.e. through google. EJB is a
standard and should work with any DBMS (usually ;) ). Once you find an
example and it should work on your choice of DBMS.
-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday
, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org
Filip
-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: ejbs and sql server
im unclear how EJBs work with tomkat. do we just put all
My goal is to use JSP to query from my Microsoft SQL Server 2000.
I have successfully created my environments and installed the drivers for
the Microsoft SQL Server 2000 JDBC.
However when i run my script i get the following error
Driver not found:java.lang.ClassNotFoundException:
ive copied to my
C:\Tomcat 4.1\webapps\ROOT\WEB-INF\lib
C:\Tomcat 4.1\common\lib
and it still doesn't work.
has anyone actually got their scripts to query from SQL Server 2000 using
the Microsoft SQL Server 2000 JDBC Driver? seems like sun products never
work with microsofts
michael ni
From
directory. I'm not sure if it will cause major problems but
it's best to put it in one place at one time first.
Also please check your spelling for your driver in the jsp code, you may
have mispelled it and caused it to look for something else.
Michael Ni wrote:
ive copied to my
C
: Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue
Date: Tue, 25 Feb 2003 11:57:15 +0800
Ok, good to hear you got it to work but I'm curious, what was exact cause
of the problem ?
Michael Ni wrote:
Thank you Ian Hunter and the rest of the tomcat crew!!!
Just got it to work!!! I'm
hi im new to tomcat. im having trouble using jsp pages to query my
microsoft sql server 2000. does anyone know how to do this? i've followed
the microsoft instructions but it doens't work still. i created the
CLASSPATH environement variables, but my jsp code looks like it doens't work
hi im new to tomcat. im having trouble using jsp pages to query my
microsoft sql server 2000. does anyone know how to do this? i've followed
the microsoft instructions but it doens't work still. i created the
CLASSPATH environement variables, but my jsp code looks like it doens't work
48 matches
Mail list logo