AW: Problem with sun app server 9.1 and struts 2.0.14

2009-01-20 Thread Juergen.Leeb
> -Ursprüngliche Nachricht- > Von: Wes Wannemacher [mailto:w...@wantii.com] > Gesendet: Dienstag, 20. Januar 2009 23:42 > An: Struts Users Mailing List > Betreff: Re: Problem with sun app server 9.1 and struts 2.0.14 > > On Tuesday 20 January 2009 09:14:19 juergen.l...@bmw.de wrote: > > I j

Re: Fw: Re: Sturts-Tiles Performance

2009-01-20 Thread Chris Pratt
What issue is that? So far the only thing I've seen in your posts is that you somehow feel that your application is slower than you would like. How is it too slow? What is it exactly that you are doing that is too slow? What have you done to narrow down the exact cause of the slowness so that we

Fw: Re: Sturts-Tiles Performance

2009-01-20 Thread Muhammad Owais
Hello,   Is there any solution to my problem? Can not somebody help me to resolve my issue? I will highly appriciate it. With regards   Muhammad Owais Bilal Awan, +966-56-5823-940 --- On Mon, 1/19/09, Muhammad Owais wrote: From: Muhammad Owais Subject: Re: Sturts-Tiles Performance To: "St

RE: Struts 2 validation is not working for comma separated number entered in text field which has property type integer

2009-01-20 Thread jitendra
Hi Lukasz, Thanks for the solution. I will try this. Regards, Jitendra _ From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Monday, January 19, 2009 2:39 PM To: Struts Users Mailing List Subject: Re: Struts 2 validation is not working for comma separated number e

Re: Struts2.1 datetimepicker contains wrong characters for Japanese

2009-01-20 Thread Wes Wannemacher
If you fix them, then file a JIRA and attach a patch file to the JIRA issue. As one of the developers have time, he/she will apply it and test. https://issues.apache.org/struts/browse/WW Thanks! -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA

Struts2.1 datetimepicker contains wrong characters for Japanese

2009-01-20 Thread yamagu06
Hi I'm using struts2.1.6(with struts-2.1.6-all.zip). Yesterday I found datetimepicker can't display "Tuesday" of calendar in Japanese environment. The problem is that following two files contains wrong characters for "Tuesday". org/apache/struts2/static/dojo/nls/dojo_ja.js org/apache/struts2/s

Re: Injecting in Interceptors

2009-01-20 Thread Ignacio de Córdoba
Hi, I saw that plugin but it solves the "application name" subdir to be supplied in the JNDI lookup with a parameter in the Annotation, which makes it code dependant. I need to get that data from the ServletContext (application name) or at least a webapp init parameter. As I see it, the lazy load

Re: Problem with sun app server 9.1 and struts 2.0.14

2009-01-20 Thread Wes Wannemacher
On Tuesday 20 January 2009 09:14:19 juergen.l...@bmw.de wrote: > I just upgraded to struts 2.0.14 (from 2.0.11.2). On my development > environment I use Sunappserver 9.2 and everything works fine. > > On my productive environment I use Sunappserver 9.1. There I get a crazy > error. When I call an a

Re: [S2] s:action in value stack?

2009-01-20 Thread Musachy Barroso
Inside the action tag, the action will be on top of the stack, so you can reference it using #top. The action is added to the context under the "id" (2.0), or "var" (2.1) name, on the end of the tag, so you cannot reference it by name inside the action tag. Wow, that was some very confusing explana

Re: [S2] s:action in value stack?

2009-01-20 Thread Wolfgang Knauf
Hi, Maybe the var is used if you did something like: or Unfortunately not, I gave this a try already (using "id" attribute, as Struts 2.0.14 does not know "var"). I might give it a try with 2.1.6. Wolfgang

Re: [S2] s:action in value stack?

2009-01-20 Thread Wolfgang Knauf
Hi, I would be careful about placing action execution logic in your view. This is really not the place to be making navigation decisions. I know ;-). I use it only on my index page, where I force creation of an action which provides me with a list of items to display on the start page. So

Re: Injecting in Interceptors

2009-01-20 Thread Lukasz Lenart
2009/1/20 Ignacio de Córdoba : > Anybody has an idea on how can I get info about ServletContext in the init() > method of an interceptor? I'd like to lookup EJBs there and not lookup them > for every request (I know I can get the info I need from ActionInvocation > object that every intercept() get

Re: Accesing Cookies from a custom interceptor

2009-01-20 Thread Lukasz Lenart
2009/1/20 Ignacio de Córdoba : > I'd like to know if there is another path to get cookies in my interceptor. > I've been developing on struts for a couple of years but I'm pretty newbie > to struts2. I think you should follow CookieInterceptor [1] approach which is using: HttpServletRequest reques

