Chris,
Maps are serialized as 'name : value' pairs, whereas Lists are serialized
as Arrays. Change your return type to a List and try.
- Rahul
From:
"CRANFORD, CHRIS"
To:
Date:
15-07-2010 19:04
Subject:
Ajax Response - Array Objects
I cannot seem to get my Ajax request to return to the
Hello,
I use struts 2.1.81. and I don't want that my users access directly my
.jsp, so I put them inside WEB-INF.
But the struts.xml is difficult to mantain, so I have a question:
Is there some sort of constant that defines a prefix for the JSP
inside struts.xml?
Apparently in struts1 there is som
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ken,
On 7/15/2010 5:54 PM, Ken wrote:
> On Tue, 2010-07-13 at 15:16 -0600, Ken wrote:
>
>> I am looking for documentation for the struts.xml configuration file.
>> Are there different tags for different versions of struts.xml?
>> I'm using struts 2.1
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Marshall,
On 7/15/2010 9:27 AM, Marshall Gunter wrote:
> Do Struts 2 field validators need to be thread safe?
That depends on what you want to do with them. Are you writing your own,
or are you critiquing the existing validator implementations?
- -c
Thanks might take a look into tiles or freemarker if I can find the time.
Tried debugging the source but it is just too complex a stack with compiled
JSPs. Just going to create a less elegant solution and have formatter String
getter for any currencies. Just not worth the cost of investigating
On Tue, 2010-07-13 at 15:16 -0600, Ken wrote:
> I am looking for documentation for the struts.xml configuration file.
> Are there different tags for different versions of struts.xml?
> I'm using struts 2.1.8.1
Bump. Where is all the quality struts.xml file documentation?
I just use Tiles to do my page composition, so I don't have places where
JSP's include other JSP's. Probably why I haven't run across anything like
this. It might take one of the core developers that are familiar with the
internals of these tags to give them a look, or you could venture into that
Yeah sorry was just a paste typo. :(
Basically if you try the format, but do it in a JSP being included by
another JSP as the result of an Action the problem is recreated. Bit much to
ask. If it helps yourself or anyone I can make up a dummy project showing
the issue to take out the leg work?
I'm having a problem using Struts/Convention/REST together/
I have a class that looks like this
public class PostsController implements Preparable,
ModelDriven>
{
}
with two 'action' methods
@Action(result...@result(name="newpost", location="newpost")})
public String editNew()
{
If that's actually a cut-n-paste job from the files, I can see the error, if
you retyped it, it's probably just a typo. But, you have a close tag after
the s:param and before it's arguments, which is making it invalid, and would
definitely cause the JSP processor to puke. Try the below instead:
I broke this down into a very simple example tonight.
Just two JSP pages.
test1.jsp
which has
and
test2.jsp
which has
value="price"/>
I have TestAction which has a simple getPrice which returns a Double.
I have created two actions:
/jsp/shopview/getProduct.jsp
/test1.jsp
/t
I cannot seem to get my Ajax request to return to the Ajax client an
array of objects. Instead of simply returning a key/value pair, I've
read that it is possible to return the actual domain objects, but I have
been unsuccessful. Each time, my combo box is populated with three
values, "message t
Do Struts 2 field validators need to be thread safe?
--
Marshall Gunter
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Hi all,
i'm using struts 2 with jsf-plugin on jboss 4.2.3-GA.
When I run some dummy examples everything goes well, following the
example at: http://struts.apache.org/2.x/docs/jsf-plugin.html
my configuration is:
struts.xml
-
Good morning friends...I have a requirement to implement a Tree component on
the UI. I am wondering if I should go with the Struts 2 Tree tag or render the
tree using some Jquery plugin. Any advice is appreciated.
Is the Struts Tree Tag Dojo based?
Regards,
John[http://www.smartonline.com/]
I looked at the Struts documentation for skinning and have one
question that I'm not sure can be addressed by Struts2
In my case I'd like to skin some of the pages, but not all.
So if my directory structure is something like
+ content
- index.jsp
+ user1
- about.jsp
+ user2
Hi all!
Im trying to bind an Ajax-Call to the onclick-Event of a Checkbox:
Here is the code so fare:
...
targets="otherdiv" href="myaction.action" />
...
The AJAX-Call works great. The Action is called and the DIV-Element in
the targets-Field is updated.
But the checkbox doesn'
17 matches
Mail list logo