RE: Validator with integer

2003-11-19 Thread Yansheng Lin
Can you turn off 'request a receipt' when you post to a public newsgroup next time? Thanks. To answer your question: Validator does not work with primitive type in older versions, if I remember correctly. I think they fixed it in the newer version, but not sure. -Original Message- From:

RE: data source in struts-config

2003-11-14 Thread Yansheng Lin
Sorry it's Friday, so I have to ask. Why struts implemented its own data-source handling in the first place then, since containers like tomcat already has it? Just curious. Hope it's not one of those 'whole-package-for-dummy' ideas from MS. -Original Message- From

RE: Form submission through java script

2003-11-10 Thread Yansheng Lin
If you do a System.out on action, you will find it's null right now. You need to pass a valid action to the your dispatch Action so that it knows which handler to call. >document.form.action='continue'; -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED] Sent: lundi 10 n

deprecated?

2003-11-10 Thread Yansheng Lin
I was doing some i18n pages and realized that locale is/will? be deprecated soon. The spec provides an alternativ, which is the 'lang' attr, "since struts 1.2". But I am using struct 1.1 right now, so what's the best option for me? Kind of confusing, if you ask me. Since the lastest stable rele

RE: [FRIDAY] Why people want to know who read their msg?

2003-11-07 Thread Yansheng Lin
nt to know who read their msg? --- Adam Hardy <[EMAIL PROTECTED]> wrote: > On 11/07/2003 09:13 PM Yansheng Lin wrote: > > That's not the point. > > > > -Original Message- > > From: James Mitchell [mailto:[EMAIL PROTECTED] > > Sent: November 7, 200

RE: [FRIDAY] Why people want to know who read their msg?

2003-11-07 Thread Yansheng Lin
: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: Friday, November 07, 2003 1:48 PM > To: Struts Users Mailing List > Subject: Re: [FRIDAY] Why people want to know who read their msg? > > > On Fri, 7 Nov 2003, Yansheng Lin wrote: > > > > > It's pissing

RE: [FRIDAY] Why people want to know who read their msg?

2003-11-07 Thread Yansheng Lin
That's not the point. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: November 7, 2003 12:48 PM To: Struts Users Mailing List Subject: Re: [FRIDAY] Why people want to know who read their msg? On Fri, 7 Nov 2003, Yansheng Lin wrote: > > It'

[FRIDAY] Why people want to know who read their msg?

2003-11-07 Thread Yansheng Lin
It's pissing me off when my Outlook asks me if I went to send a notification message. Don't understand it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts-Validation

2003-11-05 Thread Yansheng Lin
lidation for that. you mean to say separate JavaScript or whatever to validate this condition...??? -Ram -Original Message----- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 5:29 PM To: 'Struts Users Mailing List' Subject: RE: Struts-Validation

RE: Struts-Validation

2003-11-05 Thread Yansheng Lin
So you are saying you need something like notRequireIf for field2, right? That's a self-contradiction if you want to use them at the same time. You will need to write your own validation for that. -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent:

RE: [OT] Sysdeo Eclipse plugin for tomcat - working directory

2003-11-05 Thread Yansheng Lin
Um, you can set your $tomcat_home under window -> preference. Is that what you want? I had a problem with my log4j output. I fixed the problem by putting the eclipse/ dir on the same level as the log output. It's been working well for me for a almost year now. And I don't start tomcat anywhere

RE: Application objects

2003-11-04 Thread Yansheng Lin
This is what I did: implements javax.servlet.http.HttpSessionListener This way you don't get tied up with Struts. -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: November 4, 2003 9:24 AM To: Struts Users Mailing List Subject: RE: Application objects Ma

RE: dtd check on validation.xml: date pattern

2003-10-31 Thread Yansheng Lin
I think you can do something like this: Don't know exact syntax though unfortunately:). -Original Message- From: Robert Lamping [mailto:[EMAIL PROTECTED] Sent: October 31, 2003 4:09 PM To: Struts Users Mailing List Subject: dtd check on validation.xml: date pattern I made a stupid m

