offtopic question

2001-07-11 Thread Vilavanh Messien

Hi all,

I am currently building a web application with Struts and I am facing the
following problem.
I am using the CachedRowSet class to retrieve data from my database.
Actually, I have no trouble when I perform a SELECT query. However, when I
perform an UPDATE, DELETE or INSERT query, I get the following error
message: transaction isolation levels not supported.

This exception seems to be thrown only with MS Access and MySql databases.
With Oracle, no exception is thrown and everything seems to work fine ...

That let me suppose that both MS Access and MySql jdbc drivers do not
support yet well the rowset package. Has anyone ever had such experience of
this issue ? or could anyone give me some explanations ?

Thanks in advance,

Vilavanh Messien






RE: i18n - stand for?

2001-02-12 Thread Vilavanh Messien

I18N stands for internationalization et 18 is the number of letters between
I and N.

Vilavanh

-Message d'origine-
De : mmuchnik [mailto:mmuchnik]De la part de Maya Muchnik
Envoy : 12 fvrier, 2001 17:29
 : [EMAIL PROTECTED]
Objet : i18n - stand for?


It is simple question. I18N - what is it means?
(Internationalization...)

Thanks,

Maya




Fruit Glaze Example

2001-01-27 Thread Vilavanh Messien

Hi !

I'm interested in getting the Fruit Glaze Example.
Unfortunately, it is not available anymore on Ted's website.
Is there anyone who could send me the zip file of this example ? (maybe Ted
... :-) )

Thanks in advance.

Vilavanh Messien

-Message d'origine-
De : Ted Husted [mailto:[EMAIL PROTECTED]]
Envoy : 27 janvier, 2001 15:22
 : Struts List
Objet : Re: Who is Craig ?


And, speak at various conferences, including ApacheCon and JavaOne.

Don't imagine there's streaming media of that anyplace?

-T.




RE: Example for Internationalization

2000-12-06 Thread Vilavanh Messien

Hi,
I'm quite interested in your example.
Can you post me your code ?

Thanks

-Message d'origine-
De : Aditya Kapur [mailto:[EMAIL PROTECTED]]
Envoyé : 6 décembre, 2000 12:22
À : Struts-User (E-mail)
Objet : Example for Internationalization


Hi All,
I was building some prototype for my company and I have modified the Struts
out-of-box example to add a language drop down on the Login page (which just
displays English and German) and if the user logs in after selecting the
language as German all the screens are in German.

If anybody is interested I can post the modified example and the code.

Aditya Kapur
Office (248) 699 3275






RE: need some explanations

2000-11-24 Thread Vilavanh Messien

If I understand, destroy() should be called when the servlet container (i.e
Tomcat) is shutdown.
But, in my small application, destroy() seems not to be called so that
information cannot be
written database.xml.
I didn't manage to find where my error is.

Thanks

-Message d'origine-
De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Envoyé : 24 novembre, 2000 15:33
À : [EMAIL PROTECTED]
Objet : Re: need some explanations


Vilavanh Messien wrote:

 I analyzed the struts example in order to develop my own small
application.
 Unfortunatelaty, I don't really understand how the user's information are
 saved
 in the "database.xml" file.
 The DatabaseServlet must write the information in the "database.xml" when
 the destroy() method
 is called.
 My question is how to make the destroy() method perform ?


The destroy() method is called by the servlet container, when it removes
this
servlet from service or when the application is shut down.  Typically,
server
shutdown is the *only* time that a servlet is removed and destroy() is
called.


 How can I do to pass some arguments to the DatabaseServlet ?


This is done by adding init-param entries in the WEB-INF/web.xml file.
See
the Servlet API Specification, version 2.2, for the details -- you can
download
it at:

http://java.sun.com/products/servlet/download.html

There are also a growing number of articles and books covering the servlet
2.2
API that discusses this kind of thing.  I would try looking for "web.xml" in
your favorite search engine, as a starting point.


 Thanks

 Vilavanh

Craig McClanahan





RE: need some explanations

2000-11-24 Thread Vilavanh Messien

