RE: File Upload

2004-07-29 Thread David Friedman
Shailender, Should I ask if the file is taking so long due to bandwidth issues such as trying to send it up over a 50kbps modem versus a cable modem, DSL, or other speedy connection? For the compression program I would recommend a zip variant since you can find them as zip/unzip on Linux/Mac plat

File Upload

2004-07-29 Thread Shailender Jain
Hi, I am using the File Upload example provided by Struts in my application. I need to upload 1 MB of file. This is taking too much time. Is there any way by which the file is compressed into a zip (or any other) and then it is uploaded. Thanks & Regards Shailender Jain ---

Re: Struts, JSF, FLEX and the Future of Interface Design

2004-07-29 Thread Vic Cekvenich
I spent many months on flex beta, etc, and have lauched production RIA apps. I found Flex slow (not RIA) on non-trivial "forms". So for the last month I have been doing : https://jdnc.dev.java.net So far impresive. I have it working with Struts Chain getting data from iBatis for CRUD. Very fast.

Struts, JSF, FLEX and the Future of Interface Design

2004-07-29 Thread Mike Duffy
I attended a Webinar today on FLEX, the new design environment from Macromedia. The system is impressive in functionality, but not impressive in terms of integration with existing frameworks. Essentially, integration is attained through the creation of web services; so, rather than having a se

RE: form with multiple inputs

