SV: Ognl versions

2008-10-03 Thread Gunnar.Bostrom
Ok, then I take version 2.7.2 for a spin. /Gunnar -Ursprungligt meddelande- Från: Chris Pratt [mailto:[EMAIL PROTECTED] Skickat: den 2 oktober 2008 17:42 Till: Struts Users Mailing List Ämne: Re: Ognl versions I have been using OGNL 2.7.2 with Struts 2.0.11.2 and 2.1.2 for a

Re: security quest

2008-10-03 Thread Paweł Wielgus
Hi Gianluca, how would You expect to share credential without https? Can't You just turn https on for Your login action? If there is no https, all data are sent in plain text - as far as i know. Best Greetings, Paweł Wielgus. 2008/10/3 [EMAIL PROTECTED] [EMAIL PROTECTED]: Ok, i will write a

Re: Struts2 static content

2008-10-03 Thread Nick J
Oh well, no one's answered me yet, but I have found a way, but it's not very satisfactory. The problem (as well as the action extension being set to empty string) was I had an action in the default namespace as action name=*... so it would intercept all remaining requests. For static content, I

Re: removing the extension in url in struts 2

2008-10-03 Thread Jq Jr
Hi, Thanks for the reply friends. Owen which version of struts are you using? And can you post your struts.xml and struts.properties files. Actually I am not using the struts.properties instead I am putting those values in constants ... tag. Is it required to have struts.properties to remove

Re: Struts2 static content

2008-10-03 Thread Paweł Wielgus
Hi, have You tried doing nothing to achieve adresses like http://my.server.com/myNameSpace/myAction it works for me on S2.1.2 Best greetings, Paweł Wielgus. 2008/10/3 Nick J [EMAIL PROTECTED]: Oh well, no one's answered me yet, but I have found a way, but it's not very satisfactory. The

Re: Struts2 static content

2008-10-03 Thread Al Sutton
Nick, The way I do it is to have a web server front end backing off to a servlet engine and serve the static content from the web server. To give you an example of one of my sites (andappstore.com), I have Apache at the front end which connects to Tomcat at the back end via mod_jk ajp13,

Re: Struts2 static content

2008-10-03 Thread Sébastien Domergue
Hello, i think that you could modify your web.xml instead. In struts filter, you may have a wildcard to take all in struts2 filter. By modifying web.xml, you should be able to redirect url with .html or .jsp immediatly without using struts. I don't have any exemple, sorry. Regards

struts2 , freemarker email template

2008-10-03 Thread Leonidas Papadakis
Hi there, i would like to ask what is the best way to implement a mechanism that from inside an action i will read a freemarker template file , set the values, merge it and send it by html email ... Any suggestions ? I appreciate your answers. Regards, Leon

EJB in Struts Action

2008-10-03 Thread Ronaldo Rigoni ...
Hi all, I need help, Can I inject a EJB in a Struts 2 Action by annotation? Or only lookup by InitialContentx? Regargs, Ronaldo Rigoni

RE: EJB in Struts Action

2008-10-03 Thread Martin Gainty
which Application Server will you be implementing? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does

Re: EJB in Struts Action

2008-10-03 Thread Ronaldo Rigoni ...
The server is GlassFish V2. I need inject a Local EJB into Struts Action, I Have override a Struts ObjectFactory and with reflection inject a EJB, but is overwork unnecessary. How the best way to implement this? Tanks Ronaldo Rigoni 2008/10/3 Martin Gainty [EMAIL PROTECTED] which Application

SV: Ognl versions

2008-10-03 Thread Gunnar.Bostrom
Hi, I get the same error from 2.7.2 as 2.7.3. Here is the jsp fragment that fails s:select name=searchJobVO.type label=Typ av ärende: required=false headerKey=-1 headerValue=Alla list=jobTypeList / And the error is: 2008-10-03 15:55:32,280 ERROR-

criteria-based action forking: missusing Code behind?

2008-10-03 Thread Giovanni Azua
hi, I have different types of (trading strategy/algorithm) configurations. My application allows scheduling Simulations for any of the existing types, depending on the type it should be redirected to a specific form e.g. Example

Re: criteria-based action forking: missusing Code behind?

2008-10-03 Thread Musachy Barroso
Is configType a parameter? where is it coming from? musachy On Fri, Oct 3, 2008 at 10:16 AM, Giovanni Azua [EMAIL PROTECTED] wrote: hi, I have different types of (trading strategy/algorithm) configurations. My application allows scheduling Simulations for any of the existing types,

Re: criteria-based action forking: missusing Code behind?

2008-10-03 Thread Giovanni Azua
hi! :) The configType is a bean property exposed by the Opp action. In fact I get the error logging below. I believe this happens because there is no action passing these parameters through (I expected Code Behind to do it for me). Meantime I will try providing an action class to see if it

Re: criteria-based action forking: missusing Code behind?

2008-10-03 Thread Musachy Barroso
yup, that's the problem, I think. If it is a parameter you can reference it as #parameters.xyz. On Fri, Oct 3, 2008 at 10:29 AM, Giovanni Azua [EMAIL PROTECTED] wrote: hi! :) The configType is a bean property exposed by the Opp action. In fact I get the error logging below. I believe this

