Re: Struts Validator and Select boxes

2004-03-26 Thread Niall Pemberton
Posting whats in your validation.xml for the form and the bit of your jsp with your select fields would be helpfull. If you take the "fromDay" as an example, you are using field.getVarValue("fromDay") - if you don't have a "var" defined in your validation.xml for "fromDay" then that would cause t

Re: html inside an action

2004-03-26 Thread Niall Pemberton
I posted a tag (StoreTag) which will store the generated html from a jsp in a bean, then in your action you can get the RequestDispatchter and do an "include": Details in the following messages: http://www.mail-archive.com/[EMAIL PROTECTED]/msg94956.html http://www.mail-archive.com/[EMAIL PROTECT

Re: Struts validator Regular Expressions

2004-03-24 Thread Niall Pemberton
Validator does use ORO - There is an applet you can play with to test your regexp: http://jakarta.apache.org/oro/demo.html Choose the "contains" option and start/end your regular expressions with ^ and $ Niall - Original Message - From: "Takhar, Sandeep" <[EMAIL PROTECTED]> To: "Struts

Re: Struts Validator

2004-03-24 Thread Niall Pemberton
Whats missing from your question is how are you identifying which "client" a user belongs to? Niall - Original Message - From: "Matthew Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 22, 2004 12:09 PM Subject: Struts Validator Hi there, I am new to Struts and t

Re: best way to highlight error form fields

2004-03-13 Thread Niall Pemberton
List'" <[EMAIL PROTECTED]> Sent: Saturday, March 13, 2004 10:26 PM Subject: RE: best way to highlight error form fields > Sorry but this is quite new to me: how do you use this source code? How > I integrate it? Do I write a TLD file?? > > Erez > > -Ori

Re: best way to highlight error form fields

2004-03-13 Thread Niall Pemberton
input component? Is it doable the same way? > > Erez > > -Original Message- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 13, 2004 12:54 AM > To: Struts Users Mailing List > Subject: Re: best way to highlight error form fields > > I h

Re: how to automatically forward user's page to a html link at speified time

2004-03-12 Thread Niall Pemberton
He's suggesting you use the javascript or method or META:REFRESH tag. if you put a meta:refresh tag in the of the document, the browser will re-direct to a specified url after a specified number of seconds (e.g. content=300 means it will re-direct after 300 seconds). What you w

Re: best way to highlight error form fields

2004-03-12 Thread Niall Pemberton
I have done this by extending the struts tag and using the stylesheets - its pretty straight forward. I overrode the getStyleClass() method to do the following: 1) Retrieve the "ActionErrors" from the request 2) Check if there is an error message for the name/property 3) If there is an error - a

Re: (pre)populating DynaActionForm

2004-03-12 Thread Niall Pemberton
id output the request scope on the userForm.jsp > and it turns out that Struts puts userForm in request scope on its own > with all appropriate data that I set. The question is then why aren't > they displayed in the html tags? > > Any ideas? > > Danko > > > Niall

Re: (pre)populating DynaActionForm

2004-03-12 Thread Niall Pemberton
Every thing looks fine to me. Is this the actual struts-config.xml you are trying to use - because I did notice your "/user/update" has re-direct in the "Success" forward. Obviously you say the problem is with the "/user/setUp" action but I ask because a re-direct would cause the kind of behaviour

Re: testing for presence of GLOBAL_ERROR

2004-03-12 Thread Niall Pemberton
Sorry, I meant to put the tag and you don't need to specify the name, it defaults to the Globals.ERROR_KEY For messages stored under Globals.ERROR_KEY For messages stored under Globals.MESSAGE_KEY Niall - Original Message - From: "Niall Pemberton" <[EMAIL PROTE

Re: testing for presence of GLOBAL_ERROR

2004-03-12 Thread Niall Pemberton
- Original Message - From: "mucus snot" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 12, 2004 4:51 PM Subject: testing for presence of GLOBAL_ERROR > Hi, > > I know that you can test for the presence of actionErrors with the following. > > > > But how can I test spe

Re: wizard best practices?

2004-03-12 Thread Niall Pemberton
tInput()); } } Niall - Original Message - From: "Dean A. Hoover" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, March 12, 2004 4:05 PM Subject: Re: wizard best practices? > Niall Pemberton wrote: > &g

Re: Someone out there must have done this with Struts 1.0

