Re: teardown

2008-08-20 Thread Wes Wannemacher
On Wed, 2008-08-20 at 22:51 -0700, ravi_eze wrote: > I would like to either make each launch of the jsp create a new exclusive > running instance of the action > : if i got u right but this is already happening. Each url call makes a > new actionclass instance. In Struts 2, actions are insta

Re: teardown

2008-08-20 Thread ravi_eze
I would like to either make each launch of the jsp create a new exclusive running instance of the action : if i got u right but this is already happening. Each url call makes a new actionclass instance. -- View this message in context: http://www.nabble.com/teardown-tp19074593p19082819.htm

Re: is this right?

2008-08-20 Thread David N. Arnold
On Wed, Aug 20, 2008 at 4:07 AM, "Stephan Schröder" <[EMAIL PROTECTED]> wrote: >> >> 12:35:31,491 WARN [OgnlUtil] Caught OgnlException while setting property >> >> 'searchText' on type >> >> 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. > > well, the problem is that ServletActionRe

multiple sessions created in struts 1.2.x on 404 new request... bug? [S1]

2008-08-20 Thread whizdom
Hi all, I've noticed the following behavior in Struts 1.2.4 and 1.2.7: if a brand new request comes in for a non-existent page, then the session information is not sent back with the response (meaning set-cookie is not set). So a second request from the user results in another session! At the

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread Musachy Barroso
Indeed, can't wait for 2.1 to come out, at least this setting will be set to "false" by default. On Wed, Aug 20, 2008 at 8:07 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: >> >> - On Wed, 8/20/08, MyAshok wrote: >> >>> >>> Can you tell me whats might be the problem with my IE. >

Re: teardown

2008-08-20 Thread Musachy Barroso
If unloading the classes is a must, and not just "remove" the actions, then yes, the OSGi plugin would be the only way to go, but considering that it is in the sandbox, and it is a moving target, it wouldn't be my first option. musachy On Wed, Aug 20, 2008 at 8:08 PM, Dustin Pearce <[EMAIL PROTEC

Re: teardown

2008-08-20 Thread Dustin Pearce
What about Don's OSGi plugin? I have not tried it buy it seems like a good fit, if I understand the question. Sent from my iPhone On Aug 20, 2008, at 10:47 AM, "Musachy Barroso" <[EMAIL PROTECTED]> wrote: I guess you could write a custom action mapper, the mapper would detect that the request

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread Jeromy Evans
Dave Newton wrote: - On Wed, 8/20/08, MyAshok wrote: Can you tell me whats might be the problem with my IE. It's IE. Dave He he he. I don't know for certain, but I think it's due to IE's non-standard event-handling (event ordering) and Dojo's/widget's failure to accommodate t

Re: [S2] Checkbox problem

2008-08-20 Thread Felipe Lorenz
Hi... you can do tag in another tag... cause its a recursive, and well.. Dave can explain better why!! ehehheh sorry.. my english is not good.. But you can try create a new boolean attribute in you action class and "tranform" the bd type ("Y"/"N") to a boolean type (true/false).. Or

[S2] Checkbox problem

2008-08-20 Thread Struts Two
I have a checkbox as follows in a jsp: Once a user selects the checkbox and submits the form,  ccUpdateFlag is set to true. However, on the database side the value is stored as 'Y' or 'N' . So my getCcUpdateFlag returns 'Y' or 'N' depending on the fact ccUpdateFlag is set to true or false. Now

Re: S2 type conversion problem with generics

2008-08-20 Thread Jukka Välimaa
A look into documentationsolved this. Apparently Struts 2 only supports generics for Collections or arrays. On Wed, Aug 20, 2008 at 9:32 PM, Chris Pratt <[EMAIL PROTECTED]>wrote: > Are you sure they do?

Re: Why do s:select and s:submit add a ?

2008-08-20 Thread Dave Newton
--- On Wed, 8/20/08, Ylva Degerfeldt wrote: > It seems that the new theme isn't working but I can't > tell for sure since I'm not getting any errors. It should be pretty easy to tell: does your stuff show up? > I don't even know if I've put the theme in the right place > in the NetBeans (5.5.1

[OT] Heads up for those using Tomcat in production.

2008-08-20 Thread Al Sutton
http://www.kb.cert.org/vuls/id/343355 Off topic I know, but I suspect that most of us on here have a tomcat server in production somewhere. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Re: S2 type conversion problem with generics

2008-08-20 Thread Chris Pratt
Are you sure they do? Or is it just recognizing that it's a Collection and treating it appropriately for a Collection of Objects? (*Chris*) On Wed, Aug 20, 2008 at 10:16 AM, Jukka Välimaa <[EMAIL PROTECTED]>wrote: > Sounds reasonable, thanks for the answer. But why do the generics used in > ja

