Re: passing a map of parameters to a URL

2009-01-21 Thread Nathan Coast
) something else I have yet to think of :) thanks again, Nathan Ralf Fischer wrote: Hi Nathan, On Wed, Jan 21, 2009 at 9:25 AM, Nathan Coast wrote: Hi Dave, Thanks for your tip. Apologies for my newbie-ness. Like I said, I've tried every combination I can think of - except presumably the co

Re: passing a map of parameters to a URL

2009-01-21 Thread Nathan Coast
#x27;d like to add to the URL. Any hints as to the syntax I should use in the s:param tag? cheers, Nathan Dave Newton wrote: Nathan Coast wrote: Is passing a map of params to a construct a url supported by the URL tag? (or some other str

passing a map of parameters to a URL

2009-01-20 Thread Nathan Coast
Hi, Is passing a map of params to a construct a url supported by the URL tag? (or some other struts2 mechanism). I've tried most things but no joy - e.g: ${key} ${value} return the correct values however the s:param doesn't support expressions. thanks

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
apologies if this is a dumb question, but how come there is no validateBoolean? Niall Pemberton wrote: On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi Niall, thanks again for the quick response. I've been looking at the struts and validator source and have a couple of

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
excellent stuff, It would probably have taken me a couple of weeks to get here :) I'll let you know how I got on. cheers Nathan Niall Pemberton wrote: On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi Niall, thanks again for the quick response. I've been looking a

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
to clone form validators so that adding validations to the validator doesn't affect subsequent validations on forms with the same name. any chance you can point me in the right direction before I waste 2 days trying something impossible :) cheers Nathan Niall Pemberton wrote: On 2

Re: type validwhen validation

2007-02-09 Thread Nathan Coast
m validation method is probably what I need. cheers Nathan Niall Pemberton wrote: On 2/9/07, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi, I have two fields in a form. I believe the validwhen rule executes a specific rule (e.g. required) on field a based upon the value of field b. The

type validwhen validation

2007-02-09 Thread Nathan Coast
Hi, I have two fields in a form. I believe the validwhen rule executes a specific rule (e.g. required) on field a based upon the value of field b. The situation I have is that I need to execute different validations on field a determined by the value of field b. Is this possible client sid

[ANN] codeczar security 1.0 final released (incl struts integration)

2006-11-26 Thread Nathan Coast
Hi, The codeczar team is pleased to announce the 1.0 release of the codeczar security component, providing database-driven users, roles and groups for your webapps. * security-admin - a webapp to manage users, roles & groups. * security-client - api access for programmatic security. * tomcat

Re: problems using httpunit / rhino with struts validator

2006-11-22 Thread Nathan Coast
Thanks Niall, perfect, you were right, it was an issue with the jcv_retrieveFormName. I'll post again when I've figured out whether it's caused by rhino, validator, httpunit or a combination of all three :) As a workaround I can override the jcv_retrieveFormName(form) in each jsp to return

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Nathan Coast
need to get http unit to generate the html as a jsp would do and have it parse the form and set up the dom as the browser would - quite how I'm not sure and I guess its easier said than done. Niall On 11/21/06, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi, First off, thanks for the

problems using httpunit / rhino with struts validator

2006-11-21 Thread Nathan Coast
Hi, First off, thanks for the validator - saved me countless hours of writing js. I've started trying to introduce httpunit integration tests to my applications and unfortunately with both js and validator enabled, it barfs in fine style. httpunit 1.6.2, validator 1.3.0, rhino js-1.6R3.jar

[ANN] i18n-1.0 final released

2006-11-05 Thread Nathan Coast
Hi, The codeczar team is pleased to announce the 1.0 release of the i18n component. The codeczar i18n component provides database-driven internationalization (i18n) for Java servlet & jsp web applications. The codeczar I18n component facilitates run-time, cross-cluster i18n management witho

[ANN] security component 1.0-beta (incl struts integration)

2006-10-18 Thread Nathan Coast
Hi, The codeczar team is pleased to announce the 1.0-beta release of the codeczar security component. This component enables db-resident user/role/group security within your webapps. This release includes: * admin webapp to manage users, roles & groups. * client jars to integrate with your we

Re: utf-8 a strange problem

2006-10-03 Thread Nathan Coast
n to html as A&#351;terge and the browser rendered as Aşterge Nathan Coast wrote: Hi, utf-8 seems to be working fine in my apps for internationalised messages, unfortunately it seems to break whenever I use In other words, if I'm attempting to render 'Aşterge' from a reso

utf-8 a strange problem

2006-10-02 Thread Nathan Coast
Hi, utf-8 seems to be working fine in my apps for internationalised messages, unfortunately it seems to break whenever I use In other words, if I'm attempting to render 'Aşterge' from a resource bundle using a property of a bean and I attempt to render it using Interestingly, if I set How

[ANNOUNCE] i18n-1.0-beta released

