RE: s:push problem

2011-04-15 Thread CRANFORD, CHRIS
to the page. I just happened to comment out the code in the included page which lead me to realize it was something with the include page and not the push tag itself ... Thanks for the help tho Dave. Chris -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent

Re: Select collection not found only when validation xml file is used

2011-04-12 Thread Chris Pratt
My suggestion would be to make your action implement Preparable and initialize the list in the prepare() method. (*Chris*) On Tue, Apr 12, 2011 at 10:16 AM, Eric Lentz eric.le...@sherwin.com wrote: Struts 2.2.1 I have a page with a list: s:select name=user.gender headerKey

Re: Select collection not found only when validation xml file is used

2011-04-12 Thread Chris Pratt
It's most likely trying to validate that the value supplied is one of the values from the list. But that's just conjecture, since I don't use that XML Validation stuff. (*Chris*) On Tue, Apr 12, 2011 at 12:12 PM, Eric Lentz eric.le...@sherwin.com wrote: I second Chris's suggestion

Re: Select collection not found only when validation xml file is used

2011-04-12 Thread Chris Pratt
I prefer to implement the validate() method and perform my own validations. It gives me a lot more control over the tests. There's just so many useful validations that can't be specified through XML, and I prefer the ability to see all of my tests in one place. (*Chris*) On Apr 12, 2011 12:27

Re: Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-08 Thread Chris Pratt
Did you remember to import the tiles taglib? (*Chris*) On Fri, Apr 8, 2011 at 7:48 AM, abhishek jain abhishek.netj...@gmail.comwrote: hi, Someone help please tiles:getAsString name=title / works in the document where layoutstore.jsp but not in seo.jsp which is a file called

Spring Security

2011-03-31 Thread CRANFORD, CHRIS
. Chris - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Struts 2 Problem with Resource Bundles When struts jars are on commons tomcat directory

2011-03-25 Thread Chris Pratt
Tomcat is doing exactly what you asked it to do. It's loading the jars once and sharing them between the applications. If that's not the behavior you want, you'll have to package the jars in the WEB-INF/lib directory like a normal java web application. (*Chris*) On Fri, Mar 25, 2011 at 8:30

Data/Access Security in Struts2

2011-03-23 Thread CRANFORD, CHRIS
of other applications, but the experiences learned are often common regardless. Chris - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Ajax in Struts2

2011-03-22 Thread Chris Pratt
My recommendation for all things JavaScript would be jQuery. With, or especially without, the jQuery Plug-in. (*Chris*) On Tue, Mar 22, 2011 at 8:43 AM, webmeiker i...@webmeiker.com wrote: Hi, I want to ask the community for advice about the technology/mechanism/plugin/library I should

Re: Ajax in Struts2

2011-03-22 Thread Chris Pratt
the beaten path, you're going to have to leave the plug-in behind at some point. Then you'll end up with hybrid code, which is much harder to maintain. (*Chris*) On Tue, Mar 22, 2011 at 9:24 AM, webmeiker i...@webmeiker.com wrote: Thanks Thomas, I will take that into account …but, why you didn’t

RE: Calling an action class through Javascript -Struts 2.

2011-03-21 Thread CRANFORD, CHRIS
I would highly recommend AJAX/JSON/jQuery, they are Javascript. Question - Does your requirement state that the data should be server-call back delay delivered? Does your requirement expect the data to be pre-rendered and the DOM updated real-time? Either way, I would use jQuery to perform

Re: Authorization and Authentication

2011-03-18 Thread Chris Pratt
And just for completeness Spring Security is the new name of Acegi. (*Chris*) On Fri, Mar 18, 2011 at 8:21 AM, Jordi Fernandez jordi.fernan...@esilog.com wrote: Same advice here. Spring Security supports many authentication/authorization scenarios, can be extended and is well documented

RE: RE: Re : Re : ModelDriven Hibernate Entities

2011-03-11 Thread CRANFORD, CHRIS
an issue.  Dave was *marginally* following this thread as well ;-) http://www.coderanch.com/t/58423/Struts/Struts-Model-Driven- fundamentally-flawed On Thu, Mar 10, 2011 at 11:55 AM, CRANFORD, CHRIS chris.cranf...@setech.com wrote: Dave et el - I can only conclude that either

