struts website

2006-01-10 Thread Riyaz Mansoor
was wondering whats the purpose of the links struts applications, struts sandbox are? the pages they point to are virtually empty. anything coming in (for those pages) ? what's the scoop on this? is it to host sample applications that work on struts? riyaz

Re: long struts-config.xml file

2005-06-16 Thread Riyaz Mansoor
depends on what version of struts u're working on. (i have never worked with 200 or so actions). :) 1) i reduced the number of actions using wildcards in action mapping, and a couple of hidden parameters that i pass to actions. kind of genericised the actions. 2) use extends where

svn Q

2005-06-08 Thread Riyaz Mansoor
have been trying to configure my NetBeans 4.1 to use subversion (SVN) i've downloaded the svn module (beta) but can't seem to figure out how to configure it. the website (http://www.apache.org/dev/version-control.html) does not _seem_ to give how to annonymously check out data. if anybody

date validation

2005-06-06 Thread Riyaz Mansoor
i've got a date validation set up with datePattern -MM-dd, ie standard JDBC SQL format. but date validation seems to pass values of type 1980 (without month or day) and subsequently i get a SQL DATE conversion error. is this expected behavior for date validation? is there a way to

Re: date validation

2005-06-06 Thread Riyaz Mansoor
no i did not; but i cannot use it as i want to allow single digit months/days in user input. more generally; i wud have expected the DateValidator to return FALSE if the user input is form 1980 for pattern -MM-dd anybody wanna weigh in? :) riyaz [EMAIL PROTECTED] wrote: Sorry if

Re: OT Friday - Random sorting

2005-06-03 Thread Riyaz Mansoor
i may be missing something here, but if random is what u want in a collection, then y don't u use Collections.shuffle() ? riyaz Mark Benussi wrote: Hello. I am trying to write a comparator that randomly sorts a collection. I have something like this: new Comparator() {

Re: Newbie Q - Rendering drop down menu

2005-06-02 Thread Riyaz Mansoor
:) when i first read HTML, my first impression was SELECT.size was the same INPUT.size hehe. ie it renders a box/select which contains that many approximate characters IMHO, honestly, i think its a bad choice of attribute name. rows as in TEXTAREA.rows would have been more appropriate than

Re: Using multiple resource bundles

2005-05-31 Thread Riyaz Mansoor
arg key=field.displayname bundle=mybundle position=0 / riyaz Duggirala, Satyavati wrote: Hi We use multiple resource bundles in our Application. By default Struts gets the error messages used in validation.xml from default resource bundle. (ex: arg0 key=prompt.username/

Re: Using multiple resource bundles

2005-05-31 Thread Riyaz Mansoor
- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 3:26 PM To: Struts Users Mailing List Subject: Re: Using multiple resource bundles arg key=field.displayname bundle=mybundle position=0 / riyaz

Re: Using multiple resource bundles

2005-05-31 Thread Riyaz Mansoor
seems fine. you should declare your message resource in struts-config with the name mybundle and it should contain the key myField.displayname r u doing that? Duggirala, Satyavati wrote: I am working on a field whose value is an int in the range 0- My code looks in validation.xml

Re: Using multiple resource bundles

2005-05-31 Thread Riyaz Mansoor
i'm using 1.2.x and 1.3-dev and it works fine. i do remember about an ARG bug in the earlier versions. i suggest u search this mailing list. there might be others who might remember this here. :( Duggirala, Satyavati wrote: Yes, I am doing that and bean:message works fine. I am having

Re: [OT] cloudscape/derby

2005-05-28 Thread Riyaz Mansoor
David G. Friedman wrote: What is wrong with HSQLDB? its storing BINARY objects that are bigger than declared? eg: Photo BINARY(4096) seems to take even 50K GIFs. a way to fix this? now i really don't want to start a flame war or any war :) about which is better (or not) i checked

Re: AW: [OT] cloudscape/derby

2005-05-28 Thread Riyaz Mansoor
Leon Rosenberg wrote: Just out of sudden... Have you tried j2 or j1? whats j2 or j1 ? ^o riyaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[OT] cloudscape/derby

2005-05-27 Thread Riyaz Mansoor
hi guys anybody know whats the status of Derby? former IBM's Cloudscape? i need something more robust that hsqldb :) riyaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[OT] MessageFormat and curly brackets

2005-05-26 Thread Riyaz Mansoor
not strictly struts ... but lots of smart guys here :) String str = arg name=\minlength\ key=\${var:minlength}\ ; MessageFormat mf = new MessageFormat(str); throws error saying can't parse argument number var:minlength how place literal curly brackets in String such that MessageFormat

simple Validator question

2005-05-23 Thread Riyaz Mansoor
i saw a doc which had form name=formaname1,formname2 wondering if multiple forms could be declared like this? sorry but am t tired to test right no :) riyaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Validator inheritance

2005-05-20 Thread Riyaz Mansoor
i asked this same question and the answer i got here is: this was added to Validator but not public release has been made after this. u can download a source distro of validator and compile and use it. form name=myExtForm1 extends=myForm1 the above should work as is - i am using it :) riyaz

for input formatting

2005-04-21 Thread Riyaz Mansoor
hi guys. i would like to standardize some fields on a submitted form. eg: FirstName field shud be first letter capital and the rest simple regardless of whatever Case the submitted text is. am NOT looking to validate against a mask but rather format it transparently what is the best way to do

struts 1.3 dev with validator 1.2 dev

2005-04-21 Thread Riyaz Mansoor
Hi guys sort of a repost - more details using Validator 1.2 (nightly build) on struts 1.3 dev build keep getting this error during validation. and not just for required but all checks. error is printed on the tomcat log standard out. further the action to which the form is submitted is executed

form field formatting

2005-04-21 Thread Riyaz Mansoor
hi guys. for all whose interested. all that is needed is 2 files; 1) formatter-rules.xml (of type validation-rules.xml). add file to ValidatorPlugin resource path 2) java class containing methods to execute of course, validating n formatting r very different things. but its small work and

html:multibox

2005-04-18 Thread Riyaz Mansoor
hi reading from past postings this subject has been much talked about. but not finding a solution to my liking i post this question. i want a user a see a set of checkboxes some selected some not. the user is allowed to check uncheck anyone of them. upon form submission, i want the value of the

html:multibox

2005-04-12 Thread Riyaz Mansoor
hi reading from past postings this subject has been much talked about. but not finding a solution to my liking i post this question. i want a user a see a set of checkboxes some selected some not. the user is allowed to check uncheck anyone of them. upon form submission, i want the value of the

Re: Html:messages vs html:errors

2005-04-05 Thread Riyaz Mansoor
I'm a Struts newbie. A lot of the books and documentation I have on Struts is pre 1.2 and uses html:errors and ActionErrors. Given ActionErrors is deprecated, I'd like to use ActionMessages for some new JSPs I'm writing. the usage is the same. actionerrors are dependent on certain keys such