printing from java bean to jsp page

2003-09-22 Thread Michael Ni
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

Yoav do you know how to solve my problem?

2003-09-22 Thread Michael Ni
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

Re: help with domain and ip

2003-09-09 Thread Michael Ni
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

help with domain and ip

2003-09-08 Thread Michael Ni
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!

help with domain and ip

2003-09-08 Thread Michael Ni
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!

java applet loading question

2003-07-14 Thread Michael Ni
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

java applets

2003-06-19 Thread Michael Ni
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

RE: java applets

2003-06-19 Thread Michael Ni
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'

RE: java applets

2003-06-19 Thread Michael Ni
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

RE: java applets

2003-06-19 Thread Michael Ni
-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

RE: java applets

2003-06-19 Thread Michael Ni
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

RE: java applets

2003-06-19 Thread Michael Ni
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

javabeans and awt

2003-06-11 Thread Michael Ni
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.

get property questions

2003-04-02 Thread Michael Ni
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

instance names problem will pay $2 for solution

2003-04-02 Thread Michael Ni
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

Re: instance names problem will pay $2 for solution

2003-04-02 Thread Michael Ni
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

RE: instance names problem will pay $2 for solution

2003-04-02 Thread Michael Ni
: 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

different clients using the same instance of a bean

2003-03-25 Thread Michael Ni
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

Re: different clients using the same instance of a bean

2003-03-25 Thread Michael Ni
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

questions on instances of java beans

2003-03-21 Thread Michael Ni
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

questions on instances of java beans

2003-03-21 Thread Michael Ni
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

RE: questions on instances of java beans

2003-03-21 Thread Michael Ni
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

is there any alternatives to auto refresh

2003-03-16 Thread Michael Ni
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?

application scope question

2003-03-16 Thread Michael Ni
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

Re: application scope question Please help

2003-03-16 Thread Michael Ni
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

javabean, do i need serializable

2003-03-15 Thread Michael Ni
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

javabean constructors

2003-03-15 Thread Michael Ni
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

javabean question

2003-03-14 Thread Michael Ni
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.

javabean loading problem

2003-03-13 Thread Michael Ni
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

Re: javabean loading problem

2003-03-13 Thread Michael Ni
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

Re: javabean loading problem

2003-03-13 Thread Michael Ni
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

javabean question

2003-03-13 Thread Michael Ni
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

javabean help

2003-03-13 Thread Michael Ni
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

cannot shut down

2003-03-06 Thread Michael Ni
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:

Re: cannot shut down

2003-03-06 Thread Michael Ni
? 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

Re: cannot shut down

2003-03-06 Thread Michael Ni
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

when are the java files compiled?

2003-03-06 Thread Michael Ni
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

Re: when are the java files compiled?

2003-03-06 Thread Michael Ni
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

confused student

2003-03-01 Thread Michael Ni
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

ejbs and sql server

2003-02-28 Thread Michael Ni
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?

RE: ejbs and sql server

2003-02-28 Thread Michael Ni
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

RE: ejbs and sql server

2003-02-28 Thread Michael Ni
, 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

Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Michael Ni
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:

RE: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Michael Ni
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

Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Michael Ni
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

2003-02-24 Thread Michael Ni
: 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

having trouble using tomcat

2003-02-23 Thread Michael Ni
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

having trouble using tomcat

2003-02-23 Thread Michael Ni
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