Open Session in View, struts2.2.1, eclipseLink (JPA2)

2010-12-06 Thread Ken McWilliams
Hello, Any advice on how to get Open session in View working with struts2? I've used spring but not well versed with it. Ken. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: use

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread ashish chawre
Thanks Li.. Yeh, it happens.. This trick certainly saves time. -- Ashish On Mon, Dec 6, 2010 at 4:02 PM, Li Ying wrote: > It looks like, the latest class files were not deployed to the WebApp > Context. > > Sometimes this happens. > > When you find something getting wrong, and your source code

Re: Asking about BigDecimal in Struts 2

2010-12-06 Thread Yanto Bong
Hi Mead, thanks for the suggestion, but we want to keep the minimum changes on the code. if we convert into string in jsp/view pages, there are quite a lot of changes. however we already change our formatting script in our js library and it solved the issue. also this issue just happend when we

Re: Asking about BigDecimal in Struts 2

2010-12-06 Thread Mead Lai
Hello, 1,convert the munber into string in the jsp/view page. 2,write a JSTL to render that dataType by your self. Regards, Mead On Tue, Dec 7, 2010 at 10:25 AM, Yanto Bong wrote: > Hi Li, > > thanks...unfortunately we already use this model in many places and we need > to have BigDecimal ret

Re: Asking about BigDecimal in Struts 2

2010-12-06 Thread Yanto Bong
Hi Li, thanks...unfortunately we already use this model in many places and we need to have BigDecimal return datetype. However we already solve this issue by changing our java script lib. Thanks On Mon, Dec 6, 2010 at 11:47 AM, Li Ying wrote: > This looks like the result of toString() of BigDe

What is the status of OSGI (pref Equinox) and Struts2 integration?

2010-12-06 Thread Andy Doddington
There seem to be several chat threads out there on the internet, but nothing more recent than around 2007. Given the obvious synergies between these two technologies, I find it hard to believe that nothing more has come of this.

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread Li Ying
BTW, according to the exception message: The execute method of UserRegistrationAction IS CALLED, but some code invoked by this method raised an exception. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additiona

Re: Bookmark and session

2010-12-06 Thread Anjib
Thanks Li I think this is will be best solution for now. On 12/6/2010 6:55 PM, Li Ying wrote: Do you mean, when user click some bookmark, you want to check if this bookmark belongs to this user? Basically, you can not control bookmark, because it is a browser operation. The only way i can te

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread Li Ying
It looks like, the latest class files were not deployed to the WebApp Context. Sometimes this happens. When you find something getting wrong, and your source code looks like right, Just try turn off the web app, and re-deployed your latest code again. See if it the error get fixed. Sometimes, th

Re: Bookmark and session

2010-12-06 Thread Li Ying
Do you mean, when user click some bookmark, you want to check if this bookmark belongs to this user? Basically, you can not control bookmark, because it is a browser operation. The only way i can tell is, to add a user id param to all your page url. So, when userA saved a bookmark, and when it cl

Re: Bookmark and session

