RE: Struts2 on Websphere portal 6.1.0.0

2010-04-19 Thread Griffith, Michael *
The problem is the URI parameter in your display tag table. This is how DT invokes the action/HTTP request that originally got the request for the table in the table. It should be something like: requestURI=search.action where the value is the action of the page. MG -Original Message-

RE: How to reuse field validators?

2010-04-16 Thread Griffith, Michael *
that without copying the XML file? MG -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Friday, April 16, 2010 12:13 AM To: Struts Users Mailing List Subject: Re: How to reuse field validators? 2010/4/16 Griffith, Michael * michael.griff...@fda.hhs.gov

RE: How to reuse field validators?

2010-04-16 Thread Griffith, Michael *
Currently the xml file is in the package with the struts action. I this this is where my problem lies, should it be in the model package? MG -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Friday, April 16, 2010 9:26 AM To: Griffith, Michael

RE: How to reuse field validators?

2010-04-16 Thread Griffith, Michael *
you must expose you model directly. I'm not sure what you mean by that... Can you restate? MG -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Friday, April 16, 2010 9:53 AM To: Griffith, Michael * Cc: Struts Users Mailing List Subject: Re: How

How to reuse field validators?

2010-04-15 Thread Griffith, Michael *
Hello all, I am not clear on how to reuse a field validator that doesn't share a common package or action/alias. I have package ...struts.admin/ ...struts/application/ with namespaces /admin and /application respectively. I have a model object with a validator modelClass-validator.xml in

Can I insert a table into a struts form without changing the template?

2009-06-09 Thread Griffith, Michael *
Hello everyone, I'm wondering is there a way I can insert a displayTag table into my struts form? I want the table to appear under form edit controls, but before the buttons, like a master detail type of view. I'd like to know if there is a way to do this without making changes to the default

How can I insert a table into a struts form?

2009-06-09 Thread Griffith, Michael *
Hello everyone, I'm wondering is there a way I can insert a displayTag table into my struts form? I want the table to appear under form edit controls, but before the buttons, like a master detail type of view. I'd like to know if there is a way to do this without making changes to the default

RE: Can I insert a table into a struts form without changing the template?

2009-06-09 Thread Griffith, Michael *
? (assuming Struts 2 since you mention templates, but want to be sure) -Wes On Tue, Jun 9, 2009 at 3:17 PM, Griffith, Michael *michael.griff...@fda.hhs.gov wrote: Hello everyone, I'm wondering is there a way I can insert a displayTag table into my struts form? I want the table to appear under form

RE: Can I insert a table into a struts form without changing the template?