2004-07-29 Thread Jim Barrows
> -Original Message- > From: Gupta, Sahil [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 29, 2004 2:45 PM > To: 'Struts Users Mailing List' > Subject: form with multiple inputs > > > I want to use the actionform to store values in my object in > the form of an > array. Can i use dyna

form with multiple inputs

2004-07-29 Thread Gupta, Sahil
I want to use the actionform to store values in my object in the form of an array. Can i use dynaactionform for this purpose. I dun think the question is very clear so i will put it in a more developer friendly faishon. Heres what i want to do: Jsp: Name1: Type1: Name2: Type2: abc is my ow

Re: form tag and root context isssue

2004-07-29 Thread Craig McClanahan
On Thu, 29 Jul 2004 21:30:33 + (UTC), Ludovic Bailly <[EMAIL PROTECTED]> wrote: > It is simple and solves the issue. > Do you think doing this is bad ? > Unfortunately yes, because a context path of "/" violates the servlet specification. > > > Thanks, > > Ludo. > Craig --

Re: form tag and root context isssue

2004-07-29 Thread Ludovic Bailly
Craig McClanahan gmail.com> writes: > For Tomcat specifically, the context path "ROOT" is treated as a magic > name that corresponds to the root web application. Note that you'll > have to remove the webapps/ROOT directory, because that's where the > root webapp shipped with Tomcat lives. You c

Re: form tag and root context isssue

2004-07-29 Thread Ludovic Bailly
Ruth, Brice fiskars.com> writes: > In the context file you deploy to conf/Catalina/localhost, the path > should still be "", just as it was before. You now have it set to "/" > which is why you get a '//' in your action. I'm agree with you but it's not something I can do easily. I'm trying IB

RE: Struts from XSLT

2004-07-29 Thread Matthew Van Horn
On Fri, 2004-07-30 at 04:07, Johan Wasserman - BCX - Infrastructure Services wrote: > You're right, it does render the output exactly like in your example. > Only it doesn't help if the HTML output says . > bean:message should do it's job and do the lookup for foo, that doesn't > happen. > > When

Beehive - Of Interest to You All?

2004-07-29 Thread Shane Mingins
"This is the project working on making J2EE easier by building a simple object model on J2EE and Struts." http://incubator.apache.org/beehive/index.html Shane Mingins Analyst Programmer Assure NZ Ltd Ph 644 494 2522

Xtags Paid Consulting

2004-07-29 Thread Eric Dahnke
I posted this to the taglibs-list. But that is so low volume. ++ Hello List, I'm an engineer working on a large Java Struts application. We're doing some due diligence on the xtags library as it relates to other taglibs. We'd like

RE: bean:define vs c:set

2004-07-29 Thread Kris Schneider
... Quoting Kris Barnhoorn <[EMAIL PROTECTED]>: > Because my production environment is still in JSP 1.2. > And it looks like it will be for some time. > > In other words I still have to work with tomcat 4.1 but I'm trying to > make as much code possible ready for the upgrade to tomcat 5.

RE: Struts from XSLT

2004-07-29 Thread Johan Wasserman - BCX - Infrastructure Services
Cool site cherrypy.org! You're right, it does render the output exactly like in your example. Only it doesn't help if the HTML output says . bean:message should do it's job and do the lookup for foo, that doesn't happen. When I do a view source on the page I see , I need to see "FooResult". Appl

RE: Struts from XSLT

2004-07-29 Thread Johan Wasserman - BCX - Infrastructure Services
Cool site, cherrypy.org. You are right, your suggestion does render the html exactly like in your example. And I get each node name as the key, just like I need it (context is fine). Only I don't neet the html, I need the bean:message tag to do what it's supposed to do and render the message res

Re: Retrieving specific form validation error messages

2004-07-29 Thread Kishore Senji
You could do something like this Thanks, Kishore Senji. On Thu, 29 Jul 2004 14:18:25 -0400, Erik Weber <[EMAIL PROTECTED]> wrote: > Thanks Niall. > > Now, what I need is to change the style of the prompt text beside the > field, not the field itself, or else perhaps the td that houses both th

Re: Retrieving specific form validation error messages

2004-07-29 Thread Erik Weber
Thanks Niall. Now, what I need is to change the style of the prompt text beside the field, not the field itself, or else perhaps the td that houses both the prompt and the input. But, you have given me an idea . . . Perhaps I could extend the bean:message tag to act in a similar way? I would ap

RE: bean:define vs c:set

2004-07-29 Thread Kris Barnhoorn
Because my production environment is still in JSP 1.2. And it looks like it will be for some time. In other words I still have to work with tomcat 4.1 but I'm trying to make as much code possible ready for the upgrade to tomcat 5. Kris. -Oorspronkelijk bericht- Van: Craig McClanahan [m

Re: release of struts-faces library

2004-07-29 Thread Craig McClanahan
On Thu, 29 Jul 2004 11:35:19 -0500, Nick Heudecker <[EMAIL PROTECTED]> wrote: > I want to use the struts-faces library, but the existing articles and > documentation state that Tiles is unsupported. Is that still the case? > I haven't yet had time to dig through the source to answer this for > m

Re: integration non-struts JSF components with struts-faces

2004-07-29 Thread Craig McClanahan
On Thu, 29 Jul 2004 15:42:20 +0200, sirhck <[EMAIL PROTECTED]> wrote: > Hi All, > > I need to use struts-faces library with commercial JSF components. > Thouse components > are using own listeners classes. I am not sure what to do to delegate > events to Struts actions > instead of thouse listene

Re: release of struts-faces library

2004-07-29 Thread Nick Heudecker
I want to use the struts-faces library, but the existing articles and documentation state that Tiles is unsupported. Is that still the case? I haven't yet had time to dig through the source to answer this for myself. Craig McClanahan wrote: I consider the struts-faces library to be functional

Re: release of struts-faces library

2004-07-29 Thread Craig McClanahan
On Wed, 28 Jul 2004 09:10:23 +0200, Krzysztof Krzak <[EMAIL PROTECTED]> wrote: > Hi All, > > I am starting new project and I plan to use Struts with JSF support. I > have two related questions : > 1. What is the estimated date of struts-faces library release ? > 2. Is struts-faces library already

Re: bean:define vs c:set

2004-07-29 Thread Craig McClanahan
You are correct that does not create a scripting variable, so you can't use the specified identifier in a scriptlet. The question, though, is why are you still using a scriptlet expression? Why not use an EL expression instead? or, to avoid needing to do the in the first place: The a

Re: form tag and root context isssue

2004-07-29 Thread Craig McClanahan
On Thu, 29 Jul 2004 08:30:45 -0700, Claire Suttle <[EMAIL PROTECTED]> wrote: > Hi! > > I'm having the exact same problem as you! I know it's no help, but it's nice > to know that someone else is having the same problem... > > > > In the context file you deploy to conf/Catalina/localhost, the pat

Re: OT jstl/el question

2004-07-29 Thread Craig McClanahan
On Thu, 29 Jul 2004 09:49:51 -0500, Hookom, Jacob <[EMAIL PROTECTED]> wrote: > If I'm developing tags for JSP 2.0, then I don't have to explicitly call the > ExpressionEvaluator on an attribute within the tag since I will be receiving > the result of the expression evaluation? That's correct, as

RE: bean:define vs c:set

2004-07-29 Thread Paul McCulloch
creates a scoped attribute AND a scripting variable, whereas just created the scoped attribute. In your example you are making use of the scripting variable feature (as the data is already available as a scoped attribute). But, with JSP2, all tags magically become EL aware (I believe). So you sh

Re: form tag and root context isssue

2004-07-29 Thread Claire Suttle
Hi! I'm having the exact same problem as you! I know it's no help, but it's nice to know that someone else is having the same problem... > In the context file you deploy to conf/Catalina/localhost, the path > should still be "", just as it was before. You now have it set to "/" > which is why yo

bean:define vs c:set

2004-07-29 Thread Kris Barnhoorn
Hi, First of all I'd like to thank the contributors of this mailinglist. I'm using struts for over 1.5 years now and i always found answers in archives. In this mailinglist and in the contrib/el there is often suggested that the best way to prepare for smooth transition to JSP 2.0 is to use el t

RE: OT jstl/el question

2004-07-29 Thread Hookom, Jacob
If I'm developing tags for JSP 2.0, then I don't have to explicitly call the ExpressionEvaluator on an attribute within the tag since I will be receiving the result of the expression evaluation? I was thinking of doing that with JSF tags also using the DynamicAttributes interface to allow possibly

Re: form tag and root context isssue

2004-07-29 Thread Ruth, Brice
In the context file you deploy to conf/Catalina/localhost, the path should still be "", just as it was before. You now have it set to "/" which is why you get a '//' in your action. Ludovic Bailly wrote: Hi, My web app is running under tomcat 5.0/struts 1.21. It was deployed in webapps/ROOT. Al

Re: Re: Module and pages Behind WEB-INF don't work...???

2004-07-29 Thread raj eev lochanam
Hello, I am sorry to say that, what you have given solution, i have tried that , that is also not working with this. Any more help please, Rajeev Lochanam A   On Thu, 29 Jul 2004 Kishore Senji wrote : >There are two solutions to this problem. > >1) Setting contextRelative="true" for every f