2010-12-06 Thread Arthur Neves
Hi dude, I think your problem might be something in the URL which you are adding to the bookmark, make sure that the URL it`s correct! -Arthur Neves On Mon, Dec 6, 2010 at 3:49 PM, Anjib Mulepati wrote: > Hi > > Can anyone help me how I can handle the bookmark issue. > > I am having problem whe

Bookmark and session

2010-12-06 Thread Anjib Mulepati
Hi Can anyone help me how I can handle the bookmark issue. I am having problem where if one user do bookmark for some page and after it logout if some one use that bookmark and login with different id he get into same page. But content is specific to users. More precisely if I have two page

Re: Question about OGNL / EL

2010-12-06 Thread Greg Akins
Dave. The partnerId is being set, in the action class using session.put("partnerId", "11") On Mon, Dec 6, 2010 at 1:27 PM, Alfredo Manuel Osorio Martinez wrote: > Try replacing %{partnerId} with %{#session.partnerId} Thanks! That worked > > Alfredo Osorio > > -Mensaje original- > De:

RE: Question about OGNL / EL

2010-12-06 Thread Alfredo Manuel Osorio Martinez
Try replacing %{partnerId} with %{#session.partnerId} Alfredo Osorio -Mensaje original- De: Greg Akins [mailto:angryg...@gmail.com] Enviado el: Monday, December 06, 2010 11:16 AM Para: user@struts.apache.org Asunto: Question about OGNL / EL This might not be specifically a OGNL question

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread ashish chawre
Thanks everyone for your responses. The problem is fixed but I don't know how :).. What I did is just turn off my computer after battling with the prob, thought to take a drive and when I came back and start the application again its just working fine. I got all my records in db using the same conf

Re: Question about OGNL / EL

2010-12-06 Thread Dave Newton
How/where is partnerId defined? Dave On Mon, Dec 6, 2010 at 12:49 PM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > The url value syntax should be fine. Did you try to test without sitemesh? > > 2010/12/6 Greg Akins : > > This might not be specifically a OGNL question. I've got so

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread Dave Newton
You might *think* it's there, but I'm pretty sure it isn't--is the correct version deployed? Are its dependencies deployed? The message is pretty explicit with regards to what's wrong. Dave On Mon, Dec 6, 2010 at 12:10 PM, ashish chawre wrote: > .

Re: Question about OGNL / EL

2010-12-06 Thread Maurizio Cucchiara
The url value syntax should be fine. Did you try to test without sitemesh? 2010/12/6 Greg Akins : > This might not be specifically a OGNL question.  I've got some code > that doesn't appear to behave correctly. > > - > ${partnerId} > > > When I open this page the title includes the partnerId bu

Question about OGNL / EL

2010-12-06 Thread Greg Akins
This might not be specifically a OGNL question. I've got some code that doesn't appear to behave correctly. - ${partnerId} When I open this page the title includes the partnerId but the url doesn't partnerId is set on the Session. I'm wondering if it isn't set when the tag is evaluated, but

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread ashish chawre
Thanks for the prompt reply Maurizio. I also thought the same but I checked my UserDelegates class and got add(UserDTO) declared there. In this delegate I am getting service class object trough a ServiceLocator and it seems the object is not getting created for UserService class. Please find UserR

Re: consume JSON for S2

2010-12-06 Thread Frans Thamura
we are working to make our struts2 based apps odata compliance, and we want also to consume odata api with struts2 but the LINQ feature that can map the JSON , like HQL way. that is awesome F On Mon, Dec 6, 2010 at 11:00 PM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > The idea

Re: consume JSON for S2

2010-12-06 Thread Maurizio Cucchiara
The idea behind this technology seems very good, but the consumer list [1] is still too short. I mean if a JS component based framework (like f.e. extJS or dijit) will take in consideration it, the interested will grow. But I had just take a quick look and I could wrong. [1] http://www.odata.org/c

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread Maurizio Cucchiara
It looks like there is something wrong in your UserDelegate class. Have you declared an add(UserDTO) method inside it? Could you post UserRegistrationAction code? 2010/12/6 ashish chawre : > Hi list, > > I am trying to call execute method of my UserRegistrationAction class but it > doesn't call t

Problem in calling method from Struts.xml in struts2

2010-12-06 Thread ashish chawre
Hi list, I am trying to call execute method of my UserRegistrationAction class but it doesn't call the method. Here is the code of my struts.xml : {1} {1} d_UserRegistrationAction LoginAction

Re: consume JSON for S2

2010-12-06 Thread Frans Thamura
I want the hibernate that I use her to use json as data source /m/ -Original Message- From: Martin Gainty Date: Mon, 6 Dec 2010 07:53:30 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: RE: consume JSON for S2 If i understand you correctly since ODATA is

RE: consume JSON for S2

2010-12-06 Thread Martin Gainty
If i understand you correctly since ODATA is a JS Library why not factor ODATA as a plugin substitute for Dojo? or am i mis-understanding your request? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Di

Re: submit date in textfield with custom date format

2010-12-06 Thread li wei
what is your locale associated with the request? if your locale's date format is defferent from "-MM-dd" , you have to customize the type conversion to make it work. http://struts.apache.org/2.2.1/docs/type-conversion.html -

Re: submit date in textfield with custom date format

2010-12-06 Thread Maurizio Cucchiara
I'm not sure I understand what you mean, did you get an ognl.MethodFailedException exception? 2010/12/6 cellterry : > > Dear All, > > I am using struts textfield tag with a date field with date format > "-MM-dd." > > I have seen the following link which also can display what I want. > > http:/

submit date in textfield with custom date format

2010-12-06 Thread cellterry
Dear All, I am using struts textfield tag with a date field with date format "-MM-dd." I have seen the following link which also can display what I want. http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html

consume JSON for S2

2010-12-06 Thread Frans Thamura
hi all microsoft just demo me LINQ, ODATA.org and we wanna to implement ODATA in Struts2, anyone can help? and also how to consume a json data source in struts2