RE: Re : Re : ModelDriven Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
: ModelDriven Hibernate Entities Have you tried to put the transational annotation in the class declaration? Maurizio Cucchiara Il giorno 09/mar/2011 21.38, CRANFORD, CHRIS chris.cranf...@setech.com ha scritto: I still think this is related to my @Transactional annotation

RE: RE: Re : Re : ModelDriven Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
, 2011 1:41 AM To: Struts Users Mailing List Cc: CRANFORD, CHRIS Subject: Re: RE: Re : Re : ModelDriven Hibernate Entities It's exactly what I meant (you can leave in your service class too). The object factory must be spring and your class name inside the action configuration must contain

RE: RE: Re : Re : ModelDriven Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
Dave - Yes the plugin is in the app's lib directory. -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Thursday, March 10, 2011 10:37 AM To: Struts Users Mailing List Cc: CRANFORD, CHRIS; Maurizio Cucchiara Subject: Re: RE: Re : Re : ModelDriven Hibernate

RE: RE: Re : Re : ModelDriven Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
Oh, learn something new every day :) -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Thursday, March 10, 2011 10:40 AM To: CRANFORD, CHRIS Cc: Struts Users Mailing List; Maurizio Cucchiara Subject: Re: RE: Re : Re : ModelDriven Hibernate Entities On Thu

RE: RE: Re : Re : ModelDriven Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
Annotating @Transactional on the action didn't help. -Original Message- From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Sent: Thursday, March 10, 2011 1:41 AM To: Struts Users Mailing List Cc: CRANFORD, CHRIS Subject: Re: RE: Re : Re : ModelDriven Hibernate Entities

RE: RE: Re : Re : ModelDriven Hibernate Entities

2011-03-10 Thread CRANFORD, CHRIS
of the entity accordingly when applicable. -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Thursday, March 10, 2011 10:40 AM To: CRANFORD, CHRIS Cc: Struts Users Mailing List; Maurizio Cucchiara Subject: Re: RE: Re : Re : ModelDriven Hibernate Entities On Thu

Re: Struts 2.0.11.1 question

2011-03-09 Thread Chris Pratt
of the plugin. (*Chris*) On Wed, Mar 9, 2011 at 4:23 AM, Harsh C hchau...@gmail.com wrote: Thanks for the responses all. Not blessed just means that it is not in the list of s/w that we are allowed to work with. I ended up writing just a plain servlet for now to serve the JSON string

Re: Struts 2.0.11.1 question

2011-03-09 Thread Chris Pratt
I wouldn't have a problem with using the GSON project, it's another community maintained, battle tested project. From your examples it should probably have a Struts Result object wrapped around it to make it easier to use, but that's beside the point. horse level=high status=on My problem is

ModelDriven Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
I had started down a path of using the ModelDriven interface from Struts because I find it really helps maintain a class action class without large numbers of get/set methods for screens that contain a lot of form fields. However, I am finding at least with how I have attempted to approach

RE: Re : ModelDriven Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
hope it will help you - Message d'origine De : CRANFORD, CHRIS chris.cranf...@setech.com À : Struts Users Mailing List user@struts.apache.org Envoyé le : Mer 9 mars 2011, 12h 34min 32s

RE: Re : Re : ModelDriven Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
[mailto:rouxe...@yahoo.com] Sent: Wednesday, March 09, 2011 12:24 PM To: Struts Users Mailing List Subject: Re : Re : ModelDriven Hibernate Entities Hi Chris, first, you might have another pb, because struts2 does not change your model if a validation failed. In may case, the model is not changed

Re: Re : Re : ModelDriven Hibernate Entities

2011-03-09 Thread Chris Pratt
It might just be an order of interceptors problem. One of your first interceptors should be your login check. That should definitely happen before the standard paramsPrepareParamsStack is run. (*Chris*) On Wed, Mar 9, 2011 at 11:04 AM, CRANFORD, CHRIS chris.cranf...@setech.comwrote

RE: Re : Re : ModelDriven Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
Yes, that was the issue, it was interceptor order related. Now if only I could get the persistent entity not to be flushed under specific conditions: - Exception - Non-SUCCESS return code, etc. -Original Message- From: Chris Pratt [mailto:thechrispr...@gmail.com] Sent: Wednesday

