RE: Load MessageResource from custom file path

2007-03-01 Thread Andrzej Bengner | e-direct Polska Sp. z o.o.
> I need to load file dynamically, because properties file must be > located outside /WEB-INF dir. Is there any way to obtain that? In that case, I'd recommend taking a look at Struts' resource loading code and make sure you're doing the equivalent. L. OK, thanks. Andy -

Getting tag error

2007-03-01 Thread balwinder
Hi Everyone, I am developing application in struts 1.1 and in my tomcat5.5 localhost log file i am getting INFO: Could not load TagExtraInfo class org.apache.struts.taglib.nested.NestedWriteNestingTei: org.apache.struts.taglib.nested.NestedWriteNestingTei printed very frequently. I tried

Re: Need suggestion to load resource properties file dynamically

2007-03-01 Thread Prithivirajan Dhamodharan
Thanks Laurie, Some code eg., or templates would be really helpful.. On 3/2/07, robin bajaj <[EMAIL PROTECTED]> wrote: Hi there, I am looking for similar results (*dynamically load properties file without restarting the server)) >You'll need to implement your own MessageResourcesFactory and

Dynavalidator Question:

2007-03-01 Thread James Drinkard
Hello All, I'm using Struts 1.0 version with a dynaform and a select control. For some reason the struts validator doesn't work with that control. I've seen that mentioned in an article before. Is this corrected in later versions or is there a workaround for this? Any help is appreciated! Than

Re: Need suggestion to load resource properties file dynamically

2007-03-01 Thread robin bajaj
Hi there, I am looking for similar results (*dynamically load properties file without restarting the server)) >You'll need to implement your own MessageResourcesFactory and configure > it in struts-config.xml. Your custom factory and/or the resource >bundles > it creates can use whatever logi

Re: OutputStreamPath

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: > --- Laurie Harper <[EMAIL PROTECTED]> wrote: >> URL res = Thread.currentThread() >> .getContextClassLoader() >> .getResource(pathToConfigurationFile); >> // Save the properties >> OutputStrea

Re: [S2] forward to another action

2007-03-01 Thread Mike Baroukh
Thanks but It wouldn't work because I call some old code that use request.getParameter() and not ActionContext. finally, all I wan't is just a standard "forward"... Mike cilquirm a écrit : why can't you add parameters in chain? In your action, can't you : 1) implement ParameterAware 2)

Re: [S2] forward to another action

2007-03-01 Thread Mike Baroukh
>Why not just configure the target action in your action mapping as normal? Does it work for you ? Not for me : 404 Not Found. And this is, I suppose, because Struts2 use filter instead of servlet. I also tried by addin FORWARD as I saw somewhere but still no luck. But maybe is it with my apps

Re: [S2] forward to another action

2007-03-01 Thread cilquirm
why can't you add parameters in chain? In your action, can't you : 1) implement ParameterAware 2) set a parameter value in the map that's passed in 3) chain to your action 4) have the value be set in your chained action, via the params interceptor -a Laurie Harper wrote: > > Mike Barou

Re: Struts, J2SE 1.5 and J2EE 1.4

2007-03-01 Thread Laurie Harper
I'm not sure what you mean by 'nested objects' here, but the error message is telling you that insuranceForm.beneficiaries can't be resolved to a value. Either insuranceForm is undefinded, the InsuranceForm class is missing a getBeneficiaries() method, or that method is returning null. L. Gl

Re: [S2] forward to another action

2007-03-01 Thread Laurie Harper
Mike Baroukh wrote: I can't figure how to do this. Can somebody help me I wan't to forward an action to another with something like requestDispatcher("/action.do?param1=value1").forward(req, res); - I can't use redirect because I wan't to use the same request scope. - I can't use chain be

Re: OutputStreamPath

2007-03-01 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > URL res = Thread.currentThread() > .getContextClassLoader() > .getResource(pathToConfigurationFile); > // Save the properties > OutputStream out = new FileOutputStream(res); > properties.store(out, ""); Ooo, I did

Re: Need suggestion to load resource properties file dynamically

2007-03-01 Thread Laurie Harper
Prithivirajan Dhamodharan wrote: Help required to load values in properties file(MessageResources) without restarting/reloading the server. Kindly give your suggestions. You'll need to implement your own MessageResourcesFactory and configure it in struts-config.xml. Your custom factory and/or

Re: OutputStreamPath

2007-03-01 Thread Daniel Chacón Sánchez
Yes you are right, but what i have in the properties file is the database to which the user wants to connect, for example oracle or sql. Thanks 2007/3/1, Laurie Harper <[EMAIL PROTECTED]>: Dave Newton wrote: > --- Daniel Chacón Sánchez <[EMAIL PROTECTED]> >> I have a question, how I can set th