RE: Design decision for Globals class

2003-10-29 Thread Yansheng Lin
You mean something like GlobalConstants.java class. Isn't that a standard practise nowadays? Where else would you store something like "ROOT_PACKAGE"? With meaningful variable names, GlobalConstants can save you a lot of time trying to matching things up, especially if you uses session.setAttribu

RE: Forward Cannot Be Achieved In One Step

2003-10-28 Thread Yansheng Lin
At the end of your first action execute() method, do a redirect to the second action. Something like the following: return new ActionForward("secondAction.do"); Hope this helps! -Yan -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: October 28, 2003 2:51 PM

RE: Validator vs. XForms

2003-10-15 Thread Yansheng Lin
Sorry, I don't get it. It has nothing to do with the Validator Any pointers appreciated! -Original Message- From: Stephan Wiesner [mailto:[EMAIL PROTECTED] Sent: October 15, 2003 11:49 AM To: Struts Users Mailing List Subject: Validator vs. XForms What is the future of the Valida

RE: display tag and struts

2003-10-15 Thread Yansheng Lin
Hi Frank, you might want to ask this question on display-tag maillist. I subscribed to that list a while ago, and as far as I can tell, there are quite a few nice people on the list. As to your sorting problem, I don't think it has anything to do with the scope. I got it working with request sco

Struts bug or Mozilla bug?

2003-09-29 Thread Yansheng Lin
Hi All, I had an incompatibility problem with the Mozilla browser. Everything worked fine in IE. The fix was simple. The original script: function assignValue(action) { manageFleetForm.action.value = action; manageFleetForm.submit(); } The

RE: Image half loaded?

2003-09-15 Thread Yansheng Lin
//www.struts-atlanta.org 678.910.8017 AIM:jmitchtx > -Original Message- > From: Yansheng Lin [mailto:[EMAIL PROTECTED] > Sent: Monday, September 15, 2003 1:04 PM > To: 'Struts Users Mailing List' > Subject: Image half loaded? > > > > > Any

Image half loaded?

2003-09-15 Thread Yansheng Lin
Anyone having the same problem? My images are cut off vertically sometimes... Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: What's a well defined Struts Project Structure?

2003-09-09 Thread Yansheng Lin
rties and .xml files web.xml struts-config.xml build.xml For a working example, checkout my appfuse project at: http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse HTH, Matt -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Monday, September 08

RE: What's a well defined Struts Project Structure?

2003-09-08 Thread Yansheng Lin
ml files web.xml struts-config.xml build.xml For a working example, checkout my appfuse project at: http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse HTH, Matt -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 10:

What's a well defined Struts Project Structure?

2003-09-08 Thread Yansheng Lin
What a well defined struts project structure would look like? I am always a bit hesitant with where to put things Right now, I have: MyProject |- documentation |- images |- jsps |- styles |- javascript |- WEB-INF |- classes |- bin s

RE: iterator tag

2003-09-08 Thread Yansheng Lin
You sure? 'cause normally what I got is just nothing if the list is empty. If the collection you are iterating over contain null values, the loop will still be performed but no page scope attribute (named by the id attribute) will be created for that loop iteration. You can use the and tags

What's an ActionForm?

2003-08-29 Thread Yansheng Lin
In J2EE pattern catalog, where does an ActionForm Bean fit in? I thought it was a Business Object, but then what is a view helper and a context object? A decorator? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

RE: Applying Taglib Patches