integration non-struts JSF components with struts-faces

2004-07-29 Thread sirhck
Hi All, I need to use struts-faces library with commercial JSF components. Thouse components are using own listeners classes. I am not sure what to do to delegate events to Struts actions instead of thouse listener actions. Is there any description of integration struts with non-struts JSF comp

Re: Module and pages Behind WEB-INF don't work...???

2004-07-29 Thread Kishore Senji
There are two solutions to this problem. 1) Setting contextRelative="true" for every forward. (If you do that, then the path will be intrepreted as context relative instead of module relative) 2) Using forwardPattern of controller The default is $M$P meaning the path is prepended with the prefix

Re: Re: Single argument to multiple vaildator rules ?

2004-07-29 Thread raj eev lochanam
  On Thu, 29 Jul 2004 Kishore Senji wrote : >If you don't specify the name attribute for arg0, it will become the >default arg value for the different error messages constructed. > >so, use > >Thanks, >Kishore Senji. > > >On Thu, 29 Jul 2004 13:06:18 +0530, [EMAIL PROTECTED] ><[EMAIL PROTECTED]

Re: Module and pages Behind WEB-INF don't work...???

2004-07-29 Thread Jurn Ho
Hi Puneet, I was just playing with hiding JSP beneath WEB-INF/ and Modules today. What you can do is edit your struts-module-config.xml and as part of the you can add the forwardPattern property e.g. My setup is , so that my forward paths don't contain the WEB-INF/jsp read section 5.2.1 at http

Re: Single argument to multiple vaildator rules ?