Actually, I'm using Tomcat 3.2.
If the prob comes from Tomcat, why the struts example has no trouble with it
?

-Message d'origine-
De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Envoyé : 24 novembre, 2000 16:00
À : [EMAIL PROTECTED]
Objet : Re: need some explanations


Vilavanh Messien wrote:

 If I understand, destroy() should be called when the servlet container
(i.e
 Tomcat) is shutdown.
 But, in my small application, destroy() seems not to be called so that
 information cannot be
 written database.xml.
 I didn't manage to find where my error is.


Tomcat 3.2, right?  There was a bug in Tomcat that causes this.  It was
recently
fixed, and will work correctly in the upcoming final release.


 Thanks


Craig



 -Message d'origine-
 De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Envoyé : 24 novembre, 2000 15:33
 À : [EMAIL PROTECTED]
 Objet : Re: need some explanations

 Vilavanh Messien wrote:

  I analyzed the struts example in order to develop my own small
 application.
  Unfortunatelaty, I don't really understand how the user's information
are
  saved
  in the "database.xml" file.
  The DatabaseServlet must write the information in the "database.xml"
when
  the destroy() method
  is called.
  My question is how to make the destroy() method perform ?
 

 The destroy() method is called by the servlet container, when it removes
 this
 servlet from service or when the application is shut down.  Typically,
 server
 shutdown is the *only* time that a servlet is removed and destroy() is
 called.

 
  How can I do to pass some arguments to the DatabaseServlet ?
 

 This is done by adding init-param entries in the WEB-INF/web.xml file.
 See
 the Servlet API Specification, version 2.2, for the details -- you can
 download
 it at:

 http://java.sun.com/products/servlet/download.html

 There are also a growing number of articles and books covering the servlet
 2.2
 API that discusses this kind of thing.  I would try looking for "web.xml"
in
 your favorite search engine, as a starting point.

 
  Thanks
 
  Vilavanh

 Craig McClanahan




need some explanations

2000-11-23 Thread Vilavanh Messien

I analyzed the struts example in order to develop my own small application.
Unfortunatelaty, I don't really understand how the user's information are
saved
in the "database.xml" file.
The DatabaseServlet must write the information in the "database.xml" when
the destroy() method
is called.
My question is how to make the destroy() method perform ?

How can I do to pass some arguments to the DatabaseServlet ?

Thanks

Vilavanh




RE: Struts/Java/Tomcat/Digester error?

2000-11-15 Thread Vilavanh Messien

I've already had this problem. I think it comes from the version of Struts
you're using.
Try with Tomcat 3.2b7 and Struts-20001114 build. It should work.

Vilavanh Messien

-Message d'origine-
De : Mike Campbell [mailto:[EMAIL PROTECTED]]
Envoyé : 15 novembre, 2000 16:24
À : struts; [EMAIL PROTECTED]
Cc : Eric Baelen (E-mail); [EMAIL PROTECTED]
Objet : Struts/Java/Tomcat/Digester error?


All, When trying to run the struts example, it dies.  We think here it's a
lower level problem than struts, but are at a loss to
figure out what.

It SEEMS the Digester.getParser() dies whenever an XML file is trying to be
read (the database.xml file can't be read and the
action.xml file seems to have problems being read also).

Tomcat is installed to the point where it CAN run servlets and JSP's
successfully.  I'm using it on NT in standalone mode (no
apache).

When Tomcat starts, here's the error.  Anyone have any ideas here?  Thanks.

Digester.getParser:
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 java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:92)
at org.apache.struts.digester.Digester.getParser(Digester.java:284)
at org.apache.struts.digester.Digester.parse(Digester.java:748)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:619)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:291)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)
at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:276)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java:132)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:227)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:201)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
--
Mike Campbell, RD, Norcross, GA
mailto: [EMAIL PROTECTED]
+678.421.4641





Help !!!

2000-11-11 Thread Vilavanh Messien

Hi everybody !!!

In order to test Struts framework, I've just downloaded 
and installed Tomcat 3.1 and Struts 0.5.