2009-06-09 Thread Griffith, Michael *
. If you are planning on making something like this for each form in your app, then build a tag out of it. -Wes On Tue, Jun 9, 2009 at 3:23 PM, Griffith, Michael *michael.griff...@fda.hhs.gov wrote: Sorry, yes -- Struts 2 (2.1.6). -Original Message- From: Wes Wannemacher [mailto:w

RE: How can I insert a table into a struts form?

2009-06-09 Thread Griffith, Michael *
into a struts form? Griffith, Michael * wrote: I'm wondering is there a way I can insert a displayTag table into my struts form? I want the table to appear under form edit controls, but before the buttons, like a master detail type of view. I'd like to know if there is a way to do this without

RE: How can I insert a table into a struts form?

2009-06-09 Thread Griffith, Michael *
? Griffith, Michael * wrote: Create a trtd colspan=2... Do this in my form, or change the template? On your page. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h

RE: How can I insert a table into a struts form?

2009-06-09 Thread Griffith, Michael *
insert a table into a struts form? On Tue, Jun 9, 2009 at 4:51 PM, Griffith, Michael *michael.griff...@fda.hhs.gov wrote: Thanks Dave! That was too easy. Here I thought I would have to edit the template. I'm always over thinking S2. How can I make my submit buttons show up next to each other

RE: What is wrong with my with OGNL Map expression??

2009-04-30 Thread Griffith, Michael *
: s:property value=%{#session.mySessionAttribute} / May be this will help. Thank you. Regards, Kishan.G Senior Software Engineer. www.spansystems.com -Original Message- From: Griffith, Michael * [mailto:michael.griff...@fda.hhs.gov] Sent: Thursday, April 30, 2009 1:04 AM To: Struts Users

RE: What is wrong with my with OGNL Map expression??

2009-04-30 Thread Griffith, Michael *
Ding! Sorry I didn't see this reply earlier when I repeated how do I get the map value. Again, thanks Dave! Is there such a thing as an OGNL expression validator? It would be nice to be able to fool around with the expression interactively until I am able to get to the correct expression.

What is wrong with my with OGNL Map expression??

2009-04-29 Thread Griffith, Michael *
Hello all, It seems as if I am always at odds with trying to figure out the correct OGNL syntax. I have a MapString,String in the HttpSession, and I'm trying to use one of the values in the map as an anchor tag in a link. The map is stored in the session as an attribute named

RE: Required field only works with text fields?

2009-03-18 Thread Griffith, Michael *
with text fields? Griffith, Michael * wrote: The following validation annotation seems to work: @ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE}, fetch=FetchType.EAGER) @JoinColumn(name = STATUS) @ExpressionValidator(message = Default message, key=validate.status, expression

RE: Web Services

2009-03-17 Thread Griffith, Michael *
Spring has excellent remoting abilities. If you are already using Spring, I'd check out Spring Remoting as my first option. -Original Message- From: Rafael Taboada [mailto:kaliman.fore...@gmail.com] Sent: Tuesday, March 17, 2009 7:39 AM To: user@struts.apache.org Subject: Web Services

RE: Required field only works with text fields?

2009-03-17 Thread Griffith, Michael *
reply would be appreciated. Best Regards, MG -Original Message- From: Griffith, Michael * [mailto:michael.griff...@fda.hhs.gov] Sent: Monday, March 16, 2009 1:18 PM To: Struts Users Mailing List Subject: RE: Required field only works with text fields? Ok, So I am being a bone-head

RE: Required field only works with text fields?

2009-03-16 Thread Griffith, Michael *
only paints the asterisk -- it has nothing to do with actually requiring input. Nice huh? Peace, Scott On Fri, Mar 13, 2009 at 4:14 PM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: Hi all, I just noticed that the only required field validations that seem to be working in my form

Check Field Value in list using Annotation/Validation?

2009-03-13 Thread Griffith, Michael *
Hello all, Is it possible to check a field value against a list using the @ConditionalVisitorFieldValidator annotation? I'm thinking of something like this: @Column(name=VENDOR_TYPE, nullable=false) @ConditionalVisitorFieldValidator (expression=vendorType == 'COTS' vendorType == 'GOTS'

Required field only works with text fields?

2009-03-13 Thread Griffith, Michael *
Hi all, I just noticed that the only required field validations that seem to be working in my form are text field validations. Any HTML tag that renders a list, check box or radio button doesn't validate, even though the template shows the field as required. In other words, this tag:

Namespace Expression?

2009-02-25 Thread Griffith, Michael *
Hi Everyone, What's wrong with this expression? s:property value=#context['struts.actionMapping.namespace']/ Namespace is a private field, but has a public accessor...? Thanks in advance, MG - To unsubscribe, e-mail:

RE: Namespace Expression?

2009-02-25 Thread Griffith, Michael *
for: s:property value=#context['struts.actionMapping'].namespace/ musachy On Wed, Feb 25, 2009 at 3:34 PM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: s:property value=#context['struts.actionMapping.namespace']/ -- Hey you! Would you help me to carry the stone? Pink Floyd

Out of date documentation?

2009-02-10 Thread Griffith, Michael *
It is possible that the following page is out of date: http://struts.apache.org/2.1.6/docs/parameter-filter-interceptor.html It should reference the params interceptor, right?

RE: Out of date documentation?

2009-02-10 Thread Griffith, Michael *
of doing it, it ain't Struts 2 :) musachy On Tue, Feb 10, 2009 at 11:25 AM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: It is possible that the following page is out of date: http://struts.apache.org/2.1.6/docs/parameter-filter-interceptor.html It should reference the params

RE: Out of date documentation?

2009-02-10 Thread Griffith, Michael *
expressions, for both accepted and excluded params. musachy On Tue, Feb 10, 2009 at 11:56 AM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: Is there any way to exclude a parameter using a wildcard expression? I want to block certain parameters generated by displayTag. DisplayTag

RE: Out of date documentation?

2009-02-10 Thread Griffith, Michael *
musachy On Tue, Feb 10, 2009 at 12:03 PM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: Can you help me out with the expression? I am terrible with RE. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Tuesday, February 10, 2009 10:59 AM To: Struts

RE: Out of date documentation?

2009-02-10 Thread Griffith, Michael *
point out what's wrong with this picture? Thanks in advance, MG -Original Message- From: Griffith, Michael * [mailto:michael.griff...@fda.hhs.gov] Sent: Tuesday, February 10, 2009 11:11 AM To: Struts Users Mailing List Subject: RE: Out of date documentation? Thanks, I'll give it a try

RE: Struts2.1.6 Tiles 2.1.

2009-02-10 Thread Griffith, Michael *
Jaarthy, It looks like your s:url tag is trying to point to a tile, vs. an action that returns the tile result. Here's an example: !- Struts tag -- s:url id=projectList action=list namespace=/project / s:a href=%{projectList}s:text name=project.list//s:a !-- Action -- package name=project

RE: Out of date documentation?

2009-02-10 Thread Griffith, Michael *
- From: Griffith, Michael * [mailto:michael.griff...@fda.hhs.gov] Sent: Tuesday, February 10, 2009 5:32 PM To: Struts Users Mailing List Subject: RE: Out of date documentation? Ok, here's what is happening... If I don't try to ignore the DisplayTag parameters, I get: 17:23:58,833 INFO

RE: Struts2.1.6 Tiles 2.1.

2009-02-10 Thread Griffith, Michael *
Gotcha, sorry I couldn't be more help. MG -Original Message- From: Jaarthy [mailto:aarthyj...@yahoo.com] Sent: Tuesday, February 10, 2009 6:14 PM To: user@struts.apache.org Subject: RE: Struts2.1.6 Tiles 2.1. the same was working fine with Struts2.0.6 and Tiles 2.0. Griffith

RE: Out of date documentation?

2009-02-10 Thread Griffith, Michael *
, the way you have it configured, none of the other interceptors are going to run, only your special params interceptor. (*Chris*) On Tue, Feb 10, 2009 at 3:32 PM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: Ok, here's what is happening... If I don't try to ignore the DisplayTag

RE: Out of date documentation?

2009-02-10 Thread Griffith, Michael *
something more like: interceptor-ref name=defaultStack param name=params.excludeParamsdojo\..*,^struts\..*,d-\d*-s/param /interceptor-ref (*Chris*) On Tue, Feb 10, 2009 at 4:21 PM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: Really, is that true? I thought there was a way

RE: Can I use a Parameter in result definition?

2009-02-07 Thread Griffith, Michael *
Dave, Thanks for the reply, and the suggestion~ Cheers! MG -Original Message- From: Dale Newfield [mailto:d...@newfield.org] Sent: Friday, February 06, 2009 5:23 PM To: Struts Users Mailing List Subject: Re: Can I use a Parameter in result definition? Griffith, Michael * wrote

RE: TypeConverter needs Spring Bean

2009-02-06 Thread Griffith, Michael *
: Friday, February 06, 2009 8:54 AM To: Struts Users Mailing List Subject: Re: TypeConverter needs Spring Bean Are the converters created by the object factory? if not, then it will not work. musachy On Fri, Feb 6, 2009 at 9:46 AM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: I also

RE: TypeConverter needs Spring Bean

2009-02-06 Thread Griffith, Michael *
} that factory will be the Spring object factory, which you can use to lookup the beans that you need. Not much of inversion of control but it should work. musachy On Fri, Feb 6, 2009 at 9:59 AM, Griffith, Michael * michael.griff...@fda.hhs.gov wrote: How can you tell? This is handed by the plug