Re: OutputStreamPath

2007-03-01 Thread Daniel Chacón Sánchez
I just see your answer, thanks!!! In fact is the same that the solution i Found, Thanls 2007/3/1, Laurie Harper <[EMAIL PROTECTED]>: Dave Newton wrote: > --- Daniel Chacón Sánchez <[EMAIL PROTECTED]> >> I have a question, how I can set the path for the >> OutputStream like i get it for the

Re: LazyLists

2007-03-01 Thread Laurie Harper
Glenn wrote: Hi, I have an application that I'm moving over to J2SE1.5 and J2EE 1.4. I am getting an error when executing a JSP: javax.servlet.jsp.el.ELException: Unable to find a value for "beneficiaries" in object of class "hronline.secure.personal.insurances.InsuranceForm" using operator "

Re: OutputStreamPath

2007-03-01 Thread Daniel Chacón Sánchez
Got it: String path= Thread.currentThread().getContextClassLoader(). getResource(pathToConfigurationFile).getPath(); OutputStream out = new FileOutputStream(path); properties.store(out, ""); 2007/3/1, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: S

Re: Load MessageResource from custom file path

2007-03-01 Thread Laurie Harper
Andrzej Bengner | e-direct Polska Sp. z o.o. wrote: The ususal way to expose resource bundles for use with Struts1 is to include the properties files in the webapp's classpath, configure them in struts-config.xml and let Struts deal with loading them. Is there a reason you need to store the files

Re: OutputStreamPath

2007-03-01 Thread Laurie Harper
Dave Newton wrote: --- Daniel Chacón Sánchez <[EMAIL PROTECTED]> I have a question, how I can set the path for the OutputStream like i get it for the InputStream with getResourceAsStream? I'm not sure you can do that, particularly since a resource might be inside a JAR file or be located in a

Testing new message

2007-03-01 Thread sriprasoon
H Just testing whether my id is working or not. sorry for inconvenience. -- View this message in context: http://www.nabble.com/Testing-new-message-tf3329546.html#a9258094 Sent from the Struts - User mailing list archive at Nabble.com. --

Re: DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Laurie Harper
Bear in mind that this way, if the user types in 'abc' for one of your money fields, you wont be able to re-display their incorrect input. That's the other major reason for making your form fields String-typed. L. Gundersen, Richard wrote: Actually, I tried out your first solution, and it act

Re: Multiple forwards ?

2007-03-01 Thread Maya menon
Thanks Mike. In another part of my project, I was trying to convert my "jnlp" file to "jsp" file,and include it in the result.jsp. But somehow, when I include the file, jnlp partiulars[like download etc] does happen.. Actually the jnlp contents are not being done with the include..

Re: OutputStreamPath

2007-03-01 Thread Dave Newton
--- Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > Someone? Sorry it took me so long. > I have a question, how I can set the path for the > OutputStream like i get it for the InputStream with > getResourceAsStream? I'm not sure you can do that, particularly since a resource might be inside

OutputStreamPath

2007-03-01 Thread Daniel Chacón Sánchez
Someone? Hi all I have a question, how I can set the path for the OutputStream like i get it for the InputStream with getResourceAsStream? This is my code: Properties properties = new Properties(); String pathToConfigurationFile = "common/properties/Configuracion

Re: Multiple forwards ?

2007-03-01 Thread Mike Baroukh
you can't forward to 2 jsps. Eventually you can include the result of a jsp in another with or you can use tiles or sitmesh to do it. Maya menon a écrit : Has anyone tried forwarding to multiple mappings ? or multiple jsps ? we have a requirement to use two jsp pages together. Upon su

Multiple forwards ?

2007-03-01 Thread Maya menon
Has anyone tried forwarding to multiple mappings ? or multiple jsps ? we have a requirement to use two jsp pages together. Upon success, how will we forward to two jsps ? Is this possible ? I have never done it and am unsure whether it can be done too. If anyone knows an idea, please

Re: [S2] Sitemesh - FreeMarker configuration?

2007-03-01 Thread Dave Newton
--- Paul Saumets wrote: >> is this one of those trick interview questions?! > lol. umm yes. :) it's strictly for reference. It's better than a couple I've gotten over the last few days, that's for sure :/ Normally I'm the -er, not the -ee, and I'll tell you what, it's driving me mental. >> Includ

Re: [S2] Sitemesh - FreeMarker configuration ?