RE: Re : Re : ModelDriven Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
filters can be tricky. Dave On Wed, Mar 9, 2011 at 2:04 PM, CRANFORD, CHRIS chris.cranf...@setech.com wrote: Francois - I use the standard paramsPrepareParamsStack interceptor from Struts. All I have done on my end is wrap this interceptor stack with a few application specific

RE: RE: Re : Re : ModelDriven Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
to put the transational annotation in the class declaration? Maurizio Cucchiara Il giorno 09/mar/2011 21.38, CRANFORD, CHRIS chris.cranf...@setech.com ha scritto: I still think this is related to my @Transactional annotation maybe. -Original Message- From: Dave Newton

Re: Struts2 XML Validation App

2011-03-09 Thread Chris Mawata
Your struts.xml is missing a package tag -- or did you just not include it when you pasted? On Wed, 2011-03-09 at 14:54 -0800, Vivek Bansal wrote: Hi, I am creating my first struts2 application with xml based validation. However, I am not able to get the validation part working i.e. its not

Re: Struts 2.0.11.1 question

2011-03-08 Thread Chris Pratt
The simplest way is just to use a JSP that generates the JSON you want, then set the contentType parameter of the result to application/json and you should be good to go. (*Chris*) On Tue, Mar 8, 2011 at 3:23 PM, Harsh C hchau...@gmail.com wrote: Hi, I don't know if this is the right list

Re: Handling wildcard action names with dot.

2011-03-01 Thread Chris Pratt
It's possible you might have to play with your filter entries in web.xml also. The container also maps by extension. (*Chris*) On Tue, Mar 1, 2011 at 5:59 AM, GF gan...@gmail.com wrote: I configured struts to handle url mapping with no extensions this way constant name

Re: sending the report directly to the printer

2011-02-20 Thread Chris Pratt
the print dialog to prompt the user to complete the action. (*Chris*) On Sun, Feb 20, 2011 at 9:37 AM, Brian Thompson elephant...@gmail.comwrote: On Sun, Feb 20, 2011 at 10:18 AM, Dave Newton davelnew...@gmail.com wrote: I have no idea. Personally, I'd be a little surprised

RE: Help with JQuery plugin

2011-02-17 Thread CRANFORD, CHRIS
and if you get an error, you can then overlay another dialog to display the error or set a div in your form you rendered in the dialog with the error message. Inevitability it boils down to a number of topic publish/subscribe events you need to handle. Any questions, hit me up off list. Chris

RE: generate SQL Hibernate Query using session

2011-02-17 Thread CRANFORD, CHRIS
the AliasToBean transformer is much cleaner code :) Chris -Original Message- From: Jerson John [mailto:jer...@cprvision.com] Sent: Thursday, February 17, 2011 7:43 PM To: user@struts.apache.org Subject: generate SQL Hibernate Query using session Hi, I am trying to generate SQL query using

Re: Restrict direct access to static content