Re: criteria-based action forking: missusing Code behind?

2008-10-03 Thread Giovanni Azua
btw I am using v2.1.2 do you mean like this: action name=FormScheduleSimulation result type=redirectAction${ 'FormScheduleSimulation' + #parameters.configType.name }/result /action unfortunately does not work like that :( regards, Giovanni Musachy Barroso wrote: yup, that's the

Re: criteria-based action forking: missusing Code behind?

2008-10-03 Thread Giovanni Azua
It works like this though: action name=FormScheduleSimulation class=com.sag.optimizer.ui.web.action.form.FormScheduleSimulationAction result type=redirectAction${ 'FormScheduleSimulation' + configType.name }/result /action Having: 1-. No Code Behind plugin installed 2-. Providing

Re: JPA Toplink without Spring

2008-10-03 Thread Felipe Lorenz
Thanks folk... ill see it!! On Thu, Oct 2, 2008 at 1:36 PM, Martin Gainty [EMAIL PROTECTED] wrote: attempting to follow your sans Spring implementation curious as to which Bean will you be using to take the place of JndiObjectFactoryBean? another alternative would be to implement a

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-03 Thread Miguel
Hi!, if you want to silence those annoing messages try the following logger: log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack if you were using a properties file log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=NONE, stdout with the xml should be something similar. Have a good day

RE: EJB in Struts Action

2008-10-03 Thread Eric Nelson
I've used EJB3 w/ Struts 2 in JBoss, and we couldn't get DI working in strtus action classes. We had to write context lookup classes. The problem is that struts action classes don't reside in the EJB container, so DI doesn't work correctly. If someone else has figured out how to do this, I'd

Re: removing the extension in url in struts 2

2008-10-03 Thread Owen Berry
Here's a small sample out of my struts.xml file; let me know if you need a little more. package namespace=/ name=home extends=tiles-default action name= result type=tileshome/result /action action name=home result type=tileshome/result /action /package I can

RE: EJB in Struts Action

2008-10-03 Thread Martin Gainty
Hi Eric- just offline suggested a EJB2 solution I would be curious as to looking at your EJB3 Dependency Injection testcase if you can provide source, build-scripts and which version JBOSS you're deploying..? thanks, Martin __ Disclaimer and

Re: JPA Toplink without Spring

2008-10-03 Thread Adam Hardy
You're not going to have any IoC container? Or just the struts one? Or something else? I would definitely use the OpenEntityManagerInView Filter / Interceptor pattern. I rolled my own 'context manager' which has some static methods to access things like EntityManagers in a threadsafe way, and

Re: EJB in Struts Action

2008-10-03 Thread Ronaldo Rigoni ...
Tanks 2008/10/3 Martin Gainty [EMAIL PROTECTED] Hi Eric- just offline suggested a EJB2 solution I would be curious as to looking at your EJB3 Dependency Injection testcase if you can provide source, build-scripts and which version JBOSS you're deploying..? thanks, Martin

Re: security quest

2008-10-03 Thread Gianluca Musella
Than you Pawel, But, if your web container support JAAS, you can configure the login-config tag in your web.xml in this way: login-config auth-methodBASIC/auth-method realm-namemyRealm/realm-name /login-config This cause the browser and the container to share encoded

Re: struts2 , freemarker email template

2008-10-03 Thread Gabriel Belingueres
With Spring this is pretty much easy to do. 2008/10/3 Leonidas Papadakis [EMAIL PROTECTED]: Hi there, i would like to ask what is the best way to implement a mechanism that from inside an action i will read a freemarker template file , set the values, merge it and send it by html email ...

http request in ActionInvocation

2008-10-03 Thread Gianluca Musella
Hello guys, in an interceptor, in the intercept() method, how I can read parameters in the http request? Thanks Gianluca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: http request in ActionInvocation

2008-10-03 Thread Nils-Helge Garli Hegvik
Maybe the source for the ServletConfigInterceptor [1] can give you some ideas. Nils-H [1] - http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/main/java/org/apache/struts2/interceptor/ServletConfigInterceptor.java On Fri, Oct 3, 2008 at 9:56 PM, Gianluca Musella [EMAIL PROTECTED]

Re: security quest

2008-10-03 Thread Laurie Harper
Firstly, HTTP BASIC authentication is only pseudo-secure: credentials are sent encoded rather than in plain text, but the encoding is trivially reversible. Hence my previous statement that you still need to use HTTPS if security is a concern. That said, if you want to use BASIC

Re: security quest

2008-10-03 Thread Gianluca Musella
Ok Laurie, I know that the basic authentication is not too much secure, but is sufficient in the best cases. I think that your suggestion, to use the container managed security, is absolutely the best, and I will follow this hint. The original idea of to write an interceptor capable to communicate

Re: Ognl versions

2008-10-03 Thread Dale Newfield
So this is saying that it can't find %{jobTypeList[0].searchJobVO.type}? Can you confirm where that data lives, should live, and that there's not some specific reason that might not work? Is this in your own app, or some published test/demo? -Dale for example: |s:property value=%{jobTypeList}/|