Re: Struts 2.0.11.1 question

2011-03-10 Thread Harsh C
is setting up the InputStream from > > Gson. > > > > setJsonStream(new ByteArrayInputStream(new > > Gson().toJson(jsonResult).getBytes())); > > > > > > jsonResult is a Map, but could be any object or list of Objects. > > > > Paul > > > >

Re: Struts 2.0.11.1 question

2011-03-09 Thread Harsh C
11 1:19 AM, "Maurizio Cucchiara" wrote: > What do you mean by "not blessed"? > > Maurizio Cucchiara > > Il giorno 09/mar/2011 00.24, "Harsh C" ha scritto: > Hi, > > I don't know if this is the right list for a question regarding 2.0.11.1, if &g

Struts 2.0.11.1 question

2011-03-08 Thread Harsh C
Hi, I don't know if this is the right list for a question regarding 2.0.11.1, if not please let me know the right forum. I am trying to use Struts 2.0.11.1 to work on an AJAX-ified app using Dojo. Problem is, struts-json plugin is not blessed. Is there a way in which I can code an Action which r

Re: De-serialize JSON to Action

2011-01-31 Thread Harsh C
], > "targetIdBox":17101} > > As required by the json plugin, I would need to define a > setIdentifier(String), setTargetIdBox(int), and a setItems(List). That > works correctly, but I would like to automatice the conversion from a Map > to > a bean. Is it pos

Re: De-serialize JSON to Action

2011-01-31 Thread Harsh C
t; http://www.jgeppert.com/2010/06/how-to-parse-a-json-object-when-using-multisearch-for-jqgrid-with-java/ > > http://www.jgeppert.com/2010/06/how-to-parse-a-json-object-when-using-multisearch-for-jqgrid-with-java/ > > Johannes > > > Harsh C wrote: > > > > I have be

De-serialize JSON to Action

2011-01-31 Thread Harsh C
I have been working with the Struts 2 JSON plugin and I have got it set up so that I can serialize my Java beans as a JSON string and pass it along to the browser. Is the reverse possible using the plugin? That is, if I have a JS widget (Dojo, in this case) that spits out JSON, can I read in the JS

AJAX file upload

2010-11-30 Thread Harsh C
How can I setup a AJAX-ified file upload page using Struts 2? If there is some integration with Dojo, it would be even better i.e. not use the OS specific file upload button etc. -- *Thanks, Harsh*

Re: Specify template to use for struts tag

2010-11-23 Thread Harsh C
Thanks! Actually, I used the template attribute and it worked great. Now, I have access to the default ftl as well as to the templates that I am creating. On Tue, Nov 23, 2010 at 3:23 PM, Dave Newton wrote: > Use the "theme" attribute. > > Dave > > On Tue, Nov 23,

Specify template to use for struts tag

2010-11-23 Thread Harsh C
Is there a way to specify a template to use for a struts tag, on a per tag basis e.g. I am trying to change the checkboxlist default L&F so that it renders in a table. This is working fine. But if I want to use the default L&F also, how do I do that. As of now, I copied the struts provided .ftl f

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
I am using Struts 2.2.1 and would like to get some AJAX functionality in my app, specifically, I would like to use Dojo. The Dojo plugin was deprecated for this release, is there some good documentation/tutorials for getting into Struts 2.2.1 with DOJO?

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
a list of Model objects, and upon checking some models, I wanted a list of selectedModel objects, is there a way in struts to do it? Thanks, HC On Wed, Nov 17, 2010 at 11:47 AM, Dave Newton wrote: > Could also be a type conversion error. > On Nov 17, 2010 2:46 PM, "Harsh C"

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
r back to the input result. > > Dave > On Nov 17, 2010 2:29 PM, "Harsh C" wrote: > > Hi, > > > > I have an input page which has a checkbox list in a form. Clicking submit > > takes the user to a 2nd JSP. > > The problem is that when I don't sele

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
Hi, I have an input page which has a checkbox list in a form. Clicking submit takes the user to a 2nd JSP. The problem is that when I don't select a checkbox and click on submit, I get to the output page, of course no value is displayed on the output page though. But if I select a checkbox and cli