Re: need help with validation

2008-06-06 Thread Pranav
i tried chaining but that did not work as expected. but then i used prepare interceptor and it was piece of cake. i just had to move the code out to a helper class to prepare the list for dropdown and call that helper method from both 1st and 2nd actions. If anyone wants to know exactly how it w

Re: How to pass dynamic value to the logic:equal tag?

2008-06-06 Thread Jim Kiley
I would compose the string from the vector in a Java function, and call that function to get the String, instead of just accessing the Vector. Is there a reason you couldn't do that? jk On Fri, Jun 6, 2008 at 12:54 PM, VenkatBabu <[EMAIL PROTECTED]> wrote: > > I am new to this forum...forgive m

Re: [Struts 2] Session Action / Form?

2008-06-06 Thread stanlick
Take a look at the ScopeInterceptor . Scott On Fri, Jun 6, 2008 at 3:23 PM, claym <[EMAIL PROTECTED]> wrote: > > Does Struts 2 support something similar to Spring MVC's session scope > bean/form where the form input will live across multi

[Struts2] Help please!!! how to map select tag with listkey and listvalue into a java object with his ids and names?

2008-06-06 Thread Eduardo Solanas
Hi, i have tried it, looking for the solution in books and google and i can't do this. i have a select tag in my jsp in my action i have List countries=new ArrayList(); with getCountries()/setCountries(List countries); I have a country.java with String idCountry=""; String nameCountry=""; wit

[Struts 2] Session Action / Form?

2008-06-06 Thread claym
Does Struts 2 support something similar to Spring MVC's session scope bean/form where the form input will live across multiple requests to the same (or even different) actions? If so, how does that work? -- View this message in context: http://www.nabble.com/-Struts-2--Session-Action---Form--tp1

Re: s2 + spring, how to access spring defined bean in jsp

2008-06-06 Thread Tomislav Stojcevich
I found this interesting filter that I could apply: http://wiki.opensymphony.com/display/ABLE/Expose+Spring+Beans+in+JSP I'm kind of surprised that spring or struts doesn't already have something to provide this built in. --tom

Re: s2 + spring, how to access spring defined bean in jsp

2008-06-06 Thread Dave Newton
Or possibly use Spring's ability to put beans into web scopes? I guess I"m not sure how the bean is named in the scope or if it's even available as a scoped attribute. I'd kinda *like* to know, though... kinda like... wait for it... A scopes trial. Totally worth it. Dave --- On Fri, 6/6

Re: s2 + spring, how to access spring defined bean in jsp

2008-06-06 Thread Chris Pratt
You can also add an Interceptor that places the bean in the context. Like: invocation.getStack().getContext().put("user",userBean); Then in your jsp's you can reference the value using the Struts tags as: (*Chris*) On Fri, Jun 6, 2008 at 11:00 AM, Bob Tiernay <[EMAIL PROTECTED]> wrote: > >

RE: s2 + spring, how to access spring defined bean in jsp

2008-06-06 Thread Bob Tiernay
I would recommend either of the following: 1. Use a jstl function that gets the application context and resolves the bean by name 2. Use a tagfile to wrap a scriptlet (or call to 1.) that does the lookup, using the bean name as an attribute.> Date: Fri, 6 Jun 2008 13:36:16 -0400> From: [EMAIL

Re: [Struts 2] Iterator usage

2008-06-06 Thread Laurie Harper
I assume 'rearding interator' means the s:iterator tag in a JSP? I doubt there is any clean/sane way to do this from within the JSP. Instead, do the summation logic in the action and give the JSP a data structure that already includes this information. L. Milan Milanovic wrote: Hi, I have o

s2 + spring, how to access spring defined bean in jsp

2008-06-06 Thread Tomislav Stojcevich
I have a spring defined singleton bean that I want to access in several jsp's. I'd like to simply do something like ${bean.property} wherever I need it. What's the easiest way that doesn't involve adding a getter in the action class (I'm using the codebehind plugin and tiles plugin for some of th

Re: [Struts2] Convention Plugin

2008-06-06 Thread vikofvan
How do I configure the plugin to work? I compiled the plugin and xwork using the latest source, and am using the latest successful build of struts2 (build 825) but it does not find the action at runtime. I tried using the plugin annotations also. The plugin looks very promising, if only I can get

How to pass dynamic value to the logic:equal tag?

2008-06-06 Thread VenkatBabu
I am new to this forum...forgive me if the question that i am going to raise is already present. I dont have time to go through all the messages which have been raised already. The problem is: I have logic:equal tag's value attribute shoud get populated by a value from the bean(i am storing

Re: Are sessions confused?

2008-06-06 Thread Juan Pablo Pizarro
You are welcome. Martin told me that. Regards, JP 2008/6/6, Julien ROTT <[EMAIL PROTECTED]>: > this seems to work, the sessions aren't overlaping anymore. > I'll test deeper on monday ;-) > Thanks ! > > 2008/6/6 Juan Pablo Pizarro <[EMAIL PROTECTED]>: > > > Hi Julien, > > > > I had two problems

Re: Are sessions confused?

2008-06-06 Thread Julien ROTT
this seems to work, the sessions aren't overlaping anymore. I'll test deeper on monday ;-) Thanks ! 2008/6/6 Juan Pablo Pizarro <[EMAIL PROTECTED]>: > Hi Julien, > > I had two problems, the first was my app, where the problem was > hibernate. The other, on my pc at home, the struts-blank, I don'

