OT: Formatting web pages for printing.

2002-07-17 Thread Paul Kofon

Hi all,
I'm building a web app for my company that will help us create quotes. The 
quotes are stored as XML files and get translated/displayed in a frame with 
XSLT. Problem is when printing the quotes, there's no way to specify what 
the margins should be. I've tried setting the attributes of the body tag in 
the XSL style-sheet but I'm not getting satifactory results. I don't want 
the user to depend on the browser's Page Setup settings for determining what 
the page would look like finally. Is there a way to set the page margins 
using a style-sheet or something? If there is, I'd like to know, thanks.

Regards,

Paul


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Strange: Tomcat4.0.4 can't find apps!!!

2002-06-20 Thread Paul Kofon

Hi Vikramjit,

Phew! Thanks. I looked at the logs and somewhere at the bottom it showed a 
filter class hadn't been found! That stopped Tomcat dead in it's tracks. 
Actually I had deleted one filter class but it was still referred to in my 
web.xml file! After I removed the filter entry, Tomcat started working. 
Thanks.

Regards,

Paul

From: Vikramjit Singh [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Strange: Tomcat4.0.4 can't find apps!!!
Date: Thu, 20 Jun 2002 09:43:38 +0530

check the logs for errors. in my case, the manager was not working, when i
checked the logs there was some configuration in jdbc realm, due to which 
it
was giving error. hence the manager was not working.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Paul Kofon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002 10:46 AM
To: [EMAIL PROTECTED]
Subject: Strange: Tomcat4.0.4 can't find apps!!!


HI,
I just installed Tomcat 4.0.4. The examples are working well but each time 
I

create a new directory in the webapps directory and create a test html
file, it says the requested resource is not available. Even after a 
Tomcat

restart, I still get the above error message.
I thought I had a peculiar problem on my machine so I installed Tomcat on
another one. However, I still got the same error messages. This isn't the
first time I've used Tomcat so I'm truly puzzled!
As far as I know, I don't have to do anything special for Tomcat to
recognise my own applications. I even tried deploying a .war file. The file
was unpacked but Tomcat would still complain.
I've got JDK1.4, the examples run, so everything seems fine; but I can't
deploy a new app, even a simlpe html page! What could be wrong?

Paul




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Storing Java Objects in SQL

2002-06-12 Thread Paul Kofon

Hi all,
I'm trying to store objects (instances) of a class in Microsoft SQL Server 
2K using the Microsoft-provided JDBC driver, but I've been without any luck 
thus far.
I've used the setObject() method in the PreparedStatement class and set my 
target sql type to BINARY, yet it doesn't work, I keep getting an 
SQLException. A look at the driver documentation shows that this method is 
supported while set/getBlob() aren't.
Is what I'm trying to achieve impossible or am I doing something wrong?
I could serialize the objects to disk but I'll have files lying all over the 
place - storing them in the database per user would be much neater.
I need help fast! I'm Thanks.

Regards,

Paul


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Control user access to directories in J-T ver 3.3 on unix?

2002-05-22 Thread Paul Kofon

Hi,
I usually use custom user access control (nothing really fancy) since my 
passwords are hashed and stored in a database. I never investigated if 
Tomcat could give me the level of control I often need.
If you chose to go the same way (i.e. create your own custom solution), then 
you could very easily write a filter that blocks access to user directories 
and would only allow access depending on criteria that you set. The draw 
back I see is that you're using T3.3. If you want to use filters (which I 
think is a really cool feature in Servlet 2.3), then you'd have to upgrade 
to T4.x.x; unless your apps specifically require T3.3.

Regards,

Paul