RE: TypeConverter needs Spring Bean

2009-02-06 Thread Griffith, Michael *
I also tried adding the @Autowired annotation to the dependency, but it did not work. Can anyone clarify how this is supposed to work? MG -Original Message- From: Steven Yang [mailto:kenshin...@gmail.com] Sent: Thursday, February 05, 2009 8:15 PM To: Struts Users Mailing List Subject:

What's the correct expression syntax?

2009-02-06 Thread Griffith, Michael *
Hi, I don't think I fully understand OGNL and I need some help with an expression... I have a param that I am passing to an action. the parameter is called selectedType, and it has a getter and setter on the action. It is getting set correctly. When I try to evaluate the expression using the

RE: What's the correct expression syntax?

2009-02-06 Thread Griffith, Michael *
: What's the correct expression syntax? Griffith, Michael * wrote: s:if test=%{selectedType == 'C'} ... Do work /s:if Is the correct one, except for the one-character-string gotcha: http://struts.apache.org/2.1.6/docs/why-wont-the-if-tag-evaluate-a-one-c har-string.html -Dale

Can I use a Parameter in result definition?

2009-02-06 Thread Griffith, Michael *
Hello all... Does anyone know if it is possible to use a parameter in my action/result definition: I want to use the package name in the result definition package name=component extends=base-package namespace=/component action... result name=success

