Struts 2.5 GA

2016-06-16 Thread CRANFORD, CHRIS
I'm working on upgrading Struts2 to 2.5-GA and I'm running into an issue where the JSP renders: java.io.IOException: Stream closed org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:200)

RE: Jodd/Madvoc MVC framework

2016-01-26 Thread CRANFORD, CHRIS
This is one of the aspects of Spring MVC that I prefer over that of Struts2. The return types from action handler methods vary and influences what the servlet handler is to do after the action handler has completed. The framework could be tweaked to examine the action method's return type and

RE: Editing a JPA entity

2016-01-07 Thread CRANFORD, CHRIS
In the case of non-versioned domain models or cases where you aren't concerned with state collisions, the traditional lookup/render/lookup/merge workflow works quite well. The problem though comes into play when you are concerned about versioned models and more importantly, controlling state

RE: Spring BeanPostProcessor called twice for Struts managed beans

2015-10-15 Thread CRANFORD, CHRIS
> > You are probably right :) Please register an issue and target 2.3.25 > as a fix version. > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > 2015-10-15 6:57 GMT+02:00 CRANFORD, CHRIS <chris.cranf...@setech.com>: > > In a rece

Spring BeanPostProcessor called twice for Struts managed beans

2015-10-14 Thread CRANFORD, CHRIS
In a recent BeanPostProcessor implementation, I noticed our logic was being invoked twice in both the before and after initialization callbacks for struts constructed objects like actions, interceptors, etc while normal constructed Spring beans via component scanning were only being invoked

RE: Get single value from a row with displaytag and struts 2

