Re: What happens to exceptions not handled within Action class ?

2005-11-12 Thread Laurie Harper
In that case you must have configured or coded something to make that happen... Do you have something like 'try{ ... } catch (...) { return findForward(fail); } in your action? L. Mon Cab wrote: The browser is just redirecting to my fail ActionMapping. And there's nothing going in the logs

Iterating over a Collection of Collection of Bean

2005-11-12 Thread Tim Teulings
Hello! I want to display a property in my *jsp that is of type Collection (LinkedList) of Collection (LinkedList) of Bean - in principle a two dimensional matrix of Beans. I tried to use some code like logic:iterate id=categoryList name=categories type=java.util.LinkedList X logic:iterate

FormFile.getContentType and IE

2005-11-12 Thread Ben
Hi It seems like the FormFile.getContentType method doesn't return anything when uploading file using Internet Explorer 6 SP2. The method returns correct result when I use Firefox or Opera browsers to upload file. I am calling this method in an Action, no validation or anything. Is this a known

Re: FormFile.getContentType and IE

2005-11-12 Thread Alexandre Simon
Ben wrote: Hi It seems like the FormFile.getContentType method doesn't return anything when uploading file using Internet Explorer 6 SP2. The method returns correct result when I use Firefox or Opera browsers to upload file. IE does not send anything to server, or application/octet-stream

Re: What happens to exceptions not handled within Action class ?

2005-11-12 Thread Frank W. Zammetti
I highly suggest using the global exception handling facility: http://struts.apache.org/struts-doc-1.2.7/userGuide/building_controller.html#exception_handler Frank Laurie Harper wrote: In that case you must have configured or coded something to make that happen... Do you have something like

Validator framework introduces errors

2005-11-12 Thread Raghu Kanchustambham
Hi, The minute I introduced Validator framework in my application . it started giving me the following error when I accessed the JSP centreList is used as a parameter for the dropdown. The minute I remove the validation.xml from the path... the application runs fine again! :( very

Fw: Validator framework introduces errors

2005-11-12 Thread Martin Gainty
I did'nt see the (StudentEnquiry.jsp) jsp page which references centreList bean? I also dont see the code for centreList bean? Martin- - Original Message - From: Raghu Kanchustambham [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, November 12,

Re: Fw: Validator framework introduces errors

2005-11-12 Thread Raghu Kanchustambham
Hi Martin, I do something like: request.setAttribute(centreList,DataAccessManager.getCentres()); before invoking the jsp. The strange part is, the minute i remove validation.xml from the validator path, effectively removing the validation framework, every thing works just fine! Just cant

Re: Fw: Validator framework introduces errors

2005-11-12 Thread Martin Gainty
I didnt see the contents E.G. tag /tag for your c.tld ?? Martin- - Original Message - From: Raghu Kanchustambham [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, November 12, 2005 10:37 AM Subject: Re: Fw: Validator framework introduces errors Hi

Validator framework hijacks requests! :(

2005-11-12 Thread Raghu Kanchustambham
I think I can explain it now. I hit the action servlet first invoking preCreate function. This function populates various lists of beans needed for dropdowns and put these lists in the request object and forward to a JSP. The JSP reads these lists and displays the dropdowns. So far so good!

Re: Validator framework introduces errors

2005-11-12 Thread Paul Benedict
Some things to check: 1) You have a resource bundle loaded by Struts. 2) Your keys listed in the validator are in the resource bundle. 3) You have a configuration file which lists out the validations needed by the validator. 4) You're using the correct version of validator for your version of

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Paul Benedict
There's nothing wrong with ussing session scoped forms. You can attached these lists right to the form, if you want - just make sure you remove the form from memory when you're finished. --- Raghu Kanchustambham [EMAIL PROTECTED] wrote: I think I can explain it now. I hit the action servlet

Re: Validator framework introduces errors