2003-08-29 Thread Yansheng Lin
- download the source display.jar - unjar it to your favorite editor - replace the old .java file with the new one - compile packages - export to display.jar There you go:). -Original Message- From: Mehta, Chirag (IT) [mailto:[EMAIL PROTECTED] Sent: August 29, 2003 7:22 AM To: Strut

RE: Validations in Action Form

2003-08-29 Thread Yansheng Lin
There is no such thing as 'Struts Framework rules'. In fact there is so many ways you can do this validation in struts that it's confusing for anyone new-to-struts. For example you can either use the commons-validator framework(which I use), or inside the validate method comes with struts formBean

RE: Vacancy

2003-08-29 Thread Yansheng Lin
A picture tells a story. A recent photo likely reveals your age, gender, and sometimes personality. Imagine you sit in front of a camera, what would you want yourself to look like? And that tells the others what you *think* is your best self, etc... Photo editing is a big industry in Japan too,

RE: Display Taglib vs HtmlTable

2003-08-29 Thread Yansheng Lin
I think 'htmltable' is a bit more powerful since it's got a few extra goodies you can use. I am not sure if you can sort the whole list with display taglib, but with htmltable you can. Of course I only tried the released versioin of display, I will give the 'display09' a try soon. But both will d

RE: J2EE IDE

2003-08-27 Thread Yansheng Lin
I have to take the opposite point of view. They are all good. It's your own programming skill that matters the most. -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: August 27, 2003 2:36 PM To: Struts Users Mailing List Subject: RE: J2EE IDE THEY ALL SUCK! Jus

RE: Validator and DispatchAction

2003-08-27 Thread Yansheng Lin
Isn't it weird that there is no name for the action: ...DispatchAction --Action[/... > [ERROR] DispatchAction - -Action[/tr518page1] does not contain method > named error error>java.lang.NoSuchMethodException: error -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTE

RE: RE : Validation failes and returns (almost) empty page.

2003-08-26 Thread Yansheng Lin
... or should I just keep my day job? ;) Kind Regards Rune Bjørnstad. On Tue, 26 Aug 2003, Yansheng Lin wrote: > Forward retains your request arguments(i.e., actionErrors), while an absolute > url submits an entirely new request(i.e., without any actionErrors). > > > -Origi

RE: RE : RE : Validation failes and returns (almost) empty page.

2003-08-26 Thread Yansheng Lin
he validation failed I always get a blank page. the actionErrors was not sent and the page was not displayed. I don't understand why the page was not displayed even if the actionErrors was not forwarded. thomas > -Original Message- > From: Yansheng Lin [mailto:[EMAIL PROTECT

RE: UML

2003-08-26 Thread Yansheng Lin
I think it's Action<---<>YourObject ??? -Original Message- From: Travis Stevens [mailto:[EMAIL PROTECTED] Sent: August 26, 2003 9:31 AM To: Struts Users Mailing List Subject: UML I am trying to represent, in a UML class diagram, a certain architecture. How would one represent

RE: [OT] A date utility? anyone, pls help

2003-08-26 Thread Yansheng Lin
Ok, it's going to work. The Calendar.getTimeInMillis() will return a long int. There is a catch though, DateA has to be larger than DateB, otherwise the mod result will be DateA itself. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: August 26, 2003 8:

RE: [OT] A date utility? anyone, pls help

2003-08-26 Thread Yansheng Lin
How about DateA(mod)DateB? Does it work for floating point:). -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: August 26, 2003 5:28 AM To: Struts Users Mailing List Subject: Re: [OT] A date utility? anyone, pls help Butt, Dudley wrote: > I know you guys are all exce

RE: RE : Validation failes and returns (almost) empty page.