2007-03-01 Thread Paul Saumets
> Could someone please tell me why JBOSS is giving me > the following error when launching my application: > > 11:52:29,729 INFO [STDOUT] 11:52:29,727 ERROR > [[/xx]] Exception starting filter sitemesh > java.lang.NoClassDefFoundError: > com/opensymphony/module/sitemesh/filter/Pa

Re: [S2] Sitemesh - FreeMarker configuration?

2007-03-01 Thread Dave Newton
--- Paul Saumets wrote: > Could someone please tell me why JBOSS is giving me > the following error when launching my application: > > 11:52:29,729 INFO [STDOUT] 11:52:29,727 ERROR > [[/xx]] Exception starting filter sitemesh > java.lang.NoClassDefFoundError: > com/opensymphony/module/sitemes

RE: DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Gundersen, Richard
Actually, I tried out your first solution, and it actually works very nicely too, so I'm going to go with that one for now! Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank plc 24 Mount Street Manchester M2 3LS -Original Mess

[S2] Sitemesh - FreeMarker configuration?

2007-03-01 Thread Paul Saumets
Could someone please tell me why JBOSS is giving me the following error when launching my application: 11:52:29,729 INFO [STDOUT] 11:52:29,727 ERROR [[/xx]] Exception starting filter sitemesh java.lang.NoClassDefFoundError: com/opensymphony/module/sitemesh/filter/PageFilter at java.lan

Re: [OT] Re: Struts session scoped forms

2007-03-01 Thread Frank W. Zammetti
I think there's something to be said though for maintainability when there's only a single well-known object a developer has to go to to populate the screen, form data or not. I personally prefer the ActionForm be viewed as a VO between the view and control, and I don't figure the values it passes

RE: DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Gundersen, Richard
Hi Ed Thanks for the detailed explanation. I'll take your advice on this - sounds like using Strings is going to be much less error prone, and easier to maintain. Thanks again! Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01618342536 London Scottish Bank pl

Re: [OT] Re: Struts session scoped forms

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: > --- Christopher Schultz wrote: >> If you have a form that needs to be populated, >> submitted, validated and possibly re-displayed, why >> not use an ActionForm to populate the form in >> the first place? > > If you're tal

[OT] Re: Struts session scoped forms

2007-03-01 Thread Dave Newton
--- Christopher Schultz wrote: > If you have a form that needs to be populated, > submitted, validated and possibly re-displayed, why > not use an ActionForm to populate the form in > the first place? If you're talking about only form data, sure. That's why I explicitly stated I was referring to

LazyLists

2007-03-01 Thread Glenn
Hi, I have an application that I'm moving over to J2SE1.5 and J2EE 1.4. I am getting an error when executing a JSP: javax.servlet.jsp.el.ELException: Unable to find a value for "beneficiaries" in object of class "hronline.secure.personal.insurances.InsuranceForm" using operator "." If I remove t

OutputStreamPath

2007-03-01 Thread Daniel Chacón Sánchez
Hi all I have a question, how I can set the path for the OutputStream like i get it for the InputStream with getResourceAsStream? This is my code: Properties properties = new Properties(); String pathToConfigurationFile = "common/properties/Configuracion.propertie

Re: DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Ed Griebel
It has nothing to do with Struts, the error message is saying that commons BeanUtils cannot convert the string from the form submit into a BigDecimal. Turns out that your issue is BigDecimal is not as permissive as Double when it converts a non-numeric string to a BigDecimal. If a string is not a

RE: Struts session scoped forms

2007-03-01 Thread Chaudhary, Harsh
I am setting the struts form I created into session. I agree that this is all working fine without any problems. But there is something "icky" about it but I can't put my finger on it. One reason could be that this is generating a coupling of the struts form to the java code, something which the

Re: Struts session scoped forms

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: > --- Christopher Schultz wrote: >> If page2.jsp contains a form, then it is perfectly >> natural to use an ActionForm to shuttle data from > the >> action to the page. > > That's actually debatable, and has been in the past.

Validation with wildcards

2007-03-01 Thread ekoje ekoje
Hi Guys, I expreinced another trouble with my validator using wildcards definitions. I've got the following in my struts.xml /index.jsp /login/login.jsp /login/login.jsp I've got two methods: login and logout. So my action url is http://mywebsite

Re: Struts session scoped forms

2007-03-01 Thread Dave Newton
--- Christopher Schultz wrote: > If page2.jsp contains a form, then it is perfectly > natural to use an ActionForm to shuttle data from the > action to the page. That's actually debatable, and has been in the past. Some people prefer to use ActionForms exclusively for form data and not Plain Old

Re: Mgnt Error message

