multiple users error

2003-06-20 Thread Louis Leung
There is an exception that appears in the tomcat log when i'm simulating multiple users (around 50) hitting the application. However, when there is only one or a few users hitting the application, this exception doesn't occur. Anyone has any idea what causes this exception ? Thanks. 2003-06-19

exceptions during load testing

2003-06-19 Thread Louis Leung
Hi all, I did some load testing with my struts application (with tomcat) with around 40 simulated concurrent users. The following exception occurs in the tomcat log for the app. When there is only one or a few users, this exception doesn't pop up. 2003-06-19 14:34:38

Re: exceptions during load testing

2003-06-19 Thread Louis Leung
Oh, forgot to post the actual question. Did anyone experienced this before when they are doing load testing with their application ? Louis Leung wrote: Hi all, I did some load testing with my struts application (with tomcat) with around 40 simulated concurrent users. The following

RE: 2D Collection and nested:iterate

2002-11-13 Thread Louis Leung
Thx Aaron. That solution works great for displaying the data. However, Struts will not know how to populate the List back when the data is received from the user, since the Indices cannot be set in that access wrapper object. -Original Message- From: Arron Bates

2D Collection and nested:iterate

2002-11-12 Thread Louis Leung
Hi all, In my action form there is a 2D collection, both used ArrayList. (i.e. An ArrayList whose elements are ArrayList also) I want to retrieve data (which are all String) from the 2nd layer of the 2D collection using nested:text ... tag so that it can populate the value back

RE: 2D Collection and nested:iterate

2002-11-12 Thread Louis Leung
special, just hold onto that array list so BeanUtils can get at the nested bean properly. Arron. On Wed, 2002-11-13 at 08:20, Louis Leung wrote: Hi all, In my action form there is a 2D collection, both used ArrayList. (i.e. An ArrayList whose elements are ArrayList also) I want

RE: struts 1.1 b2 + Weblogic 7.0 = ....

2002-10-23 Thread Louis Leung
So I guess no one else encountered the same or similar problem before ? How about this, has anyone successfully used Struts 1.1 b2 with Weblogic 7.0 for their web application ? -Original Message- From: Louis Leung Sent: Tuesday, October 22, 2002 4:12 PM To: Struts Users Mailing List

struts 1.1 b2 + Weblogic 7.0 = ....

2002-10-22 Thread Louis Leung
Hi all, Previously my app is deployed in WL (weblogic) 7.0 with struts 1.1 b1 and everything works fine. Then, I upgraded to struts 1.1 b2 by using the new jar files and tld. Now the app crashes randomly, usually when a validation is firing. The crash that I experienced is the app will

Re: Validator and Dates