2003-08-26 Thread Yansheng Lin
Forward retains your request arguments(i.e., actionErrors), while an absolute url submits an entirely new request(i.e., without any actionErrors). -Original Message- From: Rune Peter Bjørnstad [mailto:[EMAIL PROTECTED] Sent: August 26, 2003 5:29 AM To: Struts Users Mailing List Subject:

RE: struts and flash

2003-08-25 Thread Yansheng Lin
wish I knew ActionScript well enough to write all my pages in Flash. Anyway, I found this link online: http://www.smartwebby.com/Flash_and_ASP/Flash_sends_data.asp It tells you how to send a request to an ASP page. The basic should be the same. Worth a try:). -Original Message- From:

RE: Suggestions for Calendar Popup taglib?

2003-08-18 Thread Yansheng Lin
Cool! Here is what I always wanted: In jsp: In Action: Calendar inputDate = myForm.getTheDate(); In FormBean: Calendar theDate = new Calendar(); + setter and getter; Kruse, Matt wrote: > I'm going to have some free time soon and I plan to convert my calendar > popup javascript (

RE: validation philosophical question

2003-08-15 Thread Yansheng Lin
nning ;) ) Adam On 08/15/2003 06:24 PM Yansheng Lin wrote: > You misunderstood me. I didn't presume that all my clients will run > javascript(that's one of the issue addressed by the validator framework), but > most of them are anyway(aren't u?). For those ones who are ru

RE: validation philosophical question

2003-08-15 Thread Yansheng Lin
ume *all* clients will support javascript, and thusly will run the client-side validation routines. If you rely only on this happening, and don't do a double-check in the business layers, you're asking for trouble. caveat emptor. From: "Yansheng Lin" <[EMAIL PROTECTED]&

RE: validation philosophical question

2003-08-15 Thread Yansheng Lin
r Action that uses the same signature as ActionForm validate. You can then have your Action call then and return to input should any messages be returned. -Ted. Yansheng Lin wrote: > No, that won't do for high volumn traffic sites. It's too costly. > > The combination of th

RE: uploadfile path

2003-08-14 Thread Yansheng Lin
ailto:[EMAIL PROTECTED] Sent: August 6, 2003 9:47 AM To: Struts Users Mailing List Subject: RE: uploadfile path Hi Yan, I have been using the DiskFile with struts1.1. Works fine. I would be glad if you can give me more details on the problem. regards Alok --- Yansheng Lin <[EMAIL PROTECTED]>

RE: Validator

2003-08-14 Thread Yansheng Lin
ROTECTED] Sent: August 6, 2003 5:13 PM To: 'Struts Users Mailing List' Subject: RE: Validator It's in the code of FieldsCheck.java. I was trying to create one of my own validator and I saw these lines there. Erez -----Original Message- From: Yansheng Lin [mailto:[EMAIL PROT

RE: Cancel Button Not Working in 1.1

