RE: Collections in ActionForm

2004-10-18 Thread Ivan Vasquez
Subject: Re: Collections in ActionForm Ivan Vasquez wrote: >Is is OK to use Collections (or sets, lists, maps for that matter) >inside an ActionForm? We are trying to represent fairly complex >multiple-choice items in our forms

Collections in ActionForm

2004-10-18 Thread Ivan Vasquez
Is is OK to use Collections (or sets, lists, maps for that matter) inside an ActionForm? We are trying to represent fairly complex multiple-choice items in our forms. Ivan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Dissapearing items in cluster

2004-10-14 Thread Ivan Vasquez
Our application has a form with a multiple-selection item. We implemented it by including a List in the ActionForm. Each item in the List is a plain-old object, added from the corresponding Action. When this application runs in a 2-node cluster, items in the List dissappear at random. Session r

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Ivan Vasquez
Unless the tomcat server(s) has fileserver capabilities, you can create an NFS mount to a fileserver share and have your code create Files there. Better yet (IMO), store them in the database as BLOBs so all your data lives at a single location. The decision depends on what use is given to those fi

Repost: File upload but outside session

2004-10-04 Thread Ivan Vasquez
Our users need to upload a file as part of a form submission. We use struts-upload FormFile, but the application breaks when run in a tomcat cluster. Since the form is session-scoped, FormFile has to be serialized for sessions to be replicated but we get a NotSerializableException for org.apach

File upload but outside session

2004-10-01 Thread Ivan Vasquez
Hi, Our users need to upload a file as part of a form submission. First we used struts-upload FormFile as one of the fields of the ActionForm. It worked well until we tested it in a Tomcat cluster. Since the form is session-scoped, the FormFile has to be serialized for sessions to be replicated.

RE: xml as a datasource?

2004-10-01 Thread Ivan Vasquez
> Also, what are the benefits to using xml as a datasource instead of a > db like mysql? Unless you have existing data that cannot be migrated to a relational DB (or other good reason to keep it as XML), I would advise against using XML as data source. Simply put, parsing XML is always comparative

RE: How to prevent directory listing?

2004-09-02 Thread Ivan Vasquez
default org.apache.catalina.servlets.DefaultServlet debug 0 listings false 1 Ivan Vasquez wrote: >Is it possible to prevent a particular Struts webapp from displaying >directory listings? That is, global /conf

How to prevent directory listing?

2004-09-02 Thread Ivan Vasquez
Is it possible to prevent a particular Struts webapp from displaying directory listings? That is, global /conf/web.xml has its DefaultServlet with listings set to true, thus enabling dir listing for all apps. Can I then prevent a particular Struts webapp from doing so by setting something in the lo

RE: Classloading problem

2004-08-31 Thread Ivan Vasquez
: Struts Users Mailing List Subject: Re: Classloading problem [eweber]$ jar tf $TOMCAT_HOME/webapps/Foo.war . . . META-INF/context.xml META-INF/MANIFEST.MF . . . Right? Erik Ivan Vasquez wrote: >Erik, here goes my context.xml, Tomcat renames it the same as the app's >directory. I

RE: Classloading problem

2004-08-31 Thread Ivan Vasquez
/Foo.war . . . META-INF/context.xml META-INF/MANIFEST.MF . . . Right? Erik Ivan Vasquez wrote: >Erik, here goes my context.xml, Tomcat renames it the same as the app's >directory. I assume your Tomcat has autodeploy enabled. > > > >reloadable="true" crossCont

RE: Classloading problem

2004-08-31 Thread Ivan Vasquez
ur web app to work? I can't get this to work (I have gotten them to >>>>work when placed in the conf directory -- though I had to learn the hard >>>>way to take write permissions away from Tomcat after it very rudely >>>>deleted one). The documentatio

RE: Classloading problem

2004-08-31 Thread Ivan Vasquez
of this working, please share it with me. Erik Ivan Vasquez wrote: >Sure, in common/lib it works well. But from Tomcat docs: >http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html > >The following rules cover about 95% of the decisions that application >developers

RE: Classloading problem

2004-08-31 Thread Ivan Vasquez
drivers in common/lib, and my struts jars in WEB-INF/lib of each application, and haven't had any problems. Why do you say "incorrectly"? Erik Ivan Vasquez wrote: >We have Tomcat 5.0.16 and were incorrectly placing common jars (such as >JDBC drivers) in /common/lib. > &g

Classloading problem

2004-08-31 Thread Ivan Vasquez
We have Tomcat 5.0.16 and were incorrectly placing common jars (such as JDBC drivers) in /common/lib. Now we just moved them to /shared/lib (for truly common stuff) and WEB-INF/lib, but now all applications complain giving a java.lang.ClassNotFoundException, just like if things weren't in Tomcat'

RE: [OT] Clustering

2004-08-27 Thread Ivan Vasquez
I assume you ask about an Oracle RAC database. In that case, the mode is "kind-of" ACTIVE/ACTIVE: What you get is a single database mounted by as many instances as cluster nodes you have configured. So every time your application establishes a db connection, it may be served by either cluster nod

Uploading files to a database

2004-08-20 Thread Ivan Vasquez
Hi, What's the preferred way to upload files into a database in a J2EE Web application? Is there any way to stream the file straight from the HttpServletRequest to the database without staging it in the server's filesystem? Thank you, Ivan. ---

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Ivan Vasquez
ActiveSessions. Ivan Vasquez (Compatriota :-) -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2004 4:05 PM To: Struts Users Mailing List Subject: RE: Not Logged in with the same loggin-password if it is already registered. Ricardo: Not sure where you are

RE: How to read from web.xml?

2004-07-16 Thread Ivan Vasquez
M To: Struts Users Mailing List Subject: Re: How to read from web.xml? Ivan Vasquez wrote: >Hi, > >How can I read from web.xml, say, the application's display name? I've >tried several things, but no luck. This isn't really Struts-specific, >but I'm sure this is

How to read from web.xml?

2004-07-12 Thread Ivan Vasquez
Hi, How can I read from web.xml, say, the application's display name? I've tried several things, but no luck. This isn't really Struts-specific, but I'm sure this is an easy one for many of you. Thanks, Ivan.

RE: Strange double-submissions

2004-07-07 Thread Ivan Vasquez
2004 3:02 PM To: Struts Users Mailing List Subject: RE: Strange double-submissions > -Original Message- > From: Ivan Vasquez [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 07, 2004 11:31 AM > To: [EMAIL PROTECTED] > Subject: Strange double-submissions > > > H

Strange double-submissions

2004-07-07 Thread Ivan Vasquez
Hi, We have a form whose last two controls are an html:select and a submit button. The form posts to an Action to insert records into a database. Changing the select control causes a page refresh (posting to the same Action) in order to display other options. We notice that, if the user submits