Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread Antonio Petrelli
2009/2/25 Paul Benedict pbened...@apache.org: Does anyone have a good solution for objects stored in an HTTP Session that should be reattached per request? For example, like the authenticated user object stored in the HTTP Session. I had a servlet filter written that attached the entity per

Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread Antonio Petrelli
2009/2/25 Paul Benedict pbened...@apache.org: I had a servlet filter written that attached the entity per request, but a double-click from the user showed the futility of that approach. You can't have one entity attached to two sessions :-) Uh sorry I did not read correctly this sentence. You

show text in displaytag from properties file

2009-02-25 Thread Po Po
Hello, I used s2 with displaytag. display:table name=${list} id=row uid=row display:column title=label.firstname property=fname / display:column title=label.lastname property=lname/ /display:table I already create file textmessage.properties, this file contain: label.firstname=First Name

Re: How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Lukasz Lenart
2009/2/25 Gordian Yuan gordiany...@gmail.com: I want to know what is there a way through the ognl tag in struts2 access to the HttpServletRequest getRemoteUser() method I google a lot of about this issue but i can't find any resolvent. Someone know how to do it? Any input will be great ...

How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Gordian Yuan
Hi all, I want to know what is there a way through the ognl tag in struts2 access to the HttpServletRequest getRemoteUser() method I google a lot of about this issue but i can't find any resolvent. Someone know how to do it? Any input will be great ... Thank you Gordian

Re: show text in displaytag from properties file

2009-02-25 Thread Lukasz Lenart
2009/2/25 Po Po semu...@yahoo.com: I used s2 with displaytag. display:table name=${list} id=row uid=row  display:column title=label.firstname property=fname /  display:column title=label.lastname property=lname/ /display:table I already create file textmessage.properties, this file

Re: Writing a unit test that goes through result-types

2009-02-25 Thread Timothy Astle
Thanks for the tip Greg. I quickly went through the debugger based on the example here: http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ and I learned two things. 1. execute() does call getSettings(). All that CRUD nonsense was me not being

Re: How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Gordian Yuan
Hi, Lukasz Thank for your reply #request.remoteUser actual is request.getAttribute(remoteUser), not i want request.getRemoteUser() Gordian On Wed, Feb 25, 2009 at 6:38 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2009/2/25 Gordian Yuan gordiany...@gmail.com: I want to know what

Re: Action mapping issue while Integrating S2 and S1

2009-02-25 Thread SanJ.SANJAY
In my already existing S1 i had aplication-context.xml and for S2 I am using another applicationContext.xml...would this be causing the problem? Also the server log always says: 10:17:01,963 INFO [XmlConfigurationProvider] Parsing configuration file [struts-default.xml] 10:17:02,197 INFO

Re: How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Lukasz Lenart
2009/2/25 Gordian Yuan gordiany...@gmail.com: #request.remoteUser actual is request.getAttribute(remoteUser), not i want request.getRemoteUser() Yes, you're right try #request.getRemoteUser() Regards -- Lukasz http://www.lenart.org.pl/

Re: Action mapping issue while Integrating S2 and S1

2009-02-25 Thread Dave Newton
SanJ.SANJAY wrote: In my already existing S1 i had aplication-context.xml and for S2 I am using another applicationContext.xml...would this be causing the problem? It *could* be, depending on how Spring is being initialized. Dave

Re: Action mapping issue while Integrating S2 and S1

2009-02-25 Thread SanJ.SANJAY
?? newton.dave wrote: SanJ.SANJAY wrote: In my already existing S1 i had aplication-context.xml and for S2 I am using another applicationContext.xml...would this be causing the problem? It *could* be, depending on how Spring is being initialized. Dave

what is difference between listing config file with comma delimited or by module

2009-02-25 Thread Ashish Kulkarni
HiCan some one explain with example difference between configuring multiple config files separated by comma or as module How does it affect the URL? Can i define bean in one configuration file and action using this bean in different configuration file? I have an application where about 10 beans

Integer s:checkbox sends false value to action setter