2003-08-14 Thread Yansheng Lin
Try: -Original Message- From: Bradley M. Handy [mailto:[EMAIL PROTECTED] Sent: August 7, 2003 1:09 PM To: 'Struts Users Mailing List' Subject: RE: Cancel Button Not Working in 1.1 I don't see anything wrong w/ your tag. However, you're using the tag in the body of the t

RE: Howto pass values of a form to another form

2003-08-14 Thread Yansheng Lin
You can store the fields in the session, which mean you can access them anywhere in your application, until you explictly remove them from the session object. Or you can submit the values of the first form through tag, that way you can access them in your Action Bean. Then in your action bean, y

RE: Struts Validator for map backed beans

2003-08-14 Thread Yansheng Lin
Sorry, I'd like to help you. But I don't quite understand what you are asking. What is "I have codeId (0n) n varies"? If you want to know if you can validate indexed properties, the answer is Yes. See requireiif example on: http://jakarta.apache.org/struts/userGuide/dev_validator.htm

RE: Struts Validator for map backed beans

2003-08-14 Thread Yansheng Lin
Hi! Didn't get a chance to check the newsgroup until now. Try: -Original Message- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: August 11, 2003 1:33 PM To: '[EMAIL PROTECTED]' Subject: RE: Struts Validator for map backed beans I have a map-

RE: Validator for checkboxes input field

2003-08-14 Thread Yansheng Lin
Even thought about using multibox? Here is a good tutorial by Ted Husted: http://husted.com/struts/tips/007.html As to numer of checks, you might want to write your own validator. That's very customized functionality. Hope this helps! -Original Message- From: José Fortunato

RE: validation philosophical question

2003-08-14 Thread Yansheng Lin
Agreed mostly, but... what happens when you want to change some validation rules? You have to change two or more places instead of one if you choose to use other validation methods instead of keeping everything inside the validator framework. The goal of validator framework is to eliminate these

RE: Trouble with validation of nested properties -indexedListProperty?

2003-08-14 Thread Yansheng Lin
I can see one spot that could lead to problem. In your iterate, the var name is "allUsers". However, in your validation.xml, the field property is "email". The name of the iteration var has to be the same as the property name of the array in the form. Hope this works. - Yansheng -Origi

RE: Avoiding jsessionid appending in a redirect

2003-08-14 Thread Yansheng Lin
There is an easier way through httpd config file, but there is a catch -- you won't be able to perform url rewritting anymore. I think you can still use mod_alias.so to do some simpler url modification. I am not sure. Anyway, here is how: *Uncomment the following lines in /conf/httpd.conf:

RE: single checkbox - still use html:multibox?

2003-08-14 Thread Yansheng Lin
ook I have didn't list it so of course I assumed it didn't exist. Any idea what the something special is? The javadocs don't list anything. thanks - dave - Original Message - From: "Yansheng Lin" <[EMAIL PROTECTED]> To: "'Struts Users Mailing L

RE: validation mask for currency

2003-08-14 Thread Yansheng Lin
and the period. > > so this is valid also: > 1,23,22 > 1234,2.3 > > how to do that? (I am really new to regular > expression) > > Thanks. > David > > --- Yansheng Lin <[EMAIL PROTECTED]> wrote: > > Try: > > > property=&quo

RE: validation mask for currency

2003-08-14 Thread Yansheng Lin
Try: mask ^\d{1,3}(,?\d{3})*\.?(\d{1,2})?$ I tested your numbers, it seemed to work; but more testing needed:). -Original Message- From: david chan [mailto:[EMAIL PROTECTED]

RE: validation philosophical question

2003-08-14 Thread Yansheng Lin
nother interface, ie wap/braille/DTMF/IVR, you're going to have to duplicate the validation for that layer. From: "Yansheng Lin" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'"

RE: uploadfile path

2003-08-14 Thread Yansheng Lin
er > location. > > -Dan > > - Original Message - > From: "Yansheng Lin" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" > <[EMAIL PROTECTED]> > Sent: Wednesday, August 06, 2003 8:18 AM > Subject: RE: uploadfile pat

RE: uploadfile path

2003-08-14 Thread Yansheng Lin
theFile is type of FormFile. You can go from there. -Original Message- From: Daniel Massie [mailto:[EMAIL PROTECTED] Sent: August 6, 2003 2:35 AM To: Struts Users Mailing List Subject: uploadfile path I am trying to upload a file using html:file which is received as

RE: multi page validation and page attribute

2003-08-14 Thread Yansheng Lin
You need to set your page attribute in tag. For example: -Original Message- From: Anand M S [mailto:[EMAIL PROTECTED] Sent: August 5, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: multi page validation and page attribute Here is the my validation.xml mask ${money} from my

RE: Struts Validator

2003-08-14 Thread Yansheng Lin
In the default Struts-1.0 binary download, there is an file called struts-example.war, among other war files. Cheers:). -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 9:10 AM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Struts

RE: modules, somethings missing

2003-08-11 Thread Yansheng Lin
Maybe IE will think your page is written in ASP too, and it will try to give you some "help" in the next version:). -Original Message- From: Travis Stevens [mailto:[EMAIL PROTECTED] Sent: August 6, 2003 4:32 PM To: Struts Users Mailing List Subject: Re: modules, somethings missing > >

RE: Welcome.do;jsessionid=C36048429636E35FB1ECAA5978E23132

2003-08-11 Thread Yansheng Lin
2001 August 8th, Craig answered: * From: Craig R. McClanahan * Subject: Re: Why would jsessionid not appear? * Date: Wed, 08 Aug 2001 12:09:26 -0700 The jsessionid path parameter will only be added if the servlet container does not know whether your client suppo

RE: How to realize forward to the same page?

2003-08-11 Thread Yansheng Lin
return new ActionForward(mapping.getInput()); will return you to where you came from. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: August 6, 2003 5:43 AM To: [EMAIL PROTECTED] Subject: How to realize forward to the same page? Hello! I want, that the user

RE: Validator

2003-08-10 Thread Yansheng Lin
??? I don't see it in my validation-rules.xml. Which version are you using? -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: August 6, 2003 3:33 PM To: 'Struts Users Mailing List' Subject: Validator I am trying to figure out the code in struts.validator.FieldsChec

RE: Still struggeling: howto get ActionForward to calling page

2003-08-09 Thread Yansheng Lin
Will this work with browser's back button as well? You need to use session scope for this to work, right? No cache allowed of course... -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: August 6, 2003 8:13 AM To: 'Struts Users Mailing List' Subjec

RE: how to use requiredif

2003-08-08 Thread Yansheng Lin
Same sentiment here. Where is the list of complete variable properties the the var element uses to pass to the validator? I was so confused that field-test[0] and fieldTest[0] both seemed to be valid properties, until I read a tutorial by James Tuner that "Change was made between Beta 1 and RC1,

RE: [OT] RE: JSTL ot struts taglibs?

2003-08-08 Thread Yansheng Lin
Have you even tried Curried Bunny? It's Japanese curry I am talking about. >BTW, how could you eat those poor defenseless bunnies First I have to do the "tongue" test in order to taste the flavoring, then I open up my mouth and slowly take in the rich, creamy chunk of bunny meat Me li

RE: Cancel Button Not Working in 1.1

2003-08-08 Thread Yansheng Lin
statement below: It works now. Thanks for all your help. Natalie Yansheng Lin wrote: > Try: > > > > > -Original Message- > From: Bradley M. Handy [mailto:[EMAIL PROTECTED] > Sent: August 7, 2003 1:09 PM > To: 'Struts Users Mailing List&#

RE: single checkbox - still use html:multibox?

2003-08-08 Thread Yansheng Lin
Um, ? Please read the api carefully if you want to use this tag. There is something you have to do in your form's reset()... -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: August 7, 2003 11:33 AM To: Struts-Users Subject: single checkbox - still use html:multib

RE: Service Locator pattern useful if not using EJBs?

2003-08-07 Thread Yansheng Lin
It's really hard to tell without knowing what kind of struts-based web application you are designing. You might want to find out what service components you will lookup and/or create, and how often are these operations. Struts handles action dispatch pretty well. (On a side note, I am not sure

RE: Not getting javascript Popup on buttons

2003-08-07 Thread Yansheng Lin
Put an alert() in your validateRequired(). Maybe it's not getting called since it's a radio field... -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: August 7, 2003 11:06 AM To: 'Struts Users Mailing List' Subject: Not getting javascript Popup on buttons I have a f

RE: RE: validating a html:select box

2003-08-07 Thread Yansheng Lin
Pushing the limit, eh:). How hard is it to write your own two line JavaScript. Besides, since it's a select box(not a combo), all the options are assumed to be valid from the beginning, why there is an invalid option there:). -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED

RE: Validator

2003-08-07 Thread Yansheng Lin
ue is to be done. Kinda goes back to that old question posted here... It would be the difference between testing .length and .length() !! :-) -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 6:30 PM To: 'Struts Users Mailing List&#x

RE: Date validation and format

2003-08-07 Thread Yansheng Lin
I think there is a trick you can perform with regard to this: > 2) Or is it possible in action read the value of the var named > datePattern in validation for particular form?? You can call your validate method in your Form.validate() initial when you populate the form. If the date forma

