Re: FormFile getPath() ?

2006-10-02 Thread Laurent Duparchy
(buffer, 0, bytesRead); } bos.close(); //close the stream stream.close(); } catch (Exception ex) { throw ex; } file.destroy(); return (mapping.findForward(anywhereyouwant); } Laurent

FormFile getPath() ?

2006-09-29 Thread Laurent Duparchy
to the Struts temp file. I can't see how. I understand that there is maybe no file at all, as a small size a file will be stored in memory, but is the maybe existing underlying FileItem avaiable in anyway ? Laurent

Re: scriptlet not evaluated inside tag

2006-08-30 Thread Laurent Duparchy
I found that onclick=this.value=${labelPrinterButton} is working Leon Rosenberg wrote: hi, try: onclick=%=this.value='+labelPrinterButton+'%' regards Leon On 8/29/06, Laurent Duparchy [EMAIL PROTECTED] wrote: Hi, I'm forced to use a scriptlet to insert a localized label into a tag

scriptlet not evaluated inside tag

2006-08-29 Thread Laurent Duparchy
Hi, I'm forced to use a scriptlet to insert a localized label into a tag. The code is this ; (Note : this code is changing a button display by an image, defined in the css file. ) bean:define id=labelPrinterButton fmt:message key=button.printerFriendly / /bean:define

Re: taglib nested-el

2006-07-17 Thread Laurent Duparchy
: Laurent Duparchy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 9:17 AM To: Struts Users Mailing List Subject: Re: taglib nested-el Thanks for the response. Unless I missed something, the taglib nested is not just a cooler way to access child beans, or access beans inside, say

taglib nested-el

