Re: ProductCatalog Tree and Session Scope

2006-06-02 Thread Jan Michael
Hi Dave, Dave Newton pingsite.com> writes: > If the thing you're looking for is already in session why would you want > to access it in an ActionForm? Just display it and capture the form > selections in the ActionForm. This won't work for my example. The ActionForm is needed to set the propert

Re: The validwhen validation's treatment of null and empty string

2006-06-02 Thread Scott Van Wart
Craig McClanahan wrote: You need to test for both conditions in the latter case, but the particular approach you suggest above is not necessarily going to work. You cannot reliably do "==" tests on strings if you are looking for equality -- you need to use the equals() function instead. Not sur

Re: The validwhen validation's treatment of null and empty string

2006-06-02 Thread Craig McClanahan
On 6/2/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: If a bean's property is the empty string "", does a test like (property == null) suffice? Or do I have to say ((property == null) or (property == ''))? You need to test for both conditions in the latter case, but the particular approach yo

The validwhen validation's treatment of null and empty string

2006-06-02 Thread Scott Van Wart
If a bean's property is the empty string "", does a test like (property == null) suffice? Or do I have to say ((property == null) or (property == ''))? - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Validation 'depends' attribute order, and 'validwhen'

2006-06-02 Thread Scott Van Wart
I've been looking through guides and such online, but I'm not really clear how the validations work. For example, the JavaDoc for org.apache.struts.validator.FieldChecks.validateLong says it returns "true if valid, false otherwise.", but if the checked value can be converted to java.lang.Long,

Re: ProductCatalog Tree and Session Scope

2006-06-02 Thread Dave Newton
Jan Michael wrote: > How Can I access the productgroup catalog in the session context in an > ActionForm because I want to use the monkeyTree example by Arron Bates to > display the tree structure. > If the thing you're looking for is already in session why would you want to access it in an A

ProductCatalog Tree and Session Scope

2006-06-02 Thread Jan Michael
Hello, actually I try to code an eshop using struts and hibernate technologies. I need some help with my product categories. I want to create a tree where the user (customer) can toggle hrough the product categories of the shop. This has already been done via the MonkeyTree tutorials by Arron Ba

RE: wrong direction in validate