Re: 2.1.6 dojo is not define

2009-01-20 Thread Lukasz Lenart
2009/1/20 TomazM : > In 2.1.6 Struts Showcase there is still error with dojo: Could you be more specific? It works for me (on Tomcat 6.0.18) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr..

Re: Injecting in Interceptors

2009-01-20 Thread Ignacio de Córdoba
Thanks for your reply Dave, I'll have to solve it that way... but I wanted to use the init() method and so avoid the "if()" checking for the EJBS existance... Without any info about the environment I don't really get how that method is useful for anything. Thanks, Ignacio newton.dave wrote: >

Re: Injecting in Interceptors

2009-01-20 Thread Dave Newton
Ignacio de Córdoba wrote: Hi Musachy and thanks for your reply but that static invocation in that class is not working if called from an interceptor or, at least, from the init() method of the interceptor. You don't need to get JNDI resources on every request--use the lazy initialization "patt

Re: Injecting in Interceptors

2009-01-20 Thread Musachy Barroso
agr, that's true, it won't be available on the init method. On Tue, Jan 20, 2009 at 3:31 PM, Ignacio de Córdoba wrote: > > Hi Musachy and thanks for your reply but that static invocation in that class > is not working if called from an interceptor or, at least, from the init() > method of the int

Re: Injecting in Interceptors

2009-01-20 Thread Ignacio de Córdoba
Hi Musachy and thanks for your reply but that static invocation in that class is not working if called from an interceptor or, at least, from the init() method of the interceptor. Probably this is due to the way it gets the ServletContext. Probably it first gets the request or the session, and us

Re: Injecting in Interceptors

2009-01-20 Thread Musachy Barroso
org.apache.struts2.ServletActionContext.getServletContext() is what you want. musachy On Tue, Jan 20, 2009 at 3:03 PM, Ignacio de Córdoba wrote: > > Hi there, > I am developing a Authorization interceptor and need to perform a JNDI > lookup to get some Stateless EJBs from JBoss. > > My problem i

Injecting in Interceptors

2009-01-20 Thread Ignacio de Córdoba
Hi there, I am developing a Authorization interceptor and need to perform a JNDI lookup to get some Stateless EJBs from JBoss. My problem is that this interceptor init() method gets no parameters. I need to get at least the ServletContext of the web application to specify the main JNDI lookup nam

Re: passing a map of parameters to a URL

2009-01-20 Thread Dave Newton
Nathan Coast wrote: Is passing a map of params to a construct a url supported by the URL tag? (or some other struts2 mechanism). ${key} ${value} return the correct values however the s:param doesn't support expressions. It doesn't support JSP EL expressions, but it *do

passing a map of parameters to a URL

2009-01-20 Thread Nathan Coast
Hi, Is passing a map of params to a construct a url supported by the URL tag? (or some other struts2 mechanism). I've tried most things but no joy - e.g: ${key} ${value} return the correct values however the s:param doesn't support expressions. thanks

Re: how to map action and result in my own way?(without a lot config)

2009-01-20 Thread Musachy Barroso
If your class implements Action, you can have the Convention plugin map its "execute" method as an action without any xml or annotations. If you want to have multiple methods in your class mapped as actions, then you need to use either xml or annotations to let Struts know about it. musachy On Tu

Handling JSP exceptions in Struts2

2009-01-20 Thread Andy
Using the Exception interceptor works great for catching exceptions throw by actions. However I am wondering what is the recommended method for catching and handling exceptions thrown by a JSP? I assume that JSP exceptions are outside the S2 scope and are to be handled at the container level?

Re: how to map action and result in my own way?(without a lot config)

2009-01-20 Thread KuaJiang Ying
thanks for your reply yes,as what you said ,I can annotate every class,annotate every method,annotate every result, annotation is greate,i can achive anything ,but that's too much config,that's not like "convention". I want to have my own convertion, no xml,no annotation, the framework does everyth

Re: Ajax login Form in Struts2

2009-01-20 Thread Dave Newton
Jaarthy wrote: I am just getting "undefined" in the place of all the form elements(username textfield,password textfield and submit button).I am using Struts 2.0.6. I'd first upgrade to a reasonable version; 2.0.14 for S2.0, S2.1.6 for S2.1. Dave -

Re: Ajax login Form in Struts2

2009-01-20 Thread Jaarthy
I am just getting "undefined" in the place of all the form elements(username textfield,password textfield and submit button).I am using Struts 2.0.6. newton.dave wrote: > > Jaarthy wrote: >> I am trying to implement AJAX login form using this example from >> http://www.roseindia.net/struts/str

Re: Ajax login Form in Struts2

