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: || || || || On Fri, Oct 3, 2008 at

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: 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 authentication,

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]> w

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: 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

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: BASIC myRealm This cause the browser and the container to share encoded credential in a secure way without https. I want to write my interceptor

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: 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 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 confi

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. home home I can access the above with any of the following URLs: / /home /home.action /.action (yip!) If I access it with a .action extension, then all links i

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: 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: 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: criteria-based action forking: missusing Code behind?

2008-10-03 Thread Giovanni Azua
It works like this though: class="com.sag.optimizer.ui.web.action.form.FormScheduleSimulationAction"> ${ 'FormScheduleSimulation' + configType.name } Having: 1-. No Code Behind plugin installed 2-. Providing FormScheduleSimulationAction that exposes the needed properties including conf

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: ${ 'FormScheduleSimulation' + #parameters.configType.name } unfortunately does not work like that :( regards, Giovanni Musachy Barroso wrote: yup, that's the problem, I think. If it is a parameter you can reference it as #parameters.xyz.

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

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
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, > d

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 ---

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 And the error is: 2008-10-03 15:55:32,280 ERROR- [localhost].[/serf-web].[default]:253,http-8080-Processor25 - Servlet.service() for servlet default threw exception tag 'select', field 'list', name 'searchJobVO

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 Applicati

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

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

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 ---

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 Sébastien

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, t

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 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 so it would intercept all remaining requests. For static content, I needed these addi

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 tag. Is it required to have struts.properties to remove the extension?