taglib nested-el

2006-07-11 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 tag ? - To unsubscribe, e-mail: [EMAIL PROTECTE

bean access in tile def?

2006-07-11 Thread Justin Chin
Folks, I have a message in a jsp which require a dynamic attribute that I set on a bean from an action class. I want to use that bean within the tiles definition file. Is that possible? So for example, this is what I would do in my jsp to get the dynamic attribute: <% int requiredNum

Re: Using properties files other than ApplicationProperties

2006-07-11 Thread Monkeyden
Assuming you meant that you want to add errors in the Action, rather than the ActionForm, in your Action... 1. Create an empty ActionErrors object. Let's call it "errors". 2. Add messages to it as necessary (e.g. errors.add("propertyName" ,new ActionMessage("msg.key"));) 3. Then call the

Re: Using properties files other than ApplicationProperties

2006-07-11 Thread Laurie Harper
chamal desilva wrote: Hi, I want store all messages in a properties file called MessageProperties. I added this line to struts config file. How can I retireve values in properties file from my action classes in order to display them using tag. Use getResources(request, key), where 'key' is

Re: FW: html:text

2006-07-11 Thread Laurie Harper
> type="org.apache.struts.validator.DynaValidatorForm" dynamic="true"> > So your form bean defines only one property, named AdHrs, which is a list of values. > > requestURI="PrepareAction.do" > > > > errorStyleClass="errormsg"/> >

Re: How to get the action name (in addition to the context path name)?

2006-07-11 Thread Bryce Nesbitt
Thanks! Now what might be better? I have a legacy application that has a "member" side and an "admin" side, each with their own actions. But many of the view pages are nearly identical. The only difference in most of the view pages is the form submit, e.g.: It makes for a lo

RE: How to get the action name (in addition to the context path name)?

2006-07-11 Thread Samere, Adam J
The org.apache.struts.action.ActionMapping class provides access to this information. It is provided as the first parameter to the Action.execute method, and is also stored as a request attribute under the org.apache.struts.Globals.MAPPING_KEY key ("org.apache.struts.action.mapping.instance"). The

RE: how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Yanroy
It's exactly the "lazy" part of the functionality that I need. I have a large and arbitrary (because they can be defined by the user) set of classes that need fields populated inside them to configure them. I'm assembling the forms to get the user input based on the heirarchy of the class - they

RE: how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Samere, Adam J
The class you are missing is part of the commons validator framework. http://jakarta.apache.org/commons/validator/ commons-validator.jar is certainly a part of the core struts distribution though. Make sure you include all the struts dependencies for your version. If all you need is to define Act

How to get the action name (in addition to the context path name)?

2006-07-11 Thread Bryce Nesbitt
>From within a struts 1.0 jsp, how can I find the name of the action that invoked me? I can find the context path easy enough: <%= request.getContextPath().toString() %> And the name of the .jsp that I'm in: <%= request.getRequestURL() %> But where is the action name hidden?

RE: how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Yanroy
I've seen the LazyValidatorForm referenced on a number of websites. I actually tried it before I tried the LazyDynaBean, but it causes an exception. Apparently there's some related class missing? Here's what I get from tomcat when I try to use it: java.lang.NoClassDefFoundError: org/apache/com

RE: Shale Validation framework - Dynamic Parameters.

2006-07-11 Thread Iakouchev Alexander-EAL027C
Thank you Wendy! -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 1:29 PM To: Struts Users Mailing List Subject: Re: Shale Validation framework - Dynamic Parameters. On 7/11/06, Iakouchev Alexander-EAL027C <[EMAIL PROTECTED]> wrote: > Is this

Re: Shale Validation framework - Dynamic Parameters.

2006-07-11 Thread Wendy Smoak
On 7/11/06, Iakouchev Alexander-EAL027C <[EMAIL PROTECTED]> wrote: Is this possible to pass dynamically information from a beans as a shale method parameter? Please come join us on the Shale user list, and re-post your question there. * http://shale.apache.org/mail-lists.html Thanks! -- Wend

Shale Validation framework - Dynamic Parameters.

2006-07-11 Thread Iakouchev Alexander-EAL027C
I have a question. Is this possible to pass dynamically information from a beans as a shale method parameter? The main idea is - I need to know about bean Ids then valuator invoked. Solution, like below does not works. ,or something like this... Alex Yakushev.

RE: how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Samere, Adam J
The class specified by the type attribute in your form bean must be a concrete implementation of org.apache.struts.action.ActionForm (as the signature of the Action.execute method indicates). You can create your own implementation of ActionForm backed by a LazyDynaBean, or try org.apache.struts.v

how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Yanroy
Hi, You may recall I posted a message similar to this one several days ago. I never received a reply, so I'm hoping that this shorter (and hopefully simpler) version will get one. I'm using a LazyDynaBean as the form associated with a strut, which the docs seem to say will work by being wrapped

Re: Action called multiple times

2006-07-11 Thread Al Eridani
On 7/10/06, Thomas Joseph <[EMAIL PROTECTED]> wrote: Hi all, I have got a strange problem. My action class generates PDF, and writes on the the response and fushes it, but I can see that this action is getting called multiple times (2-5 times). I have cheked my struts-config to be just perfect (

RE: Indexed Bean Copy

2006-07-11 Thread Pillay, Kiren KN
Thanks for the reply, I will consider your suggestion. I could have written the business objects to fit the form bean with a one-to-one mapping, but then I don't think it's a good idea to make the domain objects match your framework's solution (even though it would have been quicker this way). I

Re: Indexed Bean Copy

2006-07-11 Thread Adam Gordon
Kiren- I assume you mean BeanUtils.copyProperties(...) right? If so, I believe the reason you cannot use it is because BeanUtils.copyProperties(...) performs a shallow copy and per the javadocs (HTML tags removed): "...and so complex properties (for example, nested ones) will not be copied."

Re: Tags in struts

2006-07-11 Thread Adam Gordon
Maya- Excellent! For a list box, I believe that you must have at least one option selected at any given time. If you don't want to provide a default and force the user to actually select one (and then you can validate the user's input to ensure he/she has actually selected a real value) the

Re: Tags in struts

2006-07-11 Thread Maya menon
Thanks Adam Implemented it and it worked. One quick question, when we use these tags, one of the options get selected by default. How can we modify the tag so that NONE of the options get selected by default ? Thanks. Adam Gordon <[EMAIL PROTECTED]> wrote: Maya- Let's say your T

RE: Action called multiple times

2006-07-11 Thread Samere, Adam J
Also, if you are submitting the request with script (i.e. onclick event of a button) it's possible that the browser is submitting the form and the call for the onclick. -Original Message- From: Ulrich Elsner [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 10:35 AM To: Struts Users

Re: Action called multiple times

2006-07-11 Thread Ulrich Elsner
Hi, just to be sure: in the Action, you do a return null; if everything is successful? Everything else looks ok [1] or at least shouldn't trick Struts into rerunning the action. You might want to set the ContentType in the response, though. Ulrich [1] that is, looks just like my code, which j

Re: JDK1.4.2 Version

2006-07-11 Thread struts
1.4.2 was Mantis. Pretty much all significant revisions have code names, then the codename is dropped after the production release. http://java.sun.com/j2se/codenames.html [EMAIL PROTECTED] wrote: > Hi, > I don't think 1.4.2 has got a naming. It started from 1.5 (Tiger) and > SE6 "Mustang", 7 "Do

DownloadAction in Struts 1.2.8

2006-07-11 Thread Raghuveer
When using download Action 2 Dialogue Windows are opening. Is it wrong in adding response.setHeader("Content-Disposition. --- protected StreamInfo getStreamInfo(ActionMapping mapping, ActionForm form, HttpServletRequest request,

Re: Action called multiple times

2006-07-11 Thread Thomas Joseph
Hi Martin, I am delegating the pdf generation from the action class to a different class, that uses itext to generate PDF, which inturn provides the bytestream to the action class. Action Class writes these bytes to the browser and then flushes the stream. Here is the sample code for your referen

Re: Action called multiple times

2006-07-11 Thread Martin Gainty
Thomas Joseph- How are you generating the PDF? Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you hav

Re: [Shale] some questions regarding dialogs and subdialogs

2006-07-11 Thread Wendy Smoak
On 7/11/06, David Delbecq <[EMAIL PROTECTED]> wrote: Recently, i decided to play a bit with shale. I began to write some tests jsp to play with it. I came across various problems/interrogations: Please come join us on the Shale user list, and re-post your question there. http://shale.apach

[Shale] some questions regarding dialogs and subdialogs

2006-07-11 Thread David Delbecq
Hello all, Recently, i decided to play a bit with shale. I began to write some tests jsp to play with it. I came across various problems/interrogations: 1) considering the following dialog configuration, and the following jsps (see bottom of email), i am supposed to have one main dialog, wi

Re: problems using validation framework in struts

2006-07-11 Thread Ed Griebel
I haven't seen this error, but my guess is that you have referenced a form bean in your validation.xml that is not defined in struts-config.xml. Look for a typo in the name. -ed On 7/11/06, Anil Kumar Pippalapalli <[EMAIL PROTECTED]> wrote: hi all, iam new to struts and iam tryin out a simpl

Re: Re: Performance Tests on Action Level

2006-07-11 Thread Leon Rosenberg
On 7/11/06, Julian Tillmann <[EMAIL PROTECTED]> wrote: HI! Thank you for your link! I tried to deploy the war-file on tomcat 4 and tomcat 5 but always get the same exception "major-minor version". Does it require JDK 1.5? I hope not because I would be very interested in this tool! Thanks Ju

Re: Fw: jasper

2006-07-11 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 this list is not for jasper. try this: http://jasperreports.sourceforge.net/documentation.html Abhimanyu Koul wrote: > hi all I asked a question. > Can anyone please help me. its urgent > Regards, > Abhimanyu Koul > FinEng Solutions (P) Ltd. > # +91

Fw: jasper

2006-07-11 Thread Abhimanyu Koul
hi all I asked a question. Can anyone please help me. its urgent Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. # +91 22 66950676 Extn. 212 DISCLAIMER This e-mail and any attachments are confidential and intended solelyfor the addressee and may also be privileged or exempt from disclosure un

Re: Re: Performance Tests on Action Level

2006-07-11 Thread Julian Tillmann
HI! Thank you for your link! I tried to deploy the war-file on tomcat 4 and tomcat 5 but always get the same exception "major-minor version". Does it require JDK 1.5? I hope not because I would be very interested in this tool! Thanks Julian Original-Nachricht Datum: Tue,

Re: Performance Tests on Action Level

2006-07-11 Thread Leon Rosenberg
http://moskito.anotheria.net is probably what you want. try http://moskito.anotheria.net/moskitodemo/mui/mskShowAllProducers The project is (yet) rather bad documented (working on it) so ask me directly if you have any questions :-) regards Leon On 7/11/06, Julian Tillmann <[EMAIL PROTECTED]>

problems using validation framework in struts

2006-07-11 Thread Anil Kumar Pippalapalli
hi all, iam new to struts and iam tryin out a simple application which validates password for minlength and maxlength in nb 4.1. iam gettin several exceptions saying unable to load validation.xml and validation-rules.xml check below errors, Using CATALINA_BASE: C:\Documents and Settings\

Performance Tests on Action Level

2006-07-11 Thread Julian Tillmann
Hi everybody, we need a performance test on the actions level in our rather big Struts Application which contains many database queries. for example to find out which Action takes the longest or which actions might cause a high CPU usage .. Is there a tool how to implement it? Or is it possibl

RE: JDK1.4.2 Version

2006-07-11 Thread Ramkumar.Sakthivel
Hi, I don't think 1.4.2 has got a naming. It started from 1.5 (Tiger) and SE6 "Mustang", 7 "Dolphin" Thanks and Regards, S.Ramkumar Associate Consultant - Investment Banking PrimeSourcing(tm) "Add Value Reduce Risk" i-flex solutions limited, Bangalore Ph:+ 91-80- 22086000/57596000- extn 6873 E-

JDK1.4.2 Version

2006-07-11 Thread Vasumathi
Hi All Can anyone tell me the name of JDK1.4.2 like Java SE6 name is "Mustang". With Regards Vasumathi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Indexed Bean Copy

2006-07-11 Thread Pillay, Kiren KN
Hi I've got a domain object which stored an indexed array of objects. <-- Extract of Domain Object public class GroupExposures { private Exposure [] exposures=new Exposure[]{new Exposure(),new Exposure(),new Exposure()}; class Exposure{ float totalSBSA