RE: Can I use a Parameter in result definition?

2009-02-06 Thread Griffith, Michael *
-Original Message- From: Dale Newfield [mailto:d...@newfield.org] Sent: Friday, February 06, 2009 2:25 PM To: Struts Users Mailing List Subject: Re: Can I use a Parameter in result definition? Griffith, Michael * wrote: Does anyone know if it is possible to use a parameter in my action

TypeConverter needs Spring Bean

2009-02-05 Thread Griffith, Michael *
Hello everyone, I have a type converter that needs to get access to my Spring managed service so it can do a DB lookup. I was under the impression that the struts-spring plug-in handled DI for the converter. However, when the convertFromString method tries to access the service called

Why is Validation not firing?

2009-02-04 Thread Griffith, Michael *
Hello all, I must be missing something subtle about my configuration. I'm using Struts 2.0.11 and want to use annotation based validation, but can't seem to get it working. My action class has an update method as such: @Validation public class ArtifactAction extends BaseAction implements

RE: Why is Validation not firing?

2009-02-04 Thread Griffith, Michael *
I hate it when I do this kind of thing. My input result was pointing to the wrong result. Me -- My own worst enemy. -Original Message- From: Griffith, Michael * [mailto:michael.griff...@fda.hhs.gov] Sent: Wednesday, February 04, 2009 11:13 AM To: Struts Users Mailing List Subject: Why

RE: s:action/ redirect does not work with Tiles.

2008-08-08 Thread Griffith, Michael *
Struts 2.0.11 Tiles 2.0.6 -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2008 1:37 AM To: Struts Users Mailing List Subject: Re: s:action/ redirect does not work with Tiles. 2008/8/7 Griffith, Michael * [EMAIL PROTECTED]: I cannot make

RE: s:action/ redirect does not work with Tiles.

2008-08-08 Thread Griffith, Michael *
, 2008 6:40 AM To: Struts Users Mailing List Subject: Re: s:action/ redirect does not work with Tiles. Griffith, Michael * wrote: Hello All, I cannot make s:action/ result go to a new page. Chaining the result does work, but the response shows my entire tile set showing up in the inside

s:action/ redirect does not work with Tiles.

2008-08-07 Thread Griffith, Michael *
Hello All, I cannot make s:action/ result go to a new page. Chaining the result does work, but the response shows my entire tile set showing up in the inside tile, which is not what I want either. Here is my scenario: I have a JSP that includes a struts action as such... ]---

s:action/ and redirect problem

2008-07-16 Thread Griffith, Michael *
Hello All, I have a JSP that includes a struts action as such: ]--- begin edit.jsp ---[ %@ include file=../fragments/taglibs.jsp% link rel=stylesheet href=../css/datacall.css type=text/css s:action name=form executeResult=true flush=false ignoreContextParams=false/ ]--- end

Spring Struts Plugin workaround for Session Scoped Beans

2008-04-24 Thread Griffith, Michael *
Hi, From the docs, I found this link/note: To use session-scoped components with Spring and Struts, see the Spring Session Components Workarounds analysis. That led to confluence page that doesn't yet exist. I am using a session scoped spring bean in a struts 2 action, and it seems to be

