RE: [slight OT] SSLExt default behavior

2004-10-21 Thread David G. Friedman
Joe, How about changing the any default in org.apache.struts.config.SecureActionConfig to false in a WEB-INF/classes overriding class? The original code for that class from CVS is pretty bare bones: http://cvs.sourceforge.net/viewcvs.py/sslext/sslext120/src/org/apache/struts

RE: Struts - XML - Validation according to a XML Schema

2004-10-21 Thread Yoni . RACHOVITCH
Thank you for the answer but... I have no parser validating/understanding schema XML, so which one?, and how can I make my struts config understand Schema validation? I know it can be easy for you but it is not clear for me... Thanks -Message d'origine- De : Craig McClanahan

Re: Struts - XML - Validation according to a XML Schema

2004-10-21 Thread Craig McClanahan
On Thu, 21 Oct 2004 09:34:06 +0200, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thank you for the answer but... I have no parser validating/understanding schema XML, so which one? If you are running J2SE 1.4 or later, you already have a parser that can handle schema parsing. Alternatively,

reusing actionform

2004-10-21 Thread Shahin Hadjikuliev
Hi , list I have a form in one action , and I want to get access to the fields of this form in the next actions , have I any ways to do it other then putting in session? thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Dynamic Fonts: Devolving to Default Dialog

2004-10-21 Thread shilpa . vaidya
Need to unsubscribe Struts mailing List. please help me with the same. -- This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message,

Re: bean value within src of html:Image

2004-10-21 Thread dmu2201
Tito Eritja wrote: How to use some bean value within a html:Image src? I've tried something like html:Image src=%=bean.getValue()%/ but it doesn't work, there's something like paramName and paramProperty of html:link tag for html:Image? thanks in advance tito Why not use EL?! Then you could

Re: Question regarding formbeans

2004-10-21 Thread dmu2201
Vinicius Carvalho wrote: Hi there! I have the following problem: My form offers the ability to a user select from some categories, let's say first grade, second grade on the next step user selects subjects for each one: first grade: MathEnglishScience second grade: MathEnglish

Exception handling not working

2004-10-21 Thread dmu2201
Hi ML... I have a problem with my exception handling mechanisem. If I write: global-exceptions exception type=java.lang.Exception key=error.system scope=session path=/Error.jsp /global-exceptions I get nothing... The stacktrace

Re: reusing actionform

2004-10-21 Thread dmu2201
Shahin Hadjikuliev wrote: Hi , list I have a form in one action , and I want to get access to the fields of this form in the next actions , have I any ways to do it other then putting in session? thanx Propably not, since the response and request objects are new objects each time you make a

Re: Struts Validator and dynamically generated form fields

2004-10-21 Thread dmu2201
Thompson Marzagao wrote: Hi all, I am generating some form field names dynamically, based on the value of a request variable. Since I am using Niall Pemberton's LazyValidatorActionForm (see http://www.niallp.pwp.blueyonder.co.uk/), I don't have a problem getting their values. The problem is

Re: bean value within src of html:Image

2004-10-21 Thread David Farrell
The way I have done this is: img src=images\bean:write name=beanname property=imagename/ and it works fine for my purposes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [REPOST] Get Raw Action Path.

2004-10-21 Thread Alan Pocklington
Cheers for that David. Despite all my searching through the Struts source I couldn't figure that one out. Luckily I'm not using modules so that should work a treat. Thanks again, Alan. David G. Friedman [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: A solution in Struts v1.2.4 is at

Getting a resource from a WAR

2004-10-21 Thread kjc
I have an ActionServlet that subclasses the struts action servlet. In my init() method i'm trying to load a resource like this. public void init(){ URL url = this.getServletContext().getResource(/myresource.xml); logger.info(the config resource was + (url != null ? found

Re: i18n of bean properties/data

2004-10-21 Thread Colin Kilburn
Joe, Joe Hertz wrote: 1) bean:message is already smart enough to do what you want, so I don't see the necessity of making bean:write locale sensitive. You get the right text from some place, and if it's the property file, you already have what you need. Unfortunately they're not in a property