2006-06-02 Thread Yee, Richard K CTR DMDC
You should define separate action mappings for the different pages that use the action with the different input attribute values. -Richard -Original Message- From: Andreas Hartmann [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 1:27 PM To: Struts Users Mailing List Subject: Re: w

Re: Logic:Iterate & HashMap

2006-06-02 Thread Monkeyden
Use the name and property attributes in your iterate tag, where "name" is the name of your DTO and "property" is the name of the Map within the DTO. You can have a look at the docs here: http://struts.apache.org/struts-doc-1.2.7/userGuide/struts-logic.html On 6/2/06, Marco Mistroni <[EMAIL PROT

Re: wrong direction in validate

2006-06-02 Thread Andreas Hartmann
Hello Dave, Dave Newton wrote: > Andreas Hartmann wrote: >> How does struts determinate the destination to go to in error situation? >> > > If you're letting Struts do the validation it will return to whatever > you have defined as the 'input' attribute in your action mapping, which > you didn

Re: Email validation doesn't work

2006-06-02 Thread Caroline Jen
The Struts has built-in e-mail validation, which can be found in the commons-validator.jar. --- Bart Busschots <[EMAIL PROTECTED]> wrote: > Hi, > > Your regular expression on the mask would seem to be > problem. I presume > you want it to match words that contain no = rather > than what you ha

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-02 Thread Samere, Adam J
Thanks for clarifying that. While taglib entries aren't required, they can be used, and in troubleshooting a tag library issue it can be important to know whether they are specified in web.xml or loaded automatically from jar files. -Adam -Original Message- From: John R. Dumonceaux [mailt

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-02 Thread John R. Dumonceaux
For JSP 1.3 and higher you don't need the taglib entries in the web.xml. The directive in the JSP file is all you need. John Dumonceaux "Samere, Adam J" <[EMAIL PROTECTED]> 06/02/2006 10:36 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject RE: [S

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-02 Thread Samere, Adam J
I doubt that the include is not working. What version of JSTL are you using? Do you have taglib entries in web.xml? Can you explain "JSTL stopped working" a little more extensively? -Original Message- From: Rafael [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 11:01 AM To: Struts

Re: wrong direction in validate

2006-06-02 Thread Scott Van Wart
Dave Newton wrote: Andreas Hartmann wrote: How does struts determinate the destination to go to in error situation? If you're letting Struts do the validation it will return to whatever you have defined as the 'input' attribute in your action mapping, which you didn't post. If you'r

[Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-02 Thread Rafael
Hi Guys, I've an application that uses Struts and Tiles, this application was running on WebSphere 5.1 for almost 3 years but now when we moved to WAS6 JSTL stopped working. Let me give an example: we've a jsp page called taglibs.jsp, in this jsp page we've all the struts, jstl taglibrary

RE: Validation with validwhen

2006-06-02 Thread Samere, Adam J
No, js support for validwhen is not provided. You can tell by looking at the validation-rules.xml file, which does not have a jsFunction attribute defined on the "validwhen" validator element. -Original Message- From: Cassio Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 1

Validation with validwhen

2006-06-02 Thread Cassio Pereira
Hi all. Simple question. Does "validwhen" works client side? Regards -- Cassio Santos Pereira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Email validation doesn't work

2006-06-02 Thread Bart Busschots
Hi, Your regular expression on the mask would seem to be problem. I presume you want it to match words that contain no = rather than what you have at the moment which forces ALL letters to be = which I'm sure doesn't work. The RE you need is: ^[^=]+$ HTH, Bart. marisol wrote: Can anybody

Re: Struts Best Practices

2006-06-02 Thread Ted Husted
There's a presentation you can review here, but it's not an actual article. * http://opensource.atlassian.com/confluence/oss/pages/viewpageattachments.action?pageId=829 -- HTH, Ted. * http://www.husted.com/struts/ On 6/2/06, Hanmay Udgiri <[EMAIL PROTECTED]> wrote: Hi Can anybody have any ar

Re: Cancel button:NOT work

2006-06-02 Thread Dave Newton
M.Liang Liu wrote: > Thank you,sir. Just for completeness, Wendy's a she ;) Darn lack of gender-specific pronouns... My taiji teacher always referred to me as "her" when talking about me in class. Took like three years to finally get her to stop. Dave -

RE: dispatch action error

2006-06-02 Thread Samere, Adam J
Perhaps two requests are being made: one for the anchor, one for the form submit. The anchor would send the method value, the form would not (unless you have an input named method defined on the form). -Original Message- From: Shoukat, Faisal [mailto:[EMAIL PROTECTED] Sent: Friday, June

RE: dispatch action error

2006-06-02 Thread Shoukat, Faisal
I did some debugging on the getMethod() and when I submit the form the request.getParameter() first time returns '' then in the same request changeStatus parameter is found. So its not that the form is not passing the parameter because it does, the issue I don't understand is why would it pass ''

Re: wrong direction in validate

2006-06-02 Thread Dave Newton
Andreas Hartmann wrote: > How does struts determinate the destination to go to in error situation? > If you're letting Struts do the validation it will return to whatever you have defined as the 'input' attribute in your action mapping, which you didn't post. If you're doing validation some oth

RE: dispatch action error

2006-06-02 Thread Samere, Adam J
I don't think your method param is being passed when the form is submitted. You should probably make the parameters you are passing in the query string hidden fields on the form you are submitting. If you need to dynamically set the method parameter you can then do so in the onclick event of the an

Email validation doesn't work

2006-06-02 Thread marisol
Can anybody help me with this? THANKS! Marisol. With Struts Validator Framework, the following mail is valid [EMAIL PROTECTED] I tried with the following but it doesn't work. mask ^[=]*$ Anyone knows if there's a bug place or it's me doin

Re: Java Exams Web site

2006-06-02 Thread Ahmed Hashim
any answer? Regards, On 5/29/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote: Dear All, From 2 months, I found a web site offer Free Java Exams and Exams for frameworks like Struts and all technologies like EJB, JSF. There are 2 types of exam, Demo and Real. To go through the real exam, you must ha

Non-initializing Struts Action Servlet, Digester and xercesImpl

2006-06-02 Thread Hauknes Gudny 
Hi, Referring to (FW: [jira] Commented: (MYFACES-1170) Application can not startif xercesImpl-2.7.1.jar is present and http://www.mail-archive.com/dev@myfaces.apache.org/msg12153.html I wonder if anyone else had the problem described below: Deploying a Struts 1.2.9 web application on Oracle 10g

Console

2006-06-02 Thread Abhimanyu Koul
hi! I have a problem in running struts console. The application just not starts up. i use windows 2000. it used to work fine till yesterday but from the last 10 hours it is not working. i tried to reboot, reinstall, reinstall jre but to no avail. the struts console window appears in the taskbar

dispatch action error

2006-06-02 Thread Shoukat, Faisal
Hi Guys, I am after some advice with the following: I am submitting a form which has the value as selected in a drop down. From my struts config.xml it forwards to the correct dispatch action class method. And does the processing within that method. However just before returning to the ne

Logic:Iterate & HashMap

2006-06-02 Thread Marco Mistroni
Hi all, I m having a problem with logic:iterate I have a Map that contains{String, MyDTO} In my jsp I m writing following code; 0

Re: Global forwards don't support Tiles definitions?

2006-06-02 Thread Lixin Chu
not sure if this is what you want but this one should work: global forward is defined as, fot example: the ".authorizationError" is defined as a Tile: in your action class, you can do this: return mapping.findForward("authorizationError");

Struts Best Practices

2006-06-02 Thread Hanmay Udgiri
Hi Can anybody have any articles for struts best practices?? Will be of great help. -- Thanks and Regards Hanmayya Udgiri