OGNL - Multi-dimensional Array

2009-10-20 Thread Daniel Stephenson
Hello everyone, I had a question regarding multi-dimensional arrays and how they are handled by OGNL (struts2). I have the following snippet in my JSP: ... ... On the Action side I have a class variable declared at the top with a corresponding setter: ... private String[][] dataCollection; .

RE: OGNL - Multi-dimensional Array

2009-10-20 Thread Martin Gainty
a few years back we had a similar scenario of something called a WKT (wellKnownText class) which is a class containing an array of values (in this case LAT/LONG ) List WKTArray = new Array(12); then inside the loop.. for(int i=0;i Date: Tue, 20 Oct 2009 11:04:33 -0600 > Subject: OGNL - Multi-d

Live data update coming from a server

2009-10-20 Thread bejaoui zied
Hi guys, I have a general enquiry and hope that you will be able to help me. I would like to build an application that receive date from a server and update it in the users interface, data will be sent frequentley and has to be updated in real time. Is it ok ti use struts for this applicat

Show jsps from different directories based on "theme"

2009-10-20 Thread Mike Baranski
So, I want to ship 2 versions (or more) of my views. The will be in /pages/jsps/theme1/x.jsp and /pages/jsps/theme2/x.jsp I want the user to be allowed to set the theme, and my result tag in the xml be something like: /pages/jsps/{selected_theme}/x.jsp Can I do that?

Re: OGNL - Multi-dimensional Array

2009-10-20 Thread Musachy Barroso
what kind of problem are you having? Is it not calling "setDataCollection" at all? or are you not getting the expected values in the array? musachy On Tue, Oct 20, 2009 at 10:04 AM, Daniel Stephenson wrote: > Hello everyone, > > I had a question regarding multi-dimensional arrays and how they ar

Re: OGNL - Multi-dimensional Array

2009-10-20 Thread Daniel Stephenson
Thanks for both of the replies. I got caught up working on some other stuff and was just barely able to come back to this issue. The original error I was receiving was the following: ... 2009-10-20 14:55:33,745 ERROR com.opensymphony.xwork2.util.InstantiatingNullHandler - Could not create and/or

interceptor and AOP

2009-10-20 Thread Frans Thamura
hi there just have an idea to make interceptor become AOP, i am using spring and there is aspectj inside, any idea to make both united? only one, i did chat with patrick lightbody, the interceptor is look like AOP, but only execute(), Frans --

Re: Show jsps from different directories based on "theme"

2009-10-20 Thread Tommy Pham
- Original Message > From: Mike Baranski > To: Struts Users Mailing List > Sent: Tue, October 20, 2009 11:19:25 AM > Subject: Show jsps from different directories based on "theme" > > So, I want to ship 2 versions (or more) of my views. > > The will be in > /pages/jsps/theme1/x.jsp >

Re: Show jsps from different directories based on "theme"

2009-10-20 Thread Jari Fredriksson
21.10.2009 5:22, Tommy Pham kirjoitti: > If you're using S2, you could always return the 'theme1' or 'theme2' result > in your action class and have the mapping for it. That's absolutely a disgusting idea, think about 10 themes, and add to that user installable themes... A switch() at end of e

Re: Show jsps from different directories based on "theme"

2009-10-20 Thread Jari Fredriksson
20.10.2009 21:19, Mike Baranski kirjoitti: > So, I want to ship 2 versions (or more) of my views. > > The will be in > /pages/jsps/theme1/x.jsp > and > /pages/jsps/theme2/x.jsp > > I want the user to be allowed to set the theme, and my result tag in the xml > be something like: > > /pages/jsps

Re: Show jsps from different directories based on "theme"

2009-10-20 Thread Tommy Pham
- Original Message > From: Jari Fredriksson > To: user@struts.apache.org > Sent: Tue, October 20, 2009 7:31:03 PM > Subject: Re: Show jsps from different directories based on "theme" > > > > 21.10.2009 5:22, Tommy Pham kirjoitti: > > If you're using S2, you could always return the 'the

Tree view in struts 1.3.8

2009-10-20 Thread dharhsana
Hi to all, I am new to this post.. Can any one please help me out how to implement tree view using struts 1.3.8,in struts 2 we have seperate tag called treenode but in struts 1.3.8 i could'nt find any tree node tag. I am working on blog module my requirement is to display the blog and post in t

Autocomplete using struts 1.3.8

2009-10-20 Thread dharhsana
Hi, Can any one help me out how to implement autocomplete feature using struts 1.3.8 using ajax. is that we need to create any custom tags for that to implement it ,i searched for autocopleter tag in struts 1.3.8 but i could'nt find such thing.. But there is seperate tag in struts 2 .. since we

RE: Auto complete using struts 1.3.8

2009-10-20 Thread Vishnu Vyasan Nelliparmbil
Hi Rekha, There is no auto complete tag in 1.3.8. You may have to implement it using Ajax. There are hundreds of examples in net, just Google it and you will get it, Even though I prefer JQuery Auto complete. Best Regards Vishnu NV -Original Message- From: dharhsana [mailto:rekha.d

how to populate drop down from property file

2009-10-20 Thread rajendar are
Hi , I want to populate drop down list from property file.I already done this coding by using MessageResources Class of org.apache.struts.util.* package in my Action like the way *tank.properties* natureoftan...@concrete CHAMBERS,a...@c.m.d.a,d...@dug WELL,p...@pit PRIVY detailsoftheseptictan...

Re: Live data update coming from a server

2009-10-20 Thread Paweł Wielgus
Hi Zied, if that's just one and only thing that this app will be doing i wouldn't choose struts for this task, i would use swing or swt. And that's because struts is based on http protocol which is made for downloading data from server only when client wants it, i'm not claiming that this can't be

Re: interceptor and AOP

2009-10-20 Thread Paweł Wielgus
Hi Frans, interceptor is AOP, but when aspectj is crosscutting java code, interceptor is crosscutting action flow (any one who is wiser should correct me here). I use interceptor for authentication, my interceptor (authentication aspect) is catching all requests (before) and is doing authentication