Re: Getting a resource from a WAR

2004-10-21 Thread Jeff Beal
Try getResource(/WEB-INF/myresource.xml); -- Jeff kjc wrote: I have an ActionServlet that subclasses the struts action servlet. In my init() method i'm trying to load a resource like this. public void init(){ URL url = this.getServletContext().getResource(/myresource.xml);

RE: Tiles Question

2004-10-21 Thread Ray Madigan
Well _ I attempted to upgrade to struts 1.2.4 and I get the following stack trace. Seems like it might have something to do with library mismatch? I am continuing to try to figure it out, any help would be appreciated. Otherwise I have to go back to 1.1 to meet my deadlines. 2004-10-19 23:01:51

struts validation and resource bundle

2004-10-21 Thread Ashish Kulkarni
Hi I am using struts 1.2.4 and valiator 1.1.3 , i am having problem replacing text from resource file. I have 2 resource files defined, and i want to get the text message from second resource file The struts.config is as below message-resources key=approvals parameter=approval / message-resources

Re: Tiles Question

2004-10-21 Thread Sean Schofield
snip - Root Cause - java.lang.NoSuchMethodError: org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljav a/lang/Object;Ljava/lang/Throwable;)V at org.apache.commons.logging.impl.Log4JCategoryLog.trace(Log4JCategoryLog.java :77) at

Struts faces

2004-10-21 Thread James Mitchell
Google fails to help on this. Has anyone else seen this error when running the struts-faces example apps? ... ... Oct 20, 2004 11:33:35 PM com.sun.faces.config.ConfigureListener parse SEVERE: Can't parse configuration file:jndi:/localhost/struts-faces-example1/WEB-INF/faces-config.xml

Tiles and .jsp Error reporting

2004-10-21 Thread Ulrich Elsner
Hi, I have the following problem surface recently which I _think_ is caused by an upgrade from Struts 1.1 to 1.2.4. If an .jsp file containing an error (not the tag html:errors/ but a error like logic:redirect... (note the missing closing element / )) is called, I get an exception

RE: Struts Validator - ValidWhen

2004-10-21 Thread Daniel Kalcevich
I have upgraded to 1.2.4 and the problem still exists. I swapped out the .jar files, the .tld files, and verified that the .xml files were using the correct dtd. Any other ideas about what I might be able to check? Thanks. Daniel -Original Message- From: Niall Pemberton

FW: property element in logic tag

2004-10-21 Thread Suzy Fynes
Hi, Can anyone see why the following will would not work logic-el:match name=PersonStatus property=person.countryCode.countryCode value=${CountryCode.countryCode} PersonStatus is a session object that contains a nested object countryCode of type CountryCode and the class CountryCode

Re: i18n of bean properties/data

2004-10-21 Thread Craig McClanahan
On Thu, 21 Oct 2004 11:38:05 -0300, Colin Kilburn [EMAIL PROTECTED] wrote: Joe, Joe Hertz wrote: 1) bean:message is already smart enough to do what you want, so I don't see the necessity of making bean:write locale sensitive. You get the right text from some place, and if it's the

FileUpload Errors

2004-10-21 Thread Marwan Salam
Hi all, I am using Struts 1.1 and I am trying to upload an image file to the server but I keep getting the below exception. I have used the example that comes with Struts under jakarta-struts-1.1\webapps and did exactly like they have but still getting the exception. I have put print

RE: FileUpload Errors