2006-09-20 Thread Nathan Coast
Hi, The codeczar team is pleased to announce the 1.0-beta release of the i18n component. i18n-admin is a web interface to manage internationalized content within your struts-based web applications. This release provides the following improvements over 1.0-alpha: * language usability enhancem

Re: newbie question about xhtml, html:form, submit button

2006-05-03 Thread Nathan Coast
without struts inserts the name="tryItForm" attribute for the form. With struts inserts the id="tryItForm" attribute. You need to change your javascript to document.getElementById('tryItForm').submit(); David Byron wrote: I've inherited some struts code and I have a question about the ht

Re: [ANN] struts i18n admininistration webabpp

2006-05-03 Thread Nathan Coast
shame I can't spell :) admininistration anyone? Nathan Coast wrote: Hi, I am pleased to announce the alpha release of the codeczar i18n web-app. The purpose is to provide an intuitive gui for managing all internationalised resources within struts web-apps. Messages are stored in

[ANN] struts i18n admininistration webabpp

2006-05-03 Thread Nathan Coast
Hi, I am pleased to announce the alpha release of the codeczar i18n web-app. The purpose is to provide an intuitive gui for managing all internationalised resources within struts web-apps. Messages are stored in a db rather than properties files. i18n.war is released under an Apache OS Lic

Re: unique field validation

2005-05-05 Thread Nathan Coast
the action form, nor in the action. The business logic should throw appropriate exception, which then can be handled by struts part of the application. Regards Leon -Ursprüngliche Nachricht----- Von: Nathan Coast [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 5. Mai 2005 10:43 An: struts-

unique field validation

2005-05-05 Thread Nathan Coast
Hi, Is there a standard way to handle validations that can only occur server-side? e.g. unique fields. I'm guessing you don't have to include the unique validation in any of your validation configuration. Is it simply a case of overriding the validate method in my action form? public ActionErr

max file size - validator - javascript

2005-01-23 Thread Nathan Coast
@struts.apache.org/msg12942.html I'm not even sure if it is possible to find the size of a file upload within javascript. Obviously if it isn't possible from javascript, it can't be implemented in the validator (not in the client at least). cheers Nathan -- Nathan Coast Managing Direct

Re: multiple message resources and validator

2005-01-17 Thread Nathan Coast
part is to then modify Struts - that bit I'm hoping to get round to in the next week or two. Niall ----- Original Message - From: "Nathan Coast" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, January 17, 2005 9:00 AM Subject: multiple message reso

multiple message resources and validator

2005-01-17 Thread Nathan Coast
ingle ApplicationResources.properties from the individual message files. Is there any plan to modify the validator to support multiple message resources? cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834 8733 fax : (852) 2834 8755 web : http://www.codecza

ApplicationResources best practices

2005-01-16 Thread Nathan Coast
/classes/ApplicationResources.properties /WEB-INF/classes/[module-name]/ApplicationResources.properties cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834 8733 fax : (852) 2834 8755 web : http://www.codeczar.com

validation syntax - decimal precision

2005-01-16 Thread Nathan Coast
Hi, I have a price field that I want to validate as a float with these additional constraints 1-3 digits before the decimal, if the decimal exists, 1-2 digits after the decimal. anyone know the regexp that describes this? cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852

Re: exception frustrations - solved

2005-01-16 Thread Nathan Coast
. Nathan Coast wrote: if enclosing page (e.g. tiles layout) forwards to or includes a jsp that throws an error (compile or otherwise) and the enclosing page doesn't have the errorPage directive, the sub-page processing of the error page causes an IllegalStateException (see bottom of email) r

Re: exception frustrations - solved

2005-01-16 Thread Nathan Coast
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Kishore Senji wrote: On Sun, 16 Jan 2005 12:10:37 +0800, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi, I've been strugling for a while with exception handling. I've bee

exception frustrations - solved

2005-01-15 Thread Nathan Coast
throw new JspException(blah blah blah); } I think the JspException(Throwable) constructor was added in jsp 2.0 so I guess backwards compatability is why this isn't in struts (yet). 3) redirecting browsers, saving and retrieving exceptions in sessions I still feel like I should be able to def

validator - intRange - enhancement?

2005-01-13 Thread Nathan Coast
of excluding the integer depends but this then tells me that 'abcdef is not in the range 0 - 2147483647', where 'abcdef is not an integer' would be the better message cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834 8733

firefox javascript error from validation js

2005-01-13 Thread Nathan Coast
ript seems to work fine though. Firefox bug? cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834 8733 fax : (852) 2834 8755 web : http://www.codeczar.com - To unsubscribe, e-mail: [EMA

Exception handling / jsp / tiles

2005-01-09 Thread Nathan Coast
ream until you're sure no exceptions have been thrown, then std servlet exception handling should work. No idea how to do this but if its possible I guess it's a tomcat config. cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834 87

more message questions