From: Christopher Lott [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Control user access to directories in J-T ver 3.3 on unix?
Date: Tue, 21 May 2002 11:29:45 -0400 (EDT)

Hi, please tell me if fine-grained user access control is possible
in J-T, and if so, how to accomplish it.

I'm using Jakarta-Tomcat version 3.3a on a solaris 8 box.
I have access control enabled such that users of my app must
supply a password; this uses a SimpleRealm with a local file
of users and passwords as specified in the context for my webapp
(in conf/apps-myapp.xml).  To gain access to J-T/webapps/myapp,
users enter a password.  So the first line of defense is working.

However, 'myapp' creates directories for each user under webapps/myapp
where users store their work.  Currently, an authenticated (but
malicious) user can access the files for another user by guessing the
appropriate URL under the J-T webapps/myapp/user directory. This is
the hole we need to close.

I'm asking about how to restrict access to specific directories.
I have no need to restrict access on a file-by-file basis.

We specify a role for the users, but it's not clear to me that the
role information is used anywhere (?).

I've read the SimpleRealm part of the Server.xml Configuration
document.  I have scanned the Tomcat Documentation, including the Tomcat
User's Guide, the server configuration, etc.  I've googled the question
with little success (other than some security hole warnings).

I sure hope that I don't have to create an instance of the webapp for
each user!

If it matters, we are using Apache as the front-end, and it forwards
requests on to the J-T server as needed.

Does this have anything to do with Slide (something Google turned up)??

(I don't mean to complain, but I sure would welcome some improvements
in the J-T documentation. :-/)

Thanks in advance, I look forward to hearing from someone.

chris...
(cml at cs dot umd dot edu)

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Calendar in XML/java script

2002-05-20 Thread Paul Kofon

Hi,
I've done one using one JSP page with a bean, one Servlet and some 
JavaScript/DHTML. If you want it, let me know and I'll send it to you, with 
the source code and necessary how-tos.

Cheers,

Paul

From: Uma Munugala [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Calendar in XML/java script
Date: Mon, 20 May 2002 13:22:12 -0400

Hi All
I want a help.
Iam using Apache, tomcat 4.0.3 and struts on windows NT
In my project i need to display a calendar and user can select any date
and i need to display that on my web page.
Is there any software already existing for this in XML/Java script. If so
please any body point to that.


Any help is very much appreciated.



Thanks
Uma



--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Http Sessions and Browsers

2002-03-27 Thread Paul Kofon

Hi all,
I know that a session can be killed by calling session.invalidate() in a 
jsp page. However, I'm not sure what happens when the browser is closed 
before the session is killed. Does the server (Tomcat, this time) still 
hold references to objects that had been created or are they discarded? I 
need to know for sure. Thanks.

Paul


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat4.0 as NT Service

2001-11-20 Thread Paul Kofon


Hi,
Yes. There's a Windows installer that comes with Tomcat 4.x. It makes 
installing Tomcat 4.x as a Windows NT(2K) service as easy as selecting a 
check box during the installation process.

Regards,

Paul

From: Ratnakar  Palle [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Tomcat4.0 as NT Service
Date: Tue, 20 Nov 2001 08:43:01 -0800

Hi All,

I've a quick question. I was successful in running the Tomcat 3.x as NT
Service using jk_nt_service.exe.
Do we've something similar for Tomcat4.x?

Thanks in advance,
-Ratnakar


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Help: Tomcat 3.x/ 4.x and FreeBSD

2001-09-12 Thread Paul Kofon

Hi All,
I just got a request from a friend of mine to help him build a portal for 
his office. Now, he would like to keep using his server which runs FreeBSD. 
I don't have any experience with this OS, however, I'm willing to help my 
friend. My questions are these:
1. Which JDK should I use?
2. Is anyone running Tomcat 3.x or 4.x successfully on FreeBSD? If yes, I'd 
appreciate a brief how-to.
Thanks in advance.

Paul

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Tomcat 4.0b7 and getRequestDispatcher().forward()

2001-09-07 Thread Paul Kofon

Hi,
I moved an application from T3.2.2 to T4.0b7 and I get the following error 
message when a call is made to getRequestDispatcher().forward() in the 
doPost() method of two servlets like this:

getServletConfig().getServletContext().getRequestDispatcher(/pages/my.jsp).forward(request,
 
response);

The strange thing is that from one servlet within the same application, I 
don't get the error message. I take the same application back to T3.2.2 and 
everything is fine. I simply don't get it!

Regards,

Paul.

A Servlet Exception Has Occurred
Exception Report:
org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:543)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:430)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:354)
at DomBuilderServlet.doPost(DomBuilderServlet.java:103)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1000)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093)
at java.lang.Thread.run(Thread.java:484)

Root Cause:
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:670)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1088)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:987)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at 
org.apache.jasper.compiler.JspParseEventListener.(JspParseEventListener.java:148)
at org.apache.jasper.compiler.ParserController.(ParserController.java:154)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:528)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
 

Re: Strange NullPointerException Error in t4.0b7

2001-09-05 Thread Paul Kofon