2007-03-01 Thread ekoje ekoje
Hi, Thanks for your help but I found my mistake. Ive had the parameter type="redirect" in the result (struts.xml): /register/step1.jsp and since i removed it, it works /register/step1.jsp Rgs, E Hi, I dont see <%@ taglib prefix="s" uri="/struts-tags" %> in your jsp page, this may be the p

Re: Struts session scoped forms

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael and Chaudhary, Michael Jouravlev wrote: > On 2/28/07, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote: >> I have page1.jsp which has a form which calls Page1Action which forwards >> to page2.jsp. Also, session scoped Page1Form and Page2Form. >> >>

Redirect Action Result - Need directions to configure my app to use ActionMapper

2007-03-01 Thread Ravi Mangalagiri
runReportReport!show /queryReport/ajax auditLogQueryReport /pages/ajax/query.jsp When I call , I get the following error WARNING 03/01/2007 08:51:50 AM [OgnlUtil.internalSetProperty ()] Caught OgnlExcep

Re: Dojo vs TagLib of Struts for Ajax

2007-03-01 Thread C. Adams
The struts 2 taglibs (in ajax theme) use Dojo, so they are really one in the same. On 3/1/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote: Hi, I am involved in a project which needs Ajax features. We have decided to use struts 2 for development. For Ajax support is it advisable to use Dojo w

DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Gundersen, Richard
Hi Has anyone had problems with BigDecimal and DynaValidatorForms? I've got a form with two fields (advisorFee and grossIncome) defined as java.lang.Double. I want to change them to java.math.BigDecimal because they are money fields. If I change advisorFee to BigDecimal, the validation fails wh

Re: Real time data display in a struts based application.

2007-03-01 Thread Maya menon
Ok, got the difference. Now being a new bie to AJAX, what are the best techiques that should be used to design a well designed web app ? Again, my page has to show the new data thats being added to database. Frank told about creating a "timed AJAX event". Where can I get more det

Redirect Action Result - Need directions to configure my app to use ActionMapper

2007-03-01 Thread Ravi Mangalagiri
runReportReport!show /queryReport/ajax auditLogQueryReport /pages/ajax/query.jsp When I call , I get the following error WARNING 03/01/2007 08:51:50 AM [OgnlUtil.internalSetProperty()] Caught OgnlExcept

RE: Multiple submit buttons on form not working

2007-03-01 Thread Neil Aggarwal
Dave: I see what you are saying. I changed my form to have a string field and now it captures the value of the button that was pressed. It does not match the doc but it works! Thanks, Neil -- Neil Aggarwal, (214)986-3533, www.JAMMConsulting.com FREE! Eliminate junk email and reclaim

forward to another action

2007-03-01 Thread Mike Baroukh
I can't figure how to do this. Can somebody help me I wan't to forward an action to another with something like requestDispatcher("/action.do?param1=value1").forward(req, res); - I can't use redirect because I wan't to use the same request scope. - I can't use chain because chain doesn't a

Re: Multiple submit buttons on form not working

2007-03-01 Thread Dave Newton
--- Neil Aggarwal <[EMAIL PROTECTED]> wrote: > > > > > > Any ideas why this is not working? I would guess because it's trying to convert the string value into a true/false boolean and failing? (If I change the value to "true" for the msg1/msg2 buttons it works.) So I guess I'm a little c

Re: Dojo vs TagLib of Struts for Ajax

2007-03-01 Thread Musachy Barroso
You can mix them. Dojo will be available to you, just as if you had included it on your application yourself. There are some tags on the ajax theme that can help you do simple stuff. On top of that there is a JSON plugin that you can use to generate/populate JSON from/to your actions. For ajaxtags

Re: Validator validWhen

2007-03-01 Thread Niall Pemberton
On 2/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Thank you for your reply. Why is it only server-side ? Because no-one has written the equivalent functionality in JavaScript. Validwhen uses antlr to evaluate expressions on the server side - replicating its functionality in JavaScript

Re: Good App for Ajax with struts

2007-03-01 Thread Musachy Barroso
Take a look at the Ajax section on showcase. It has several examples, although nothing like the mailreader. This might also help: http://struts.apache.org/2.x/docs/ajax-tags.html regards musachy On 3/1/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote: Has any body came across good application (aja

question about interceptors and profiling

2007-03-01 Thread Mike Baroukh
Hi. I'm using a custom stack that calls use the following interceptors : exception, alias, fileUpload, servlet-config, cardibox-bo, prePreparationParams, prepare, i18n, chain, checkbox, static-params, params, cardibox-web, conversionError, validation, workflow. Si I just have 2 customs inter