2009-01-20 Thread Dave Newton
Jaarthy wrote: I am trying to implement AJAX login form using this example from http://www.roseindia.net/struts/struts2/struts2ajax/ajax-login-form.shtml if username or password is not enetered,I dont get the error message,instead I get undefined error and my username textfield and password textf

Re: Error - 2.1.6 - index()

2009-01-20 Thread jbogo
I don't use rest plugin. In fact, i haven't used the plugin codebehind. Now, it's working fine. Tanks a lot.

Ajax login Form in Struts2

2009-01-20 Thread Jaarthy
Hi, I am trying to implement AJAX login form using this example from http://www.roseindia.net/struts/struts2/struts2ajax/ajax-login-form.shtml if username or password is not enetered,I dont get the error message,instead I get undefined error and my username textfield and password textfield and al

Ajax login Form in Struts2

2009-01-20 Thread Jaarthy
Hi, I am trying to implement AJAX login form using this example from http://www.roseindia.net/struts/struts2/struts2ajax/ajax-login-form.shtml if username or password is not enetered,I dont get the error message,instead I get undefined error and my username textfield and password textfield and al

Re: Struts 2 session problem

2009-01-20 Thread Dave Newton
dusty wrote: Good luck with SEAM. And good luck to us incorporating some of its features--SEAM has a lot going for it. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user

Re: Accesing Cookies from a custom interceptor

2009-01-20 Thread dusty
I have used the static method you describe in the past. Ignacio de Córdoba wrote: > > Hi there, > I am writing a custom authentication and authorization interceptor and > need access to cookies. I've checked in Struts2 and other docs both ways > of getting access to cookies. I can't use Cookie

Re: Struts 2 session problem

2009-01-20 Thread dusty
Good luck with SEAM. RajibJana wrote: > > I strongly feel that this should be a feature of S2, it will ease the > developers work. With due respect to S2, I can say that SEAM provides few > more relevant features that are required for todays enterprise > applications. > > Thanks > > Rajib

Re: [S2] s:action in value stack?

2009-01-20 Thread stanlick
I would be careful about placing action execution logic in your view. This is really not the place to be making navigation decisions. On Mon, Jan 19, 2009 at 9:05 PM, dusty wrote: > > I have not researched this butthe way I understand it the action is > executed and its result evaluated a

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Robert Graf-Waczenski
The javascript solution is of course only production-ready if you use it in an application that is safeguarded against access w/o javascript, i.e. you also need an error page that tells the user to enable javascript in order to use your application. We here in our shop do it this way (we need j

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread shekher awasthi
i tried with javascript and it worked fine for me but still i believe that this is not the best solutions and as mentioned above if javascript is disabled the solution will no longer work so i have to look in to some other solution like setting pragma or cache-control will do? i am just removing

Accesing Cookies from a custom interceptor

2009-01-20 Thread Ignacio de Córdoba
Hi there, I am writing a custom authentication and authorization interceptor and need access to cookies. I've checked in Struts2 and other docs both ways of getting access to cookies. I can't use CookieInterceptor or CookiesAware interface as I need cookies in the interceptor, not in an action, s

Re: Error - 2.1.6 - index()

2009-01-20 Thread Musachy Barroso
are you using the REST plugin? musachy On Tue, Jan 20, 2009 at 7:58 AM, wrote: > We´re trying to upgrade struts from 2.0.11 to 2.1.6, and in all > actions appears the following errors. In version 2.0.11 the errors > doesn´t appear. > > java.lang.NoSuchMethodException: > gov.pr.cohapar.admin.lic

Re: how to map action and result in my own way?(without a lot config)

2009-01-20 Thread Musachy Barroso
you can add @Namespace("/someModule/someExampleAction") to your class, then annotate your method with @Action("dosomething"). I don't see why you wouldn't be able to achieve this with the convention plugin. musachy On Tue, Jan 20, 2009 at 4:22 AM, KuaJiang Ying wrote: > sorry, there is a typping

Problem with sun app server 9.1 and struts 2.0.14

2009-01-20 Thread Juergen.Leeb
I just upgraded to struts 2.0.14 (from 2.0.11.2). On my development environment I use Sunappserver 9.2 and everything works fine. On my productive environment I use Sunappserver 9.1. There I get a crazy error. When I call an action the action class returns success. The error message says: No res

Tooltips Not working in 2.1.6

2009-01-20 Thread Zoran Avtarovski
I¹ve just upgraded an app from 2.0.xx to 2.1.6 and found that the s:select tag is incorrectly rendering the tooltip html. I¹ve gone back to defaults and this is what¹s being produced:: Payment Type: alt=" Tooltip copy goes here." You¹ll notice that the img tag is closed bef

Error - 2.1.6 - index()

2009-01-20 Thread jbogo
We´re trying to upgrade struts from 2.0.11 to 2.1.6, and in all actions appears the following errors. In version 2.0.11 the errors doesn´t appear. java.lang.NoSuchMethodException: gov.pr.cohapar.admin.licitacao.action.ModalidadeAction.index() java.lang.Class.getMethod(Class.java:1581) org.apache.

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Nils-Helge Garli Hegvik
Did you invalidate the session? Are you setting no cache headers on the response? Nils-H On Tue, Jan 20, 2009 at 12:46 PM, shekher awasthi wrote: > Hi All, > > in the process of developing application using struts 2.0.11, i came across > the problem of handling browser back/forward button. > > T

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Paweł Wielgus
Hi Shekher, first try this scenario: 1. logout user 2. back button - check for logs if action was fired 3. refresh page - check for logs if action was fired Most likely only the 3. will fire action because browser will serve cached version of that page. I was about to write that to deal with it You

nested:nest, null property

2009-01-20 Thread elyes sallem
Hello, i have a nested property that i use in the jsp : but the iee can be null, so if i let it null, it return an error javax.servlet.ServletException: Invalid argument looking up

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread shekher awasthi
i did what u have suggested other solution is to use set response type in jsp but i want this functionality only when user get logged out in other case it must work is there any better way to deal with this?? On Tue, Jan 20, 2009 at 5:14 PM, Robert Graf-Waczenski wrote: > You don't write if th

2.1.6 dojo is not define

2009-01-20 Thread TomazM
In 2.1.6 Struts Showcase there is still error with dojo: Firebug: Error: missing ) after condition Source File: http://jalovec.arnes.si:8080/struts2-showcase-2.1.6/struts/dojo/struts_dojo.js Line: 8644, Column: 4 Source Code: if(_8 Error: dojo is not defined Source File: http://jalovec.arnes.

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Robert Graf-Waczenski
You don't write if the browser back button is supposed to be functional in your application (in many cases it is not, but YMMV). If you want to disable the browser back button, use the code below in all your pages: history.forward(); I'm not aware of any feature in Struts2 that deals with

Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread shekher awasthi
Hi All, in the process of developing application using struts 2.0.11, i came across the problem of handling browser back/forward button. This problem is occurring when we will logout the user.On Clicking the logout button we are currently removing the user from the session and it worked fine for

