Re: Struts2 with AngularJS

2014-11-21 Thread foo bar
o I thought it should be available. Could you give an > example of your config so that I can check if I'm missing something > obvious? > > Regards > Peter > > On Fri, Nov 21, 2014 at 8:56 AM, foo bar wrote: > > > Hi Lukasz, > > > > Yes indeed, JSON plugi

Re: Struts2 with AngularJS

2014-11-20 Thread foo bar
in my action class Action returns "show" customer Response is {"id":1,"name":"abc","address":"abc"} Response is read by AngularJS If you specify , then response will have all your objects that have getters in your action On Thu, Nov

Re: Struts2 with AngularJS

2014-11-19 Thread foo bar
n ? On Wed, Nov 19, 2014 at 4:59 PM, Lukasz Lenart wrote: > 2014-11-19 9:51 GMT+01:00 foo bar : > > Hi guys, > > > > I'm currently looking into ease of development of using AngularJS with > > Struts2. > > I'm wondering what is the best practice in gener

Struts2 with AngularJS

2014-11-19 Thread foo bar
Hi guys, I'm currently looking into ease of development of using AngularJS with Struts2. I'm wondering what is the best practice in general ie. AngularJS with $resource or $http, Struts2 with what plugin ? Is the REST + convention plugin a must to support AngularJS's RESTful nature ? I'm currentl

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
Hi again, I was thinking about this again a few minutes ago and thought maybe using an object that implements Map is not the solution, maybe if I use a List implementation, then OGNL will not interpret ".value" as get("value") since you can't do that to a List. Indeed getValue() was called using a

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
My case is logically like this Imagine these data structure gamer: userId gameConsole type game: gameId gameName A game is associated to a gameConsole There are 2 types of gamers, for a type = CASUAL gamer, there are no games associated for a type = AVERAGE gamer, you can have games asscociated

OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
OGNL Indexed and Object Indexed Properties Hi, I'm wondering why this code is not working. I'm using struts 2.3.16.1 and ognl 3.0.6. In my action class I have this public String[] getFieldArray() { System.out.println(">> getFieldArray()"); return null; } public void setFieldArray(String[] arra

Struts2 and Guice

2010-12-24 Thread foo bar
Hi all, This is somewhat related to Ben McCann's thread on d...@struts.apache.org (Updating the Struts 2 Guice plugin), which I included below. I trying to figure out how to properly integrate quartz scheduler with my struts2 + guice project. My quartz job need to have a reference to the Guice in

Re: if tag with #parameters

2009-12-22 Thread foo bar
hen make a setter for it to get set and > getter to retrieve it and use % instead of # > > If you want to have the parameter in the page context use the s:set with id > > > > On Tue, Dec 22, 2009 at 3:36 PM, foo bar wrote: > >> Hi all, >> >> I'm testing

if tag with #parameters

2009-12-22 Thread foo bar
Hi all, I'm testing for the existence of a request parameter in a jsp page in Struts 2 <%@ taglib prefix="s" uri="/struts-tags"%> http://www.w3.org/TR/html4/strict.dtd";> yes no But, whatever I do, result is always "no" Tested with these cases: test.jsp test.jsp?messageKey= test.jsp?messa

Regular Expression Action Mapper

2009-06-10 Thread foo bar
Hi all, I've just started implementing a regex action mapper (influenced by Django's URL dispatcher [1]). Just wondering whether anyone has done this before. Would like to know what other people think as well. Ideas ? Suggestions ? Bugs ? This is what I have at the moment, protected String[] url