Re: Passing request objects - Struts 1

2011-01-04 Thread Anjib
Sorry I didn't get the first one. Can you please elaborate for me? For second option I didn't find the way to pass result to view especially Sturts tag. Anjib On 1/4/2011 7:47 PM, Dave Newton wrote: Don't make a separate request? I mean, why wouldn't you just use the same service inside t

Re: Initialize and inject resources per application - S2

2011-01-04 Thread Maurizio Cucchiara
I usually use spring open session in view filter, but obviously there are other way. I'm don't know if out is exactly what you need: http://community.jboss.org/wiki/OpenSessioninView There is a struts plug-in too https://cwiki.apache.org/S2PLUGINS/full-hibernate-plugin.html Maurizio Cucchiara On

Re: JSON Property

2011-01-04 Thread Chris Pratt
The plugin has several things it can do, from parsing JSON to generating JSON results. And yes, the default is to JSON up the whole Action, but you can have it objectify any object you want. And it is the collection point for JSON support in Struts 2. (*Chris*) On Tue, Jan 4, 2011 at 6:12 PM,

Re: JSON Property

2011-01-04 Thread Steven Yang
I might be wrong here. As I remember JSON Plugin turns the whole action into one single JSON object. I dont believe its what Jim wants, but most definitely there must be something Jim can use in the Plugin to transform his Java Objects to JSON. On Wed, Jan 5, 2011 at 2:47 AM, Chris Pratt wrote:

Re: Initialize and inject resources per application - S2

2011-01-04 Thread aum strut
Struts2 has its own Object creation way an Object factory which is responsible for creating all framework required objects like Actions,Interceptors Results etc. And its flexible enough if you want to let spring do this for Struts2 you can always do that by using Spring with struts2 On Wed, Jan 5

Re: Passing request objects - Struts 1

2011-01-04 Thread Dave Newton
Don't make a separate request? I mean, why wouldn't you just use the same service inside the action you're actually calling? Either that, or do the Ajax call, and use normal Ajax response handling mechanisms (HTML, JSON, whatever) you want. Dave On Tue, Jan 4, 2011 at 7:29 PM, Anjib wrote: > >

Re: Passing request objects - Struts 1

2011-01-04 Thread Anjib
How can I achieve this with only using Struts then? On 1/4/2011 7:20 PM, Dave Newton wrote: The ajax post is an entirely separate request. Dave On Jan 4, 2011 5:38 PM, "Anjib Mulepati" wrote: struts 1.3.8 1. I try to use JSTL but when i include jstl reference it doesn't let me in saying it

Re: Passing request objects - Struts 1

2011-01-04 Thread Dave Newton
The ajax post is an entirely separate request. Dave On Jan 4, 2011 5:38 PM, "Anjib Mulepati" wrote: > struts 1.3.8 > 1. I try to use JSTL but when i include jstl reference it doesn't let me > in saying it version conflict wih web.xml. > My web.xml has > http://java.sun.com/xml/ns/javaee"; > xmlns

Passing request objects - Struts 1

2011-01-04 Thread Anjib Mulepati
struts 1.3.8 1. I try to use JSTL but when i include jstl reference it doesn't let me in saying it version conflict wih web.xml. My web.xml has http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http

Initialize and inject resources per application - S2

2011-01-04 Thread Oscar
Hi to all, i have a question about Struts 2 capabilities. Maybe it sounds dumb, but yesterday i realized that, when you work with Hibernate, you have to initialize one SessionFactory per application, not per session as i believed. So i don't know if struts2 provides some mechanism to initialize res

Re: Struts 1 tags

2011-01-04 Thread Dave Newton
1) Why aren't you using existing mechanisms to do this and instead relying on scriptlets? Either JSTL or whatever that existing S1 tag for option collections is would be far cleaner. 2) Is there anything in the logs? 3) Are you using Tiles (which back in the day swallowed exceptions whole sometim

Re: JSON Property

2011-01-04 Thread Chris Pratt
The "obvious" place to me would seem to be the Struts 2 JSON Plug-in, since it handles all the other JSON duties for Struts 2. (*Chris*) On Tue, Jan 4, 2011 at 10:32 AM, Jim Talbut wrote: > I could do that (as Aaron Brown suggested on Monday) but I don't already > have actions that spit out th

RE: JSON Property