2002-04-24 Thread Louis Leung
u can make a new class that does custome validation and configure the validator to point to that method example : say this ValidatorExtension class is in package com.A.Z public class ValidatorExtension { public static boolean validateDate(Object bean, ValidatorAction va, Field

struts 1.1 b1 validator

2002-04-18 Thread Louis Leung
does any know whether or not the validator that is included in the struts 1.1 b1 will punch out javascript validators for you ? Because back in 1.0, i used a plug-in validator from http://home.earthlink.net/~dwinterfeldt/ that does both client (javascript) and server side validation -- To

Re: struts 1.1 b1 validator

2002-04-18 Thread Louis Leung
just found out it can, another reason why we should upgrade to 1.1 ;) Louis Leung wrote: does any know whether or not the validator that is included in the struts 1.1 b1 will punch out javascript validators for you ? Because back in 1.0, i used a plug-in validator from http

Re: I18N

2002-04-09 Thread Louis Leung
do u mean changing the propertises of a properties file from english to portuguese ? or do u mean changing the reference from an english propertises file to a portuguese propertises file ? Jefferson Rodrigues de Oliveira e Silva wrote: Hi guys, I have a problem with I18N... how can I change

Re: How do I use Struts tags in JSP and HTML tags?

2002-04-04 Thread Louis Leung
the html tag one should be fine when using the jsp tag with struts tag, it won't work. What you need to do is something like this bean:define id=form name=classname type=classname scope=someScope/ % String currentUseCase = form.getCurrentUseCase(); % jsp:include

Re: Urgent: xml with struts

2002-04-04 Thread Louis Leung
you can do that in the action class Yugandhar_Reddy wrote: Hi,Can anyone tell me how can we make use of xml with strutscan we use struts for converting the xml to valueObjects(java class which hold the set and get methods for the each xml tag) and again valueObjects to xml??Thanks

Re: Log4j Error

2002-03-20 Thread Louis Leung
use rootCategory if u r using log4j 1.1.3 use rootLogger if u r using log4j 1.2 and onwards Steve Wilkinson wrote: You need something like this. log4j.rootCategory=ERROR, R I don't know the log4j.rootLogger is a valid property. The ERROR tells it what level to log and R tells it what

Re: Nested Iterates...

2002-03-13 Thread Louis Leung
have u tried name=items.tests ?? Marcelo Caldas wrote: Hi guys, I have a logic:iterate inside a logic:iterate tag in the following manner: logic:iterate id=items ... logic:iterate id=tests ... html:radio name=tests property=value indexed=true/ ... The problem

Re: dynamicly set an attribute of tags

2002-03-13 Thread Louis Leung
maxlength=40 readonly=%= reg.isReadOnly() % / What is wrong? From: Louis Leung [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: dynamicly set an attribute of tags Date: Tue, 12 Mar 2002 16:14:31 -0500 you

Re: Which first ?

2002-03-12 Thread Louis Leung
well, obviously the html will be the last thing that gets out. the tags are really just java classes defined using the tld, so i assume it is just like compiling many classes and you are asking which class gets compiled first. If you are using tomcat, you can look at the work folder in the

Re: dynamicly set an attribute of tags

2002-03-12 Thread Louis Leung
you can define whether an attribute is a RTExpression (runtime expression) or not. for many of the struts tags, the attributes value can be of a RTExpression. so for your case, you are certainly legal to do something like html:text ... readonly=%=giveMeTrueOrFalse()%/ or any scriplet you

Re: Passing objects in Custom tags

2002-03-12 Thread Louis Leung
depends on how you code your tags. I know that you can do something like putting the object in a certain scope (i.e. session), in your example, it will be some_object, then just have the tag class to retrieve the object by its reference in the right scope. but what it boils down to is just how

Re: dynamicly set an attribute of tags

2002-03-12 Thread Louis Leung
wrote: I got error: Method isReadOnly() not found in class org.apache.jsp.RegForm$jsp. when I define isReadOnly() function the the form and used in the tag: html:text ... readonly=%=isReadOnly()% / Why? From: Louis Leung [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

Re: Is internationalization with japanese possible?

2002-02-28 Thread Louis Leung
i think some browser doesn't work every well with META header. the safer way is to set these info in the http response header by doing %@ page contentType=text/html;charset=UTF-8% in your jsp Rob Breeds wrote: Pretty much - add resources as required. In your JSP add html:html locale=true

Re: i18n - Escape Codes....

2002-02-26 Thread Louis Leung
do request.setCharacterEncoding(response.getCharacterEncoding() ); in the controller servlet (ActionServlet) in the preprocessing method, this will ensure that the request sent back by the user is decoded before anything is done to the parameters Rustad, Aaron wrote: Thanks for everyone's

Re: bean:write format

2002-02-26 Thread Louis Leung
Struts Newsgroup (@Basebeans.com) wrote: Subject: bean:write format From: Brian K. Buckley [EMAIL PROTECTED] === Hello, I am getting the error Attribute format invalid according to the specified TLD when I say bean:write name=widget property=length format=0.00/ Is this the result

Re: How can I make my application international?

2002-02-26 Thread Louis Leung
http://tagunov.newmail.ru/i18n/i18n.html I've been posting this link too many times .. :) Aroui, Dr. Djelloul wrote: Hi, We want to internationalize our b2b-application based on struts-framework und web-logic 6.1. The application run for the westen languages (english,

Re: i18n - Escape Codes....

2002-02-25 Thread Louis Leung
is your jsp pages encoded in the native encoding ? or unicode encoding ? Rustad, Aaron wrote: I am trying i18n my application by adding a Resources_ru.properties, and it seems to work. However, I can not get the Unicode characters to work correctly. I have looked at HP's example, and

Re: i18n and bean:write

2002-02-25 Thread Louis Leung
More on char encoding and i18n : http://tagunov.newmail.ru/i18n/i18n.html Rustad, Aaron wrote: I have a logon page that is internationalized and working correctly. I did this by changing the html header information to work with UTF-8 and I set the @ page contentType to work with utf-8

Re: Parsing ActionForm Strings

2002-02-22 Thread Louis Leung
if i understand you right, you want to change the input, which is Strings, to actual data types (i.e. Dates, Boolean, etc.) in the ActionForm. This issue has been brought up before, read the pass post on : Subject: Re: Form - Bean conversion Date:Fri, 15 Feb 2002 16:47:39 -0500

Re: action without form

2002-02-15 Thread Louis Leung
yes Henry Lu wrote: In Struts, can we setup an action without form in the struts-config.xml file? is the following legal? action pathe=/something type=so.so.somthing scope=request ... /action There is no name specified in this action.

Re: Form - Bean conversion

2002-02-15 Thread Louis Leung
yeah, but on your html:text tag, your property should look something like property=someBean.someProperty then, what struts will do is ActionForm.getSomeBean().getSomeProperty(). Regarding to the actually bean's property something that is not string, I think the ActionServlet does the

Re: Character Encoding wrong just for ApplicationResources!

2002-02-13 Thread Louis Leung
your properties file have to be written in Unicode encoding, not the native encoding, or else java will screw your characters up, since java can only deal with unicode Hertzel Karbasi - OPTinity eBusiness Solutions wrote: Hello All I have added the following to JSP files META

Re: Character Encoding wrong just for ApplicationResources!

2002-02-13 Thread Louis Leung
or you can covert your properties file strings from native to unicode using this method return new String(oldString.getBytes(), encoding); where encoding is the native encoding u used in your properties file more 'bout charset encoding/decoding on this page :

Re: Acton without a Form

2002-02-08 Thread Louis Leung
Strange .. I have the follow in my struts-config.xml, and is working very well actionpath=/changeLocale type=i18nPrototype.ChangeLocaleAction forward name=continue path=/instructor/createInstructor.do/ /action Will Jaynes wrote: Seems like I should know

bean write tag's format

2002-02-07 Thread Louis Leung
Anyone used bean:write tag's format attribute before ?? I looked at the struts-bean.tld, and found that this attribute is not defined by the write tag. Furthermore, I downloaded struts source, and found that it is not even implemented. But this said is supported on Struts' homepage under