Re: Move query to interceptor

2008-06-06 Thread Frans Thamura
On Fri, Jun 6, 2008 at 10:03 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Fri, 6/6/08, Frans Thamura <[EMAIL PROTECTED]> wrote: > > my interceptor is not working > > > > because i need to do like execute() in ActionSupport > > What? i use spring and hibernate, , still finding out, i want

Re: Move query to interceptor

2008-06-06 Thread Frans Thamura
On Fri, Jun 6, 2008 at 8:43 PM, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > AFAIK, It is a very common to use an interceptor/servlet filter to > factor out authentication/authorization functionality. > my interceptor is not working because i need to do like execute() in ActionSupport any g

Re: Are sessions confused?

2008-06-06 Thread Juan Pablo Pizarro
Hi Julien, I had two problems, the first was my app, where the problem was hibernate. The other, on my pc at home, the struts-blank, I don't know (I abandoned that when I solved the problem of my app). In my application, I put response.setHeader("Cache-Control", "no-cache");

Re: Invoking action methods from jsp: parameter types

2008-06-06 Thread Jukka Välimaa
Well, I managed to solve this one. Ognl didn't actually pass the object itself to the method, but rather an instance of com.opensymphony.xwork2.util.CompoundRoot. I managed to get the object I needed by using its peek() method. On Fri, Jun 6, 2008 at 2:47 PM, Jukka Välimaa <[EMAIL PROTECTED]> wrot

Re: Move query to interceptor

2008-06-06 Thread Gabriel Belingueres
AFAIK, It is a very common to use an interceptor/servlet filter to factor out authentication/authorization functionality. 2008/6/6, Frans Thamura <[EMAIL PROTECTED]>: > hi all > > we want to move the repeated query on our apps to become a interceptor, this > is our file > > anyone can give the exp

Re: Are sessions confused?

2008-06-06 Thread Julien ROTT
Hi Juan Pablo, did you find a solution to your problem ? I have the same: my application is on the internet, and the clients access to the application from behind a proxy. When client "A" logs in, and then a client "B" logs in, Client "B" sees the data which is stored in client "A" session. Is i

Invoking action methods from jsp: parameter types

2008-06-06 Thread Jukka Välimaa
Hi all, I'm trying to format a certain string property of an object differently depending on the object state. For this, I'm trying to call an action method from the jsp, like this: My problem is the following: if I use my class type as the parameter type of the first argument of the method, the

Re: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-06-06 Thread Maxx
On Thu, May 1, 2008 at 5:21 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > > I have a solution, but first... > OGNL only provides access to static fields and static methods. It cannot > reference a static class, nor even an inner static class. > > http://www.ognl.org/2.6.9/Documentation/html/Langua

Re: [Struts 2] webapp on internet, clients behind a proxy --> session clash

2008-06-06 Thread Al Sutton
Not in your struts app. I've seen this in a production situation and it's usually a bug in the proxy. If you can try setting up a NAT environment without the proxy and then with the proxy, if the bug only occurs when the proxy is in place then you know where the problem is. Al. P.S. The bug

Re: Struts2 onchange event should do the same like submit(with ajax tag). How ?

2008-06-06 Thread zeermi
nobody can help me ? :/ zeermi wrote: > > Hi, > > with onchange="submit() I loose the ajax functionality -> website gets > completely refreshed > > > > Jim Kiley wrote: >> >> onchange="submit();" >> >> On Fri, May 30, 2008 at 6:26 AM, zeermi <[EMAIL PROTECTED]> wrote: >> >>> >>> Hi, >>