2004-10-21 Thread Travis Reeder
Looks like you need the latest commons-fileupload.jar. Travis -Original Message- From: Marwan Salam [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 10:21 AM To: [EMAIL PROTECTED] Subject: FileUpload Errors Hi all, I am using Struts 1.1 and I am trying to upload an image

Re: Struts faces

2004-10-21 Thread Craig McClanahan
That's really odd ... the exception at line 1183 is trying to get an input stream for your /WEB-INF/faces-config.xml file failing, but this code would never get called unless the resource actually exists. What version of Tomcat are you using? (And which build of struts-faces?) Could there be

Re: Struts Validator - ValidWhen

2004-10-21 Thread Niall Pemberton
Looks to me like validwhen is working correctly. When you enter an id then the last name validation will always fail because id is not null. Don't you need something like the following: 1) On the id field check that either an id or last name have been entered: field property=id depends=validwhen

Synchronized keyword question

2004-10-21 Thread Randy Eckhoff
I am evaluating struts and have a question about something I read in the O'Reilly Jakarta Struts book. Specifically it says to not use the synchronized keyword and to avoid Vector and Hashtable at all. Considering that our system has been for a long time, this is actually a huge thing for us. Is

Re: FW: property element in logic tag

2004-10-21 Thread Jeff Beal
I think you have a few extra layers of nesting. What exactly are your system.out checks? What's being called in the custom tags is the same as session.getAttribute(PersonStatus).getPerson().getCountryCode().getCountryCode() The value portion of the logic-el/ tag is

Re: Synchronized keyword question

2004-10-21 Thread Craig McClanahan
It's too simplistic to make always or never statements on this topic -- you have to evaluate each use case on its own, based on the actual environment. Synchronization is never an issue for single-threaded applications (like a stand-alone Java application), because there is never any potential

Re: FileUpload Errors

2004-10-21 Thread Michael McGrady
The method setMaxFile(long) exists even in older versions. So, are you doing something other than tossing a long value into that method? Michael McGrady Travis Reeder wrote: Looks like you need the latest commons-fileupload.jar. Travis -Original Message- From: Marwan Salam

Re: Struts faces

2004-10-21 Thread James Mitchell
(Tomcat 5.0.28) Well, this is interesting. If I simply copy the deployment (or the .war) to webapps, it deploys finebut if I do this: Context path=struts-faces-example1 docBase=D:/cygwin/home/jmitchell/svn/struts/trunk/struts-faces/example1-web app/target/struts-faces-example1

Re: Struts faces

2004-10-21 Thread Kevin Clifton
Just battled one of these this AM on Tomcat 4.1. In our case, it turned out that Tomcat couldn't parse the backslashes in the docBase. Try it with forward slashes as path delimeters. Kev On Thu, 21 Oct 2004 14:05:10 -0400, James Mitchell [EMAIL PROTECTED] wrote: (Tomcat 5.0.28) Well, this

Re: i18n of bean properties/data

2004-10-21 Thread James Mitchell
database should be straightforward. Indeed, James Holmes did some... ummm, you got the James part right, but not the Holmes part ;) http://wiki.apache.org/struts/ShortTermPlansForJamesMitchell -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM:

Re: Struts faces

2004-10-21 Thread Craig McClanahan
So it's really a Tomcat configuration issue. I hardly ever use Windows, but don't you have to do something wierd like double slashes on paths in the docBase element? Craig On Thu, 21 Oct 2004 14:05:10 -0400, James Mitchell [EMAIL PROTECTED] wrote: (Tomcat 5.0.28) Well, this is

Re: Struts faces

2004-10-21 Thread Kevin Clifton
Doh! Looking back, I see he's got forward slashes in the path already, so I think that should parse OK. Must... read... carefully before... reply. :( But, if Tomcat isn't running in a cygwin-aware environment, that might be the problem. It might work with an absolute (non-cygwin) path like

bean:define tag

2004-10-21 Thread Shabada, Gnaneshwer
Hello, In my application, I am trying to set a exportIndex variable to a true or false value based on if the member is admin level or not. And I want to use this exportIndex value to display or not display one of my attributes in table. I am using display:table from DisplayTag. I am using

Re: FileUpload Errors

2004-10-21 Thread Marwan Salam
My action is pasted below. As you will see I never call setMaxFile (long) in my acdtion. From the stack trace it looks like Struts internal classes are doing the call: org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest (CommonsMultipartRequestHandler.java:219) These are the

Re: Struts faces