2004-12-29 Thread Nathan Coast
7;go' in one place yet still have the flexibility to change some of them to a different label later foo.bar.view.label=go foo.bar.action.label=${foo.bar.view.label} foo.bar.submit.label=${foo.bar.view.label} cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852)

Re: message resources in db

2004-12-29 Thread Nathan Coast
Then you have the apparent fact that by doing so you are now outside the Java provided i18n stuff, when you mention 'java provided i18n stuff' are you referring to the message resources features in struts (message bundles, locales etc)? or have I missed another java feature somewhere? So, you ga

message resources in db

2004-12-29 Thread Nathan Coast
x27;t find this class anywhere. If there is a db implementation for message resources? I guess the natural progression is a web-app gui for managing those resources. Does such a thing exist? cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 283

nested iterate and collection naming

2004-12-15 Thread Nathan Coast
s? If not, how are you supposed to work with collections that may increase in size at the client? thanks Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834 8733 fax : (852) 2834 8755 web : http://www.co

struts to generate html email content

2004-11-25 Thread Nathan Coast
e to a jsp to create the html email content. 4) trap the content (don't return to the user) and send as an email. 5) return a message to user confirming email has been sent. is this possible without having to re-invent a servlet container :) thanks Nathan -- Nathan Coast Managing Director Code

Re: plugin config confusion

2004-11-24 Thread Nathan Coast
lugIn implementation class to have a corresponding public property setter method that can be used to pass on that value. Thus, if you have: then your MyPlugIn class must have a setFoo() method to receive that value. Craig On Thu, 25 Nov 2004 07:59:46 +0800, Nathan Coast <[EMAIL P

plugin config confusion

2004-11-24 Thread Nathan Coast
rties(); } this feels a little awkward, is there a more direct mechanism for a plugin to access its properties? thanks Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834 8733 fax : (852) 2834 8755 web : http://w

startup class

2004-11-24 Thread Nathan Coast
Hi, Is there any way to execute some code when a module loads? I could write servlets with the code in the init method and then declare them in the web.xml. However I'd like to do this on a per-module basis without having to add to the web.xml. Are plugins what I'm looking for?

indexed form properties

2004-11-07 Thread Nathan Coast
getItem(int idx) { some code to ensure the Collection 'grows' and is populated with 'blank' objects to be populated with data } public void setItems(Collection) thanks Nathan -- Nathan Coast Managing Director codeczar ltd mobile: (852) 9049 5581 email: mailto:[EMAIL PRO

LogWeb 2.1, Maven and HttpUnit

2004-10-15 Thread Nathan Coast
for writing HttpUnit test classes. This has been documented here: http://www.codeczar.com/technologies/httpunit/HttpUnitHowTo.html We found this pattern very useful so hopefully others will too. cheers Nathan -- Nathan Coast Managing Director codeczar ltd mobile: (852) 9049 5581 email: mailto

[ANN] maven-struts-module-plugin 1.0

2004-10-14 Thread Nathan Coast
-DartifactId=maven-struts-module-plugin -DgroupId=codeczar-struts -Dversion=1.0 plugin:download Cheers Nathan -- Nathan Coast Managing Director codeczar ltd mobile: (852) 9049 5581 email: mailto:[EMAIL PROTECTED] web:http://www.codeczar.com

Re: logging in Jelly tags

2004-10-12 Thread Nathan Coast
apologies, sent this to the wrong list, pls ignore Nathan Coast wrote: Hi, I have a couple of Jelly tag classes, what's the 'correct' way write log statements in tag classes. e.g. 1) info - information that is always logged to stdout 2) debug - info that is displayed during

logging in Jelly tags

2004-10-12 Thread Nathan Coast
Hi, I have a couple of Jelly tag classes, what's the 'correct' way write log statements in tag classes. e.g. 1) info - information that is always logged to stdout 2) debug - info that is displayed during with -X cheers Nathan -- Nathan Coast Managing Director codeczar ltd mob

Re: [ANNOUNCE] Struts 1.2.4 (General Availability) Released

2004-09-21 Thread Nathan Coast
Hi, will the 1.2.4 jars & tlds be uploaded to the maven repos some time soon? where do they go? http://www.apache.org/dist/java-repository/struts/jars/ or http://www.ibiblio.org/maven/struts/jars/ or is one a mirror of the other? thanks Nathan Martin Cooper wrote: The Struts team is pleased to anno

no default struts config - NullPointerException

2004-09-12 Thread Nathan Coast
Hi, if this is the only module defined in the web.xml I get a NullPointerException config/upload /WEB-INF/upload/struts-config.xml if I add this, the problem goes away config /WEB-INF/upload/struts-config.xml is this correct? Is it mandatory to have the

struts module maven plugin

2004-08-31 Thread Nathan Coast
Hi, I'm thinking of developing a maven plugin for struts modules. I want to check that this isn't being done by anyone else and to get feedback from the struts / maven communities. The idea came from working on LogWeb http://www.codeczar.com/products/logweb/ When producing distros I have to pr