2004-07-29 Thread Kishore Senji
If you don't specify the name attribute for arg0, it will become the default arg value for the different error messages constructed. so, use Thanks, Kishore Senji. On Thu, 29 Jul 2004 13:06:18 +0530, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi friends, > >I have the following re

Maven access to jars required by Struts

2004-07-29 Thread Paul Spencer
I have not found validator-1.1.3.jar or struts-1.2.1.jar in the following repositories: http://www.apache.org/dist/java-repository/ http://www.ibiblio.org/maven/ Is the another repository I should be looking in? Yes, I know the are available, without the version number in file name, from the

RE: Retrieving specific form validation error messages

2004-07-29 Thread Raghuram Kanadam
Tries, ActionError.properties () Erik? You may need to use a small scriptlet -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 2:40 PM To: Struts Users Mailing List Subject: Re: Retrieving specific form validation error messages This is what I ca

Re: Retrieving specific form validation error messages

2004-07-29 Thread Niall Pemberton
Theres an open bugzilla ticket requesting this kind of feature: http://issues.apache.org/bugzilla/show_bug.cgi?id=20784 Haven't really had time to look at it, but it has patches attached. I also posted an extension to the tag on my web site which highlights error fields. http://www.niallp.p

Re: Retrieving specific form validation error messages

2004-07-29 Thread Erik Weber
This is what I came up with: . . . render the prompt for currentField, placing where necessary (this could be a css class or font color, etc.) , , , I am doing this for each field. Please let me know if there is a better way. Thanks, Erik Erik Weber wrote: I see that the ActionErrors object

RE: [OT] Struts Networking in London (BOF #2)

2004-07-29 Thread Pilgrim, Peter
TWIMC The second Struts Networking in London BOF will take on Monday 9th, August 2004 At Waxy O'Connors Pub in Picadilly /Leicester Square starting around 7:15 pm If you want to come along send me an email off-list. BTW: Location details are h

Re: Retrieving specific form validation error messages

2004-07-29 Thread Erik Weber
I see that the ActionErrors object is stored as a request attribute under the key "org.apache.struts.action.ERROR". I would like to set a different CSS class for each containing a field that has a property that is keyed in the ActionErrors instance. In pseudocode: begin "username" field; if (

Re: Module and pages Behind WEB-INF don't work...???

2004-07-29 Thread puneet . a
Thanks Erik, this can actually be very useful. (I haven't tried it yet...) Puneet Agarwal Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Erik Weber <[EMAIL PROTECTED]> 07/29/2004 12:44 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]>

Single argument to multiple vaildator rules ?

2004-07-29 Thread ravi.vedala
Hi friends, I have the following requirement. // How to pass this argument to all the validtor rules ? Where the keys in the application.properties read : key1=Hello {0} world {1} key2=Hi {0} world {1} key3=Dear {0} world {1} Help would be really appreciated.

Retrieving specific form validation error messages

2004-07-29 Thread Erik Weber
In a JSP containing a form, what is the easiest way to see if a form validation error message exists for a particular, say, html:text field, when that page is processing after form validation has failed? For example, what if you wanted to present the messages field by field instead of all toget

RE: How to add new events to HTML tag library objects

2004-07-29 Thread Mazen, Tamer S
Thanks -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 10:03 AM To: Struts Users Mailing List Subject: Re: How to add new events to HTML tag library objects You have to add some code into Struts tag handler, especially an attribute and s

Re: Module and pages Behind WEB-INF don't work...???

2004-07-29 Thread Erik Weber
I don't have the exact fix you are looking for, but this (in web.xml) will prevent direct access to anything with a jsp extension: no_access *.jsp Erik [EMAIL PROTECTED] wrote: I want to do both "hide my JSPs behind WEB-INF" and use "S

Re: How to add new events to HTML tag library objects

2004-07-29 Thread Nicolas De Loof
You have to add some code into Struts tag handler, especially an attribute and setter for your "onpaste" property. For such cases, I use to create a taglib for my app that extends some struts tag, to avoid having a non-standard Struts lib and encourage developpers to create and use tags. Nico.