Clarification on Type Conversion?

2008-04-18 Thread Griffith, Michael *
Hello All, I am having a problem with Struts 2 form submission, because I believe a related s:select field is not being converted correctly. I have read the documentation at: http://struts.apache.org/2.x/docs/select.html and http://struts.apache.org/2.0.11.1/docs/type-conversion.html It is

RE: Clarification on Type Conversion?

2008-04-18 Thread Griffith, Michael *
the form to. On Fri, Apr 18, 2008 at 5:33 PM, Griffith, Michael * [EMAIL PROTECTED] wrote: Hello All, I am having a problem with Struts 2 form submission, because I believe a related s:select field is not being converted correctly. I have read the documentation at: http://struts.apache.org/2.x

RE: Clarification on Type Conversion?

2008-04-18 Thread Griffith, Michael *
; } public ListStatus getStatusList(){ return statusService.findAll(); } } -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Friday, April 18, 2008 12:22 PM To: Griffith, Michael * Cc: Struts Users Mailing List Subject: Re

How is the dependency and dependency conversion list built on struts website?

2008-04-02 Thread Griffith, Michael *
Hello all, I think I know the answer to this, but I am wondering how the dependency and dependency convergence lists are built on the Struts Website? http://struts.apache.org/2.x/struts2-core/dependencies.html http://struts.apache.org/2.x/struts2-core/dependency-convergence.html Is

RE: How is the dependency and dependency conversion list built on struts website?

2008-04-02 Thread Griffith, Michael *
Ignore my question... I found it... Maven 2 Report, thanks. MG -Original Message- From: Griffith, Michael * [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 12:50 PM To: Struts Users Mailing List Subject: How is the dependency and dependency conversion list built on struts

RE: Re: Struts 1 return stream (documents)

2008-03-18 Thread Griffith, Michael *
Forgive me if I am on the wrong track here, I think I picked up this thread in the middle... but I think I would answer: How are we suppose to supply the fileName? By setting a response header: response.setHeader(Content-Disposition, inline;filename=foo.xyz); MG -Original Message-

RE: Newbie question

2008-03-18 Thread Griffith, Michael *
Agreed. Look for a provider that offers the correct JDK and API specs. MG -Original Message- From: Alex Choi [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 12:55 PM To: Struts Users Mailing List Subject: Re: Newbie question I think you need to rephrase your question. Apache

RE: Newbie question

2008-03-18 Thread Griffith, Michael *
-the-framework-from-source.htm l On 18/03/2008, maitre [EMAIL PROTECTED] wrote: Thanks, y'all. Where can I find the correct JDK and API specs so I can ask my hosting company? Ed Griffith, Michael * wrote: Agreed. Look for a provider that offers the correct JDK and API specs. MG

RE: Newbie question

2008-03-18 Thread Griffith, Michael *
-the-framework-from-source.htm l On 18/03/2008, maitre [EMAIL PROTECTED] wrote: Thanks, y'all. Where can I find the correct JDK and API specs so I can ask my hosting company? Ed Griffith, Michael * wrote: Agreed. Look for a provider that offers the correct JDK and API specs. MG

RE: How to initialize business service objects?

2008-03-17 Thread Griffith, Michael *
Frank, Check two things: 1) You have included the struts2-spring-pliugin.jar in your classpath 2) Your applicationContext.xml file is getting loaded on startup. If you haven't already done so, check your web.xml for a context parameter like this: context-param

RE: How to initialize business service objects?

2008-03-17 Thread Griffith, Michael *
Frank, I would check your struts.properties file: Make sure it has these entries and that it is on your classpath (i.e. in WEB-INF/classes) struts.objectFactory = spring struts.objectFactory.spring.autoWire = name MG -Original Message- From: Frank Fischer [mailto:[EMAIL PROTECTED]

RE: How can I combine a result (tiles + xslt)?

2008-03-12 Thread Griffith, Michael *
] Sent: Tuesday, March 11, 2008 8:31 AM To: Struts Users Mailing List Subject: Re: How can I combine a result (tiles + xslt)? 2008/3/11, Griffith, Michael * [EMAIL PROTECTED]: Would you then agree this is a bug or enhancement that could be made to the XSLTResult? Maybe a flush parameter could

