RE: Is this the way to do it?
HI Magnus, Make use of the simple datatype 'boolean' instead of the object 'Boolean' boolean BoolDans = false; boolean BoolAllman = false; boolean BoolFof = false; boolean BoolTextil = false; boolean BoolHp = false; if (request.getParameter("IntresseDans") != null) { BoolDans = true; } etc There is simple datatypes for Interger (int), Long (long),...etc. Check the Java basics book for more info. Best regards Joacim Järkeborn Consultant - Systems Development Cell Network Sverige AB __ Volvo IT Dept 9224, ARH4 Gothenburg, Sweden Telephone..: +46 31 765 49 65 Mobilephone: +46 708 78 58 01 E-mail.: [EMAIL PROTECTED] __ > -Original Message- > From: Magnus Jansson [mailto:[EMAIL PROTECTED]] > Sent: den 17 september 2001 09:25 > To: [EMAIL PROTECTED] > Subject: Is this the way to do it? > > > Hi I'm a newbie at both jsp and java. My question is: > > Is this the way to set a (in this case) a Boolean value? This > seems for me who is a Pascal programmer as I create a new > instance of the Boolean object everytime I set a new value? > > Besides it is a lot of code to write? Can I set the value of > the boolean in any other way > > I have the same problem in the other objects of the primitive > types (Integer for example) > > > > Boolean BoolDans = new Boolean(false); > Boolean BoolAllman = new Boolean(false); > Boolean BoolFof = new Boolean(false); > Boolean BoolTextil = new Boolean(false); > Boolean BoolHp = new Boolean(false); > > if (request.getParameter("IntresseDans") != null) {BoolDans > = new Boolean(true);}; > if (request.getParameter("IntresseAllman") != null) > {BoolAllman = new Boolean(true);}; > if (request.getParameter("IntresseFof") != null) {BoolFof = > new Boolean(true);}; > if (request.getParameter("IntresseTextil") != null) > {BoolTextil = new Boolean(true);}; > if (request.getParameter("IntresseHp") != null) {BoolHp = > new Boolean(true);}; > > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - - - - - > Magnus Jansson > IT-Manager > Väddö folkhögskola > 760 40 Väddö > Sweden > > Phone: +46 (0) 176-528 00 > Cellular: +46 (0) 70-370 33 16 > Fax: +46 (0) 176-528 28 > http://www.vaddo.fhsk.se (work) > http://www.jason.pp.se (private) > ICQ: 52797837 > >
Tomcat 4.0 - Setting Working dir ?
Hi, I need to set '%CATALINA_HOME%\work' to 'C:\Temp\work'. How can I do this? Best regards Joacim Järkeborn
RE: Tomcat 4.0 - Setting Working dir ?
> I need to set '%CATALINA_HOME%\work' to 'C:\Temp\work'. I found the setting in '%CATALINA_HOME%\conf\web.xml' jsp org.apache.jasper.servlet.JspServlet logVerbosityLevel WARNING scratchdir C:\Temp\Impact\work 3 It's placing all generated code there BUT when starting Tomcat it creates a '%CATALINA_HOME%\work' directory containing some empty directories. I can't have this since Tomcat will be on a CD later on. Any suggestions? BR Joacim
RE: Tomcat4 and Apache
> I'm installing Tomcat4 Release !! Need I to install Apache ? Nope, you can change Tomcat to listen at port 80. Apache is better to handle static data and do you need very good performance you should use Apache + tomcat. > How I connect Tomcat4 with Apache ? Yes, using mod_webapp connector. For now you need to build it but I recommend that you wait until the binary is available. From: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0/ "Binary and source distributions of the mod_webapp connector will be posted on Wednesday, September 19, 2001, for a variety of platforms. If you wish to build the connector in the mean time, please download the jakarta-tomcat-connectors CVS repository, and follow the build instructions in the README.txt file of the webapp subdirectory." // Jocke
RE: Tomcat 4.0 - Setting Working dir ?
Hi again, I'll give it one more try ;-) Help wanted, see problem below. BR Joacim > -Original Message- > From: Järkeborn Joacim [mailto:[EMAIL PROTECTED]] > Sent: den 18 september 2001 11:57 > To: '[EMAIL PROTECTED]' > Subject: RE: Tomcat 4.0 - Setting Working dir ? > > > > I need to set '%CATALINA_HOME%\work' to 'C:\Temp\work'. > > I found the setting in '%CATALINA_HOME%\conf\web.xml' > > > jsp > > org.apache.jasper.servlet.JspServlet > > logVerbosityLevel > WARNING > > > scratchdir > C:\Temp\Impact\work > > 3 > > > It's placing all generated code there BUT when starting > Tomcat it creates a > '%CATALINA_HOME%\work' directory containing some empty > directories. I can't have this since Tomcat will be on a CD later on. > > Any suggestions? > > BR > Joacim >
RE: How do I fix the Tomcat 4.0 (Catalina) - Bootstrap Error
Do you have a Win9x system? -- 2) An "out of environment space" error when running the batch files in Win9X/ME-based operating systems. Right-click on the STARTUP.BAT and SHUTDOWN.BAT files. Click on "Properties" then on the "Memory" tab. For the "Initial environment" field, enter in something like 4096. After you click apply, Windows will create shortcuts in the directory with which you can use to start and stop the container. -- Best regards Joacim Järkeborn Consultant - Systems Development > -Original Message- > From: Chris [mailto:[EMAIL PROTECTED]] > Sent: den 21 september 2001 17:34 > To: [EMAIL PROTECTED] > Subject: How do I fix the Tomcat 4.0 (Catalina) - Bootstrap Error > > > Hi > > I have installed the Tomcat 4.0 on my machine but when I run > it I get the > following error : > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/catalina/startup/Bootstrap > > How can I fix this or what must I set to get past this error. > I have set > JAVA_HOME and CATALINA_HOME. I see there is a Bootstrap.jar > file in the bin > directory. Should I do something with this? > > Thanx > Chris >
RE: JSP vs. ASP
Some differences: A ASP page is compiled into memory (every time it's accessed I think) A JSP page is pre-processed into a Java class (*.java, Servlet) and then compiled (*.class). This happens ONE time only. If the JSP-page has changed it's being processed again. Everything is on disk. Then it's executed as Servlet. It takes a little more time at first but then are faster than ASP. Best regards Joacim Järkeborn > -Original Message- > From: Andrej Rosenheinrich [mailto:[EMAIL PROTECTED]] > Sent: den 21 september 2001 13:44 > To: [EMAIL PROTECTED] > Subject: JSP vs. ASP > > > Hello, > > writing servlets now for a while i am wondering, whats the big > difference in comparison to asp. Not knowing a lot about asp, > what are > the differences, how to argument in favour or against servlets, and > where can i find more informations? > > thanks, and have a nice weekend! > Andrej >
RE: test environnement
Maybe this would help: http://www7.software.ibm.com/vad.nsf/Data/Document4381?OpenDocument&p=1&BCT=1&Footer=1 Best regards Joacim Järkeborn Consultant - Systems Development Cell Network Sverige AB > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: den 26 september 2001 12:09 > To: [EMAIL PROTECTED] > Subject: test environnement > > > hello, > > i developp in Visual age 4.0 and use a Tomcat test > environnement 3.1. This > is very useful because all jsp are compiled in servlet which > are genereted > in my visual age workspace (easy to debug). The problem is > that this tomcat > test env. is a 3.1 version of Tomcat that's contain a lot's > of bugs. Could > i find a more recent Tomcat Test environnement for visual age > or an other > solution to debug JSP .. > > Patrick PIERRA >
Poolman 2.0.4 and Tomcat 3.2.3
Hi, Since I need to get a DataSource from some JNDI I have downloaded PoolMan 2.0.4. When I am trying to run "JSP Database Client" Tomcat terminates. In /lib I have the following jars: poolman.jar, jdbc2_0-stdext.jar, jta.jar, xerces.jar, mm.mysql-2.0.4-bin.jar I also have the poolman.xml in the same dir, but this is added to CLASSPATH in /bin/tomcat.bat: if exist "%TOMCAT_HOME%\lib\poolman.xml" set CP=%CP%;%TOMCAT_HOME%\lib\poolman.xml What's wrong? Regards Joacim J My poolman.xml (based on poolman.xml.template) jmx mypool java.lang.StringBuffer 10 1 10 6 12 300 2 c:\code\src\poolman\lib\pool.log true dtim9t jdbc/dtim9t org.gjt.mm.mysql.Driver jdbc:mysql://localhost/dtim9t impact impact false 2 0 10 true 600 12 300 10 SELECT id FROM users C:\apache-tomcat\logs\poolman.txt true 100 true 10 120 false beanpool com.codestudio.util.PoolManBean 6 0 50 1200 1200 300 2 C:\apache-tomcat\logs\PoolManServlet.log true com.sun.jdmk.comm.HtmlAdaptorServer Adaptor:name=html 10 8082
[Solved] RE: Poolman 2.0.4 and Tomcat 3.2.3
Hi again, The poolman.xml file wasn't found but it's a bit strange. This is NOT working --- :setClasspath set CP=%TOMCAT_HOME%\conf\poolman\poolman.xml;%TOMCAT_HOME%\classes This is WORKING --- :setClasspath set CP=%TOMCAT_HOME%\conf\poolman;%TOMCAT_HOME%\classes BR Joacim > -Original Message- > From: Järkeborn Joacim [mailto:[EMAIL PROTECTED]] > Sent: den 22 augusti 2001 11:13 > To: '[EMAIL PROTECTED]' > Subject: Poolman 2.0.4 and Tomcat 3.2.3 > > > Hi, > > Since I need to get a DataSource from some JNDI I have > downloaded PoolMan 2.0.4. > When I am trying to run "JSP Database Client" Tomcat terminates. > > In /lib I have the following jars: > poolman.jar, jdbc2_0-stdext.jar, jta.jar, xerces.jar, > mm.mysql-2.0.4-bin.jar > > I also have the poolman.xml in the same dir, but this is > added to CLASSPATH in /bin/tomcat.bat: > if exist "%TOMCAT_HOME%\lib\poolman.xml" set > CP=%CP%;%TOMCAT_HOME%\lib\poolman.xml > > What's wrong? > > Regards > Joacim J > --cut--
RE: [Solved] RE: Poolman 2.0.4 and Tomcat 3.2.3
Yes, of course. I had a temporary error in my brain ;-) // Jocke > -Original Message- > From: Gregor Kovaè [mailto:[EMAIL PROTECTED]] > Sent: den 22 augusti 2001 12:13 > To: [EMAIL PROTECTED] > Subject: Re: [Solved] RE: Poolman 2.0.4 and Tomcat 3.2.3 > > > Hi! > > This is not strange. > Java looks for files in directories. So you specify directories in > classpath or jar files, not files itself. > Both jar files and directories contain files java needs, hence > %TOMCAT_HOME%\conf\poolman\poolman.xml does not contain a file, right? > > Best regards, > Kovi > > At 11:55 22.8.01 +0200, you wrote: > >Hi again, > > > >The poolman.xml file wasn't found but it's a bit strange. > > > >This is NOT working > >--- > >:setClasspath > >set CP=%TOMCAT_HOME%\conf\poolman\poolman.xml;%TOMCAT_HOME%\classes > > > >This is WORKING > >--- > >:setClasspath > >set CP=%TOMCAT_HOME%\conf\poolman;%TOMCAT_HOME%\classes > > > >BR > >Joacim > > > > > -Original Message- > > > From: Järkeborn Joacim [mailto:[EMAIL PROTECTED]] > > Sent: den 22 augusti 2001 11:13 > > To: '[EMAIL PROTECTED]' > > Subject: Poolman 2.0.4 and Tomcat 3.2.3 > > > > > > Hi, > > > > Since I need to get a DataSource from some JNDI I have > > downloaded PoolMan 2.0.4. > > When I am trying to run "JSP Database Client" Tomcat terminates. > > > > In /lib I have the following jars: > > poolman.jar, jdbc2_0-stdext.jar, jta.jar, xerces.jar, > > mm.mysql-2.0.4-bin.jar > > > > I also have the poolman.xml in the same dir, but this is > > added to CLASSPATH in /bin/tomcat.bat: > > if exist "%TOMCAT_HOME%\lib\poolman.xml" set > > CP=%CP%;%TOMCAT_HOME%\lib\poolman.xml > > > > What's wrong? > > > > Regards > > Joacim J > > >--cut--
RE: Graphics with jsp
You can look at JFreeChart at: http://www.jrefinery.com/jfreechart/index.html Best regards Joacim Järkeborn > At 14:00 22.8.01 +0200, you wrote: > >Hi. > >How can i show data with graphics like de follow or similar: > > > >100| . > > 80| . > > 60| . > > 40| > > 20| > > 0| > > 1 2 3 4 > > > >I need access to database, take the data and show with one graphic. > >There are any web where i will find information about this?. >