2004-03-12 Thread Niall Pemberton
ts 1.0? I dig through the Struts User Guide and Struts web site, there > is no example and no mentioning that being a bug. Do you know is there a > way that I can get to or send an email to one of the original Struts tag > developers to ask the question? > > -Original Message-

Re: Someone out there must have done this with Struts 1.0

2004-03-12 Thread Niall Pemberton
The tag was introduced in Struts 1.1 so thats why it doesn't work - which means you are correct to use the tag. The only comment I have, the difference between your debug stuff and the tag is you missed out the "name" attribute on the tag . Also, on the tag if you use the "collection" attrib

Re: wizard best practices?

2004-03-12 Thread Niall Pemberton
Did you add a "page" property to your DynaValidatorAction form definition in the struts-config.xml? Niall - Original Message - From: "Dean A. Hoover" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 12, 2004 3:15 PM Subject: wizard best practices? > I've been reading boo

Re: html:image - running into an infinite loop

2004-03-12 Thread Niall Pemberton
The problem you are having, is that each time you forward to an action then struts will re-populate the form from the request. That is why you are getting into a loop - when your "ResetDataAction" forwards back to "getData" - the action for getData is having the form re-populated from the request,

Re: [OT] Your Message to struts-user@jakarta.apache.org is Blocked

2004-03-12 Thread Niall Pemberton
Yes, quite a few. - Original Message - From: "Mark Lowe" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, March 12, 2004 2:43 PM Subject: [OT] Your Message to [EMAIL PROTECTED] is Blocked > Anyone else been getting these when you send stuff to the l

Re: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

2004-03-12 Thread Niall Pemberton
> > > depends="required"> > > > depends="required"> > > > > > JSP FILE (objetivo.jsp) > -- > dynamicJavascript="true&qu

Re: How to see Controller 'debug' output?

2004-03-12 Thread Niall Pemberton
I don't think setting debug actually does anything. Struts uses Commons logging which is a "bridge" with various logging implementations (I use log4j). You need to configure the logging implementation to see the output you want. Niall - Original Message - From: "bOOyah" <[EMAIL PROTECTE

Re: Thread Safe Action

2004-03-12 Thread Niall Pemberton
i press a button in a web page etc etc > if somebody have or know where to find this kind of information.(papers, > blue prints, class diagrams) > > thank you all of you > > john > Shout America > Montevideo - Uruguay > > - Original Message - > From: &

Re: have anybody ever managed to work the ValidatorActionForm???? i don't think so!!!!

2004-03-12 Thread Niall Pemberton
What is the bug in ValidatorActionForm? Niall - Original Message - From: "Julio Cesar De Salvo" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, March 12, 2004 1:48 PM Subject: RE: have anybody ever managed to work the ValidatorActionForm i don'

Re: Switching from HTTPS to HTTP

2004-03-12 Thread Niall Pemberton
Haven't used it but there is a Struts extension for this http://sslext.sourceforge.net Niall - Original Message - From: "Joao Batistella" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, March 12, 2004 1:36 PM Subject: RE: Switching from HTTPS t

Re: Thread Safe Action

2004-03-12 Thread Niall Pemberton
Shahak is correct except its not "one action object per JVM" - its "one action object per Struts module". Struts uses a separate RequestProcessor for each module, the RequestProcessor stores a single instance of each different Action class in your module, which it re-uses. Niall - Original

Re: Strange behaviour?

2004-03-12 Thread Niall Pemberton
The question is, where does your action forward to in the "valid" scenario after it has "saved" your properties? Are you forwarding to another action which is re-popoulating the form from the request? How about putting the cleanWhitespace() in your setters, rather than the validate() method: p

Re: Struts, Tiles, javax.servlet.Filter: Redirect Problem

2004-03-12 Thread Niall Pemberton
There is a SecurityFilter on source forge. Either you can look at how they do it, or maybe use it http://securityfilter.sourceforge.net/ Niall - Original Message - From: "Christian Schlaefcke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 12, 2004 9:59 AM Subject: Stru

Re: help! I m going mad

2004-03-12 Thread Niall Pemberton
In your struts-config.xml, is the action which initially displays your jsp page associated with TestBeanForm? Niall - Original Message - From: "Mu Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 12, 2004 10:17 AM Subject: help! I m going mad > I just cant use logi

Re: On usage of Resource Bundle

2004-03-12 Thread Niall Pemberton
I hesitate to answer this as I don't use modules. However, my understanding goes like this: All message resources are stored in "application" context. The default module is stored under either the key specified in or the default, which is Globals.MESSAGES_KEY. Message Resources for modules are t