2011-01-04 Thread Jim Talbut
I could do that (as Aaron Brown suggested on Monday) but I don't already have actions that spit out the right JSON. Creating more actions would be more work than creating JSON getters. Creating either actions or special getters also seems wrong to me - it's the JSP that needs JSON and it should o

Struts 1 tags

2011-01-04 Thread Anjib Mulepati
Strits 1.3.8 Is there any error in following code? I am getting blank page. Can someone help me out? property="organizationalUnit" tabindex="1"> <% ArrayList agencyList = (ArrayList)request.getAttribute("list"); for(int i=0; i <% } %>

Re: Multiple Submit Buttons problem in Struts2

2011-01-04 Thread aum strut
Well my +1 lots of the things in the doc are very old and yes i am ready to contribute @Dave :If you can share the list after compiling it will help us to pick the topics more easily On Tue, Jan 4, 2011 at 12:17 AM, Brian Thompson wrote: > Thanks, Maurizio. > > Brian > > > > On Mon, Jan 3, 2011 a

Re: JSON Property

2011-01-04 Thread Chris Pratt
You might also need the executeResult="true" attribute on the tag. (*Chris*) On Tue, Jan 4, 2011 at 7:06 AM, Biesbrock, Kevin wrote: > > I don't want to use a separate roundtrip for loading the jqGrid for > two reasons: > > 1. I want to handle the contents of the grid, and additional fields, >

RE: JSON Property

2011-01-04 Thread Biesbrock, Kevin
> I don't want to use a separate roundtrip for loading the jqGrid for two reasons: > 1. I want to handle the contents of the grid, and additional fields, in a single transaction. > 2. It's inefficient and unnecessary. > Obviously the first is the more important :) I think you could do something l

RE: JSON Property

2011-01-04 Thread Jim Talbut
I don't want to use a separate roundtrip for loading the jqGrid for two reasons: 1. I want to handle the contents of the grid, and additional fields, in a single transaction. 2. It's inefficient and unnecessary. Obviously the first is the more important :) -Original Message- From: Mauriz

Re: OptionTransferSelect problem

2011-01-04 Thread Lukasz Lenart
2011/1/4 RogerV : > No, I didn't. However I seem to have solved the problem by including the > tag in my jsp page, because now the script is being found by > Firebug and both the left and right list items are being auto selected on > submit. Aha ;-) must always be included if you want to use th

Re: OptionTransferSelect problem

2011-01-04 Thread RogerV
Lukasz Lenart wrote: > > 2011/1/4 RogerV : >> Ok - looking at the page with Firebug reports "Failed to load source for: >> http://localhost:8080/GenesisNg-Web/struts/optiontransferselect.js"; so >> that >> probably explains why things aren't working as expected. Now the question >> is >> why th

Re: OptionTransferSelect problem

2011-01-04 Thread Lukasz Lenart
2011/1/4 RogerV : > Ok - looking at the page with Firebug reports "Failed to load source for: > http://localhost:8080/GenesisNg-Web/struts/optiontransferselect.js"; so that > probably explains why things aren't working as expected. Now the question is > why the script can't be found. Which jar file

Re: OptionTransferSelect problem

2011-01-04 Thread RogerV
DNewfield wrote: > > The magic is all in: > >>> > src="/GenesisNg-Web/struts/optiontransferselect.js"> > > So I'd suggest looking in there and maybe setting some javascript > breakpoints to see exactly what's happening on submit. > Ok - looking at the page with Firebug reports "Failed

Re: Setting object from param tag fails in Struts 2.2.1

2011-01-04 Thread Lukasz Lenart
Here you have the whole packages https://hudson.apache.org/hudson/job/Struts2/lastBuild/org.apache.struts$struts2-assembly/ Kind regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia http://javarsovia.pl

Re: Setting object from param tag fails in Struts 2.2.1

2011-01-04 Thread Maurizio Cucchiara
> So should I stay with 2.1.8.1 and wait for 2.2.2? while waiting for the next release you could download the *latest build* [1] [2], and see it works as you expect (please let us know) [1] https://hudson.apache.org/hudson/job/Struts2/lastBuild/org.apache.struts$struts2-core/ [2] https://hudso

Re: Setting object from param tag fails in Struts 2.2.1

2011-01-04 Thread Pro1712
So should I stay with 2.1.8.1 and wait for 2.2.2? When will this version be released? Maurizio Cucchiara wrote: > > As far as I know this behavior was fixed with the patch sent by Lukasz > (see [1] and also [2]). > I can't figure out what happened, as far I can see in subversion logs > [3] the