2011-02-16 Thread Chris Pratt
Basically you need to implement an Authentication/Authorization system in your app (you can start with Spring Security if you're not comfortable doing a scratch implementation). Then use that system to protect all your assets. (*Chris*) On Wed, Feb 16, 2011 at 9:24 AM, Vitor De Mario vitordema

Re: client side validation in struts2

2011-02-15 Thread Chris Mawata
Try changing %@ taglib prefix=s uri=/WEB-INF/struts-tags.tld % to %@ taglib prefix=s uri=/struts-tags % Chris On Tue, 2011-02-15 at 06:38 -0800, dasariprasad wrote: in clValid.jsp, i had used input page %@ taglib prefix=s uri=/WEB-INF/struts-tags.tld % html head titleStrut2's actions

RE: JSON Error - Hibernate Entities

2011-02-14 Thread CRANFORD, CHRIS
February 2011 08:39, CRANFORD, CHRIS chris.cranf...@setech.com wrote: Here is the portion from the struts configuration: struts-warranty.xml action  name=ajaxWarrantyItemsAcList  class=com.setech.dw.warranty.web.WarrantyAssignmentItemAjaxAction  result name=success type=json

Strut2 JQuery

2011-02-14 Thread CRANFORD, CHRIS
is rendered; however I'd prefer to see if there is a way I can easily extend the current plugin I am using or if there is a better plugin I could use to get the same results or whether just using JQuery directly is the acceptable route in this case... Chris

RE: Strut2 JQuery

2011-02-14 Thread CRANFORD, CHRIS
I tried passing the JS through something that understands JSP but it seemed to have been a failed attempt as nothing seemed to work. What the existing plugin does is somewhat as you described; the tags create a simple JSON object filled with options and then passes those options off to the

JSON Error - Hibernate Entities

2011-02-13 Thread CRANFORD, CHRIS
call? java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers public Chris - To unsubscribe

RE: JSON Error - Hibernate Entities

2011-02-13 Thread CRANFORD, CHRIS
inside the struts.xml file. Maurizio Cucchiara Il giorno 14/feb/2011 07.19, CRANFORD, CHRIS chris.cranf...@setech.com ha scritto: I am trying to return a list of hibernate entities to my AJAX call; however, I get the following error message when JSONWriter tries to serialize the objects

Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Chris Pratt
/rtexprvalue to all the attributes, and it will allow you to use EL, at your user's risk. (*Chris*) On Fri, Feb 11, 2011 at 11:26 PM, Ashish Shrivastava ashish@gmail.comwrote: Hi, We are in the process to upgrade our application. Currently our aplication is on *Weblogic: 8.1sp5 Java: 1.4 Struts

Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Chris Pratt
. And there are alternative ways of getting to anything you need using OGNL with the Struts Tags. (*Chris*) On Sat, Feb 12, 2011 at 3:08 AM, Ashish Shrivastava ashish@gmail.comwrote: Thanks a lot Chris. I tried with the option and it is working fine :). We will think about the security risk and decide

RE: Struts2 - Image Approval Process

2011-02-03 Thread CRANFORD, CHRIS
activities for various user groups. Good luck! Chris - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

RE: Struts2 - Image Approval Process

2011-02-03 Thread CRANFORD, CHRIS
if that is of any concern. Chris - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: s:submit action=ACTION-IN-ANOTHER-NAMESPACE

2011-02-02 Thread Chris Pratt
I suppose it wouldn't be possible to have the action sort it out using separate methods? You could use: s:submit action=MySuperAction method=other/ (*Chris*) On Tue, Feb 1, 2011 at 12:45 AM, Agoston Bejo bejo...@yahoo.com wrote: Thanks Chris, the problem is that there are other

Re: Struts 2 obtaining a property value with no corresponding getXX() method

2011-02-01 Thread Chris Pratt
(). (*Chris*) On Tue, Feb 1, 2011 at 5:03 AM, RogerV roger.var...@googlemail.com wrote: Hi I'm trying to iterate over a collection of Enums of type Authority using s:iterator value=userDTO.authorities status=authstatus s:property value=name

Re: Changing The Result Page

2011-02-01 Thread Chris Pratt
To extend on this idea, instead of requiring all your actions to add a getBtype(), you could use an interceptor that determine's the Browser Type and sets a context attribute you could access using: result/${#btype}/Profile.jsp/result (*Chris*) On Tue, Feb 1, 2011 at 10:36 AM, Greg Lindholm

Re: displaytag1.2 + struts2.2.1.1 + jfreechart. Graph did not update based on displaytag sortable column

2011-02-01 Thread Chris Pratt
It sounds like what you're trying to do is a displaytag feature. You may have more luck in their mailing list. (*Chris*) On Tue, Feb 1, 2011 at 12:57 PM, Emi Lu em...@encs.concordia.ca wrote: Dave, displaytag1.2 + struts2.2.1.1 + jfreechart. img src=jfreechartReport.action Can

Re: s:submit action=ACTION-IN-ANOTHER-NAMESPACE

2011-01-31 Thread Chris Pratt
=MyAction namespace=/p s:submit/ /s:form (*Chris*) On Mon, Jan 31, 2011 at 10:59 PM, Agoston Bejo bejo...@yahoo.com wrote: Hi! I would like to specify the action attribute of an s:submit/ such that it points to an action in a namespace other than which the jsp is in: struts.xml

Re: [OT?] standalone jsp