Re: Populating form Elements from another object.

2004-03-12 Thread Niall Pemberton
e form is submitted, the instance of the form that i am getting in the action class is different. As a result, I cannot update the dataObject as it is null. I could not figure out where i have gone wrong. I have attached my source. Kindly help me. Thanks Shanmugam PL Niall Pembert

Re: [OT] Database password

2004-03-11 Thread Niall Pemberton
I have to say I think putting it in the source code is the worst possible option. If for security reasons (say one of your developers leaves unhappily!) you need to change your database password, I don't think you want to have to change your java source, compile and re-deploy your app in order to

Re: [OT] PDF generation (was: Reporting + Struts)

2004-03-11 Thread Niall Pemberton
e 30 seconds. Thats next on my list after the current stuff I'm doing. Niall - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, March 11, 2004 5:57 PM Subject: [OT] PDF gen

Re: [OT] PDF generation (was: Reporting + Struts)

2004-03-11 Thread Niall Pemberton
: Thursday, March 11, 2004 6:37 PM Subject: RE: [OT] PDF generation (was: Reporting + Struts) Niall Pemberton wrote > http://www.lowagie.com/iText/ > BTW, I wasn't doing it in a web environment and the pdf > generation is slow, can take up to 30 seconds for a large report. I'm

Re: Reporting + Struts

2004-03-11 Thread Niall Pemberton
I sent this earlier, but it didn't seem to reach the list. A number of messages I sent never seemed to arrive (most do) - does anyone else find this? Niall - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <

Re: Reporting + Struts

2004-03-11 Thread Niall Pemberton
>From what I saw of Jasper a year ago, the html it generated was pretty crud and you had to set up a load of XML in a definitition to generate a report. Now I may be way off base here, but if you want to generate a report in html and then render it using struts why not use jsp, tiles, velocity or

Re: Problems with custom validation

2004-03-11 Thread Niall Pemberton
Whats in your validateNif method - are you adding a error to ActionErrors if its invalid? errors.add(field.getKey(), Resources.getActionError(request, va, field)); - Original Message - From: "Diego" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 11, 2004 12:56 PM Sub

Re: can anyone help me address this issue

2004-03-11 Thread Niall Pemberton
Its not a struts issue - its a dhtml/javascript issue - maybe you should ask the question on a dhtml/javascript list. Niall - Original Message - From: "Mu Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 11, 2004 12:16 PM Subject: RE: can anyone help me address thi

Re: Changing position of nested beans

2004-03-11 Thread Niall Pemberton
seeing what happens. But indexed handler > parameters seem like the sort of thing that would be required to do > such a thing, but seem to be more the consequence of a crack induced > state of derangement than something that struts supports. > > > On 11 Mar 2004, at 12:19, Niall Pe

Re: rePost: How to set the selected value in an select rendered by optionsCollection

2004-03-11 Thread Niall Pemberton
Its the name/property specified on the tag that causes OptionsCollection to set "selected" - in your case the select tag needs to look at he country property of the customer bean - if optionsCollection finds a value that matches that, it will set selected. Niall - Original Message

Re: Struts-Validation and Property file