2006-07-12 Thread Laurent Duparchy
Hi, (Sorry if you already get this message, I'm sure if it had been sent.) is there a taglib nested-el ? If not, what is the turnarround to evaluate an expression within a nested tag ? - To unsubscribe, e-mail: [EMAIL

Re: taglib nested-el

2006-07-12 Thread Laurent Duparchy
, use the JSTL tags as I'm sure most of the people on this list will tell you. http://java.sun.com/products/jsp/jstl/ -Original Message- From: Laurent Duparchy [mailto:[EMAIL PROTECTED] Sent: 12 July 2006 07:41 To: user@struts.apache.org Hi, (Sorry if you already get this message, I'm

Is there any optimization possible in Struts?

2005-12-07 Thread Laurent Fallet
Hello, I would like to know if there is any possibility of optimization in Struts. Is there a cache of page to increase performance? Or memory allocation? Anything to speed up the processing of pages? Thx, Laurent

Re: Is there any optimization possible in Struts?

2005-12-07 Thread Laurent Fallet
fasten my application. Regards, Laurent -- *Laurent Fallet* Assistant Chef de projet [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Groupe MdB* 6 rue Van Gogh 93360 Neuilly Plaisance Tel. 01.56.49.01.71 | Fax 01.56.49.01.67 www.MdBinformatique.com http://www.MdBinformatique.com

Formatting numbers in form's fields

2005-11-29 Thread Laurent Fallet
and I would like to have it as 32.00 I'm using the type Float for the form field (not String). Is there a way to do that? Thanks, Laurent -- *Laurent Fallet* Assistant Chef de projet [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Groupe MdB* 6 rue Van Gogh 93360 Neuilly Plaisance Tel. 01.56.49.01.71

Tag library not detected

2005-10-28 Thread Laurent
Hi, In my project I have a tag library. Its associated tld file is in the webapp/WEB-INF directory. This works fine on my (linux) server but in the Netbeans IDE (windows) the tags are never parsed. They stay as prefix:tagname/ in the HTML served to the browser. The xmlns also stays in the HTML.

Re: html:file elements appearance

2005-10-28 Thread Laurent
Anna Krajewska wrote: I have a problem with html:file tag. I want to set a styleclass or some style parameters for the button, but when I set styleClass=button and styleId=something (I did not manage to find what this attribute is for, and there is no difference beetween situations when

Re: Tiles Exception

2005-04-29 Thread Laurent
Nimish Chourey , Tidel Park - Chennai wrote: Are you sure there is no way out ? I really feel , there might be some way out . Hi, I use tiles and I personnaly have no problem getting the error messages. I use the NetBeans IDE. All my logs and 'normal' exceptions (that occur in Java classes)

Taglibs without RTExpr

2005-04-29 Thread Laurent
Hi, I am using the Cache taglib from Jakarta Taglibs. On the documentation page: http://jakarta.apache.org/taglibs/doc/cache-doc/ there are examples of attributes having RTExpressions (one example is key=${user}.${verbosity}), but the tld says none of the attributes can be RTExpressions (you can

Re: [OT] DOM JavaScript

2005-04-28 Thread Laurent
[EMAIL PROTECTED] wrote: // Only add a row when changing the last row of the table if (s+(rowWithData) == selectId) { var row = table.insertRow(lastRowInTable); var className = rowNormal; if (lastRowInTable % 2 == 0) { className = rowAlternate;

Re: Struts UTF-8 (POST working, GET not)

2005-04-15 Thread Laurent
Hond4 wrote: I have fllowing problem with my Struts app on Jboss. Here is my filter String defaultEncode = UTF-8; HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response;

Re: Best practice for dynamic reloading of a part of the JSP ?

2005-03-25 Thread Laurent
Stphane Zuckerman wrote: 2) When I select foo, then some javascript reloads the page (it does a post) with the foo argument, and the rest of the JSP is loaded. This is the way I'd like to take, since some informations mustn't be in the clear uselessly. My problem is that I don't really

Re: Constants for property names

2005-02-11 Thread Laurent
Daffin, Miles (Company IT) wrote: What do people feel about using constants for property names? In general I feel one should use constants for such things, but it is far from easy in a web app to do so. I can't really see the point. A property name is like a variable name, it will never be

Re: html:text ... value=bean:message ...//???

2005-02-11 Thread Laurent
Andrew Try something like... html:text property=rcpt bean:message key='admin.msg.rcpt'/ /html:text If that doesn't work try this: c:set var=rcptbean:message key='admin.msg.rcpt'//c:set html:text property=rcpt value=${rcpt}/ - To

Re: JSP produces invalid XML?

2005-02-09 Thread Laurent
I just realised the problem only occures when my JSP files have the .jspx file extension. Files whose names end in .jsp do not have this problem. However, my question remains... Thank you. Laurent wrote: Hi, There is something I do not understand with the way JSP outputs XML: If in my source

Re: JSP produces invalid XML?

2005-02-09 Thread Laurent
then handle appropriately. -- Jeff Laurent wrote: I just realised the problem only occures when my JSP files have the .jspx file extension. Files whose names end in .jsp do not have this problem. However, my question remains

Re: JSP produces invalid XML?

2005-02-09 Thread Laurent
Jeff Beal wrote: Laurent wrote: Of course, I can perfectly understand that in non-XML JSP mode there may be glitches in the way the XML is parsed. However, I don't believe it is acceptable to output something that isn't XML when you've explicitly demanded to have XML. (For example, Mozilla

JSP produces invalid XML?

2005-02-08 Thread Laurent
Hi, There is something I do not understand with the way JSP outputs XML: If in my source JSP file, I have something like this: a amp; b The XML parser should interpret this string as a b and represent it internally as a b. However, when it ouputs that data to the XML file being sent back to

Conditionaly setting an element attribute

2005-02-03 Thread Laurent
Hi, I need to do something like this: jsp:element name=td c:if test=${colspan != 1} jsp:attribute name=colspan${colspan}/jsp:attribute /c:if jsp:body loads more JSTL tags /jsp:body /jsp:element i.e. set the colspan attribute of the td element only if colspan is not 1. This doesn't

Re: ActionError / ActionMessage

2005-02-03 Thread Laurent
Tim Christopher wrote: Hi, Can anyone let me know when an ActionError should be used in place of an ActionMessage, or visa versa. It seems like the ActionMessage is preferred as it does not encourage markup to be placed within the resources file. Does this mean I should always use the

Re: html:link and char encoding

2005-01-12 Thread Laurent
Nicolas De Loof wrote: Can someone explain me what's wrong in HTTP / servlet API about char encoding : I'm using html:link to build a link with parameters, whose values use french chars ('', '' ...) I need to set useLocaleEncoding to get values in my servlet (that is not a struts action) using

Re: Implementing dependence between form properties

2004-10-26 Thread Laurent Duperval
Joe Hertz wrote: Something like this if youre using 1.2.x: field property=propName depends=validwhen var var-nametest/var-name var-value((item1 != null) or (item2 != null) or (*this* != null))/var-value /var /field Thanks. Is this supposed to work with DynaActionForm's? I tried it and it

Implementing dependence between form properties

2004-10-25 Thread Laurent Duperval
Hi, How does one implement dependence between property fields? Specifically, I have three String fields and at least one of them must be non-null. Can I write this in the validator.xml file? Or do I have to write a custom validation rule? Thanks, L

Using StrutsTestCase with 1.2, wildcards and MappingDispatchAction

2004-10-18 Thread Laurent Duperval
Hello, Does anyone have experience using (Mock)StrutsTestCase to test wildcard actions (actions that end in *) and MappingDispatchActions? Does it work? Are there any particular issues to be aware of? Thanks, L - To unsubscribe,

Extending DynaValidatorActionForm... or using something else?

2004-10-18 Thread Laurent Duperval
HI, We've created a bunch of forms to allow users to create new object in our database. All the forms have a name property in them, and depending on the object, there are other properties. Most of our validation is just a simple required. However, we have a business rule which states that two

Re: Periods in form attribute names prevents retrieval

2004-10-08 Thread Laurent Duperval
Jeff Beal wrote: Have you tried html:text name=profile.account property=name/? Ahaaa! No I haven't. Thanks! L - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tracing action dispatching

2004-10-06 Thread Laurent Duperval
Hi, Is there a flag I can set so that Struts tells me what it's doing? I'm having a problem with one of my actions: when I click on it, I get a blank page and I don't understand why. I'd like to be able to see what decisions Sruts is taking in order to load my pages, to determine where I made a

What is halting my action?

2004-10-06 Thread Laurent Duperval
HI, While tracing my application, this is the debug output I get: [DEBUG] RequestProcessor - Processing a 'GET' for path '/mainHardwareProfile' [DEBUG] ActionConfigMatcher - Attempting to match '/mainHardwareProfile' to a wildcard pattern [DEBUG] BeanUtils - Cloning bean:

Re: Tracing action dispatching

2004-10-06 Thread Laurent Duperval
[EMAIL PROTECTED] wrote: Hi, L. Did you upgrade your struts.jar recently? Yes. The new struts action servlet calls a different method on actions, and it's default implementation is to show an empty page. Stumbled over this one also. Sure, but I've got mappings that should load the correct page. I

Re: What is halting my action?

2004-10-06 Thread Laurent Duperval
Laurent Duperval wrote: The foo parameter should actually read add. I changed it to see if my class was being called and it isn't. Otherwise, I would get a NoSuchMethodExcpetion. My class is defined as: Grmblb. I found it. There was an execute() method in the class and if that method