Re: [S1] Validation

2009-01-20 Thread Pablo Vázquez Blázquez
I have: I need to validate that "schemaClassName" has at least one value (its length is > 0), in struts 1.x. Thanks. Seshagiri V escribió: Hi , Please mention clear requirement in struts2.x or struts1.x Thank you, Seshagiri V seshagi...@kens

RE: [S1] Validation

2009-01-20 Thread Seshagiri V
Hi , Please mention clear requirement in struts2.x or struts1.x Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information c

[S1] Validation

2009-01-20 Thread Pablo Vázquez Blázquez
Hi all! Now I am used to use Struts2 and have forgotten some things about Struts1 Well, if I have a form with a name="schemaClassName" type="java.lang.String[]"/>, how can I validate it to check its size is > 0?? With "required" it does not work... Thanks. ---

Re: how to map action and result in my own way?(without a lot config)

2009-01-20 Thread KuaJiang Ying
sorry, there is a typping error the method is doSomething() On Tue, Jan 20, 2009 at 5:17 PM, KuaJiang Ying wrote: > hello,i'm building a webapp using struts2+spring+hibernate > > given url: > > http://ip:port/appName/someModule/someExampleAction/doSomething?id=1&otherParam=xx > > i want to map

how to map action and result in my own way?(without a lot config)

2009-01-20 Thread KuaJiang Ying
hello,i'm building a webapp using struts2+spring+hibernate given url: http://ip:port/appName/someModule/someExampleAction/doSomething?id=1&otherParam=xx i want to map to class com.xx.yy.someModule.action.SomeExampleAction package com.xx.yy.someModule.action @Component @Scope("prototype") publ

Re: stack values in converter

2009-01-20 Thread Andrei Ivanov
On Tue, Jan 20, 2009 at 5:08 AM, dusty wrote: > > Sorry. I don't think I understand your problem. When you say the stack is > being cleared are you seeing nulls in your converter for values that were > previously populated on the stack by the Parameters Interceptor? No My interceptors stack is

Re: Struts 2 session problem

2009-01-20 Thread RajibJana
Agree, some applications need same conversation across windows/tabs, some other application needs different conversations in seperate windows/tabs, typical example will be online booking/trading system. The server framework should support both models. Thanks Rajib DNewfield wrote: > >