Re: Why do s:select and s:submit add a ?

2008-08-20 Thread Ylva Degerfeldt
Ok, now I think I have created a new theme, by copying the templates of xhtml, changing some things and added things according to the example in: http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme In short - what I'm trying to do is to create some templates that allow an arbitrary num

Re: teardown

2008-08-20 Thread Musachy Barroso
I guess you could write a custom action mapper, the mapper would detect that the request is for one of the "black listed" actions and return null. musachy On Wed, Aug 20, 2008 at 1:40 PM, cpanon <[EMAIL PROTECTED]> wrote: > Hello > I have a demo that is not fully ready,(yes then I should not show

teardown

2008-08-20 Thread cpanon
Hello I have a demo that is not fully ready,(yes then I should not show it,grin) and I would like to either make each launch of the jsp create a new  exclusive running instance of the action or be able to lifecycle out of instantiation an all instances of a particular action and jsp.  I know thi

Re: S2 type conversion problem with generics

2008-08-20 Thread Jukka Välimaa
Sounds reasonable, thanks for the answer. But why do the generics used in java collections work with type conversion, and generics in my custom class won't? On Wed, Aug 20, 2008 at 7:06 PM, Chris Pratt <[EMAIL PROTECTED]>wrote: > My bet is that, because Struts uses run-time introspection to deter

Re: Struts 2 And JFreeChart

2008-08-20 Thread Milan Milanovic
I have the same problem, my chart is created just first time and every time div which contains img tag refreshes I always got the first image (it doesn't update) ?! -- Regards, Milan dynamicd wrote: > > > got it to work.. could not stop the caching so added a param to the src > > img > src="

Re: S2 type conversion problem with generics

2008-08-20 Thread Chris Pratt
My bet is that, because Struts uses run-time introspection to determine how to pass the parameters, and the new Java Generics use type erasure to ensure backward portability, what Struts see's isn't your generic type, it's an Object. So it passes in the unconverted value that it got from Request.g

Re: [S2] Iterate through two lists

2008-08-20 Thread Milan Milanovic
Dear Dave, yes, I tried with index too, but it doesn't work. No, there is nothing in log. -- Regards, Milan newton.dave wrote: > > --- On Wed, 8/20/08, Milan Milanovic wrote: >> No, this doesn't work. I get: "500 Internal Server >> Error" if I use this. > > First of all, it should be rowStat

[S2] Does struts set null values for pojo fields?

2008-08-20 Thread Gawain Hammond
Hi, I have tried to RTFM as much as possible but I can't work out how I might solve this issue, and was hoping someone could point me in the right direction. I've tried quite a few possible different options but I'm now running out of ideas. I'm using a select tag in a User form to set the User's

S2 type conversion problem with generics

2008-08-20 Thread Jukka Välimaa
Hi all, I have the following problem which I think is caused by Struts 2 type conversion. I have a class I use to wrap a map for easier interface with view: public class ObjectWeekHandler { private Map weekDayObjects = new HashMap(); public Map getWeekDayObjects() { return weekD

Re: [S2] Iterate through two lists

2008-08-20 Thread Dave Newton
--- On Wed, 8/20/08, Milan Milanovic wrote: > No, this doesn't work. I get: "500 Internal Server > Error" if I use this. First of all, it should be rowStatus.index, which is zero-based (count is one-based). Second of all, is there anything in the log? Dave > "Stephan Schröder" wrote: > > > >

Re: [S2] Iterate through two lists

2008-08-20 Thread Milan Milanovic
No, this doesn't work. I get: "500 Internal Server Error" if I use this. -- Milan "Stephan Schröder" wrote: > > I'm not sure whether the syntax is completly right but it should work like > this: > > > > > > > > > > > >> View this message in context: >> http://www

Re: Why do s:select and s:submit add a ?

2008-08-20 Thread Ylva Degerfeldt
Thank you, Dave and Stephan! I've followed those links and I'm reading about it right now.. > short version: use the theme="simple" attribute No, because I like the automatic error handling and label generation. > Are you user a html-form or the struts2-form-tag? I guess it's the html-form > fr

Re: Struts 2 & Database Connection Pooling

2008-08-20 Thread Gabriel Belingueres
AFAIK, there is no pattern. You can configure a datasource through Spring, or you could get it from JNDI once when your app starts (by writing a ServletContextListener) 2008/8/20, Roger <[EMAIL PROTECTED]>: > I need to implement a database connection pool and was considering using the > JNDI faci

Re: Why do s:select and s:submit add a ?

2008-08-20 Thread Stephan Schröder
> http://struts.apache.org/2.x/docs/xhtml-theme.html > http://struts.apache.org/2.x/docs/themes-and-templates.html short version: use the theme="simple" attribute Are you user a html-form or the struts2-form-tag? I guess it's the html-form from what you write (which wouldn't be that good). If yo

Re: struts 2.0.11.2 problem

2008-08-20 Thread Stephan Schröder
> Initially when i don't have in my session > > it is working if i write getters and setters for user object in my action > class Exactly, because the action is pushed onto the value stack automatically. You might want to read the short section on the Value Stack / OGNL on the freely available

Re: Why do s:select and s:submit add a ?

2008-08-20 Thread Dave Newton
http://struts.apache.org/2.x/docs/xhtml-theme.html http://struts.apache.org/2.x/docs/themes-and-templates.html --- On Wed, 8/20/08, Ylva Degerfeldt <[EMAIL PROTECTED]> wrote: > A strange thing I've noticed about Struts 2 is that > certain tags (like > s:select and s:submit) seem to add an extra >

Re: struts 2.0.11.2 problem

2008-08-20 Thread raveendra
Thanks Dave it is working On Wed, Aug 20, 2008 at 4:06 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Wed, 8/20/08, raveendra wrote: > > I have a user java bean object in my session; it has getter > > and setter for roleId.I have the following code in my jsp. > > Here I am trying to load dif

Why do s:select and s:submit add a ?

2008-08-20 Thread Ylva Degerfeldt
Hi everyone, A strange thing I've noticed about Struts 2 is that certain tags (like s:select and s:submit) seem to add an extra though you have not specified it. At least that's happening in my code. I just have a normal (inside of which is an iterator loop), one (inside the loop) and inside th

Re: struts 2.0.11.2 problem

2008-08-20 Thread raveendra
Thanks Dave and Stephan, Both your solutions worked when i have user object in my session This line is working Initially when i don't have in my session it is working if i write getters and setters for user object in my action class Thanks guys. > On Wed, Aug 20, 2008 at 5:37 PM, "Stephan Sch

AW: Parameter interceptor unable to handle post and get at the same time?

2008-08-20 Thread Gutenbrunner Martin
Me again, By sniffing the requests, I have now found out that if the header contains ntlm authentication information, no post parameters are present, only get. I know, that this is probably not quite the right place to ask, but if anyone of you has experience concerning jcifs I'd be glad to get

Struts 2 & Database Connection Pooling

2008-08-20 Thread Roger
I need to implement a database connection pool and was considering using the JNDI facilities provided by the servlet container (in my case, Apache Tomcat). Is there a Struts "pattern" for accessing JNDI resources in (a) a container neutral manner and (b) without tying my action classes to the s

Re: [S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-20 Thread Ylva Degerfeldt
>> I still wonder how Struts can possibly know that the >> objects I've put in my HashMap are of my InfoObject type. > > Why would it need to? To be able to execute the getState method that belongs to the InfoObjects. But maybe Struts 2 is that "smart" so it can do that anyway. But what matters is

Re: struts 2.0.11.2 problem

2008-08-20 Thread Stephan Schröder
your user is in the session not on the value stack therefore you should try this: /Stephan Original-Nachricht > Datum: Wed, 20 Aug 2008 15:11:51 +0530 > Von: "ravindra" <[EMAIL PROTECTED]> > An: user@struts.apache.org > Betreff: struts 2.0.11.2 problem > Hi all, > > > >

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread Dave Newton
- On Wed, 8/20/08, MyAshok wrote: > Can you tell me whats might be the problem with my IE. It's IE. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread MyAshok
Hi Jeromy, We got it. Its working fine. Thank you very much for the quick reply. Can you tell me whats might be the problem with my IE. Regards, Ashok. Jeromy Evans - Blue Sky Minds wrote: > > MyAshok wrote: >> Hi all, >> >> Thanks for all your response. >> >> Finally i isolated the p

Re: URLEncoding a string

2008-08-20 Thread Dave Newton
--- On Wed, 8/20/08, Paolo Niccolò Giubelli wrote: >> Dave Newton wrote: >>> I'm pretty sure it's Struts 1, since there are both [...] > Yeah, it's struts1. > So, should I use ? Does it perform an urlencoding? Wouldn't it have been quicker to either (a) try it, or (b) search the fine web, rather

Re: [S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-20 Thread Dave Newton
--- On Wed, 8/20/08, Ylva Degerfeldt wrote: > I still wonder how Struts can possibly know that the > objects I've put in my HashMap are of my InfoObject type. Why would it need to? Dave - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: struts 2.0.11.2 problem

2008-08-20 Thread Dave Newton
--- On Wed, 8/20/08, raveendra wrote: > I have a user java bean object in my session; it has getter > and setter for roleId.I have the following code in my jsp. > Here I am trying to load different images Based on the condition. > > Try with the OGNL escape around the entire expression: %{user

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread Jeromy Evans
MyAshok wrote: Hi all, Thanks for all your response. Finally i isolated the problem and found that the problem is with the ajax submit of the same div. (i.e) my form and the submit targets to the same div. This scenerio creates the problem that the values in the jsp is not populated to the acti

Re: DoJo Plugin for struts 2.0.11

2008-08-20 Thread Dave Newton
--- On Wed, 8/20/08, Narayana S wrote: > i am right now working on struts 2 tree component, as we have some > issues with the events of this tree version, some where i found that > using struts pojo plug-in will solve this issue, but i couldnt > find any url to download the dojo plugin, can you pl

Parameter interceptor unable to handle post and get at the same time?

2008-08-20 Thread Gutenbrunner Martin
Hi! I'm using struts 2.0.11.2 with apache tomcat 5.5.25 and java 5. My problem is, that my action methods do not always recognize POSTed parameters, they only have their null values assigned. "Not always" means, yesterday it worked, today it does not... Without really changing anything in the cod

Re: URLEncoding a string

2008-08-20 Thread Paolo Niccolò Giubelli
Oleg Mikheev ha scritto: Dave Newton wrote: I'm pretty sure it's Struts 1, since there are both and Yeah, it's struts1. So, should I use ? Does it perform an urlencoding? - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

struts 2.0.11.2 problem

2008-08-20 Thread raveendra
Hi all, I have a user java bean object in my session; it has getter and setter for roleId.I have the following code in my jsp.Here I am trying to load different images Based on the condition. I think the syntax for test condition has changed in this

Re: [S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-20 Thread Ylva Degerfeldt
Yes, I tried: but it doesn't write anything at all. I still wonder how Struts can possibly know that the objects I've put in my HashMap are of my InfoObject type. (I'm not so good at reflection) When I created that HashMap, first I just did "HashMap myMap = new HashMap()", but I tried changing

struts 2.0.11.2 problem

2008-08-20 Thread ravindra
Hi all, I have a user java bean object in my session; it has getter and setter for roleId.I have the following code in my jsp.Here I am trying to load different images Based on the condition. I think the syntax for test condition has changed in t

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread MyAshok
Hi all, Thanks for all your response. Finally i isolated the problem and found that the problem is with the ajax submit of the same div. (i.e) my form and the submit targets to the same div. This scenerio creates the problem that the values in the jsp is not populated to the action by autowiring

RE: is this right?

2008-08-20 Thread Muralidhar Y
Thank you Manikanta and Stephan. Warm regards, Muralidhar Y [EMAIL PROTECTED] US Main: 877 KENSIUM (536.7486) India Main: +91 9949495511 India Fax: +91 9949495522 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information con

Re: is this right?

2008-08-20 Thread Stephan Schröder
> >> 12:35:31,491 WARN [OgnlUtil] Caught OgnlException while setting property > >> 'searchText' on type > >> 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. well, the problem is that ServletActionRedirectResult has no property called searchText which is of course clear if you think

Re: is this right?

2008-08-20 Thread ManiKanta G
Here the value of the property being sent to the target action from source action is needed to find the source action class. So for the properties specified as the static params for redirectAction result, they should have getters in the source action itself. Then only S2 is able to get the valu

Re: is this right?

2008-08-20 Thread ManiKanta G
Here the value of the property being sent to the target action from source action is needed to find the source action class. So for the properties specified as the static params for redirectAction result, they should have getters in the source action itself. Then only S2 is able to get the valu

Re: [S2] Iterate through two lists

2008-08-20 Thread Stephan Schröder
I'm not sure whether the syntax is completly right but it should work like this: > View this message in context: > http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19052842.html -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ide

Re: is this right?

2008-08-20 Thread Nils-Helge Garli Hegvik
An additional resource you can take a look at: http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html Nils-H On Wed, Aug 20, 2008 at 9:40 AM, Muralidhar Y <[EMAIL PROTECTED]> wrote: > Here the situation is different. Please look into the following config. Here > I am redirecti

RE: is this right?

2008-08-20 Thread Muralidhar Y
Here the situation is different. Please look into the following config. Here I am redirecting to a particular action. That class which is mapped with that action have getters and setters. Please look into the ognl warning in the second post it is lloking for the property in redirect action class. P

Re: is this right?

2008-08-20 Thread ManiKanta G
Well, S2 searches for the property in the action class only, not in the target action. But the condition here is the property or properties you are using should have getter(s) in the action class (in the source action). And if the target action is having setters for those properties, those val

RE: is this right?

2008-08-20 Thread Muralidhar Y
If I do the same I am getting the following warning . I think it searching for the property in redirection class instead of action class. Kindly tell me what is the solution for this. 12:35:31,491 WARN [OgnlUtil] Caught OgnlException while setting property 'searchText' on type 'org.apache.struts