I don't manage to install the struts example correctly.
However, I've followed well all the instructions.
I've copied struts-documentation.war and struts-example.war
in tomcat/webapps directory and then I've restarted Tomcat server.

Apparently, there's no prob with struts-documentation.war because
I can browse the documentation of struts correctly with IE 5.

Unfortunately, I still have some trouble with the struts example.
I get an SecurityException each time I restart Tomcat.

Can anyone help me ?

Thanks a lot

Vilavanh Messien



RE: Help !!!

2000-11-11 Thread Vilavanh Messien

I think I've found the origin of my error.
The path to the "database.xml" file seems to be wrong.
Actually, it looks like :
"D:\Utils Java\jakarta-tomcat\webapps\struts-example\/WEB-INF/database.xml"

As you can see, there's a prob in the path with the character "/" and "\".

N.B: I work under Win98 OS.

-Message d'origine-
De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Envoyé : 11 novembre, 2000 19:38
À : [EMAIL PROTECTED]
Objet : Re: Help !!!


Vilavanh Messien wrote:

 Hi everybody !!!

 In order to test Struts framework, I've just downloaded
 and installed Tomcat 3.1 and Struts 0.5.

 I don't manage to install the struts example correctly.
 However, I've followed well all the instructions.
 I've copied struts-documentation.war and struts-example.war
 in tomcat/webapps directory and then I've restarted Tomcat server.

 Apparently, there's no prob with struts-documentation.war because
 I can browse the documentation of struts correctly with IE 5.

 Unfortunately, I still have some trouble with the struts example.
 I get an SecurityException each time I restart Tomcat.

 Can anyone help me ?


Please post the log files and error traceback that you get.  Without
those, it is not possible to know what is really going on.


 Thanks a lot

 Vilavanh Messien

Craig

 servlet.log
 jasper.log
 tomcat.log


RE: Help !!!

2000-11-11 Thread Vilavanh Messien

Actually, I've tried with Tomcat 3.2 and Struts 0.5 and it seems to work
fine.
I also tried with the example of Struts2000-11-10 and it didn't work.

-Message d'origine-
De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Envoyé : 11 novembre, 2000 20:05
À : [EMAIL PROTECTED]
Objet : Re: Help !!!


Vilavanh Messien wrote:

 I think I've found the origin of my error.
 The path to the "database.xml" file seems to be wrong.
 Actually, it looks like :
 "D:\Utils
Java\jakarta-tomcat\webapps\struts-example\/WEB-INF/database.xml"

 As you can see, there's a prob in the path with the character "/" and "\".

 N.B: I work under Win98 OS.


Tomcat 3.1 also had problems with paths that have spaces in them.  You'd be
much better served running under Tomcat 3.2.

Craig



 -Message d'origine-
 De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Envoyé : 11 novembre, 2000 19:38
 À : [EMAIL PROTECTED]
 Objet : Re: Help !!!

 Vilavanh Messien wrote:

  Hi everybody !!!
 
  In order to test Struts framework, I've just downloaded
  and installed Tomcat 3.1 and Struts 0.5.
 
  I don't manage to install the struts example correctly.
  However, I've followed well all the instructions.
  I've copied struts-documentation.war and struts-example.war
  in tomcat/webapps directory and then I've restarted Tomcat server.
 
  Apparently, there's no prob with struts-documentation.war because
  I can browse the documentation of struts correctly with IE 5.
 
  Unfortunately, I still have some trouble with the struts example.
  I get an SecurityException each time I restart Tomcat.
 
  Can anyone help me ?
 

 Please post the log files and error traceback that you get.  Without
 those, it is not possible to know what is really going on.

 
  Thanks a lot
 
  Vilavanh Messien

 Craig

   
   Name: servlet.log
servlet.logType: unspecified type (application/octet-stream)
   Encoding: quoted-printable

  Name: jasper.log
jasper.logType: unspecified type (application/octet-stream)
  Encoding: quoted-printable

  Name: tomcat.log
tomcat.logType: unspecified type (application/octet-stream)
  Encoding: quoted-printable