Re: [S2] dynamic row in STRUTS2

2008-11-11 Thread alvins
You can do something similiar to the following - In your action create - List textFields = new ArrayList(); In your jsp you do the following - etc. sivamIsha wrote: > > dear nabble, > > Help needed for updating an list in jsp with values added as dynamic row > in STRUTS2. > > -- V

Re: [S2] JSON plugin parser error

2008-11-11 Thread Musachy Barroso
the problem will be when you try to access that map using javascript. On Tue, Nov 11, 2008 at 8:38 PM, Relph,Brian <[EMAIL PROTECTED]> wrote: > > I have an object that is related to a set of other objects. I suppose I > could make 2 maps both keyed by the same primitive, one for the objects, and

RE: [S2] JSON plugin parser error

2008-11-11 Thread Relph,Brian
I have an object that is related to a set of other objects. I suppose I could make 2 maps both keyed by the same primitive, one for the objects, and one to the related objects. But why? You say it is not a good idea, but my objects all implement hashcode and equals, and outside of trying to

Re: Struts2: Getting multiple values from tag

2008-11-11 Thread Mead Lai
Where the tag will render to HTML, whatever you do in struts2-Tag, the HTML just only pass the value in . so, it seems no good idea. I do it like this: "name,anotherValue,id" is the value you need. join the string value which you wanne get, and separator them with "separatorString", then put

Re: [S2] JSON plugin parser error

2008-11-11 Thread Musachy Barroso
Using objects as keys is probably not a good idea. musachy On Tue, Nov 11, 2008 at 6:25 PM, Relph,Brian <[EMAIL PROTECTED]> wrote: > > Hello, I am trying to use the JSON plugin in my struts2 application. I am > getting a parser error on the string returned from the server. I think the > plugi

[S2] JSON plugin parser error

2008-11-11 Thread Relph,Brian
Hello, I am trying to use the JSON plugin in my struts2 application. I am getting a parser error on the string returned from the server. I think the plugin is having problems converting my Map to JSON. Here is my object that I am trying to convert to JSON: public class RoleDetails extends R

Re: Transaction wrapper for web request?

2008-11-11 Thread Miguel
You may use spring to do the thing you want (springframework.org), it's relative straightforward to do what you want with it, but you may need to change the OpenEntityManagerInView to manage the transactions. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Tue, Nov 11

Transaction wrapper for web request?

2008-11-11 Thread David C. Hicks
Hi, I'd like to wrap entire web requests with a transaction, so that multiple calls to different DAO's are all considered part of the same transaction. I currently have the OpenEntityManagerInView filter set up, and it seems to be working fine. I thought that might give me what I want, but

Struts2: Getting multiple values from tag

2008-11-11 Thread Peterson, Ryan
Hey guys, I'm using custom objects to store attributes (say a person with first/last name, age, height). Right now I have a collection that stores these objects, and then displays them on a JSP page for the user to select one from the collection for further processing like so:

Re: [struts2]Provider org.apache.xalan.processor.TransformerFactoryImpl not found

2008-11-11 Thread Prabeshb
Hi, I was also facing the same problem. I deleted the xml-apis.jar from the Tomcat5.0\common\endorsed and this did the trick for me. Try it out and hopefully your problem will also be solved. Happy coding !!!. Regards, - Prabesh zhaoren liu wrote: > > Hi guys, > > I am study Struts2. When

Re: Struts2 Data Transfer is not working

2008-11-11 Thread aum strut
Yes thats true.. but may be i am wrong i am assuming that i am trying to set my PO classes in the USer class and for this user class i am using MOdel Driven Approach in my action class.. if i am doing wrong here can any body point me where's the error in the approach On Tue, Nov 11, 2008 at 5:54

problem regarding autocompletion data table data error.

2008-11-11 Thread Naaag
Hi, I am using yui autocompletion data table . while getting this page , the json request is going to server and getting all the records to this table. but it is displaying data error. please help me out this problem,because i was dumbstuck on this problem from days. below is the my jsp code and

s:datetimerpicker

2008-11-11 Thread Juergen.Leeb
Hi all, I am using the s.datetimerpicker for selecting a time. ( It rounds up (or down) to full 5 or 10 minutes. Does anybody kown who to prevent the picker from doing it? BMW Leeb Jürgen Planung Steuerungstechnik Lackiererei Landshuter Straße 56 84130 Dingolfing Tel: +49 8731/76-22520 Fax: +4

Re: Struts2 Data Transfer is not working

2008-11-11 Thread Nils-Helge Garli Hegvik
I'm guessing your POs in User are null. Line 15 in TestAction should tell you what. Nils-H On Tue, Nov 11, 2008 at 12:52 PM, aum strut <[EMAIL PROTECTED]> wrote: > Hi all, > > I am using Model Driven approach for transfering my form data to the bean > object.i have a form(JSP Page) where i have d

Struts2 Data Transfer is not working

2008-11-11 Thread aum strut
Hi all, I am using Model Driven approach for transfering my form data to the bean object.i have a form(JSP Page) where i have divided the form in three sections. and based on the name of these sections i have created 3 Bean classes(PO) for storing the data.Additonally i have created one more PO cl

Re: [S2] getting namespace in interceptor

2008-11-11 Thread Sven Grünewald
I think you could use: public String intercept(ActionInvocation invocation){ invocation.getProxy().getNamespace(); ... Regards, Sven Michael Obster schrieb: Hi, is there a way to get the namespace of an invoked action in an interceptor? I don't find a way to do that :-(. Anyone has an ide

[S2] getting namespace in interceptor

2008-11-11 Thread Michael Obster
Hi, is there a way to get the namespace of an invoked action in an interceptor? I don't find a way to do that :-(. Anyone has an idea for this problem? The point is I want to check the users role in the interceptor whether the user is allowed to call the action. Regards, Michael -- http://www