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
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
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
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
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
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.
> 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
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
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
: 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
/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
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
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
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
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'
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
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.
---
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
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
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.
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
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
22 matches
Mail list logo