Re: JSon, includeProperties and modelDriven

2012-08-10 Thread hasegawa
thanks a lot



--
View this message in context: 
http://struts.1045723.n5.nabble.com/JSon-includeProperties-and-modelDriven-tp5537859p5710397.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: JSon, includeProperties and modelDriven

2012-04-04 Thread Matthieu.Marc
Thanks a lot, it resolved my problem

Adding : action

Matthieu

---
Matthieu MARC
Responsable du Service Informatique
Centre Arts et Métiers Angers
Tel : 02 41 20 73 61

-Message d'origine-
De : maurizio.cucchi...@gmail.com [mailto:maurizio.cucchi...@gmail.com] De la 
part de Maurizio Cucchiara
Envoyé : jeudi 8 mars 2012 16:39
À : Struts Users Mailing List
Objet : Re: JSon, includeProperties and modelDriven

Hi Matthieu,
I have experienced the same issue today, referencing to the action element 
should fix the problem.
So try to add the follow line:


 
action
   
   ^day,
   events,
   events\[\d+\],
   events\[\d+\].id,
   
 



Twitter :http://www.twitter.com/m_cucchiara
G+  :https://plus.google.com/107903711540963855921
Linkedin:http://www.linkedin.com/in/mauriziocucchiara

Maurizio Cucchiara


On 5 March 2012 16:29,  wrote:

> TimetableManager

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: JSon, includeProperties and modelDriven

2012-03-08 Thread Maurizio Cucchiara
Hi Matthieu,
I have experienced the same issue today, referencing to the action element
should fix the problem.
So try to add the follow line:


 
action
   
   ^day,
   events,
   events\[\d+\],
   events\[\d+\].id,
   
 



Twitter :http://www.twitter.com/m_cucchiara
G+  :https://plus.google.com/107903711540963855921
Linkedin:http://www.linkedin.com/in/mauriziocucchiara

Maurizio Cucchiara


On 5 March 2012 16:29,  wrote:

> TimetableManager


JSon, includeProperties and modelDriven

2012-03-05 Thread Matthieu.Marc
Hi,

I am trying to make an action build a JSON result.

The action is defined in the struts.xml file as : 


  

^day,
events,
events\[\d+\],
events\[\d+\].id,

  


My Java action class EventsAction is defined as : 

public class EventsAction extends baseAction implements 
ModelDriven, Preparable { 

public String getDay(){ return day; };
public myModel getModels(){return ...;};
}

The JSON is working for events\[\d+\].id   :   
getModels().getEvents().get(i).getId();

But not working for day : getDay() is not called.

I tried without ^, but no result.

My problem is I do not managed to make JSON result working without using the 
modelDriven returned object.

What I missed ? 

Cordialy and thanks for responses,  


Matthieu MARC

---
Matthieu MARC
Responsable du Service Informatique
Centre Arts et Métiers Angers
Tel : 02 41 20 73 61



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org