2011-01-29 Thread Chris Pratt
Are you using this for generating emails from web applications? I developed a tag library that allows you to generate text/html emails using JSP and it works great with Struts/Tiles/Spring. (It would probably work with Freemarker/Velocity as well, I've just never tried it) (*Chris*) On Sat

AJAX Sessions

2011-01-27 Thread CRANFORD, CHRIS
updated; thus allowing user interaction to continue to track idle timeout. What have others done in your applications so that you can handle proper timeout of a sessions despite the fact your application may be getting AJAX requests refreshing the idle time on the session object? Chris

RE: AJAX Sessions

2011-01-27 Thread CRANFORD, CHRIS
: Scott [mailto:stanl...@gmail.com] Sent: Thursday, January 27, 2011 8:37 PM To: 'Struts Users Mailing List' Subject: RE: AJAX Sessions Are these Ajax requests *not* human initiated? IOW, are they timers? From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Thursday, January

Re: AJAX Sessions

2011-01-27 Thread Chris Pratt
, but in a timer situation, I can just ignore it or stop the timer; 500 means bad things happened on the server side and I might want to inform the user. (*Chris*) On Thu, Jan 27, 2011 at 7:09 PM, Dave Newton davelnew...@gmail.com wrote: Your Ajax call checks for an error status and redirects. I used

reloading config i18n

2011-01-25 Thread CRANFORD, CHRIS
I have set devMode=true and both reload config and i18n properties to true for my development environment. It doesn't matter whether Tomcat is ran inside of MyEclipse or whether I run it stand alone, while I see the devMode error reports; I don't see the reload functionality working at all. I

RE: reloading config i18n

2011-01-25 Thread CRANFORD, CHRIS
/ constant name=struts.i18n.reload value=true / constant name=struts.custom.i18n.resources value=global-messages / constant name=struts.configuration.xml.reload value=true / Peace, Scott On Tue, Jan 25, 2011 at 12:26 PM, CRANFORD, CHRIS chris.cranf...@setech.com wrote: I have set

ModelDriven - Best Practices

2011-01-24 Thread CRANFORD, CHRIS
. Simply the record id is submitted, the record queried, and then the service executes a delete based on the ID value. Any thoughts on my update issue? Chris - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Re: Struts 2 - Parameterized error messages

2011-01-24 Thread Chris Pratt
Try: field.amount={0} can not be '$'{1} for Sequence {2}. The single quotes tell the underlying MessageFormat that the dollar sign should be treated literally. You might also be able to use {1,number,currency} which I think may include the proper currency symbol automatically. (*Chris

Re: Dynamic dropDown List

2011-01-18 Thread Chris Pratt
Unfortunately the s:select tag doesn't work like the select HTML element. If that's what you are trying to do you could either set up the list to be displayed in the action and reference it in the s:select list attribute, or you could just use select and option and build it yourself. (*Chris

Re: Dynamic dropDown List

2011-01-17 Thread Chris Pratt
to access the current question while inside the answer loop, look at the var attribute. (*Chris*) On Mon, Jan 17, 2011 at 2:59 AM, mre...@4sxs.de mre...@4sxs.de wrote: Hello, This is my first request in this mailing list, I hope I am doing it right ! I am currently developing a Portlet

Re: How to use an application scoped variable in s:a href=/?

2011-01-11 Thread Chris Pratt
} title=%{getText('textTitle.account.register')} to s:a href=%{#application.viewRegister} title=%{getText('textTitle.account.register')} (*Chris*) On Tue, Jan 11, 2011 at 7:25 AM, Rubens Gomes rub...@pocketgear.com wrote: I am using the s:a href=.. / Struts 2 tag, *not* the HTML standard

RE: Ajax ActionErrors

2011-01-11 Thread CRANFORD, CHRIS
No I am referring to Struts 2.1.8.1 -Original Message- From: Frank W. Zammetti [mailto:fzli...@omnytex.com] Sent: Tuesday, January 11, 2011 1:04 PM To: Struts Users Mailing List Subject: Re: Ajax ActionErrors On 1/11/2011 1:43 PM, CRANFORD, CHRIS wrote: Can someone explain how

RE: RE: Ajax ActionErrors

2011-01-11 Thread CRANFORD, CHRIS
...@gmail.com] Sent: Tuesday, January 11, 2011 3:51 PM To: Struts Users Mailing List Subject: Re: RE: Ajax ActionErrors When you talk about ajax do you mean dojo, json or what else? Could you be a little bit more accurate? Maurizio Cucchiara On Jan 11, 2011 8:14 PM, CRANFORD, CHRIS chris.cranf

Re: JSON Property

2011-01-05 Thread Chris Pratt
it in ways they need. Just a wild thought. (*Chris*) On Wed, Jan 5, 2011 at 1:22 AM, Steven Yang kenshin...@gmail.com wrote: I think its bundled with S2 but as a separate jar, so dont get mistaken. i am a bit reluctant to share my code, which is old and bad, not that because i am cheap or anything

Re: JSON Property

2011-01-04 Thread Chris Pratt
You might also need the executeResult=true attribute on the s:action tag. (*Chris*) On Tue, Jan 4, 2011 at 7:06 AM, Biesbrock, Kevin biesbrock.ke...@aoins.comwrote: I don't want to use a separate roundtrip for loading the jqGrid for two reasons: 1. I want to handle the contents

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 jim.tal...@groupgti.com wrote: I could do that (as Aaron Brown suggested on Monday) but I don't already have

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: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Chris Pratt
the first (or only) in the chain, if not, then you have the list of cookies that were added. I'm not sure if you'll be able to overwrite an existing cookie, but you could, institute a first-come, first-served rule. (*Chris*) On Fri, Dec 24, 2010 at 10:22 AM, jlm...@gmail.com wrote: How can I do

which versions of struts 1.x are still being maintained?

2010-12-23 Thread chris snow
to struts 2.x at this stage. How are struts security advisories and fixes announced? Many thanks in advance, Chris

Re: Struts2 URL building in action for JSON.

2010-12-18 Thread Chris Pratt
it wouldn't really work in a helper class. (*Chris*) /** * Struts: Inject a flag as to whether Dynamic Method Invocation is enabled * * @param enable true to enable */ @Inject(StrutsConstants.STRUTS_ENABLE_DYNAMIC_METHOD_INVOCATION) public void setEnableDynamicMethodInvocation (String

Re: Struts2 URL building in action for JSON.

2010-12-18 Thread Chris Pratt
of my inheritance hierarchy, so do tell? (*Chris*) On Sat, Dec 18, 2010 at 12:14 PM, Dave Newton davelnew...@gmail.com wrote: There's no reason it couldn't work in a helper class, though; you can define arbitrary beans etc. inside the config. Dave On Sat, Dec 18, 2010 at 3:12 PM, Chris Pratt

Re: Struts2 URL building in action for JSON.

2010-12-18 Thread Chris Pratt
doStartTag () throws JspException { Dispatcher.getInstance().getContainer().inject(this); return super.doStartTag(); } //doStartTag So I know Struts just doesn't do it willy nilly anytime you define the annotation. (*Chris*) On Sat, Dec 18, 2010 at 12:23 PM, Dave Newton davelnew

Validation/Restriction

2010-12-17 Thread CRANFORD, CHRIS
Our application is designed to allow users to query information from our backend database. The records in this database are stored with an association to a data hierarchy. Each record contains a facilityId value and this facilityId is the deepest child in the tree of customer-region-facility.

Re: Parameter manipulation

2010-12-17 Thread Chris Pratt
You should be able to initialize the objects in the interceptor instead, you could even retrieve them from the request or some other method in the action. Probably a more comprehensive fix than trying to white-list everything by hand. (*Chris*) On Fri, Dec 17, 2010 at 6:54 AM, Altenhof, David

Re: Parameter manipulation

2010-12-17 Thread Chris Pratt
If the bean already exists, struts doesn't have to set it. It just has to modify the retrieved bean. (*Chris*) On Fri, Dec 17, 2010 at 9:48 AM, stanl...@gmail.com wrote: I agree S2 will create the bean (if null) but it can't set a property that is private and has no accessible setter method

Re: Parameter manipulation

2010-12-17 Thread Chris Pratt
Maybe if the OP moves the bean creation out of the prepare() method (so the bean isn't available during parameter injection) and then retrieves it at the start of validate() or execute() that might solve the problem. (*Chris*) On Fri, Dec 17, 2010 at 10:05 AM, Chris Pratt thechrispr

Re: Parameter manipulation

2010-12-15 Thread Chris Pratt
through form parameters. (*Chris*) On Wed, Dec 15, 2010 at 8:39 AM, Altenhof, David Aron dalte...@iupui.eduwrote: I've been getting more and more concerned about the possibility of parameter manipulation attacks with Struts2. I've started doing strict whitelists using the ParameterNameAware

Re: Invocation of type conversion manually

2010-12-13 Thread Chris Pratt
[...] (*Chris*) On Mon, Dec 13, 2010 at 9:05 PM, JOSE L MARTINEZ-AVIAL jlm...@gmail.comwrote: I know that the inteceptor knows which action is invoked. I just don't want it to need to be aware of that. That's why I assigned a resource for each action, using a parameter in the definition

RE: Live Reload - Play framework

2010-12-10 Thread CRANFORD, CHRIS
property names. =/ Chris I like it. It has some fast way to create pages. And I really enjoy the possibility to pass params directly to a method, without getters setters. It can be new feature to S2! Helps to keep the Action class clean! See you! On Fri, Dec 10, 2010 at 9:14 AM

RE: Result Type Stream Corrupted

2010-12-09 Thread CRANFORD, CHRIS
between get and post request for struts (struts acts as filter and AFAIK at that abstraction level there would be no method awareness). I'd take a look at the client and server enviroment (like application server) Maurizio Cucchiara Il giorno 09/dic/2010 00.05, CRANFORD, CHRIS

RE: RE: RE: Result Type Stream Corrupted

2010-12-09 Thread CRANFORD, CHRIS
No, both the client saved file and the one created on the server side in the temp directory both match in size. -Original Message- From: Li Ying [mailto:liying.cn.2...@gmail.com] Sent: Wednesday, December 08, 2010 6:07 PM To: Struts Users Mailing List Subject: Re: RE: RE: Result

RE: RE: RE: RE: Result Type Stream Corrupted

2010-12-09 Thread CRANFORD, CHRIS
, CRANFORD, CHRIS chris.cranf...@setech.com ha scritto: If I compare the binary data written to disk from the browser to that of the file written on the server (mind you both locally on the same machine) the actually contents seem different as if the stream had certain bytes shifted or altered

Result Type Stream Corrupted

2010-12-08 Thread CRANFORD, CHRIS
I have several actions in my application where a user can click an export option on the page and the content that was rendered to the screen gets formatted in a file, zipped, and then streamed to the client browser using the stream result type. The problem is that for one particular page, the

RE: Result Type Stream Corrupted

2010-12-08 Thread CRANFORD, CHRIS
this kind of issue usually depends on the content length value. As far I can recall, you should be able to monitor net activity through firebug. Check that content length is equal to the effective file size. 2010/12/8 CRANFORD, CHRIS chris.cranf...@setech.com: I have several actions in my

RE: RE: Result Type Stream Corrupted

2010-12-08 Thread CRANFORD, CHRIS
Subject: Re: RE: Result Type Stream Corrupted Did you get this behavior with different browser? Maurizio Cucchiara Il giorno 08/dic/2010 19.47, CRANFORD, CHRIS chris.cranf...@setech.com ha scritto: Found the culprit, but it doesn't make any sense to me. This one particular page

RE: RE: RE: Result Type Stream Corrupted

2010-12-08 Thread CRANFORD, CHRIS
result (data truncated)? Maurizio Cucchiara Il giorno 08/dic/2010 23.05, CRANFORD, CHRIS chris.cranf...@setech.com ha scritto: No, behavior was the same between Firefox and IE. The ZIP file simply could not be opened as Explorer felt it was invalid. -Original Message- From

Re: the result of the interceptor

2010-12-04 Thread Chris Pratt
It doesn't make much of a difference what you return after you call invocation.invoke(), but since you can opt not to call it and just return login-required or password-reset, you can use it to control the flow of the application, just make sure you do it before you call invoke =8^) (*Chris

Re: Calling Struts Action from JavaScript

2010-11-30 Thread Chris Pratt
Either use ajax or submit the page request, there's no other good way to access a server side resource from the client side. (*chris*) On Nov 30, 2010 1:15 PM, Anjib Mulepati anji...@hotmail.com wrote: Struts 1.3.8 I have text box and button in the JSP page with the function on onCLick

Re: Filed Error message withput bullets.

2010-11-17 Thread Chris Pratt
You can either update the standard theme template, create your own theme template, or use CSS to style the bullet points to look any way you would like. (*Chris*) On Wed, Nov 17, 2010 at 9:05 AM, Satheesh Kannan A B satheesh.kan...@hcl.com wrote: Hi, I need to display the field error

Re: Filed Error message withput bullets.

2010-11-17 Thread Chris Pratt
Sorry, I assumed it was Struts 2. I didn't remember Struts 1 automatically putting the errors in lists, did it? (*Chris*) On Wed, Nov 17, 2010 at 9:18 AM, Dave Newton davelnew...@gmail.com wrote: On Wed, Nov 17, 2010 at 12:05 PM, Satheesh Kannan A B wrote: I need to display the field error

Re: Filed Error message withput bullets.

2010-11-17 Thread Chris Pratt
Maybe try http://lmgtfy.com/?q=CSS+Style+UL (*Chris*) On Wed, Nov 17, 2010 at 9:21 AM, Satheesh Kannan A B satheesh.kan...@hcl.com wrote: Hi, I have configured in struts.properties as theme=simple. I don't know where to define list-style-type. Please provide me some examples. Thanks

Re: Spring context for package

2010-11-12 Thread Chris Pratt
, it will automatically include those beans, kind of like the start of a Plug-In architecture. You can so a similar thing with the struts-plugin.xml support built into Struts 2 to make a pretty robust Plug-in system in your application. (*Chris*) 2010/11/12 Josep María Formentí Serra jmforme...@aia.es Hi

Re: Struts 2.1.8 Tiles

2010-11-02 Thread Chris Pratt
It looks like you extended the struts-default instead of the tiles-default and you didn't define the tiles result type yourself. Try changing the package declaration to extends=tiles-default (*Chris*) On Tue, Nov 2, 2010 at 3:49 AM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote

Re: RE: Struts 2.1.8 Tiles

2010-11-02 Thread Chris Pratt
Do you have the struts-tiles plug-in in your WEB-INF/lib directory? (*chris*) On Nov 2, 2010 1:22 PM, Satheesh Kannan A B satheesh.kan...@hcl.com wrote: Hi, Below one also not working. If am give action name=manageCase class=manageCaseAction result name=header /pages/layout/header.jsp/result

Re: REST and Web API

2010-10-28 Thread Chris Pratt
I downloaded the book Jordi recommended to my Kindle and it looks like a very good read. That coupled with looking at how Google FaceBook did things and I think I'll be confident enough to design my own API. (*Chris*) On Thu, Oct 28, 2010 at 5:08 PM, Frans Thamura fr...@meruvian.org wrote

Recent or soon to appear Struts 2 books

2010-10-26 Thread Chris Mawata
desks? Cheers Chris - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Recent or soon to appear Struts 2 books

2010-10-26 Thread Chris Mawata
On 10/26/2010 4:03 PM, Dave Newton wrote: I know of nothing currently in progress, except for my nascent Inside Struts 2 (IS2) which I don't expect to see before early Spring. Dave On Tue, Oct 26, 2010 at 4:00 PM, Chris Mawata chris_mawata_str...@mathcove.net wrote: Hi y'all, I am

Re: RequestHeaderAware in Struts 2?

2010-10-25 Thread Chris Pratt
with the same name don't clash, and use an Annotation to identify which headers to inject into which methods, but that would definitely take more than 1/2 hr. =8^) (*Chris*) On Thu, Oct 21, 2010 at 4:36 PM, Jose Luis Martinez Avial jlmarti...@pb-santander.com wrote: Hello, I'm working on an application

Auto-Expanding sx:tree

2010-10-20 Thread CRANFORD, CHRIS
I have found a few resources on the net but none which have seemed to work. I am using the Struts2 DOJO tree control with nested treenode tags. How can I force the tree and all its children nodes to be expanded by default? -

Re: jqGrid with Struts and Spring

2010-10-18 Thread Chris Pratt
The only things I can think of to check would be, do you have the struts2-spring-plugin.jar file in your WEB-INF/lib directory? And have you set the struts.objectFactory property to spring? constant name=struts.objectFactory value=spring/ (*Chris*) On Sun, Oct 17, 2010 at 7:34 PM, cellterry

<    1   2   3   4   5   6   7   8   9   10   >