RE: How can I combine a result (tiles + xslt)?

2008-03-11 Thread Griffith, Michael *
To: Struts Users Mailing List Subject: Re: How can I combine a result (tiles + xslt)? 2008/3/10, Griffith, Michael * [EMAIL PROTECTED]: I believe (maybe incorrectly so) that the problem is caused by the XSLTResult calling close/flush when processing the result. Mmm... It reminds me a thing. When

RE: How can I combine a result (tiles + xslt)?

2008-03-10 Thread Griffith, Michael *
Message- From: Griffith, Michael * [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 4:44 PM To: Struts Users Mailing List Subject: RE: How can I combine a result (tiles + xslt)? Dave, I did. I will try both, easy path first. I'll let you know what I find so that you can close the JIRA

RE: How can I combine a result (tiles + xslt)?

2008-03-10 Thread Griffith, Michael *
is related. I believe (maybe incorrectly so) that the problem is caused by the XSLTResult calling close/flush when processing the result. https://issues.apache.org/struts/browse/WW-2538 MG -Original Message- From: Griffith, Michael * [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 4:44

RE: How can I combine a result (tiles + xslt)?

2008-03-07 Thread Griffith, Michael *
Struts 2.0.11.1 Tiles 2.0.5 -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 2:20 AM To: Struts Users Mailing List Subject: Re: How can I combine a result (tiles + xslt)? 2008/3/6, Griffith, Michael * [EMAIL PROTECTED]: Same result. Does

RE: How can I combine a result (tiles + xslt)?

2008-03-07 Thread Griffith, Michael *
I'd be happy to do more than that; I'll fix the bug if someone can give me some design direction. MG -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 7:36 AM To: Griffith, Michael * Cc: Struts Users Mailing List Subject: Re: How can I combine

RE: How can I combine a result (tiles + xslt)?

2008-03-07 Thread Griffith, Michael *
Dave, I did. I will try both, easy path first. I'll let you know what I find so that you can close the JIRA incident I opened. I did look at the JIRA ticket Antonio posted, and it seems likely that is the problem. Thanks to all that replied, especially all the extra effort that Martin went to.

RE: How can I combine a result (tiles + xslt)?

2008-03-06 Thread Griffith, Michael *
-0500, Griffith, Michael * wrote: [snip] Is this a good application for writing my own interceptor for? You would want to write your own Result Type for this. Writing your own results is not as well documented as writing your own interceptors, but since you are combining the functionality

RE: How can I combine a result (tiles + xslt)?

2008-03-06 Thread Griffith, Michael *
[mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 9:51 AM To: Griffith, Michael * Cc: Struts Users Mailing List Subject: Re: How can I combine a result (tiles + xslt)? Michael- remembering our academic coursework teaches Not(Not condition) evaluates positive be sure to set

RE: How can I combine a result (tiles + xslt)?

2008-03-06 Thread Griffith, Michael *
Could this be a defect? https://issues.apache.org/struts/browse/WW-1385 -Original Message- From: Griffith, Michael * [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 1:25 PM To: Martin Gainty Cc: Struts Users Mailing List Subject: RE: How can I combine a result (tiles + xslt

RE: How can I combine a result (tiles + xslt)?

2008-03-06 Thread Griffith, Michael *
to prevent this? Any tile that is supposed to be rendered after the body (ie the footer) is not rendered because the stream is closed. Any help would be much appreciated... MG -Original Message- From: Griffith, Michael * [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 1:52 PM

RE: DispatchAction nonexisting method

2008-03-06 Thread Griffith, Michael *
Hi Edward, Create a method for handling all the rest or unspecified actions, and delegate to your view: protected ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)

How can I combine a result (tiles + xslt)?

2008-03-05 Thread Griffith, Michael *
Hi, Can anyone advise me on the best way to approach this problem? I have a Struts2 application using Tiles 2 for UI. I have a page where the body of my tiles composition needs to be generated dynamically from XSLT. I want to transform XML into HTML tags including a form and inputs, which

RE: AjaxTag 1.3 support?

2008-02-05 Thread Griffith, Michael *
want to confuse the plug in -- if that makes any sense. MG -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 6:30 PM To: Struts Users Mailing List Subject: Re: AjaxTag 1.3 support? Right on. On Feb 4, 2008 6:45 PM, Griffith, Michael * [EMAIL

RE: AjaxTag 1.3 support?

2008-02-05 Thread Griffith, Michael *
-Original Message- From: Griffith, Michael * [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 05, 2008 8:32 AM To: Struts Users Mailing List Subject: RE: AjaxTag 1.3 support? Musachy, I can't seem to create the right blend of Entity objects/list/maps to allow the JSON plug in to serialize

RE: AjaxTag 1.3 support?

2008-02-05 Thread Griffith, Michael *
To: Struts Users Mailing List Subject: Re: AjaxTag 1.3 support? Don't give up so easily :). That is just a setting on the json plugin to prevent cross site scripting, and can be disabled. musachy On Feb 5, 2008 11:27 AM, Griffith, Michael * [EMAIL PROTECTED] wrote: Well, to answer my own question

RE: AjaxTag 1.3 support?

2008-02-05 Thread Griffith, Michael *
as I remember the plugin doesnt escape the quoutes. If you put the url in your browser you should see the generated json as it actually is. musachy On Feb 5, 2008 2:12 PM, Griffith, Michael * [EMAIL PROTECTED] wrote: Musachy, Huh? That can't be right... First of all, the document says

RE: AjaxTag 1.3 support?

2008-02-05 Thread Griffith, Michael *
://cwiki.apache.org/S2PLUGINS/json-plugin.html musachy On Feb 5, 2008 12:58 PM, Griffith, Michael * [EMAIL PROTECTED] wrote: Musachy, I've looked over the documentation, and looked in the JSONWriter class -- and it is not obvious to me how to configure this plugin setting. How is it done? MG

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
From: Griffith, Michael * [mailto:[EMAIL PROTECTED] Sent: Fri 2/1/2008 3:48 PM To: Struts Users Mailing List Subject: RE: AjaxTag 1.3 support? Dave, Thanks for the reply. I guess I should have said freemarker instead of sitemesh...? At any rate, when the docs don't match

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
].toLowerCase somewhere? musachy On Feb 4, 2008 11:57 AM, Griffith, Michael * [EMAIL PROTECTED] wrote: Jeromy, Again, thanks for the reply. I appreciate your help! Following your example below, I can see the JSON result in the app server console when the action called, but I get the following error

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Subject: Re: AjaxTag 1.3 support? I think that error is coming from your jsp, not the JSON generation. Do you have this.data[x][0].toLowerCase somewhere? musachy On Feb 4, 2008 11:57 AM, Griffith, Michael * [EMAIL PROTECTED] wrote: Jeromy, Again, thanks for the reply. I appreciate your help

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
response, except you'd use an XML result type like I previously described in this thread. I hope that helps. Struts2 is really well suited at providing non-html responses if you take the time to understand the ResultType architecture. cheers, Jeromy Evans Dave Newton wrote: --- Griffith

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
: Re: AjaxTag 1.3 support? funny thing is that now I remember the code(duh!), it is in the struts widget. It seems like the json is empty. Paste the section of your jsp with the autocompleter and the json that your action is returning. regards musachy On Feb 4, 2008 2:16 PM, Griffith, Michael

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
To: Struts Users Mailing List Subject: Re: AjaxTag 1.3 support? yes, but the output will depend on what you feed the JSON result. musachy On Feb 4, 2008 3:20 PM, Griffith, Michael * [EMAIL PROTECTED] wrote: Musachy, I must have missed your point. Isn't the idea of using the JSON plug-in so

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
1.3 support? Take a look here: http://cwiki.apache.org/S2PLUGINS/json-plugin.html musachy On Feb 4, 2008 3:43 PM, Griffith, Michael * [EMAIL PROTECTED] wrote: So, if you have an array of Entity objects, in my case question: How can I produce? { question : [ [1,question 1

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
this link: http://cwiki.apache.org/WW/ajax-and-javascript-recipes.html#AjaxandJavaS criptRecipes-Autocompleter otherwise just an array of arrays should do: [ [Alabama, AL], [Alaska, AK] ] musachy On Feb 4, 2008 2:46 PM, Griffith, Michael * [EMAIL PROTECTED] wrote: Musachy Here

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
JSON? Dave --- Griffith, Michael * [EMAIL PROTECTED] wrote: Musachy, Thanks for your many replies... Does this JSON look like the right format? As far as I can tell, it matches your snippet below -- but I get the same dojo parting error. [{questions:{420:Is your Java Application a ME, SE

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
: { questions: { Key1 : Question 1, Key2 : Question 2, } } //that's the idea, but I typed out of what I remember which is often not good :) musachy On Feb 4, 2008 4:34 PM, Griffith, Michael * [EMAIL PROTECTED] wrote: Musachy, I'm still not getting it... I am now serializing a list

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
://cwiki.apache.org/S2PLUGINS/json-plugin.html musachy On Feb 4, 2008 3:43 PM, Griffith, Michael * [EMAIL PROTECTED] wrote: So, if you have an array of Entity objects, in my case question: How can I produce? { question : [ [1,question 1 text...], [2,question 2 text

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
, Michael * [EMAIL PROTECTED] wrote: Yea, I think so -- I copied and pasted this from the log file/console... From: Dave Newton [mailto:[EMAIL PROTECTED] Is it generating those brackets around your JSON? --- Griffith, Michael * [EMAIL PROTECTED] wrote: Musachy, Thanks for your many

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
: AjaxTag 1.3 support? ... That's probably an issue. --- Griffith, Michael * [EMAIL PROTECTED] wrote: Yea, I think so -- I copied and pasted this from the log file/console... From: Dave Newton [mailto:[EMAIL PROTECTED] Is it generating those brackets around your JSON? --- Griffith, Michael

RE: AjaxTag 1.3 support?

2008-02-02 Thread Griffith, Michael *
. Grant From: Griffith, Michael * [mailto:[EMAIL PROTECTED] Sent: Fri 2/1/2008 3:48 PM To: Struts Users Mailing List Subject: RE: AjaxTag 1.3 support? Dave, Thanks for the reply. I guess I should have said freemarker instead of sitemesh...? At any

RE: Help with (1...N) Editing using Ajax?

2008-02-01 Thread Griffith, Michael *
either must render the form after the data is available, or perform additional processing to 'push' the data into the form. L. Griffith, Michael * wrote: In fact, looking at the page source, it appears the expression is never cooked... Here's the input from the rendered page: input type

AjaxTag 1.3 support?

2008-02-01 Thread Griffith, Michael *
Hi all, I can't seem to get a simple Ajax based look ahead search to work. I am trying to use AjaxTags 1.3 (http://ajaxtags.sourceforge.net/) in my Struts2 application. What is the correct response to return? I am also using Tiles2. If I write the response directly to the output stream, that's

RE: AjaxTag 1.3 support?

2008-02-01 Thread Griffith, Michael *
-Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 5:42 PM To: Struts Users Mailing List Subject: Re: AjaxTag 1.3 support? --- Griffith, Michael * [EMAIL PROTECTED] wrote: public class QuestionAction extends BaseAction implements ModelDrivenQuestion

Help with (1...N) Editing using Ajax?

2008-01-31 Thread Griffith, Michael *
Hello all, I am trying to understand how to present an interface where I allow a user to edit a master/detail relationship using an Ajax technique. I am quite new to Struts2, so please forgive the dalliance. I have a form that presents the user the ability to edit the master of the

RE: Help with (1...N) Editing using Ajax?

2008-01-31 Thread Griffith, Michael *
'] is not returning anything? musachy On Jan 31, 2008 5:16 PM, Griffith, Michael * [EMAIL PROTECTED] wrote: Hello all, I am trying to understand how to present an interface where I allow a user to edit a master/detail relationship using an Ajax technique. I am quite new to Struts2, so please

RE: Help with (1...N) Editing using Ajax?

2008-01-31 Thread Griffith, Michael *
- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Thursday, January 31, 2008 4:25 PM To: Struts Users Mailing List Subject: Re: Help with (1...N) Editing using Ajax? so #session['guide'] is not returning anything? musachy On Jan 31, 2008 5:16 PM, Griffith, Michael * [EMAIL PROTECTED] wrote