2005-11-12 Thread Raghu Kanchustambham
Hi Paul, The minute I supress the field which requires the centreList, everything works fine. As long as there is no state that is involved... that is .. simple textboxes its working fine. All other variables in the request variables are getting wiped off ! :( On 11/12/05, Paul Benedict

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Raghu Kanchustambham
Thanks.. may be i will do it as a last option. But is my explanation correct? I am new to Validation framework .. just started using it for the last 2 days .. and struts as such for just over a month. So want someone's opinion on my explanation of why state is being lost! thanks raghu On

Eclipse and Struts Problem!!

2005-11-12 Thread Daham Vitarana
Hi, I am having trouble configuring eclipse 3.0 to use Struts. I saw that there had been an excellent tutorial on how to do this on struts web site, but when I tried to access it, it is no longer there. Can anyone help me with this please. I am using Tomcat as the servlet container. Thanks

STRUTS Forrest integration

2005-11-12 Thread Jim Douglas
Has anybody integrated STRUTS with Forrest or know a of any How-Tos? My STRUTS/Tiles site if working great but I'm afarid to integrate Forrest without a roadmap and an idea of the time it would take. Thanks, Jim - To

Re: Eclipse and Struts Problem!!

2005-11-12 Thread Wendy Smoak
On 11/12/05, Daham Vitarana [EMAIL PROTECTED] wrote: Hi, I am having trouble configuring eclipse 3.0 to use Struts. I saw that there had been an excellent tutorial on how to do this on struts web site, but when I tried to access it, it is no longer there. It would help to know the URL you

Menu Layout

2005-11-12 Thread bib_lucene bib
Hi All I looking for a sample to construct menu. I am using struts and tiles. My requirement is I have to show a small image and a name next image in my menu. Clicking on the menu item body tile should change. I am using classiclayout. The problem is I am able to put just text in menu

Re: Menu Layout

2005-11-12 Thread Ted Husted
If this is the sort of thing you mean * http://demo.raibledesigns.com/struts-menu/permissionsForm.jsp then try this * http://struts-menu.sourceforge.net/ -- HTH, Ted. http://www.husted.com/poe/ On 11/12/05, bib_lucene bib [EMAIL PROTECTED] wrote: Hi All I looking for a sample to construct

Re: Menu Layout

2005-11-12 Thread bib_lucene bib
Thanks Ted Perfect thanks. The only concern I have on this is last release is sept 2004. Is it ok to use it now. bib/- Ted Husted [EMAIL PROTECTED] wrote: If this is the sort of thing you mean * http://demo.raibledesigns.com/struts-menu/permissionsForm.jsp then try this *

AW: Eclipse and Struts Problem!!

2005-11-12 Thread R. Markham
Hallo, you should define the directory webapps of your tomcat installation as your workspace. Copy the the blank_apps of the strut directory to the webapps directory. Change the name of the blank_app to the app. Name. restart tomcat and restart eclipse and define a new project with the name you

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Paul Benedict
What is preCreate? Is that a method you have? Know that the validator will not call your action if a validation error has occured. --- Raghu Kanchustambham [EMAIL PROTECTED] wrote: Thanks.. may be i will do it as a last option. But is my explanation correct? I am new to Validation framework

Problems with validwhen

2005-11-12 Thread Mon Cab
I am trying to use validwhen to make sure that validator only requires a valid State and Zip if the country selected is United States. But I am getting required error messages from both state and zip when the form is submitted without these values. I am using the following config for

Ich bin im Urlaub

2005-11-12 Thread bednarz
Sehr geehrte Damen und Herren, in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder telefonisch an: 0511 / 93 62 28 22 Mit freundlichen Grüßen Andreas Bednarz

Runtime debugging - and Painfull Tomcat restarts

2005-11-12 Thread Mon Cab
Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. __

Re: Iterating over a Collection of Collection of Bean

2005-11-12 Thread Laurie Harper
Tim Teulings wrote: Hello! I want to display a property in my *jsp that is of type Collection (LinkedList) of Collection (LinkedList) of Bean - in principle a two dimensional matrix of Beans. I tried to use some code like logic:iterate id=categoryList name=categories type=java.util.LinkedList

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Laurie Harper
The trick is to only include validation on the data processing actions, not on the pre-display actions (i.e. use validate=false on your preCreate action mapping, and only put validate=true on the action you submit the form to). Then set the 'input' attribute for your validating actions to

Re: Problems with validwhen

2005-11-12 Thread Laurie Harper
Mon Cab wrote: I am trying to use validwhen to make sure that validator only requires a valid State and Zip if the country selected is United States. But I am getting required error messages from both state and zip when the form is submitted without these values. I am using the following

Re: Runtime debugging - and Painfull Tomcat restarts

2005-11-12 Thread Laurie Harper
Mon Cab wrote: Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. You can tell Tomcat to make the context

Re: Problems with validwhen

2005-11-12 Thread Paul Benedict
Mon, There's two conditions here. The State and Zip are valid (not required) when... Always look at this as valid not required; you need to list out the conditions which will make the validation pass. [1] the country is United States and *this* is not null [2] the country is not United States

Re: Runtime debugging - and Painfull Tomcat restarts

2005-11-12 Thread Paul Benedict
Check out your context setting. Set the reloadable attribute to true. http://tomcat.apache.org/tomcat-5.0-doc/config/context.html Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is

Re: Validator framework hijacks requests! :(

2005-11-12 Thread Raghu Kanchustambham
Thanks Laurie for the suggestion. Then set the 'input' attribute for your validating actions to point to the pre-population action (so when validation fails, Struts forwards to preCreate, not directly to the JSP). That explains why the request variables are getting wiped off! :-) I realize I