2004-03-11 Thread Niall Pemberton
So in your validation-rules.xml you have something like... In your properties file you define "errors.myRule" In your "MyValidator" class you have something like public static boolean validateMyRule(Object bean, ValidatorAction va,

Re: Changing position of nested beans

2004-03-11 Thread Niall Pemberton
Mark, Seems to me you have already worked out the solution, except why do you need a lookup dispatch action - rather than a "roll your own" - you have two methods right - "Move Up" and "Move Down"? Your jsp will populate a (foo?) List with either "Move Up" or "Move Down" (depending on the button

Re: Newbie needs help: Validator not working with Struts/Velocity

2004-03-11 Thread Niall Pemberton
You say "No errors are appearing in either the catalina.out or localhost log file" - I don't think validator logs anything to those places and saying that makes me think "what are you expecting to happen when validation fails". The normal course of events when validation fails is struts saves an A

Re: a security framework!

2004-03-11 Thread Niall Pemberton
I would start by looking at Tiles - you can associate roles using tiles. If you are using XML configuration, you can associate a role with a definition Also the tiles tags To find out more about tiles: http://jakarta.apache.org/struts/userGu

Re: how can I submit an array object in a form using struts?

2004-03-11 Thread Niall Pemberton
Take a look at the "indexed" properties/tags How To http://jakarta.apache.org/struts/faqs/indexedprops.html Niall - Original Message - From: "Mu Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 11, 2004 9:15 AM Subject: how can I submit an array object in a form us

Re: Populating form Elements from another object.

2004-03-10 Thread Niall Pemberton
set() method adds fields dynamically, it would do it also upon properties population. So, when a request comes loaded with fields that never should have been sent, the lazyDynaBean would add them, thus creating a small hole of security. What do you think? Erez -Original Message- From: N

Re: Populating form Elements from another object.

2004-03-10 Thread Niall Pemberton
d. An example of processing this form in Action > > classes > > would be very useful too as the way Shanmugam needs. > > > > > > "Niall Pemberton" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> Yup, thats it - plus

Re: Populating form Elements from another object.

2004-03-09 Thread Niall Pemberton
ying you'd use them instead of DynaActionForm. > > > > of course you'll need to call the package and class name to something > appropriate. > > On 9 Mar 2004, at 09:47, shanmugampl wrote: > > > Hi, > > > >I saw your code. I have one doubt. H

Re: roles filtered list of actions

2004-03-08 Thread Niall Pemberton
I don't use it, but the struts-menu add on may do what you want. http://struts-menu.sourceforge.net/ Otherwise, the ModuleConfig class has a method findActionConfigs() which returns an array of ActionConfig elements. In an Action you can get the ModuleConfig from the ActionMapping. From Act

Re: Struts Form Validation

2004-03-08 Thread Niall Pemberton
You can specify a "indexedListProperty" in the validation.xml Niall - Original Message - From: "Rous, Simon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 08, 2004 1:54 PM Subject: Struts Form Validation > I'm letting the user of my f

Re: Struts Validator

2004-03-08 Thread Niall Pemberton
They are in two places, the struts specific validator files are in the struts.jar - but validator is a commons component and its class files are in commons-validator.jar. Everything is shipped with the struts binary - look in the lib folder. - Original Message - From: "Ramachandran" <[EM

Re: internationalizing html:option tag, force to lookup resource file

2004-03-08 Thread Niall Pemberton
The tag already has this facility - you can specify a "key" attribute. If however you want yo use the tag, there was an identical discussion on this list recently. You can find the start of that thread here.. http://www.mail-archive.com/[EMAIL PROTECTED]/msg93939.html Niall - Original Mes

Re: Extending Request Processor to append request parameter

2004-03-06 Thread Niall Pemberton
Extending Request Processor to append request parameter > *Sweet*!! Thank you, Craig and Niall (got your name right this time, huh?)... > Struts gets to be any more fun, the department of homeland security is gonna > declare it an act of terrorism.. > > Geeta > > Niall Pem

Re: Extending Request Processor to append request parameter

2004-03-06 Thread Niall Pemberton
Geeta You don't need to subclass ActionServlet - you can set the RequestProcessor class in the element in the struts-config.xml Full details for the configuring the controller are in the user guide: http://jakarta.apache.org/struts/userGuide/configuration.html Niall - Original Message -

Re: Validation help for same Form, multiple pages/tabs

2004-03-05 Thread Niall Pemberton
Wendy, Validator has the concept of a "page number" - so your first tab could be page 1, second tab page 2 etc etc. On each tab's form specify a hidden tag with the page number: Then in your validation.xml, you specify the page number for each field: To: "Struts Users Maili

Re: Accessing struts module name from jsp

2004-03-05 Thread Niall Pemberton
There is a tag which will expose either the FormBeanConfig, ForwardConfig or ActionConfig as a scripting variable - however you have to specify the name of the form bean, forward or mapping. You can get the ModuleConfig from either the FormBeanConfig or ActionConfig and from ModuleConfig you can

Re: Header for errors (no HTML in the .properties file)

2004-03-05 Thread Niall Pemberton
I haven't used it, but has a "header" and "footer" attribute where you can specify a resource key. Niall - Original Message - From: "Wendy Smoak" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, March 05, 2004 10:37 PM Subject: Header for errors (no

Re: IndexedPropertyDescriptor has null readMethod/writeMethod

2004-03-05 Thread Niall Pemberton
Paul, there is an "indexed" attribute for the tags which means you don't need the scriptlet. So you could have: color: food: number: - Original Message - From: "Paul Stanton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 05, 2004 1:46 AM Subject: IndexedProp

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Niall Pemberton
Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: "Geeta Ramani" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a

Re: Best way to handle big search results..

2004-03-04 Thread Niall Pemberton
Even if everything in your system handles 320,000 lines of html, your users never will. This isn't a performance issue, its a design one. You gotta go back to the drawing board and stop trying to get something to perform that your users will never accept. Niall - Original Message - From:

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Niall Pemberton
Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: "Geeta Ramani" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a

Re: validator-rules.xml

2004-03-04 Thread Niall Pemberton
validation-rules.xml is here http://cvs.apache.org/viewcvs.cgi/jakarta-struts/conf/share/ but, with struts 1.2 the javascript moved out of the XML into .js files in commons here: http://cvs.apache.org/viewcvs.cgi/jakarta-commons/validator/src/javascript/org/apache/commons/validator/java

Re: Using Struts with Flash interface

2004-03-04 Thread Niall Pemberton
Flash has come up every now and again on this list - have alook through the archives and you might find the answers you are looking for: For example http://www.mail-archive.com/[EMAIL PROTECTED]/msg78601.html http://www.mail-archive.com/[EMAIL PROTECTED]/msg78673.html - Original Message

Re: can we have multiple paths for the same action class?

2004-03-04 Thread Niall Pemberton
Yes you can, no problem. Why not "give it a go" if you're wondering whether something will work - be brave, seize the day. Niall - Original Message - From: "Shobhana.S, ASDC Chennai" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, March 04, 2004 8:

Re: Help on ApplicationResources

2004-03-04 Thread Niall Pemberton
Kamakshya, I answered this message, but I didn't notice you had posted this to both the struts-dev AND struts-user list and the reply address defaulted to struts-dev, so my answer went there. First of all, you need to post messages to the appropriate list - this is a user question, so it never sh

Re: ConcurrentModificationException

2004-03-04 Thread Niall Pemberton
This is no good either. Action classes are not thread safe. Why not read the user manual. Theres a section "4.4.1 Action Class Design Guidelines" http://jakarta.apache.org/struts/userGuide/building_controller.html#action_classes - Original Message - From: "Sergei P. Volin" <[EMAIL PROTE

Re: Numeric validator

2004-03-04 Thread Niall Pemberton
Your can either display all errors: or errors for a specific property. http://jakarta.apache.org/struts/userGuide/struts-html.html#errors - Original Message - From: "MOHAN RADHAKRISHNAN" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursd

Re: hiding jsp files under WEB-INF

2004-03-04 Thread Niall Pemberton
not a > > > problem. > > > > > > At 09:50 AM 3/1/2004, you wrote: > > > > Alternatively > > > > > > > > Change the on your index.jsp page to an ordinary link > >and > > > > see if that works. > > > > >

Re: hiding jsp files under WEB-INF

2004-03-03 Thread Niall Pemberton
; Alternatively > > > > Change the on your index.jsp page to an ordinary link and > > see if that works. > > > > Click Here > > > > Niall > > > > - Original Message - > > From: "Niall Pemberton" <[EMAIL PROTECTED]

Re: JXPath Validator

2004-03-03 Thread Niall Pemberton
Sounds good to me. I don't know if the validator guys considered JXPath, but why don't you submit an enhacement request using bugzilla to commons with your JXPath validator attached (if you include JUnit tests you'll impress them even more). For some reason the 'validwhen' validator is part of st

Re: ServletContextListener & init parameters

2004-03-02 Thread Niall Pemberton
You can also do it with struts tags - expose the ServletContext as a variable: ...and get an enumeration of "init parameter" names Init Parameter Name: ...but theres nothing in strust to access getInitPramater(name) for the value. So it would have to be scriptlet:

Re: JSP context in an action

2004-03-02 Thread Niall Pemberton
estDispatcher could be an option request the file > get its context and then stuff the map in there, but could be > tree-barking or/and smoking too much crack. > > > > On 2 Mar 2004, at 12:59, Niall Pemberton wrote: > > > Mark, > > > > I'd like to

Re: JSP context in an action

2004-03-02 Thread Niall Pemberton
JspException; import org.apache.struts.util.RequestUtils; import org.apache.commons.beanutils.BeanUtils; /** * @author Niall Pemberton * @version 1.0.0 */ public class StoreTag extends BodyTagSupport { protected String name = null; protected String property = null; protected String scope = nu

Re: hiding jsp files under WEB-INF

2004-03-01 Thread Niall Pemberton
Alternatively Change the on your index.jsp page to an ordinary link and see if that works. Click Here Niall - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, Ma

Re: hiding jsp files under WEB-INF

2004-03-01 Thread Niall Pemberton
If you look in 'logic tags' package: http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/taglib/logic/ In LocalStrings.properties you will see that the message you are getting ("Exception forwarding for name ?") matches the message named 'forward.forward'. If you th

Re: Forwarding between actions

2004-02-29 Thread Niall Pemberton
Sent: Sunday, February 29, 2004 1:50 PM Subject: RE: Forwarding between actions > So, you say that struts does repopulating of a from in forwarding > between action, then my problem is that if there is a new Item (say > customer) then the Id in the request is not the correct id (usually 0 or

Re: Forwarding between actions

2004-02-29 Thread Niall Pemberton
Boaz Struts should do its normal stuff when you forward to your SetView action. That is, it should create the form associated with SetView and populate it from the request. If, for example I have a "view customer" action - which gets called with a "customerNumber" parameter - struts will populate

Re: need help converting from session to request scope

2004-02-26 Thread Niall Pemberton
Given your scenario, it sounds like a good candidate for a session scoped form. I agree with what Mark Lowe said - usually/often "...theres no more work invloved scoping to request" - thats been the case for my app. I would also do what you said in a previous post - which is "clean up" the session

Re: need help converting from session to request scope

2004-02-26 Thread Niall Pemberton
use? Or you reckon that the reading and writing would consume similar > amounts of ram? I'll get around to trying it when i get a moment. > > On 26 Feb 2004, at 14:04, Niall Pemberton wrote: > > > Given your scenario, it sounds like a good candidate for a session > > sco

Re: custom validator question

2004-02-26 Thread Niall Pemberton
Specify the second field as datePattern dd/MM/ compareDate mySecondDate Then in your custom validation method: String datePattern = field.getVarValue("datePattern"); String compareDateProperty = field.getVarValue("compare

Re: custom validator question

2004-02-26 Thread Niall Pemberton
Also, what about using the existing ValidWhen validation http://jakarta.apache.org/struts/userGuide/dev_validator.html Niall - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thu

Re: (Fwd) row counts in logic:iterate...

2004-02-26 Thread Niall Pemberton
Because ctr is an "Integer" object - not a int primitive. Niall - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 26, 2004 5:13 PM Subject: (Fwd) row counts in logic:iterate... > Sorry, my mailer messed up the last one, so here again... >

Re: FormBeans: A question of Style

2004-02-26 Thread Niall Pemberton
Dam - I was in Camp 3: Form beans are View components...but looking in the user guide... "Note: While ActionForm beans often have properties that correspond to properties in your Model beans, the form beans themselves should be considered a Controller component. As such, they are able to transfer

Re: Problem with loss form (session scope)

2004-02-26 Thread Niall Pemberton
Thats the problem with sessions, now if you'd done it in request you'd never really have it to loose. If it has to be sessions though either increase the timeout or shorten your lunch break. Niall - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Struts Users Mailing List"

Re: Problem with loss form (session scope)

2004-02-26 Thread Niall Pemberton
Without seeing your jsp/struts-config.xml/action its a bit of a guessing game. I'm a bit confused by you saying "...at this point, I set up this form bean as session scope". To me this implies your getting a form not in session scope (i.e. request) and saving it yourself in session scope. If that

Re: Xhtml tag usage question

2004-02-26 Thread Niall Pemberton
Unfortunately it saves the xhtml 'flag' in page scope so there isn't much you can do about it. Background: BaseHandlerTag has an isXhtml() method which calls the TagUtils.isXhtml() method which checks the xhtml 'flag' in page scope. I did think a solution would be to override the TagUtils.isXhtml

Re: Tomcat 4 Compression Filter

2004-02-26 Thread Niall Pemberton
ion Filter > put apache in front of tomcat and install mod_gzip with apache. > it will do almost everything you can wish for? > > >-Original Message- > >From: Niall Pemberton [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, February 25, 2004 5:43 PM &g

Re: DynaValidatorForm loses property value

2004-02-26 Thread Niall Pemberton
Try adding 'name' attribute to the tag The tag will expose (or create a new) the ActionForm associated with the mapping with a value of 'org.apache.struts.taglib.html.BEAN'. This is the default 'name' for tags if you don't specify one (which you arnt). The action mapping on your form i

Re: Tomcat 4 Compression Filter

2004-02-25 Thread Niall Pemberton
[EMAIL PROTECTED]>: > > > > > I've also been playing around with this with mixed results. > > I've been > > > looking for some doc on the filter mainly to better understand the > > > 'compressThreshold' setting. Does anyone have any

Re: Tomcat 4 Compression Filter

2004-02-25 Thread Niall Pemberton
> > > > Jerry Jalenak > > Development Manager, Web Publishing > > LabOne, Inc. > > 10101 Renner Blvd. > > Lenexa, KS 66219 > > (913) 577-1496 > > > > [EMAIL PROTECTED] > > > > > > > -Original Message- > > > Fro

Re: How to create an include which calls an action

2004-02-25 Thread Niall Pemberton
The thread name changed (it got re-posted) to re: To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, February 25, 2004 2:38 PM Subject: Re: How to create an include which calls an action > > Did anyone figure out how to do this? > > Giri SENji. > > -"Tommy Holm - TELMO

Re: & dynamic URI

2004-02-25 Thread Niall Pemberton
Someone else was struggling with this problem this week - they ended up using the tags, but they only required two options. If you want the conditional logic in your jsp then put it in either ... 1) Scriptlet 2) Struts logic tags 3) JSTL 4) Your own custom tag (maybe extending the tag) Niall --

Re:

2004-02-25 Thread Niall Pemberton
OK but I think the forward is causing the problem. Looking at the request processor you need to specify an "include" in your struts-config.xml action mapping instead of a forward. - Original Message - From: "Tommy Holm - TELMORE" <[EMAIL PROTECTED]> To: "Struts Users Mailing List"

Re: error no getter method defined while inside logic:iterate

2004-02-25 Thread Niall Pemberton
you have any other suggestions, I'd be happy. > > Otherwise I will just try a workaround which is not such a nice > sollution, but it will work I guess: just put everything, all different > fields, in one long array, in stead of working with the > array[0].fieldname option. > > ri

Re:

2004-02-25 Thread Niall Pemberton
Haven't done what you're trying - but isn't the problem that at the end of the action execute() the RequestProcessor will forward to whereever you tell it, which is probably why everything stops after that. What happens if you return 'null' from your execute() method instead of an ActionForward -

Re: Common Services across Different Actions.

2004-02-25 Thread Niall Pemberton
...and another could involve using Filters. Niall - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, February 25, 2004 12:38 PM Subject: Re: Common Services across Differen

Re: need help converting from session to request scope

2004-02-25 Thread Niall Pemberton
They don't have anything that specifically addresses nested properties. If you're just displaying nested properties then no problem - BeanUtils handles nested properties in the normal way for the struts tags. The would be an issue if you want an input form with nested properties and my Lazy forms

Re: Common Services across Different Actions.

2004-02-25 Thread Niall Pemberton
I guess the other approach would be to plug in a custom RequestProcessor - but its not easy to sub-class the original, there is only one 'hook' [processPreprocess()] for putting your code in and overriding other methods usually ends up invloving duplicating some of the code in the original method.

Re: Struts Tag Lib Documentation/Tutorials

2004-02-25 Thread Niall Pemberton
http://jakarta.apache.org/struts/userGuide/index.html If you look at the second part of the menu of the left titled "Developer Guides" you can see the all the different tag packages guides. Niall - Original Message - From: "Kommineni, Sateesh (GE Consumer & Industrial)" <[EMAIL PROTECTE

Tomcat 4 Compression Filter

2004-02-25 Thread Niall Pemberton
There is a CompressionFilter class shipped with with Tomcat which compresses the ServletResponse that I'm considering using (we have some remote offices which have slow links): http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/webapps/examples/WEB-INF/classes/compressionFilters/CompressionFil

Re: validation error in FormBean, where to redirect next?

2004-02-25 Thread Niall Pemberton
Yes - Original Message - From: "Marco Mistroni" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, February 25, 2004 10:51 AM Subject: validation error in FormBean, where to redirect next? > Hi all, > Assume that I have following struts-config.xml

Re: need help converting from session to request scope

2004-02-25 Thread Niall Pemberton
+1 - Original Message - From: "Mark Lowe" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, February 25, 2004 11:36 AM Subject: Re: need help converting from session to request scope > I have to say I'm changing sides in this debate. The only 'need'

  1   2   3   >