2009-02-25 Thread Ignacio de Córdoba
Hi there, I am trying to start using struts2 checkboxes via s:checkbox tag: s:checkbox name=removeExtraUserdataFieldId theme=simple fieldValue=%{id}/ This renders: input type=checkbox name=removeExtraUserdataFieldId value=3 id=index_storePreferences_action_removeExtraUserdataFieldId/ input

Namespace Expression?

2009-02-25 Thread Griffith, Michael *
Hi Everyone, What's wrong with this expression? s:property value=#context['struts.actionMapping.namespace']/ Namespace is a private field, but has a public accessor...? Thanks in advance, MG - To unsubscribe, e-mail:

Re: Namespace Expression?

2009-02-25 Thread Musachy Barroso
Nothing wrong with it syntactically, but I think this is what you are looking for: s:property value=#context['struts.actionMapping'].namespace/ musachy On Wed, Feb 25, 2009 at 3:34 PM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: s:property

value truncated

2009-02-25 Thread Dravid
Hi All, I have a jsp page where I am using html:select options.When the user selects a option I am calling a JavaScript onchange to submit the form. My problem is I have a list with double quotes values which I am retrieving from database. eg: Account = N .I could not able to retrieve the the

RE: Namespace Expression?

2009-02-25 Thread Griffith, Michael *
Swift! Thanks Musachy. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Wednesday, February 25, 2009 2:38 PM To: Struts Users Mailing List Subject: Re: Namespace Expression? Nothing wrong with it syntactically, but I think this is what you are looking for:

ApacheCon Europe 2009 Struts Training

2009-02-25 Thread jean-frederic clere
Hi, This is an interview of Chad Davis on the feathercast (See http://feathercast.org/?p=77) http://feathercast.org/ (episode 57). Cheers Jean-Frederic - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: Action mapping issue while Integrating S2 and S1

2009-02-25 Thread Dave Newton
SanJ.SANJAY wrote: ?? Was there more? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Gordian Yuan
Hi, Lukasz All I know is # request is a Map, it is only stored request of attributes, it does not have getRemoteUser(). Now I have to use EL and ordinary html tags replace struts2 tags to solve this problem. However, thank you for your reply ... Gordian On Wed, Feb 25, 2009 at 11:54 PM,

Re: How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Wes Wannemacher
On Wednesday 25 February 2009 21:15:09 Gordian Yuan wrote: Hi, Lukasz All I know is # request is a Map, it is only stored request of attributes, it does not have getRemoteUser(). Now I have to use EL and ordinary html tags replace struts2 tags to solve this problem. However, thank you for

how do you bypass struts file upload functionality?

2009-02-25 Thread John Dell'Aera
hello. I have a file upload application that I'm porting to struts from my custom framework. I would like to continue using the jakarta file upload api so that I do not have to modify my file uploader class. Is there a way to bypass the struts file upload functionality? I believe that as soon

Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread suhas kokal
Hi all, If some body knows hot to use javascript alerts with struts 2.0 (when validation framework fires)please find me the way. Thanks a lot in advance. Suhas. --- On Wed, 25/2/09, Paul Benedict pbened...@apache.org wrote: From: Paul Benedict pbened...@apache.org Subject: Hibernate, HTTP

Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread Nils-Helge Garli Hegvik
This has nothing to do with the original posting. Please post your question creating a new thread/email. Nils-H On Thu, Feb 26, 2009 at 8:12 AM, suhas kokal kokalsu...@yahoo.com wrote: Hi all, If some body knows hot to use javascript alerts with struts 2.0 (when validation framework

Re: Hibernate, HTTP Session, and LazyInitializationException

2009-02-25 Thread John Dell'Aera
Hello. Force a round trip on the first request, prior to authentication, and place the authenticated user object in the session object. All future requests prior to session timeout will be tied to the same session, and can therefore be serviced by the same session object. John

Re: How to user HttpServletRequest getRemoteUser() method on struts2 tag?

2009-02-25 Thread Gordian Yuan
Hi Wes, Thank you for your wonderful answer.These two methods are very good solution to my problem. THANK YOU!!! Gordian On Thu, Feb 26, 2009 at 10:34 AM, Wes Wannemacher w...@wantii.com wrote: On Wednesday 25 February 2009 21:15:09 Gordian Yuan wrote: Hi, Lukasz All I know is #