With lightweight pages resins performance is double of tomcat performance
(400 requests per second compared to aprox 200 requests per second)
I'm just curious. What is the bottleneck with serving pages? With 400
pages/sec is your CPU pegged at 100%? Or is there a disk bottleneck? I
read a re
Hi,
I was looking at the source of Spring and found PropertyEditors
used extensively. I remember that conversion of String to various datatypes
is done
using custom converters in Struts. Can anybody comment on this ? Are we
going to use PropertyEditors that we can register in the next versi
I just got handed a production emergency task. So maybe I will get back to this
late tomorrow then let you know
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020
"This message may contain confidential and/or privileged information. If you
are not the addressee or
Mick,
I copied your DTD's into my files (Struts-config.xml, tiles-defs.xml,
validation.xml, web.xml) and could not reproduce the error (I even did this
with my NIC disabled). Scratch that idea.
How about this idea? Is this a valid commented out section?
Shouldn't here be spaces after the op
struts-config:
==
http://struts.apache.org/dtds/struts-config_1_2.dtd";>
...
web.xml:
===
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
...
action
com.wf.bd.ice.struts.ExtendedActionServlet
config
/WEB
Mick,
What is the DTD in your struts-config.xml file?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 6:50 PM
To: [EMAIL PROTECTED]
Subject: RE: Error upgrading from 1.1 to 1.2.4
Now I am getting another error after following those d
Now I am getting another error after following those directions in my
application logs:
[INFO] PropertyMessageResources - Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - Initializing,
config='org.apache.struts.action.ActionResources',
Interesting! Thanks.
Jack
On Tue, 07 Dec 2004 01:15:13 -0500, Erik Weber <[EMAIL PROTECTED]> wrote:
> This is covered by JMX. For example, see javax.management.timer.Timer
> (which can be initialized/destroyed by a ServletContextListener). The
> idea is that you can schedule asynchronous operat
The only reason for me to have any contact with the container is to
make resources available to the container.
Jack
On Tue, 07 Dec 2004 13:41:06 +0800, Andrew Hill
<[EMAIL PROTECTED]> wrote:
>
> I would never, of course, dream of grabbing a request object, or
> similar things, and holding it in
> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 07, 2004 4:39 PM
> To: Struts Users Mailing List
> Subject: Re: [OT]Threads and Servlets Question
>
>
> JMS, of course, is just a Java application. JMS *is* one of these
> solutions. Or, do I m
JMS, of course, is just a Java application. JMS *is* one of these
solutions. Or, do I misunderstand?
Jack
On Mon, 6 Dec 2004 15:03:09 -0600, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
>
> As has been noted by others, JMS would be the better solution for an
> asynchronous 'process'.
>
>
For me JMS is too heavy duty for this simple task. There are simple
mechanisms for coding job completion, etc.
Jack
On Mon, 6 Dec 2004 13:49:50 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote:
>
>
>
>
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic
> > Sen
I would encourage this behavior, assuming, of course, that you have
the appropriate knowledge of threads and containers. This is
precisely the sort of thing that I think is really perfect for
multi-threading. If not, I would like to know why not too.
Jack
On Mon, 6 Dec 2004 14:39:46 -0600, Jan
Joe,
I tried it on a demo ages ago so I thought I'd pass it along. After
rewiewing the site, I see what you mean.
Regards,
David
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 11:33 AM
To: David G. Friedman; Struts Users Mailing List; D
On Tue, 07 Dec 2004 12:02:52 +0100, Alexander Czernay
<[EMAIL PROTECTED]> wrote:
> The problem is, that only one of those buttons
> works, while the other throws a MissingResourceAction. That sounds like
> a typo, but the strange thing is, that it tries to lookup the button's
> value rather than i
Hi Carlos
I was meant to say ValidatorForm.
Cheers
Ben
On Tue, 7 Dec 2004 09:42:08 -0600, Carlos Cajina <[EMAIL PROTECTED]> wrote:
> Good mornign Ben...
>
> I've settled for the quick & easy solution: there are lots of JavaScript
> scripts that can handle date selection boxes :^) The thing is I
Hello,
I got the following error "Unable to clone action config, recommend
not using wildcards". This error started to happen when i configured the action
to use WildCard Mapping Actions like the following code:
Manutenção de Candidatos sem Detalhes.
> Hi,
>
> If there is extra space(s) in the input field, it looks like ValidatorForm
> does not trim() the string before checking if it is an integer or not. Has
> anyone else had this problem? Please confirm, I will be willing to modify
> the code to fix this problem.
>
> Thanks,
> Bala
>
>
>
On Tuesday 07 December 2004 17:15, Luiz Esmiralha wrote:
> On Mon, 06 Dec 2004 16:55:43 -0500, Frank W. Zammetti
Hi,
> When you are starting out you really can't make the decision all by
> yourself, can you? The only reason you presented for using frames is
> increasing performance. If your appl
An example of what you can do
tiles-def.xml (.main.home defines menus and other things, and extends
layout.jsp):
I put the title in my layout template:
layout.jsp (using JSP 2.0/JSTL/EL - you may have to set resource name to
be the same as the one Struts uses):
...
or using struts tags,
I could have made it between the 21st and 29th when I'm back in the UK
for christmas. But alas not this time.
Mark
On Tue, 7 Dec 2004 17:37:04 -, Marco Mistroni
<[EMAIL PROTECTED]> wrote:
> Hello all,
> Sorry to say that also this time I can't make it..
> I am overwhelmend by work si
Hi,
If there is extra space(s) in the input field, it looks like ValidatorForm
does not trim() the string before checking if it is an integer or not. Has
anyone else had this problem? Please confirm, I will be willing to modify
the code to fix this problem.
Thanks,
Bala
Note: The information
> -Original Message-
> From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 07, 2004 12:07 PM
> To: Struts Users Mailing List
> Subject: Re: LookupDispatchAction doesn't lookup mapping
>
>
> On Tue, 07 Dec 2004 15:54:20 +0100, Alexander Czernay
> <[EMAIL PROTECTED]> w
PLEASE do not take offense from what I am about to say. I do not mean to be
anything but constructive and helpful...
I am concerned that you are trying to build an example for those you will be
teaching because I can see some fundamental misunderstandings, or gaps in your
knowledge. I'd be wi
Have you tried URL rewriting?
--
- Yagiz Erkan -
http://yagiz.blogspot.com
http://www.erkans.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Tue, 07 Dec 2004 15:54:20 +0100, Alexander Czernay
<[EMAIL PROTECTED]> wrote:
> Susan Bradeen wrote:
>
>
>
> >
> >
> >
> >>/**
> >> * Key method for mapping methods to buttons
> >> */
> >>protected Map getKeyMethodMap() {
> >> Map map = new Ha
Simon,
Actions should not hold client-state; instead, you can create a
ShoppingCart in the Action but then save it in the HttpSession.
Without going into to many details, I suggest you take a look at the
Struts MailReader example distributed with Struts.
-Bill Siggelkow
Simon MARTIN wrote:
Hi,
> -Original Message-
> From: Simon MARTIN [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 07, 2004 11:47 AM
> To: [EMAIL PROTECTED]
> Subject: Best practice question: Properties (ShoppingCart) per user
>
>
> Hi,
>
> I'm currently writing a short Struts application without a
> data
Hi,
I'm currently writing a short Struts application without a database (I know that
this would be better, but as it is only for teaching purposes, I don't want to
'overflow' my audience with databases and ORM).
It should be a small online sales system -- I've got ShoppingItems,
ShoppingUsers (w
I am having an odd problem. I've recently discovered how to setup
virtual hosts in tomcat so that i can use something like
"local.myapp.com" instead of "localhost/myapp". I've done this with two
apps. One works fine no problems, but the other (which uses Struts with
Tiles) comes up with a persi
On Tuesday 07 December 2004 12:34, [EMAIL PROTECTED] wrote:
> On Tue, December 7, 2004 10:31 am, Derek Broughton said:
> > If you're going to do something that makes it worthwhile putting the JS
> > in the
> > frame, you probably should be using a script file - in which case it is
> > cached anyway
Hello all,
Sorry to say that also this time I can't make it..
I am overwhelmend by work since my company is going to release our
product soon .
Hopefully I see you all next time...
Merry xmas and happy new year to everybody
Regards
marco
-Original Message-
From: P
Thanks Niall very much.
That is really nice. It works !!!.
Thanks once again. :)
--- Niall Pemberton <[EMAIL PROTECTED]>
wrote:
> Try the tag...
>
> name="empForm"
> property="salaryList"
> label="salaryLabel"
> value="salaryValue"/>
>
> -Original Message-
> From: josh [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 07, 2004 9:50 AM
> To: Struts Users Mailing List
> Subject: RE: no sessions
>
>
> This is related to an earlier email that I sent with the subject
> "Session Invalidation in JSP" The problem is the sa
This is related to an earlier email that I sent with the subject
"Session Invalidation in JSP" The problem is the same one, I am just
more specific with my question this time.
In my other question I mentioned that I had designed a portal as a
collection of smaller struts apps. One of these app i
Hi Niall
I upgrade my tomcat to 4.1.31 and now it works as you'd expect.
Ps: I had reveresed the tags that you mention in the last mail to invoke
struts into an exception to double check if I was seeing errors. Sorry I
forgot to re-order it before I sent it to you last time. I was adding to
At 7:48 PM -0500 12/6/04, David G. Friedman wrote:
How about Pow2ACL?
http://pow2acl.sourceforge.net/
David, have you used pow2acl? I like the idea of a good shared ACL
library, but I see some potential issues, at least with their Struts
integration.
First, from the website, it appears that the
> - Original Message -
> From: "Pilgrim, Peter" <[EMAIL PROTECTED]>
====
The next birds-of-feather London Struts Networking meet up is
taking place at
Wagamamas, Leicester Square
"serving great, fresh and nutritious [orientally asian
derived rice/noodles]
On Tue, December 7, 2004 10:31 am, Derek Broughton said:
> If you're going to do something that makes it worthwhile putting the JS in
> the
> frame, you probably should be using a script file - in which case it is
> cached anyway and you get the same savings.
What is caching it? The browser? In
> -Original Message-
> From: josh [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 07, 2004 8:23 AM
> To: Struts Users Mailing List
> Subject: no sessions
>
>
> Is there a way to specify a struts app not to create a session object?
THis sounds like one of those questions where we ha
> -Original Message-
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 07, 2004 3:13 AM
> To: 'Struts Users Mailing List'; 'Yves Sy'
> Subject: RE: getting value of object in a collection via tag
>
>
> Hello yves,
> I got lucky :-) .. it worked
>
>
> -Original Message-
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 07, 2004 2:15 AM
> To: 'Struts Users Mailing List'
> Subject: RE: getting value of object in a collection via tag
>
>
> Hello ,
> Thanx for the reply...
> I was actually wondering if fo
Paul Summers gmail.com> writes:
Thanks again Paul
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Try the tag...
Niall
- Original Message -
From: "struts lover" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 07, 2004 3:56 PM
Subject: jstl and struts tag problem
> Hello Everyone,
>
> I have this problem related to tags.
>
> I am using to set the ActionFor
On Mon, 06 Dec 2004 16:55:43 -0500, Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
> I tend to give just the opposite answer :)
Freedom of speech rules! :)
>
> I agree that frames can be difficult in a number of ways, however, once
> you get a handle on them it's really not a big deal to deal with
Don't use c:set, use bean:define
P.S. Don't ask why
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "struts lover" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 07, 2004 10:56 AM
Subjec
Le mar 07/12/2004 à 16:56, struts lover a écrit :
> property="salaryValue" labelProperty="salaryLabel"/>
For nested properties, you have to use nested tags.
--
SIMON Alexandre
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
Thank you.
Do you know of any struts/frames examples on the web I can look at?
I appreciate your advice.
Nadia
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, December 06, 2004 4:56 PM
To: Struts Users Mailing List
Subject: Re: Tiles or Frames or Both
I
Hi Niall
I've done all that, checked all the jars and copied them into the lib dir
from the bin distro. Replaced all the tld files in WEB-INF from the bin
distro. Took the validator-rules.xml as well.
Everything I have now is officail 1.2.4 with relevant jars.
I'm runnign in tomcat 4.1.18
Thans
Hello Everyone,
I have this problem related to tags.
I am using to set the ActionForm to some
variable, and dont ask why :).
And now I want to access a collection on the form for
the drop down list. How do I do this?
I am doing as follows :
Now further in my JSP, I am doing this for my drop
OK I shoved your struts-config into my webapp.
Firslty I got an exception telling me that the message-resources and plug-in
were in the wrong order:
org.xml.sax.SAXParseException: The content of element type "struts-config"
must match
"(data-sources?,form-beans?,global-exceptions?,global-forwards
If your users are happy with the separate drop-downs for month, date,
and year than this approach allows the greatest control. However, since
the data is spread between multiple input fields, I think you will find
that it is easier to implement validate() yourself instead of trying to
use the V
Good mornign Ben...
I've settled for the quick & easy solution: there are lots of JavaScript
scripts that can handle date selection boxes :^) The thing is I don't know
much about Velocity :^(
As for the validation, with the Validator Framework (VF) you can validate
that the dates entered/select
1) Store them to your relational database,
2) Add oscache to your web application.
3) Change your web.xml so that it contains the following filters.
CacheFilter
com.opensymphony.oscache.web.filter.CacheFilter
CacheFilter
/customer/displayIm
On Monday 06 December 2004 17:55, Frank W. Zammetti wrote:
> Also, with frames you can do some tricks that you can't do otherwise.
> For instance, having a hidden frame with cached data and Javascript
> cuntions can be incredibly powerful.
True...
> You can boost perforance by not
> sending t
Is there a way to specify a struts app not to create a session object?
--
Joshua Cronemeyer
signature.asc
Description: This is a digitally signed message part
Mark,
The elegant way of doing something like this within struts is to
create a separate action for each JSP. If you want the three JSP pages
to use common code, simply create a base action class that each jsp's
action class extends.
That would be my suggestion.
Paul
-- Original Me
Hi niall
Yes, it's definatly being deployed like that. I've looked for no-printablew
codes in the text, just in case, but there are none there.
What else could be stopping it from reading the properties?
I've attached the full strts-config.xml, validation.xml and
validator-rules.xml
Thanks for
Susan Bradeen wrote:
/**
* Key method for mapping methods to buttons
*/
protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("authors-form.button.create", "create");
map.put("authors-form.button.
I saw your reply as follows:
But what do you put in the xml definition file? The problem is that you can not
use in the JSP page and put in the xml
file for the value of that title string. It won't work.
-
Do you Yahoo!?
All y
Hi all,
I a'm rather new in the use of struts so please be gentle even if my
question seems obvious :)
I'm workin on the possibility to use electronical identity card in Beligium.
A user can use this card for authentication on web application.
For that the web application detect if the user is al
Hi there. Help a struts rookie pls.
I have successfully implemented a two step wizard like interface where I have
A.jsp for the first step and B.jsp for the second step.
But now I need an ability to dynamically change the jsp file at the step 2
based on a field selection during step 1 !
In oth
On Tue, 07 Dec 2004 12:02:52 +0100, Alexander Czernay
<[EMAIL PROTECTED]> wrote:
> I have a strange problem with LookupDispatchAction:
> I built a form displaying several entries from a db as a list. There are
> several buttons for editing/removing the entries an also two buttons for
> paging thoug
Hi all,
I a'm rather new in the use of struts so please be gentle even if my
question seems obvious :)
I'm workin on the possibility to use electronical identity card in Beligium.
A user can use this card for authentication on web application.
For that the web application detect if the user is al
You might want to look at
http://www.michaelmcgrady.com/button/jsp/dispatch_util.jsp.
This would mean, for example, that you could do what you want with the
following code, requiring nothing else:
JSP CODE (changes property="submit" for example, to property="edit.dispatch")
>From your log, its not picking up any properties for the ValidatorPlugin -
most importantly - the "pathnames" one - thats why your not getting any
validator resources initialized.
See these lines
7 Dec 13:07:25 [DEBUG ActionServlet.807] Initializing module path '' plug
ins
7 Dec 13:07:25 [DE
Just checked that. They are OK as regards versions.
I have a breakpoing in org.apache.commons.validator.Validator.java
public Validator(ValidatorResources resources, String formName) {
if (resources == null) {
throw new IllegalArgumentException("Resources cannot be null.")
> they are deployed (trim extra whitespace from JSPs, assemble help
Hi Max,
Do you use an Ant task to trim whitespaces from JSPs?
Thanks,
- Yagiz Erkan -
http://yagiz.blogspot.com
http://www.erkans.com
-
To unsubscribe, e-m
Another thought. You say your using Validator 1.1.3 (and presumably Struts
1.2.4?) - I just took a quick look at the tutorial - their versions of the
validator config files are for Validator 1.0
Make sure your validator-rules.xml is the latest one that ships with Struts
1.2.4 - its in the "lib" fo
The error is basically saying that it can't find any configured validation
resources. Its a problem in your config files either struts or validation.
Its got to be something in how you've configured struts or validator. I
suggest you switch on logging.
You should see INFO log messages for
"org.ap
Hi Niall
Here is the plugin section and there are no errors in the logs that I can
see...
Thansk
Donie
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: 07 December 2004 11:06
To: Struts Users Mailing List
Subject: Re: Exception when app goes to form whi
Hi
I am using Struts with Velocity as a replacement to JSP. I would like
to implement a date drop down list and love to hear your opinions on
the best way to implement it.
I like to have something like these on my ActionForms and use
ValidatorPlugin to validate the data:
[MM] [DD] []
Or
>F
Hi there I'm using struts-el to solve some of my indexed problems.
Inb my action I have a collection of beans, assume this beans have a
property of parentBean which has a name:
bean.getParent().getName() would retreive what I want.
on my jsp I have:
Now here lies my question. The label is th
And the commons-validator.jar is 1.1.3
Donie
-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]
Sent: 07 December 2004 10:51
To: Struts Users Mailing List
Subject: RE: Exception when app goes to form which extends ValidatorForm
Hi David, thatnks for that. I'm only starting
What about your struts-config.xml - do you have the validator PlugIn - can
you show us the entry?
If you do have the Plugin are you getting any errors when the webapp starts
up - check your logs.
Niall
- Original Message -
From: "Donie Kelly" <[EMAIL PROTECTED]>
To: "Struts Users Mailin
I have a strange problem with LookupDispatchAction:
I built a form displaying several entries from a db as a list. There are
several buttons for editing/removing the entries an also two buttons for
paging though the list. The problem is, that only one of those buttons
works, while the other thro
Hi David, thatnks for that. I'm only starting to set up validation so my
file is this simple !
Thanks
Donie
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: 07 December 2004 02:09
To: Struts Users Mailing List
Subject: RE:
yes, also your better off storing to a database if your using j2ee.
--b
On Mon, 6 Dec 2004 14:39:46 -0600, Jan Fetyko <[EMAIL PROTECTED]> wrote:
> This is interesting,
>
> let me ask another related question :
>
> What about a thread (started from the Action) that just resizes an image and
>
> Threads rule!
>
> Seriously though... only use threads if you know how they work :)
Or if your using a modern linux kernel . + 2.6
Otherwise you can say bye bye to your server .
--b
-
To unsubscribe, e-mail: [EMAIL P
Object creation with modern JVM's is not that big a problem.
--b
On Mon, 6 Dec 2004 15:18:12 -0500, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I don't understand your response. Memory (physical and virtual) are also
> finite resources. Does this mean that instantiating new objects is a Ba
Threads rule!
Seriously though... only use threads if you know how they work :)
Quartz can do a lot for you (and is a piece of cake to use in struts apps).
It provides cron like functionality, and can also use persistant tasks that
survive container restarts.
Threads are good for simple unimport
Hello yves,
I got lucky :-) .. it worked
but unfortunately it's beginning of other problems... :-(
thanx anyway for suggestions..
regards
marco
-Original Message-
From: Yves Sy [mailto:[EMAIL PROTECTED]
Sent: 07 December 2004 09:32
To: Struts Users Mailing
I believe that wont work. Seems like you have two choices:
1. Extract the first element in your action and place it in request
scope so you can use a simple in your jsp;
2. use and set the "length" attribute to 1:
I prefer the 1st option.
Regards,
-Yves-
On Tue, 7 Dec 2004 09:14:41
Hello ,
Thanx for the reply...
I was actually wondering if following expression will work also
?
assumed that my bean has a method called getVector which returns a
Collection..
actually I am not sure if it will work if I use a Collection instead of
a Vector...
regards
ma
Hi,
> 1) What do people think about Resin 3.x?
It's very cool, and development under resin is much easier, at least till
3.0.8 (haven't tried 3.0.9 and new performance packs yet)
> 2) I've seen quite a few people say that Resin is faster than Tomcat. Is
> this still true for Tomcat 5.x (not 5.5,
Hi,
> 1) What do people think about Resin 3.x?
It's very cool, and development under resin is much easier, at least till
3.0.8 (haven't tried 3.0.9 and new performance packs yet)
> 2) I've seen quite a few people say that Resin is faster than Tomcat. Is
> this still true for Tomcat 5.x (not 5.5,
86 matches
Mail list logo