Re: validwhen returns is required error msg

2007-07-02 Thread Xavier Vanderstukken
Thanks a lot :) Do you think this required a documentation update because I don't find your information here: http://struts.apache.org/1.3.8/faqs/validator.html 2007/7/2, Niall Pemberton <[EMAIL PROTECTED]>: On 7/2/07, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote: >

validwhen returns is required error msg

2007-07-02 Thread Xavier Vanderstukken
I have the following validation rule : test (*this* == newPassword) In my ressource file: errors.required={0} is required. errors.invalid={0} is invalid. valid.confirmnewpassword=Confirm new passwo

Subclass LookupDispatchAction

2007-06-25 Thread Xavier Vanderstukken
Good morning, I need to subclass the LookupDispatchAction to write a "BaseLookupDispatchAction" to centralize the UserRole check of my application (etc.). I try the following piece of code : public abstract class BaseLookupAction extends LookupDispatchAction { public ActionForward exec

Unable to find "foo" forward

2006-06-12 Thread Xavier Vanderstukken
Hello, In my stdout, I find the following warning : 2006-06-12 14:16:28,095 [http-8080-Processor24] WARN org.apache.struts.action.ActionMapping - Unable to find 'Success' forward. 2006-06-12 14:16:28,095 [http-8080-Processor24] WARN org.apache.struts.action.ActionMapping - Unable to find 'Suc

Re: Validation warning under firefox 1.5

2006-03-09 Thread Xavier Vanderstukken
error message is that you're not specifying any replacement "argument" values for the message. It doesn't automatically pick up the values and use them as argument replacements. You need to have something like the following minlength 6

Validation warning under firefox 1.5

2006-03-09 Thread Xavier Vanderstukken
The javascript generates by Struts 1.3 to integrate the common-validator js produces warnings under ff1.5 : Avertissement : reference to undefined property this[varName] this.a0 = new Array("password", "Password can not be less than {1} characters.",new Function ("varName", "this.minlength='6'

Re: Validations bugs

2006-03-06 Thread Xavier Vanderstukken
All my forms extends the ValidatorForm class. Wendy Smoak wrote: On 3/5/06, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote: It seems to me that server side validation does not work with Struts 1.3 The getValudationKey public String getValidationKey(ActionMapping m

Validations bugs

2006-03-05 Thread Xavier Vanderstukken
It seems to me that server side validation does not work with Struts 1.3 The getValudationKey public String getValidationKey(ActionMapping mapping, HttpServletRequest request) { return mapping.getAtribute(); } returns allways the action url : /Login instead of LoginForm. I override

Re: Null actionform

2006-01-09 Thread Xavier Vanderstukken
Wendy Smoak wrote: On 1/9/06, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote: Sometimes in my application, I call an action by this way : Null usually means no form bean is associated with the Action. What does the action mapping in struts-config.xml look like? --

Null actionform

2006-01-09 Thread Xavier Vanderstukken
Sometimes in my application, I call an action by this way : In this case the ActionForm received in my struts action is null, is it a way to obtain an empty form instead of a null form? (Of course not by using a html:form) -

[Application pattern] Advice

2005-12-27 Thread Xavier Vanderstukken
I need your help to design my web application using struts and hibernate. I have several classes to save/delete/update (like user, category, project,...). I dont know what is the best pattern to use : - 1action per object and all the operations(save,update,delete) in the same action - only on

custom plugins and exception

2005-12-07 Thread Xavier Vanderstukken
I have a plugin in my struts application to initialize the required ressources. If for some reason the processing fails, I catch the exception and throw a ServletException but the jsp error mechanism in not used and the client receive a tomcat 404 page in place of my """beautifull ;-)""" error

Re: Date pattern

2005-11-05 Thread Xavier Vanderstukken
supplied Locale http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#SimpleDateFormat(java.lang.String,%20java.util.Locale) Important Note: Message items can be referenced via Bean:message taglib Anyone else ? Martin- - Original Message - From: "Xavier Vanderst

Date pattern

2005-11-05 Thread Xavier Vanderstukken
I would like to retrieve the date format pattern according to the user Locale. I do the following to retrieve the Struts Locale : Locale current=(Locale)this.pageContext.getSession().getAttribute(Globals.LOCALE_KEY); if(current==null) current=Locale.US; And now I would like to rea

Re: How to force no page caching

2005-11-04 Thread Xavier Vanderstukken
Braun, James F wrote: I need to force no page caching and I (vaguely) remember a configuration parameter that would do this. However, I looked in the wiki but didn't find anything on this. Can anybody shed any light? Thanks, J. Set the nocache attribute to true for the controller element in

Re: TagSupport - how to get request attribute

2005-11-04 Thread Xavier Vanderstukken
${request['ParameterName']} Andrzej Bengner wrote: try request.getParameter(ParameterName); Thanks, that's OK :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --

Re: struts download action

2005-11-03 Thread Xavier Vanderstukken
sudip shrestha wrote: I have a struts action that downloads binary files from the database: e.g.: /actions/download.do?fileId=xxx, etc So, whenever users download any type of file with any id, the name of the file displayed on any browser is "download.do", is it possible to set something in

Re: Problems emailing from struts

2005-10-27 Thread Xavier Vanderstukken
www.jarhoo.com is your friend to find missing jar files libraries C.F. Scheidecker Antunes wrote: Hello, Thanks for the info. I am still having problems sending email from a struts action. I've created a separate class emailClient to send the message. The class is on the end of the email.

Re: need to email from action

2005-10-23 Thread Xavier Vanderstukken
Jakarta commons-email is your friend http://jakarta.apache.org/commons/email/examples.html C.F. Scheidecker Antunes wrote: Hello all, I need to email a simple text message from within an action. I've tried creating a class using javax.mail.* and javax.mail.internet.* classes but without su

Re: i18n, localeaction and actions

2005-10-17 Thread Xavier Vanderstukken
().getServletContext(); ModuleConfig moduleConfig = ModuleUtils.getInstance().getModuleConfig(request, context); // Return the requested message resources instance return (MessageResources) context.getAttribute( key + moduleConfig.getPrefix()); } Xavier

i18n, localeaction and actions

2005-10-17 Thread Xavier Vanderstukken
Hello, All my site supports i18n mechanism correctly, using Struts LocaleAction and bean taglib. However when I try to access messageresource in my action the language of the messageresource is allways the default one (in my case en_us). System.out.println(request.getLocale()); if(request.ge

Re: xhtml 1.1 strict & lang attributes

2005-09-25 Thread Xavier Vanderstukken
It is the same behavior if I remove the locale attribute. I also found no valid javascript in the page : 2lang attributes and the w3c validation fails : /Result: Failed validation, 1 error / / Error /Line 8 column 48/: there is no attribute "lang"./ /|http

Re: Target servlet called getWriter(), then getOutputStream()

2005-09-13 Thread Xavier Vanderstukken
Content.do action. And the main frame is not reloaded. David G. Friedman wrote: Try adding a 'return false;' to the end of your a tag's onClick method to prevent submits back to the server. Regards, David -Original Message- From: Xavier Vanderstukken [mailto:[EMAIL

Re: Adding parameters to redirected forwards

2005-09-13 Thread Xavier Vanderstukken
Wojciech Ciesielski wrote: THX :] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IS that class really performs a redirect request? Can I use the setRedirect method to false

Re: Target servlet called getWriter(), then getOutputStream()

2005-09-13 Thread Xavier Vanderstukken
ng 'null' from your action or do you invoke a forward to go to a JSP after you have closed your output stream with os.close() ? At that point I expect you to return null instead of an actionForward. Regards, David -Original Message- From: Xavier Vanderstukken [mailto

Re: Target servlet called getWriter(), then getOutputStream()

2005-09-13 Thread Xavier Vanderstukken
d idea, at least not according to the Tomcat Servlet docs on interface ServletResponse method getOutputStream() and getWriter(): Either this method or getWriter() may be called to write the body, not both. Regards, David -Original Message- From: Xavier Vanderstukken [mailto:[EMAIL PROTECTED

Re: Target servlet called getWriter(), then getOutputStream()

2005-09-13 Thread Xavier Vanderstukken
Any idea? Xavier Vanderstukken wrote: I have a jsp page with 3links : - One open a popup and write a file in this popup - One to display some text informations on the same page - One to upload a file to the server (in fact the file displayed in the first link) The three link seems to work

Target servlet called getWriter(), then getOutputStream()

2005-09-12 Thread Xavier Vanderstukken
I have a jsp page with 3links : - One open a popup and write a file in this popup - One to display some text informations on the same page - One to upload a file to the server (in fact the file displayed in the first link) The three link seems to work well however when I upload a new file (the

Re: Tile usage

2005-09-07 Thread Xavier Vanderstukken
: Greg Reddin wrote: On Sep 7, 2005, at 12:06 PM, Xavier Vanderstukken wrote: java.lang.NullPointerException at org.apache.jasper.runtime.JspRuntimeLibrary.getContextRelativePath (JspRuntimeLibrary.java:908) Are your pages at the

Tile usage

2005-09-07 Thread Xavier Vanderstukken
I have a main layout : I extend the main definition : And finally here is the body With that configuration I receive an exception : java.lang.NullPointerException at org.apache.jasper.runtime.JspRuntimeLibr

Re: debugging tomcat with eclipse

2005-08-27 Thread Xavier Vanderstukken
I'm using Eclipse WTP version 0.7 very nice Eclipse project. It can control a Tomcat Server and allow easy debugging Martijn Smit wrote: I'm running Tomcat within Eclipse with the Sysdeo plugin since the dawn of time. As long as you handle your own context definitions (keep a close watch on th

Re: Validator plugin troubleshooting

2005-08-25 Thread Xavier Vanderstukken
Change validate="false" in the struts-config.xml file to validate="true" and also dont forget to set the onSubmit attribute to something like return validateLoginForm(this) jonathan gilmore wrote: I cannot get my struts application to work with the Validator plugin. Can someone please rev

Custom ExceptionHandler

2005-08-24 Thread Xavier Vanderstukken
Hello, I don't find any information, how I can do to read the servletContext variable inside of my Custom ExceptionHandler class. I would like to get a reference to my logManager located in the application scoped variables and initialized by a struts plugins. ---