2004-10-21 Thread James Mitchell
Yes, I tried both...still the same error. docBase=D:/cygwin/home/jmitchell/svn/stru... docBase=D:\\cygwin\\home\\jmitchell\\svn\\stru... I don't really care enough about this to google the tomcat lists, so I'll just go with the work-around. Thanks for the help anyway. -- James Mitchell

Re: FileUpload Errors

2004-10-21 Thread Michael McGrady
To tell you the truth, Marwan, although there are different strokes for different folks, I find the Struts implementation of commons upload in CommonsMultipartRequestHandler not to my taste. There seem to be continual problems with it as well. Maybe that is my bias. Don't know. Anyway,

FW: bean:define tag

2004-10-21 Thread Shabada, Gnaneshwer
Sorry for the repeat post. Can someone give me some input? Hello, In my application, I am trying to set a exportIndex variable to a true or false value based on if the member is admin level or not. And I want to use this exportIndex value to display or not display one of my attributes in table.

Really annoying file path..

2004-10-21 Thread David Farrell
Hi, In a system I'm working on, we have a folder that recieves uploaded media. On my windows development machine it is E:\program files\etc on the linux machine that hosts the site, it is /opt/tomcat/etc I recently updated the demo system and when I try to upload media using a form, it

Re: Really annoying file path..

2004-10-21 Thread Wendy Smoak
From: David Farrell [EMAIL PROTECTED] now... since my Constants.java file has been updated with the new path this irritates me. I've logged into the system and opened the constants.class file and verified that it does have the correct path. But did you recompile EVERYTHING? A good compiler

Re: Really annoying file path..

2004-10-21 Thread David Farrell
I'm using eclipse with sun jdk. When I changed the Constants.java file, i went to my local classes folder and uploaded every class with the most recent timestamp. No avail. So, I took a local copy of all .class files from the server. I renamed them all to .txt and did a search in homesite

RE: bean:define tag

2004-10-21 Thread David G. Friedman
Gnan, I see you are using displaytag with EL. Are you using Displaytag v1.2 EL tld? Are you using a JSP 2.0 container? If the container, where is your dollrsign for the line export={exportIndex} ... Shouldn't that portion of the line be: export=${exportIndex} ... Regards, David

Help with multi-page forms and getValidationKey

2004-10-21 Thread Wendy Smoak
I'm using DynaValidatorForm and LookupDispatchAction for a multi-page form, so I have the problem of needing different validations for each 'page' of the form. I learned about getValidationKey and am successfully returning a String that matches one of the form name=... tags in validation.xml.

Re: Really annoying file path..

2004-10-21 Thread Wendy Smoak
From: David Farrell [EMAIL PROTECTED] When I changed the Constants.java file, i went to my local classes folder and uploaded every class with the most recent timestamp. I looked at all three Constants.java files and all are correct. IMO, that isn't the class that's causing the problem, it's

Re: FileUpload Errors

2004-10-21 Thread Michael McGrady
I'll be darned! If you go back to Struts 1_1 you find that CommonsMultipartRequsetHandler does have the long cast to an int. So, that is probably the source of the error. Michael McGrady Michael McGrady wrote: The method setMaxFile(long) exists even in older versions. So, are you doing

ActionMessage Handling in the Action Class

2004-10-21 Thread Toby Saville
I am using struts 1.2.4 and im getting a strange problem when I try to handle errors in my action class. If i use the following: saveErrors(request, myErrors); return mapping.findForward(failure); The errors dont get displayed in the error page, infact theyre not even in my request object when

RE: ActionMessage Handling in the Action Class

2004-10-21 Thread David G. Friedman
Toby, Does the failure forward have a 'redirect=true' on it in struts-config.xml? If it is doing a redirect, the errors saved in the request scope will be gone when the client does it's redirect to the failure page. Regards, David -Original Message- From: Toby Saville [mailto:[EMAIL

RE: ActionMessage Handling in the Action Class

2004-10-21 Thread Toby Saville
Yes it did. Thanks for your help, that's been plaguing me for ages! tobes -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 1:00 PM To: Struts Users Mailing List Subject: RE: ActionMessage Handling in the Action Class Toby, Does the