RE: NoSuchMethodException

2003-08-01 Thread Yansheng Lin
Subject: RE: NoSuchMethodException Actually, I just tried it, and found out it's deprecated. It's replaced by org.apache.struts.validator.Resources. Use the same method name, just without the ServletContext parameter. -Original Message- From: Yansheng Lin [mailto:[EMAIL PRO

RE: NoSuchMethodException

2003-08-01 Thread Yansheng Lin
PM To: 'Struts Users Mailing List' Subject: RE: NoSuchMethodException I just looked at the API, and the ValidatorUtil class doesn't have a getActionError method. Do you mean the StrutsValidatorUtil class? I tried that but it didn't like the import. :-( -Original Message- F

RE: NoSuchMethodException

2003-08-01 Thread Yansheng Lin
I can see there are several issues here. First I think you might want to supply the ServletContext as well. Second, you want to add the error to Errors collection by adding: errors.add(field.getKey(), ValidatorUtil.getActionError(servletContext, request, va, field)); before the return sta

RE: question about data formating using display taglib

2003-08-01 Thread Yansheng Lin
Does it? How do you use this stylesheet in its tags? The following stylesheet is used in its examples' html pages, its not in its jsp source, just because its tags cannot format data? Maybe I am just not clear about this, please clarify. regards, Victor --- Yansheng Lin <[EMAIL PROTECT

RE: question about data formating using display taglib

2003-08-01 Thread Yansheng Lin
Yes it does. .tableRowHeader { align:center; } .tableRowOdd { align:center; } .tableRowEven { align:center; } ... -Original Message- From: victor gusz [mailto:[EMAIL PROTECTED] Sent: August 1, 2003 11:05 AM To: [EMAIL PROTECTE

RE: Using Struts Validator on Map-backed ActionForms

2003-08-01 Thread Yansheng Lin
I don't think this is legal, i.e., you can not have a bracket inside of property attribute: mailto:[EMAIL PROTECTED] Sent: August 1, 2003 11:24 AM To: '[EMAIL PROTECTED]' Subject: Using Struts Validator on Map-backed ActionForms Hi, I am trying to use the Struts Validator to generate

RE: DynaValidatorForm question

2003-08-01 Thread Yansheng Lin
ginal Message- From: Jones, Marty B. Sent: Friday, August 01, 2003 6:09 AM To: Struts Users Mailing List Subject: RE: DynaValidatorForm question Will this still validate the request parameters when there are actually request parameters present? -Original Message- From: Yansheng Lin [m

RE: DynaValidatorForm question

2003-07-31 Thread Yansheng Lin
Set validate attribute in to false will solve your problem. -Original Message- From: Jones, Marty B. [mailto:[EMAIL PROTECTED] Sent: July 31, 2003 3:37 PM To: [EMAIL PROTECTED] Subject: DynaValidatorForm question I have a class that extends Action (LoginAction) and references a DynaVal

RE: How to rename file in FormFile in struts 1.1 final release

2003-07-31 Thread Yansheng Lin
Same thing happened to me too. There is going to be a lot of debugging for people used this function in 1.0.2 and want to switch to 1.1:). -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: July 31, 2003 6:08 AM To: Struts Subject: How to rename file in FormFile in s

RE: newbie-question: validation across multiple pages

2003-07-31 Thread Yansheng Lin
You might want to use session to store all the values entered in page=1. Then when there is an error in page=2 or page=3, and forward the control back to page=1. Since all the values are session scope, you can access them in your page=1. Remember you have to clean the session though:).

RE: Struts Error Handling Problem

2003-07-30 Thread Yansheng Lin
e for editing! But anyways, I guess what I wanted to emphasis was that you can display errors along with all the form data retained. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: July 30, 2003 3:10 PM To: 'Struts Users Mailing List' Subject: RE: Struts

RE: Struts Error Handling Problem

2003-07-30 Thread Yansheng Lin
What do you mean if there is a reason for this? In the case of an error, you can output error msg through In your case, you might want to try return back to your input instead of forwarding it to the .jsp page. I know they are almost the same, but they is a mirror difference. So here comes th

[OT]Limit of a servlet class file in Struts?

2003-07-29 Thread Yansheng Lin
I thought it was 60k at first, but apparently some of my files are bigger than that(which was quite a surprise, maybe because I used @include). I remember I learned it somewhere that there is a limit on the size of a java class file. So my question is: what's the limit, and who impose the limi

RE: [OT] Is "jsessionid" specific to Tomcat or generic to all web containers?

2003-07-29 Thread Yansheng Lin
Sorry. I was confused:). -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: July 29, 2003 11:22 AM To: Struts Users Mailing List Subject: RE: [OT] Is "jsessionid" specific to Tomcat or generic to all web containers? On Tue, 29 Jul 2003, Yansheng

RE: [OT] Is "jsessionid" specific to Tomcat or generic to all web containers?

2003-07-29 Thread Yansheng Lin
Isn't that for URL rewritting only? When you use a session through cookie, I think you can name it anything you want. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: July 29, 2003 10:12 AM To: Struts Users Mailing List; Struts Users Mailing List Subject: R

RE: submit a form with html:link

2003-07-29 Thread Yansheng Lin
How about: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: July 29, 2003 7:56 AM To: Struts Users Mailing List Subject: Re: submit a form with html:link OnClick is an arbitrary string that is evaluated by the scripting engine, not a URL. try replacing on

RE: tag generation

2003-07-28 Thread Yansheng Lin
Try to put an statement in the header to see what the path renders to. Do you have more than two actions with the same name defined in your struts-config.xml? -Original Message- From: Canning, Chuck [mailto:[EMAIL PROTECTED] Sent: July 28, 2003 3:24 PM To: 'Struts Users Mailing List'

RE: Validation question

2003-07-28 Thread Yansheng Lin
Try errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("errors.userNotFound", "userName"); -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: July 28, 2003 1:37 PM To: [EMAIL PROTECTED] Subject: Validation question I have been using the validator plug-in so

RE: [ANN] brief example using iBATIS from Struts

2003-07-28 Thread Yansheng Lin
Is there any support for OO or OR Databases in iBATIS? Damn, how come OO is not catching up as fast as it should? UML diagram way more powerful than ER diagram!!! -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: July 25, 2003 9:43 AM To: Struts Users Mailing Li

RE: validation sequence

2003-07-25 Thread Yansheng Lin
Ok, if you want to be 100% sure the sequence is right, add an alert() statement in each validate functions:). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: July 25, 2003 2:08 PM To: Struts Users Mailing List Subject: RE: validation sequence This i

RE: validation sequence

2003-07-25 Thread Yansheng Lin
On client side, if your javascript is something like: return validateA(form) && validateMask(form) && validateB(form) than the execution sequence will be from left to right. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: July 25, 2003 1:12 PM To: [EMAI

Struts and Japplets(what's applet good for?)

2003-07-25 Thread Yansheng Lin
I wonder if we could integrate Struts and Applet to do some server-client communication where clients get more control over the UI. Basically what we could do now is limited by what html(form) allows us to do. Often people want to do more on the web than filling out form(like playing games).

RE: Validator range server-side check assumes Integer?

2003-07-25 Thread Yansheng Lin
With or without the double it still tries to validate it as an integer. I suspect intRange will continue to do that. "Yansheng Lin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Try to use 'intRange' instead of 'range'. 'range&#x

RE: OT Posts on this List almost [FRIDAY]

2003-07-24 Thread Yansheng Lin
--Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 24, 2003 3:37 PM To: Struts Users Mailing List Subject: Re: OT Posts on this List almost [FRIDAY] Watch out, you might get blackballed Yansheng Lin wrote: > Hahahaha, > > Oh shoot, I almos

RE: Validator range server-side check assumes Integer?

2003-07-24 Thread Yansheng Lin
Try to use 'intRange' instead of 'range'. 'range' is deprecated. Also if it's a int, why there is a 'double' in depends? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin Sent: July 24, 2003 2:02 PM To: [EMAIL PROTECTED] Subject: Validator range serve

RE: OT Posts on this List

2003-07-24 Thread Yansheng Lin
Hahahaha, Oh shoot, I almost fell off my chair:). -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: July 24, 2003 1:53 PM To: Struts Users Mailing List Subject: Re: OT Posts on this List --- Mark Galbreath <[EMAIL PROTECTED]> wrote: > Ppls... > > Please find anothe

  1   2   >