Hi Craig,
Thanks for the insight. I know I can't assume that all application servers 
will have a webapps directory so actually, I have a properties file that 
provides the absolute path (depending on the platform) to the home 
directory of my web application. However, before I apply any configurations, 
I run some tests using hard-coded values. That's why I came up with the
not-so-portable ../webapps/humantrack/forms. And I was surprised to find 
that a working application wasn't working any more after I changed servers, 
even though their directory structures are identical.
Anyway, I guess I'll just move on to the the Servelt 2.3 spec (good thing 
T4.0 supports it) and use the tip you suggested.

Regards,

Paul



From: Craig R. McClanahan [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Strange NullPointerException Error in t4.0b7
Date: Tue, 4 Sep 2001 08:49:37 -0700 (PDT)



On Tue, 4 Sep 2001, Paul Kofon wrote:

  Date: Tue, 04 Sep 2001 12:03:45
  From: Paul Kofon [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Strange NullPointerException Error in t4.0b7
 
  Hi All,
  I recently downloaded and installed Tomcat 4.0 b7. I found it to be 
quite
  responsive and remarkably faster than it's predecessors. However, my joy 
was
  short-lived when I found out an application which I had written and
  extensively tested under Tomcat 3.2.2. was not working in the T4.0 b7
  environment - I kept getting a NullPointerException error. I snooped 
around
  a bit and found out that the following piece of code was the culprit:
 
  File directory = new File(../webapps/humantrack/forms);
  File files[] = directory.listFiles();
 
  Now, here's the strange thing: directory isn't null but the array,
  files[], is! This code works without change in T3.2.2 as files[] doesn't
  return a null value. What's wrong?
 

Your pathname (../webapps/humantrack/forms) is relative, so it will be
resolved against the current working directory of the servlet container --
something that you should *not* be making any assumptions about.

You can solve your immediate problem with something like this ...

   String contextRoot =
 getServletContext().getRealPath(/);
   if (contextRoot != null) {
   File directory = new File(contextRoot + /../humantrack/forms);
   File files[] = directory.listFiles();
   ...
   } else {
  ... error message ...
   }

but even this will not work *unless* all your web applications are stored
underneath the webapps directory.  In general, you can make *no*
assumptions about this.

A more rigorous approach will often work (assuming that /humantrack is
the context path for a different web app):

   ServletContext sc = getServletContext().getContext(/humantrack/forms);
   if (sc != null) {
   File directory = new File(sc.getRealPath(/forms));
   File files[] = directory.listFiles();
   ...
   } else {
   ... error message ...
   }

but even this is not guaranteed, because servlet containers are allowed to
return null from ServletContext.getContext().

And *all* of the solutions above assume that you are running your web
applications from open directory structures, rather than from WAR files.
This is a common feature of containers, but is not guaranteed to be
available universally.  So, a new feature of the Servlet 2.3 API lets you
ask for URLs of resources within a web application in a portable way
(again, assuming that /humantrack is the context path for your other
app):

   ServletContext sc = getServletContext().getContext(/humantrack/forms);
   Set paths = sc.getResourcePaths(/forms/);

and you can iterate through the paths.  Each of them will be a String that
you can use in calls like:

   InputStream is = sc.getResourceAsStream(path);


  Regards,
 
  Paul
 

Craig McClanahan



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Strange NullPointerException Error in t4.0b7

2001-09-04 Thread Paul Kofon

Hi All,
I recently downloaded and installed Tomcat 4.0 b7. I found it to be quite 
responsive and remarkably faster than it's predecessors. However, my joy was 
short-lived when I found out an application which I had written and 
extensively tested under Tomcat 3.2.2. was not working in the T4.0 b7 
environment - I kept getting a NullPointerException error. I snooped around 
a bit and found out that the following piece of code was the culprit:

File directory = new File(../webapps/humantrack/forms);
File files[] = directory.listFiles();

Now, here's the strange thing: directory isn't null but the array, 
files[], is! This code works without change in T3.2.2 as files[] doesn't 
return a null value. What's wrong?

Regards,

Paul



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




request.getAttribute() problems

2001-07-20 Thread Paul Kofon

Hi all,

I have a Bean whose scope I would like to set to request. I would like to 
retrieve this Bean's instance when the next page is requested.
On the first page, I have:

 jsp:useBean id=beanclass class=BeanClass scope=request /

On the next page, I have:

BeanClass b = (BeanClass) request.getAttribute(beanclass);

However, when I try to use instance b of my Bean,  I get a 
NullPointerException. The strange thing is that the code seemed to working 
in Orion. Is there something I'm doing wrong?
Note that I can use the instance without errors when I set the scope to 
session and use session.getAttribute() instead but I don't want to do 
this as my instance should only last for a request.
I'm using Tomcat 3.2.2/Sun's JDK 1.3.1 on Win2K Pro.

Regards,

Paul




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: request.getAttribute() problems

2001-07-20 Thread Paul Kofon

Hi David,

On the first page, I've got a form with an action pointing to a certain jsp 
page. It's on this page (the one pointed to in the action statement) that I 
try to retrieve the object. Does that make any sense?

Regards,

Paul


From: David Haraburda [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: request.getAttribute() problems
Date: Fri, 20 Jul 2001 12:56:33 -0500

When you say next page, what do you mean?  How are you going from the 
first
page to the second page?  This is important because if you are doing it a
certain way (such as a response.sendRedirect) your request object won't get
passed along...

David

Paul Kofon wrote:

  Hi all,
 
  I have a Bean whose scope I would like to set to request. I would like 
to
  retrieve this Bean's instance when the next page is requested.
  On the first page, I have:
 
   jsp:useBean id=beanclass class=BeanClass scope=request /
 
  On the next page, I have:
 
  BeanClass b = (BeanClass) request.getAttribute(beanclass);
 
  However, when I try to use instance b of my Bean,  I get a
  NullPointerException. The strange thing is that the code seemed to 
working
  in Orion. Is there something I'm doing wrong?
  Note that I can use the instance without errors when I set the scope to
  session and use session.getAttribute() instead but I don't want to 
do
  this as my instance should only last for a request.
  I'm using Tomcat 3.2.2/Sun's JDK 1.3.1 on Win2K Pro.
 
  Regards,
 
  Paul
 
  _
  Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: Generate Excel File

2001-07-19 Thread Paul Kofon

Hi,
I've never done what you'd like to do. But if I remember correctly, the CSV 
text below will display correctly in Excel:

Item,Price
Doll,30
GameBoy,200

You'd have two rows and two columns (with headers Item and Price) of data. 
If the CSV data you're feeding Excel is not formatted like this, then 
chances are that you'd get wrong results - that explains why your single row 
of data isn't showing up correctly.

Regards,

Paul

From: William Kaufman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: Generate Excel File
Date: Wed, 18 Jul 2001 17:58:12 -0700

We've got it working exactly as you say, but only if the data is delimited
with _tabs_, not _commas_.

 -- Bill K.

  -Original Message-
  From: Erin Lester [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 18, 2001 2:21 PM
  To: [EMAIL PROTECTED]
  Subject: Generate Excel File
 
 
  Hi, I'm trying to generate an excel file as the response
  returned from a
  servlet.  I have set the response's content type to
  application/vnd.ms-excel and this seems to cause excel to open.  The
  data I return is comma separated values.
 
  Once upon a time I read on a newsgroup (don't think it was
  this one) that
  someone had done the same thing and excel interpreted the
  data as a csv
  file and it displayed nicely in excel.  Unfortunately excel
  seems to think
  that the entire row of comma separated values that I'm
  sending it is one
  single cell (not a row of cells which are the values between
  the commas).
 
  Can anyone tell me where I'm going wrong or of another way to
  generate an
  excel spreadsheet using JSP?
 
  Thanks!
  Erin
 


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




OFF- TOPIC: Building web forms automatically

2001-05-30 Thread Paul Kofon

Hi everyone,

I have a web-based application that depends heavily on forms. Sometimes, 
these forms have to be custom built according to the need at hand. I've 
thought about using XML/XSLT to generate and transform the forms for 
display. I'm familiar with the Xerces parser and can use to parse XML files. 
My problem however, is that I can't think of a simple way to generate the 
XML files that will contain the data needed to generate the forms. I won't 
want the users of my applications to have to edit the XML files by hand. I 
would want them, instead, to go through a web-based wizard that will 
generate the XML files automatically. Has anyone done this sort of thing 
before? If so, any help would be appreciated.

Thanks.

Paul
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




SV: MySQL Driver Problem on Win 2k

2001-04-23 Thread Paul Kofon

Hi,

I had the same problem when I had to run Tomcat as a Win2K service. In fact 
I posted the problem here but I didn't get any satisfactory answers until 
went to the docs. Now here's what you do:
1. Edit the wrapper.properties file found in the conf directory of your 
Tomcat installation.

2. Add a line like this:
wrapper.class_path=$(wrapper.tomcat_home)\lib\driver.jar
(where driver is the name of your MySQL driver). Make sure the jar file is 
located in the lib directory - it could be anywhere actually, but that is 
how mine is.

3. Make sure the wrapper.tomcat_home property is set correctly. Mine is: 
wrapper.tomcat_home=c:\jboss_tomcat\tomcat

4. Restart the Tomcat service.

That's it!

Paul


From: Warren Crossing [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: MySQL Driver Problem on Win 2k
Date: Mon, 23 Apr 2001 17:04:36 +1000

sorry cant chat!!  but add the .jar file to the /tomcat/server/lib
directory.. its the classpath classloader location.

-Original Message-
From: Evdin Ursan [mailto:[EMAIL PROTECTED]]
Sent: Monday, 23 April 2001 4:44 PM
To: [EMAIL PROTECTED]
Subject: MySQL Driver Problem on Win 2k


Hi All,


Thank you for your answers until now. I have one more problem!
I have MySQL 3.23.XXX installed on a Win 2000 system and I have TOMCAT
3.2.1 running with no problems! If I start TOMCAT SERVICE and I try to
connect throw a JSP page, I got an error like org.gjt.mm.etc driver
not found, but if I start TOMCAT manualy, I a have no problem!

The org\gjt\mm\mysql\... subdir tree it's in a directory called JDBC and
I've added c:\JDBC in my CLASSPATH.

What's wrong?


Evdin

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: NT Service Bug Still in JDK 1.3.1

2001-03-29 Thread Paul Kofon

Hi Mark,

I have checked out what you talked about and I found it to be incorrect.
I run Tomcat as a service the prescribed way on Win2k. My JVM is Sun's 
JDK1.3.1 Beta and I can logout without losing the service.

Paul


From: Steve Ruby [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: NT Service Bug Still in JDK 1.3.1
Date: Tue, 27 Mar 2001 15:11:36 -0700

  Mark Quinsland wrote:
 
  Anyone running Tomcat as a service in NT knows that whenever a user logs 
out of NT, the tomcat service jk_nt_service.exe stops
  running as well.  This worked under JDK 1.2 but not under JDK 1.3.  
After months of denial, Sun announced that it would be
  fixed in JDK 1.3.1.  However, the problem continues to exist in the Beta 
version of JDK 1.3.1.
 
  Until this is fixed (and stable) I cannot recommend to my clients that 
they even plan to migrate from ASP.
 
  Mark Quinsland
  [EMAIL PROTECTED]
 
 
 


There are wrappers for the service out there that provide a workaround, do 
these
not work for you?

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: JDBC + Tomcat NT Service

2001-03-26 Thread Paul Kofon

Hi Randy,
Thanks! I'm sorry I failed to mention that I had put the jar files in the 
lib directory as well. I don't have a problem loading the drivers when I run 
Tomcat normally but I do when I run it as a service - the drivers just 
refuse to load. The JDBC drivers are not the only jars in the lib directory. 
I've got some other jars that I have no problems using even while running 
Tomcat as a Win2K service.
I guess someone has got to check this out. It's strange, but who knows I 
just might be doing something wrong.

Regards,

Paul

From: Randy Layman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: JDBC + Tomcat NT Service
Date: Mon, 26 Mar 2001 08:20:16 -0500


   I always put the drivers into the web app's lib folder and don't
have any problem - Tomcat loads them automatically (if they are .jar files)
and this way you can replace the drivers for one webapp at a time without
affecting the other webapps (this is useful when you are converting several
webapps on a machine - you can rollout the changes one webapp at a time)

   Things to check -
   1.  Path to drivers is actually correct and doesn't contain any
spaces
   2.  Permissions on the JAR file and directory's above (this only
applies if you have changed NT's defaults.  By default Everyone can do
anything with any file or directory).

   Randy



_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: How can i create a login application

2001-03-26 Thread Paul Kofon

HI,
I'm sure there are a number of ways to do this. I have a method I use (which 
might not be the simplest solution). Usually, my protected page is a jsp. 
Now, to get to this jsp, you enter your username and password. When you hit 
the submit button, the request is sent to a servlet that checks the database 
and authenticates user. If the user is listed, the servlet directs the 
request to the protected jsp. The tricky part is writing code in your jsp 
(now this isn't generally advised, but I do it when it is absolutely 
necessary) to check to make sure that the request came from the servlet! If 
it did then the rest of jsp would be loaded otherwise, an error page would 
be produced.
I'm sorry I can't give you any code samples right now but that's the general 
idea. If you're familiar with JSPs, servlets and JDBC, you should get the 
hang of it. Good luck!

Regards,

Paul


From: João Folha [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: How can i create a login application
Date: Mon, 26 Mar 2001 15:09:44 +0100

Hi there.

I am trying to develop a web application, where for some url the users
will need to login.
In this process the users and passwords are in a ms access database.
This application will be use in an intranet.
Some one can advise me, ou give me some example?

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: JDBC + Tomcat NT Service

2001-03-26 Thread Paul Kofon

Hi David,
No I'm not using the Microsoft JVM. I'm actually using Sun's JDK1.3.1 Beta. 
This is so I can run Tomcat as service and still be able to log out from 
Windows without losing the service (the bug was fixed in this release of the 
JDK).

Regards,

Paul


From: David Oxley [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: RE: JDBC + Tomcat NT Service
Date: Mon, 26 Mar 2001 16:01:08 +0100

You aren't using the Microsoft VM are you?

-Original Message-----
From: Paul Kofon [mailto:[EMAIL PROTECTED]]
Sent: 26 March 2001 15:37
To: [EMAIL PROTECTED]
Subject: RE: JDBC + Tomcat NT Service


Hi Randy,
Thanks! I'm sorry I failed to mention that I had put the jar files in the
lib directory as well. I don't have a problem loading the drivers when I 
run

Tomcat normally but I do when I run it as a service - the drivers just
refuse to load. The JDBC drivers are not the only jars in the lib 
directory.

I've got some other jars that I have no problems using even while running
Tomcat as a Win2K service.
I guess someone has got to check this out. It's strange, but who knows I
just might be doing something wrong.

Regards,

Paul

 From: Randy Layman [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: JDBC + Tomcat NT Service
 Date: Mon, 26 Mar 2001 08:20:16 -0500
 
 
  I always put the drivers into the web app's lib folder and don't
 have any problem - Tomcat loads them automatically (if they are .jar 
files)
 and this way you can replace the drivers for one webapp at a time without
 affecting the other webapps (this is useful when you are converting 
several
 webapps on a machine - you can rollout the changes one webapp at a time)
 
  Things to check -
  1.  Path to drivers is actually correct and doesn't contain any
 spaces
  2.  Permissions on the JAR file and directory's above (this only
 applies if you have changed NT's defaults.  By default Everyone can do
 anything with any file or directory).
 
  Randy
 
 

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: JDBC + Tomcat NT Service

2001-03-26 Thread Paul Kofon

Hi David,
No I'm not using the Microsoft JVM. I'm actually using Sun's JDK1.3.1 Beta. 
This is so I can run Tomcat as a service and still be able to log out from 
Windows without losing the service (the bug was fixed in this release of the 
JDK).

Regards,

Paul


From: David Oxley [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: RE: JDBC + Tomcat NT Service
Date: Mon, 26 Mar 2001 16:01:08 +0100

You aren't using the Microsoft VM are you?

-Original Message-----
From: Paul Kofon [mailto:[EMAIL PROTECTED]]
Sent: 26 March 2001 15:37
To: [EMAIL PROTECTED]
Subject: RE: JDBC + Tomcat NT Service


Hi Randy,
Thanks! I'm sorry I failed to mention that I had put the jar files in the
lib directory as well. I don't have a problem loading the drivers when I 
run

Tomcat normally but I do when I run it as a service - the drivers just
refuse to load. The JDBC drivers are not the only jars in the lib 
directory.

I've got some other jars that I have no problems using even while running
Tomcat as a Win2K service.
I guess someone has got to check this out. It's strange, but who knows I
just might be doing something wrong.

Regards,

Paul

 From: Randy Layman [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: JDBC + Tomcat NT Service
 Date: Mon, 26 Mar 2001 08:20:16 -0500
 
 
  I always put the drivers into the web app's lib folder and don't
 have any problem - Tomcat loads them automatically (if they are .jar 
files)
 and this way you can replace the drivers for one webapp at a time without
 affecting the other webapps (this is useful when you are converting 
several
 webapps on a machine - you can rollout the changes one webapp at a time)
 
  Things to check -
  1.  Path to drivers is actually correct and doesn't contain any
 spaces
  2.  Permissions on the JAR file and directory's above (this only
 applies if you have changed NT's defaults.  By default Everyone can do
 anything with any file or directory).
 
  Randy
 
 

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.