2015-06-22 Thread CRANFORD, CHRIS
Looking back there was one slight typo in my example: display:table name=notifications uid=tableListUid display:column s:form action=acknowledgeDocumentNotification s:hidden name=documentId value=%{#attr.tableListUid.documentId}/ s:submit key=button.submit/ /s:form

RE: Get single value from a row with displaytag and struts 2

2015-06-15 Thread CRANFORD, CHRIS
It sounds to me like you're submitting the row object rather than the ID of the object for which you want to operation upon. The following example should work: display:table name=notifications uid=tableListUid display:column s:form action=acknowledgeDocumentNotification s:hidden

RE: Problem using TypeConverters with SelectTag

2015-04-30 Thread CRANFORD, CHRIS
Was this part of the fix in WW-4427? -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Tuesday, April 28, 2015 8:30 AM To: Struts Users Mailing List Subject: RE: Problem using TypeConverters with SelectTag Version 2.3.20 GA -Original Message

RE: Problem using TypeConverters with SelectTag

2015-04-30 Thread CRANFORD, CHRIS
2015-04-30 15:22 GMT+02:00 CRANFORD, CHRIS chris.cranf...@setech.com: Was this part of the fix in WW-4427? Rather unrelated to your problem as tags don't use context to store values. I'm still thinking if your solution is right, I mean common to be used by any other or rather is your specific use

RE: Problem using TypeConverters with SelectTag

2015-04-28 Thread CRANFORD, CHRIS
GMT+02:00 CRANFORD, CHRIS chris.cranf...@setech.com: I have defined a simple POJO and type converter shown here: // Model POJO public class SiteSelection { private String type; private String label; private ListLong ids = new ArrayListLong

Problem using TypeConverters with SelectTag

2015-04-24 Thread CRANFORD, CHRIS
I have defined a simple POJO and type converter shown here: // Model POJO public class SiteSelection { private String type; private String label; private ListLong ids = new ArrayListLong(); /* getter setters */ } // Converter

Struts2 Rest/Non-Rest Actions

2015-03-10 Thread CRANFORD, CHRIS
I am trying to use the convention and rest plugins to create an action that supports both a RESTful API and a Non-RESTful API but it appears on the surface this isn't possible. The only way I have been able to get this to work in the same web application was to do the following: // Simple

Struts2 Portlets

2014-07-31 Thread CRANFORD, CHRIS
I currently have a Struts2 application deployed on Tomcat7 and I am looking to add some dashboard portlet functionality. I noticed that Struts2 has a porlet plugin but was curious whether it was possible to configure the WAR with an embedded portal container so that users continued to access

Struts2 Conversation/OptimisticLockException Handling

2013-11-15 Thread CRANFORD, CHRIS
Recently I was looking at a particular pattern we used and noticed that it exposed a bit of risk. In the past we generally queried our domain object, showed the user the form where they could maintain the record and within a hidden field, we maintained the version of that record. During the

RE: How to initiate the select tag with empty list

2013-08-02 Thread CRANFORD, CHRIS
You have to separate the notion of a use case where silently handling a null makes logical sense versus where it often would imply an error condition on the part of the developer. If the view expects an empty list, there is no quam in passing the value stack reference as a

s:select - option appears with no displayed value w/html brackets

2013-07-31 Thread CRANFORD, CHRIS
We just discovered that if a MapString,String gets passed to a select-tag where the entry's key/value pair are MULTIPLE/MULTIPLE that the option's value attribute contains MULTIPLE as one would have expected, but the body of the option-tag is empty as seen here option

Re: S2 custom authentication: remembering original request

2013-07-10 Thread CRANFORD, CHRIS
It should definitely be possible because what you described is out of the box functionality in Spring Security where their concept of intercepters is a filter. I would recommend that if you need a complete authentication and permissions checking functionality to look into Spring Security. We

Re: class has set member, how s:iterator to access it?

2013-07-02 Thread CRANFORD, CHRIS
In your example, make sure you have an exposed getter for partxrefs in the action. -chris Sent from my Verizon Wireless BlackBerry -Original Message- From: john lee sh_thorn_b...@yahoo.com Date: Tue, 2 Jul 2013 15:39:05 To: Struts Users Mailing Listuser@struts.apache.org Reply-To:

Re: Parameter problem with names using '[' and ']'

2013-05-10 Thread CRANFORD, CHRIS
List user@struts.apache.org Subject: Re: Parameter problem with names using '[' and ']' Hi Chris, Have you tried to use 2.3.14? For some reasons 2.3.12 was a bit impaired ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/9 CRANFORD, CHRIS chris.cranf...@setech.com: Up

Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14

2013-05-10 Thread CRANFORD, CHRIS
Exception after upgrading from 2.3.4 to 2.3.14 Thanks Chris! There was a security release between - 2.3.4.1 - have you tried it? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/8 CRANFORD, CHRIS chris.cranf...@setech.com: After some final digging, this appears to only

Parameter problem with names using '[' and ']'

2013-05-09 Thread CRANFORD, CHRIS
Up until 2.3.12, we've used forms that contained parameter names that used '[' and ']' and those forms worked in both devMode=true and devMode=false. It appears once 2.3.12 was released, this is no longer the case when devMode=true. When forms are submitted, I get the following stack trace

RE: OGNL Exception after upgrading from 2.3.4 to 2.3.14

2013-05-08 Thread CRANFORD, CHRIS
I should note that the setItems() method and ListString variable are on the model object exposed by the ModelDriven interface. -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Wednesday, May 08, 2013 9:25 AM To: Struts Users Mailing List Subject: OGNL

RE: OGNL Exception after upgrading from 2.3.4 to 2.3.14

2013-05-08 Thread CRANFORD, CHRIS
as to what is the culprit here. -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Wednesday, May 08, 2013 9:25 AM To: Struts Users Mailing List Subject: OGNL Exception after upgrading from 2.3.4 to 2.3.14 We have several forms in our Struts2 application that pass

Data Grids Excel Exports

2012-04-12 Thread CRANFORD, CHRIS
I have several queries that I perform against my SQL database to get a list of records and then iterate over them in a paginated way in JSPs. Presently, I have a JSP for each query's output because there are various different columns being shown depending upon the report; however I am wondering if

RE: Data Grids Excel Exports

2012-04-12 Thread CRANFORD, CHRIS
Excel Exports You might want to look into something like DisplayTag or JQGrid. (*Chris*) On Thu, Apr 12, 2012 at 7:24 AM, CRANFORD, CHRIS chris.cranf...@setech.comwrote: I have several queries that I perform against my SQL database to get a list of records and then iterate over them

Mobile Device Support

2012-01-13 Thread CRANFORD, CHRIS
I have been asked to investigate adding mobile device support to an existing Struts2 application. I was wondering if others could explain how you added mobile detection and view support for your Struts2 applications. Did you use an interceptor to set a session Boolean value and keyed your view

Action Tag Dynamic Parameters

2011-08-31 Thread CRANFORD, CHRIS
In a JSP, I need to be capable of doing something such as the following: s:action name=%{action.actionName} namespace=%{action.nameSpace} executeResult=true flush=false s:iterator value=action.parameters s:param name=%{name} value=%{value}/ /s:iterator /s:action Unfortunately it does not

Dashboard Widgets

2011-08-17 Thread CRANFORD, CHRIS
I have designed a number of KPI and informational charts and have rendered these using my chart library using simple action calls. The next phase is to design a dashboard like screen where the user can select particular KPI or information charts and have them placed on the dashboard, rearranged

Where's ideal for this logic?

2011-08-09 Thread CRANFORD, CHRIS
I have several actions that instantiate a business service to query KPI statistics from our database. The KPI statistics are gathered using projection-based Hibernate queries on several domain entity objects. We are representing the KPIs in the view using a jQuery-based chart library. Does it

OGNL context lookup

2011-08-08 Thread CRANFORD, CHRIS
I have a JSP page where I need to iterate over a list of strings and for each string, I need to query the OGNL stack and get the value that string name represents followed by adding the name/value pair to a URL. I thought something like the following would work but it doesn't. Can anyone help?

Struts2 with Chart drill downs

2011-07-12 Thread CRANFORD, CHRIS
I am needing to find a way to integration JFreeChart with my Struts2 application to render image graphics with drill down functionality. I do believe the framework offers a way to create image maps for the graphics, but I haven't been able to find a way to get the ChartPlugin to support these so

File Upload Issue when Max Size Reached

2011-06-21 Thread CRANFORD, CHRIS
I am testing the Struts 2.2.3 built in file upload support and noticing that if I upload a file that exceeds my configured size of 20MB that the additional form parameters that are submitted with the upload are lost. Can anyone else confirm they you're experiencing this problem? Ultimately I need

RE: JSON ModelDriven

2011-06-03 Thread CRANFORD, CHRIS
This particular case is somewhat unique. It is a password reset screen and in this case, the model is a User object that is being updated. Depending on the selections made by the administrator in the password options screen, the User entity is either updated with a temporary password

JSON Result Behavior with Struts 2.2.3

2011-06-01 Thread CRANFORD, CHRIS
I recently upgraded to Struts 2.2.3 and noticing that result types of JSON are not behaving the same way as they did before. For example, the following action is setup: --- Action Class --- package com.setech.dw.repair.web.ajax; public class StatusAction implements ActionSupport { private

RE: JSON Result Behavior with Struts 2.2.3

2011-06-01 Thread CRANFORD, CHRIS
their modiciation to use invocation.getStack().getContext().put(myObj,x); The expected results work as intended. Chris -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Wednesday, June 01, 2011 11:14 AM To: Struts Users Mailing List Subject: JSON Result

JSON ModelDriven

2011-06-01 Thread CRANFORD, CHRIS
From what I have read; it appears that for an action that implements the ModelDriven interface that the JSON result type is going to attempt to serialized the model object to the JSON stream rather than the action. Is there anyway to override this so that the action is what is returned instead of

Struts2 Validation w/ModelDriven

2011-05-19 Thread CRANFORD, CHRIS
When I implement the ModelDriven interface in my Struts2 actions; I follow your typical prepare() method as follows: public void prepare() throws Exception { if(id != null) { model = service.create(/* some parameters */); } else { model = service.lookupById(id); } } When a user

RE: Struts2 Validation w/ModelDriven

2011-05-19 Thread CRANFORD, CHRIS
Not that I am aware. The paramsPrepareParamsStack to my knowledge handles validation at the very end; so by the time validation has happened; the model has already been prepared by the prepare() method. -Original Message- From: Eric Lentz [mailto:eric.le...@sherwin.com] Sent:

RE: Struts2 Validation w/ModelDriven

2011-05-19 Thread CRANFORD, CHRIS
Eric - The framework will call getModel() multiple times before your validate() and execute() methods are invoked; and so by adding the create/lookup logic to getModel(); you would then have to wrap that block of code around a null check so that subsequent calls to getModel() would just return

Re: Retrieving values for which there is no specific getter

2011-05-11 Thread CRANFORD, CHRIS
Look at the ModelDriven approach - Original Message - From: Mitch Claborn mitch...@claborn.net To: user@struts.apache.org user@struts.apache.org Sent: Wed May 11 14:03:33 2011 Subject: Retrieving values for which there is no specific getter In Struts 2, if my Action class has a variable

ModelDriven Entity Update

2011-04-25 Thread CRANFORD, CHRIS
In a form; I have a select box defined as: s:select name=propertyOfModel.id list=myListOfValues listKey=id listValue=description / In the model I have the propertyOfModel annotated as @ManyToOne as follows: @ManyToOne(fetch=FetchType.LAZY)

s:push problem

2011-04-15 Thread CRANFORD, CHRIS
I am noticing a strange behavior on my development machine where a POJO when pushed onto the top of the stack using s:push is causing tags such as s:include not to work. In the action being executed, there is a property in the action called request which represents a POJO of type

RE: s:push problem

2011-04-15 Thread CRANFORD, CHRIS
: Friday, April 15, 2011 9:15 AM To: Struts Users Mailing List Cc: CRANFORD, CHRIS Subject: Re: s:push problem (I'm always nervous when business logic names something the same as something servlet-ish.) My first assumption would be that the pushed object is masking underlying properties. Don't

Spring Security

2011-03-31 Thread CRANFORD, CHRIS
If anyone here has experience with Spring Security, particularly with securing methods and domain objects with ACL or ACL-like implementations, I'd like to have an off-list discussion about some issues I am facing that I am in need to working through somewhat quickly. Feel free to drop me a note.

Data/Access Security in Struts2

2011-03-23 Thread CRANFORD, CHRIS
I realize this may not be directly related to Struts 2 but often times I have found that many of us take different approaches to solve a common problem and wanted to ping others as to your experience and implementations regarding data security, particularly row-level in a Struts 2 application that

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: 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

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
thinking you wanna rollback after an exception occured. maybe it's gonna help others. fr/ - Message d'origine De : CRANFORD, CHRIS chris.cranf...@setech.com À : Struts Users Mailing

RE: Re : Re : ModelDriven Hibernate Entities

2011-03-09 Thread CRANFORD, CHRIS
paramsPrepareParamsStack is run. (*Chris*) On Wed, Mar 9, 2011 at 11:04 AM, CRANFORD, CHRIS chris.cranf...@setech.comwrote: 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 : 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: Help with JQuery plugin

2011-02-17 Thread CRANFORD, CHRIS
Greg - In order to open the dialog, you simply need to initially define your dialog in your JSP. I prefer to use dynamic invocation of my dialogs, especially in the scenario where I need to pass dynamic values such as URL parameters to the dialog in the event I am editing multiple records, say

RE: generate SQL Hibernate Query using session

2011-02-17 Thread CRANFORD, CHRIS
Jerson - What I would likely suggest you consider is creating a DTO object that resembles your result from the SQLQuery. You can then use one of the stock Hibernate Transformers to convert the SQL results into instances of this DTO Bean and then you can return the beans to your view to iterate

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
I believe there are two JQuery plugins for Struts2 and I have been using the one from http://code.google.com/p/struts2-jquery/ for a little bit now. For very basic JQuery functionality I have not found any issues with this plugin; however when one wishes to do something more complex, I am finding

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
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. Can anyone explain why I am getting this error and if there is something I can do to avoid it so I can pass my objects back via a JSON

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: Struts2 - Image Approval Process

2011-02-03 Thread CRANFORD, CHRIS
I need to allow a user to log in to my struts2 web app and approve an image. They can only see their images pending approval and should not have access to the rest of the site. We implement this concept by simply using role-based security. Users who are allowed to approve or deny images or

RE: Struts2 - Image Approval Process

2011-02-03 Thread CRANFORD, CHRIS
On Thu, Feb 3, 2011 at 7:17 AM, eRobot wrote: Thats a good point Dave, I could create a separate app for this as they will not need to see my web app, they only need to see the image and click a radio button to approve or not. Would you recommend a login approach or some kind of

AJAX Sessions

2011-01-27 Thread CRANFORD, CHRIS
In our application upon a successful authentication, the HttpSession property setMaxInactiveInterval is set to whatever our application's idle time out is so that if this value is reached, the session is destroyed and upon the next request to the server, the user will be redirected to a login

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

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
I recently implemented an action using the ModelDriven interface. Since my Domain Object doesn't contain anything beyond properties that are mapped to columns in the associated table; it made it easy to pass the data between the DAO, Service, and View tiers. o Creation During creation,

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

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: Live Reload - Play framework

2010-12-10 Thread CRANFORD, CHRIS
It does appear to be an interesting way of doing it and it would certainly help on action class bloat, especially on actions where a form may contain lots of parameters. In some places we've actually reverted to a hack concept of ActionForms where our web page contains class.property variables

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

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? -

JFreeChart / Struts2

2010-10-07 Thread CRANFORD, CHRIS
I am having trouble determining how to best integrate JFreeChart to display the output image and allow the imagemap to be able to permit the user to drill down into another chart or data grid. In my struts configuration file I have: action name=chartdemo class=com.mro.reporting.charts.Demo

RE: How to structure a struts2 application

2010-09-24 Thread CRANFORD, CHRIS
What about a class hierarchy such as: ActionSupport BaseAction UserBaseAction UserCreateAction UserSaveAction I've personally tried the other approach where you would have something like: ActionSupport BaseAction UserAction Then you would use the method attribute on

s:action

2010-09-17 Thread CRANFORD, CHRIS
Can someone illustrate some good uses of the s:action tag? It's one tag that I haven't used in Struts2 but I suspect I could get a lot of utility out of it, particularly by modularizing my actions. - To unsubscribe, e-mail:

RE: Managing code between Action Class and JSP.

2010-09-10 Thread CRANFORD, CHRIS
As others indicated, it's a matter of using the Struts/JSTL tags. ul logic:iterate id=aFoo name=resultObjects libean:write name=aFoo property=propertyName//li /logic:iterate /ul The biggest difference between Struts1 and what what is posted below for Struts2 is how you pass

Add ValueStack Object In Interceptor

2010-08-13 Thread CRANFORD, CHRIS
I am trying to add an object to the ValueStack prior to invoking the action; however my action is not able to see the added value in the stack. What is wrong with this code? // Interceptor method @Override public String intercept(ActionInvocation invocation) throws Exception { ValueStack stack

RE: Add ValueStack Object In Interceptor

2010-08-13 Thread CRANFORD, CHRIS
, the ParametersInterceptor clears the ValueStack, so depending on your stack maybe that's what's happening. Cimballi On Fri, Aug 13, 2010 at 1:09 PM, CRANFORD, CHRIS chris.cranf...@setech.com wrote: I am trying to add an object to the ValueStack prior to invoking the action; however my

RE: URL authentication

2010-08-09 Thread CRANFORD, CHRIS
Pattern A: /unsecured/* Run whatever unsecured interceptors on these. This would not include the authentication interceptor or the allowed resource check interceptor. That's because these are considered OPEN to everyone. Pattern B: /secured/* Run the authentication check and the

Struts2 - Html to PDF

2010-07-23 Thread CRANFORD, CHRIS
Is it possible to extend the default ServletDispatcherResult to parse the HTML output and pass the result content to the browser as a PDF document? Or is there a better approach to doing this? What I want to be able to do is to allow easy creation of PDF documents from HTML content. Presently I

RE: Ajax Response - Array Objects

2010-07-16 Thread CRANFORD, 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 chris.cranf...@setech.com To: user@struts.apache.org Date: 15-07-2010 19:04 Subject: Ajax Response - Array Objects

Ajax Response - Array Objects

2010-07-15 Thread CRANFORD, CHRIS
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

Struts2/Ajax Help

2010-07-14 Thread CRANFORD, CHRIS
I have a form that uses the select tag to retrieve a list of values from my action when the JSP is rendered. What I would like to do is use the built in AJAX support so that I could populate another dropdown with a set of values that depends on that initial selection. Can someone post a simple

Custom TextProvider Help

2010-04-21 Thread CRANFORD, CHRIS
So I have been working on a practical solution that allows me to source my localization texts from a database table. I am using Spring 3.0.2 and Hibernate 3.5.1 along with Struts 2.1.8.1 for the implementation. I have my base action being wired with my TextService via Spring and then I have

Translation Properties

2010-03-26 Thread CRANFORD, CHRIS
I was curious if anyone else has come across a wonderful tool to help manage your applicationMessages translations for the various locales you use in your Struts applications? Our project continues to expand into other locales and trying to manage upwards of 15+ languages with over 3000 messages

property and expressions

2010-03-16 Thread CRANFORD, CHRIS
In Struts 2.1.6 I was able to write something like: s:property value=%{'document.forms[\\'removeNotification'+#formId+'\\'].submit();' }/ I was able to even include the attribute value's value in a s:checkbox onclick attribute and it rendered just fine; however after upgrading to Struts 2.1.8.1,

Struts2 Dojo Date Picker Locales

2010-03-11 Thread CRANFORD, CHRIS
We have an application where a user can override the language they login using by selecting it from a dropdown list on the login page. By doing so, I need to find a way that I can set the locale for my date time picker widget. How have others done this in the past when the browser's language and

  1   2   3   >