Re: Problem with tag

2009-11-14 Thread Burton Rhodes
do you wants to this? On 11/13/09, Oscar wrote: > Brian Thompson escribió: >> Try this: >> >> >> >> >> >> Calling without specifying a value will default to the top of >> the value stack which ought to be the current element in the list because >> you're inside the tag. >> >> -Brian

Re: Problem with tag

2009-11-14 Thread Burton Rhodes
I habe no idea what Martin just wrote means?! On 11/13/09, Martin Gainty wrote: > > //Assuming we have this Action > //A Simple Action Class which demonstrates placing information in a Map > public class GetEntryAction extends ActionSupport > { > private ArrayList stats_list=new ArrayList(30)

Re: Problem with tag

2009-11-14 Thread Burton Rhodes
all in good fun :) On 11/14/09, Martin Gainty wrote: > > wes ..i think someone that wants to take your class > > viel gluck > Martin > __ > Verzicht und Vertraulichkeitanmerkung > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Em

Re: Hibernate/Spring

2009-11-17 Thread Burton Rhodes
Oh well... always good to have some comic relief. On Tue, Nov 17, 2009 at 10:20 AM, Musachy Barroso wrote: > I tried for a last time, but no, he is here to stay. > > On Sun, Nov 15, 2009 at 11:15 AM, Musachy Barroso wrote: >> I tried to. I will try again. >> >> musachy >> >> On Sun, Nov 15, 2009

Re: Question about struts templates

2009-11-19 Thread Burton Rhodes
Use the 'simple' theme. It just prints the HTML tag. On 11/19/09, Oscar wrote: > Hi to all, i have a problem with struts 2 templates. The problem is that > when i put a s:submit in my jsp for example, it automatically creates a > div containing the submit and a new column in the table, and i don'

Re: Struts 2 redirect problem

2009-12-29 Thread Burton Rhodes
This probably isn't the answer you want, but an tag would probably do the trick. On 12/29/09, Rakesh K nair wrote: > > Hi > > I am Rakesh > > In my current project i need to display a different web application in a div > which is a part of my main web page.I am able to get only the html output >

[S2] Custom Type Converter - to String[] not converted??

2010-02-16 Thread Burton Rhodes
For some reason when I try to convert a html textfield value to a String[], the "MyClass-conversion.properties" file ignores the conversion. In this specific example, I am trying to convert a textfield that may have comma seperated values into a String[] of these values. For testing I changed the

Re: How to pass HTTPRequest between two JSP ?

2010-02-28 Thread Burton Rhodes
I think you may want to do a 'redirect' to the next action in your xml file. You pass the request from one action to the other. Not from jsp to jsp. On 2/28/10, Frederik Minatchy wrote: > Hello... > > Since a few days I am working with Struts 2. (2.1.6) > I am facing a big problem with HttpReque

Re: possible s:submit with parameter?

2010-03-05 Thread Burton Rhodes
Sounds like a good use for javascript , not a struts tag. On 3/5/10, lucas owen wrote: > Hi Struts users: > > I'm wondering if it is possible to pass a parameter inside a s:submit tag. > > I'm working with the following form (this is just a sketch) on a webpage, in > which I collect some user dat

Re: possible s:submit with parameter?

2010-03-07 Thread Burton Rhodes
Adam is correct. Every item filled out in the form is sent to your action. You can save these variables in the session or alternaitvely store them in each subsequent jsp with hidden form variables. You can use struts to display these properties/variables whereever you want. I think you are making y

Re: Regarding download for Hibernate!

2010-04-05 Thread Burton Rhodes
Uh... www.hibernate.org, java.sun.com ? Thanks you Captain Obvious! ;) On 4/5/10, reuben swaroop singh wrote: > Hi, > > > I wanna download and use Hibernate,spring,JEEE,ajax.Kindly suggest the > webpage where i can download Hibernate latest version? > > kindly forward this to appropriate mail

Re: listing bean onmouseover

2010-04-10 Thread Burton Rhodes
Sounds like a javascript solution to me. On 4/10/10, Søren Blidorf wrote: > Hi. > > > > I have a struts bean containing id, name, phone, email. > > > > What I want to do is listing id, and onmouseover display the rest of the > values of the bean in the same page without refer or refresh. > > > >

Re: listing bean onmouseover

2010-04-10 Thread Burton Rhodes
Without knowing the specific implementation its hard to say. But one way would be to preload all the data (and layout) in a div tag display:none. On mouseover display the div or insert the html of the div wherever you want on the page using JavaScript. Custom tag sounds overkill to me. Always mor

Re: s:iterator status doubt

2010-04-12 Thread Burton Rhodes
Does %{#stat.index} not work? On 4/12/10, lucas owen wrote: > Hi Struts users: > > I'm wondering if it would be possible to pass status.index attribute of > s:iterator to a javascript function. > Something like this: > > > > > > > > > "%{notificationID}"* onclick=*"javascript:markNotification

Re: Encoding URL for Struts2

2010-04-14 Thread Burton Rhodes
Are you just trying to "hide" the url parameteres that contain these attached urls? If so, just put them in the session. That way the user will never see them in the query string. If you are trying to mask the entire URL, I'm not sure that is doable or good practice. On Wed, Apr 14, 2010 at 8:2

[S2] Welcome Page as Action?

2010-04-14 Thread Burton Rhodes
I'm sure this answer is trivial, but I can't figure how to do a server-side forward to a Struts action from my welcome page (index.jsp). Currently I have index.jsp "redirecting" the user, but I would like to eliminate the roundtrip that a "redirect" imposes (I've had complaints from mobile users).

Re: [S2] Welcome Page as Action?

2010-04-14 Thread Burton Rhodes
t struts default action? >> What should we put in web.xml for welcome file? >> >> Krunal Dhamelia >> >> >> On Wed, Apr 14, 2010 at 6:00 PM, Brian Thompson wrote: >> >>> On Wed, Apr 14, 2010 at 4:22 PM, Burton Rhodes >>> wrote: &

Re: [S2] Welcome Page as Action?

2010-04-15 Thread Burton Rhodes
Haven't gotten it to work just yet. Just one of those minor enhancements that you can't justify spending an entire day on. I'll keep woroking at it though. Thanks all for your input and knowledge. On Thu, Apr 15, 2010 at 3:59 AM, Upasana Sharma wrote: > Hi > > I put these in my project and its

[S2] Velocity.properties file and Struts

2010-05-07 Thread Burton Rhodes
My struts web app seems to be ignoring my velocity.properties file. After googling quite a bit I am seeing bits of information that struts has it own velocity.properties file and it may be ignoring mine since it finds the struts version (complete guess). Curious if anyone has had issues with this

Re: [S2] Velocity.properties file and Struts

2010-05-07 Thread Burton Rhodes
I think I figured it out. Not struts related. I am using the singleton Velocity class which needs an explicit call to the properties file or properties need to be set in code before init(). In case anyone is interested, the code below did the trick Velocity.setPropert

Re: [S2] Velocity.properties file and Struts

2010-05-08 Thread Burton Rhodes
I don't use velocity with Struts. Just use it to generate a few reports and emails. I use JSP for the view. So I don't know :) On 5/8/10, Martin Gainty wrote: > > Burt > > you seem to have a great deal of velocity expertise > > will velocity work with with Struts2 to render pages? > http://veloc

Struts 2 and Spring 3??

2010-05-21 Thread Burton Rhodes
I think I saw a message a while back that commented about using Spring 3 (and Spring Security 3) with Struts 2.1.8 framework. Is this possible? If so, how? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For addition

Re: Struts 2 and Spring 3??

2010-05-24 Thread Burton Rhodes
g: > > http://static.springsource.org/spring-security/site/docs/3.0.x/reference/springsecurity.html > > http://java.dzone.com/tips/pathway-acegi-spring-security- > > It's much simplier than the old ACEGI configurations. > > /robert > > ----- Original Message - From: "Burton R

Re: Struts 2 and Spring 3??

2010-05-24 Thread Burton Rhodes
Musachy - I see your name all over that Struts-Spring plugin! What will it take to get a Struts-Spring 3.x plug-in out of you? 6-pack of beer? :) Serously though - any plans Spring 3.0 integration for Struts soon? On Mon, May 24, 2010 at 2:22 PM, Burton Rhodes wrote: > Hantsy - > It a

Re: Validating mutltiple uploads in a single action

2010-06-23 Thread Burton Rhodes
I think it would best to validate the type in a 'validate' function and make your action implement Validateable. It will give you greater control on the action/field errors that you present to the end user as well. Thanks, Burton On 6/23/10, john.vargh...@smartonline.com wrote: > Hi, >

Re: different validate's() for different actions in java class

2010-06-24 Thread Burton Rhodes
Depending on which method you call in your class you can just append that method name to the validate() method name. For example: public void validateEdit() { // Validate Stuff here } public void validateUpdate() { // Validate Stuff here } public void validate() { // Validate Stuff here

Re: Authorization Best Practices

2010-07-08 Thread Burton Rhodes
I say we start another thread to discuss more about this ducussion. On Thu, Jul 8, 2010 at 9:31 AM, Dale Newfield wrote: > On 7/8/10 10:17 AM, MB wrote: >> >> "Using Struts 2.x can we do authorization of client request, if yes >> what are the best practices" > > That answer has been given 3 times

Re: validation and form display problem

2010-07-11 Thread Burton Rhodes
That sounds like a classic 'prepare' problem. Take a look at the documentation on implementing Preparable in your action. You will want to initialize your backing beans inside the Prepare method in your action. That when 'input' is needed, your backing beans will be loaded. On 7/10/10, Jake Vang

Re: Struts2 - Html to PDF

2010-07-23 Thread Burton Rhodes
Absolutely look into PD4ML. I've tried several and its the best one I've found and most reliable. On 7/23/10, CRANFORD, CHRIS wrote: > 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 the

[OT] Friday Quiz - Geek or Hack?

2010-08-13 Thread Burton Rhodes
Hey it's Friday... Are you a geek or a hack? http://www.nerdtests.com/ft_cg.php ...and if any of you score over 90%, you need to get out more often! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional co

Struts 2-Spring Plugin with Spring 3 - Looks good so far...

2010-08-18 Thread Burton Rhodes
I have queried this list in the past about using Struts 2-Spring Plugin with Spring 3. A few commented that you've intergrated with no issue. While upgrading to 2.2.1, I decided to also try a Spring 3 upgrade as well. It seems to be working correctly. However, taking a closer look at the source

Re: Array Input Fields

2010-09-11 Thread Burton Rhodes
I don't think Struts is that 'smart'. I would look into creating your own StrutsTypeConverter. Very easy to do and you can specifically manipulate input variables from the form easily. On 9/10/10, adam pinder wrote: > > Using Struts 2.0.11 > > > > I have a jsp that creates elements like > > > >

[S2] How to add a custom parameter to an existing Struts UI Tag?

2010-10-09 Thread Burton Rhodes
I am trying to override a struts tag template (specifically ), and I can't figure out how to add a parameter to the tag. I have successfully overridden the template by copying "checkboxlist.tld" to my template/simple directory and all works well. Now I would like to add a parameter. It appears t

Re: [S2] How to add a custom parameter to an existing Struts UI Tag?

2010-10-09 Thread Burton Rhodes
x27;t really >>> work. >>> >>> Dave >>> >>> On Saturday, October 9, 2010, Maurizio Cucchiara >>> wrote: >>>> Do you need to insert a breaking string every 3 items? >>>> I think this approach is too much expansive in term of ti

Re: [S2] How to add a custom parameter to an existing Struts UI Tag?

2010-10-09 Thread Burton Rhodes
I ended up not having to create a new tag. I simply overrode the current template (template/simple/checkboxlist.tld) to do what I wanted. Essentially I just did what it says on this page entitled "Creating And Applying Your Own Themes For Struts 2 Tags": http://struts.apache.org/2.2.1/docs/strut

Re: [S2] How to add a custom parameter to an existing Struts UI Tag?

2010-10-09 Thread Burton Rhodes
xList.java, then > it will work, maybe. > I am not sure about that, I am also got the same problem, when creating > myself Tag. Good Luck. > > Regards, > Mead > > > On Sun, Oct 10, 2010 at 6:04 AM, Burton Rhodes wrote: > >> I ended up not having to create a n

Re: Spring 3 Upgrade

2010-12-05 Thread Burton Rhodes
I pinged this same question to the list a while back, and I think the only thing that will break is if you use the "Class Reloading" feature in the Spring Plugin. Knowing that this is a experimental debug feature, and not to be used in production environments, this should not be an issue for you.

Re: Asking about BigDecimal in Struts 2

2010-12-07 Thread Burton Rhodes
I always just used the following to display my BigDecimal values... package.properties file: format.money = {0,number,\u00A4###,##0} On Mon, Dec 6, 2010 at 9:29 PM, Yanto Bong wrote: > Hi Mead, > > thanks for the suggestion, but we want to keep the minimum changes on the > code. > if we conver

Re: Struts2-plugin install error

2010-12-07 Thread Burton Rhodes
You may have a corrupt file in your local repository. Try deleting the C:\Users\Balwinder\.m2\repository\org\apache\struts directory and try again On Tue, Dec 7, 2010 at 10:26 AM, Balwinder Kumar wrote: > I am getting below error while executing maven install. Any pointer how to > fix? > >

[S2.2.1] Struts Type Converter for "sub-model" objects not working?

2010-12-10 Thread Burton Rhodes
I am having issues trying to get a Type Converter to run when converting a field that is a "sub-object" of the main model. For example, I have a Contact class that contains a ContactLead class. I have an Action class that saves a new Contact and ContactLead at the same time. Originally, I set up

Re: [S2.2.1] Struts Type Converter for "sub-model" objects not working?

2010-12-11 Thread Burton Rhodes
not called. On Saturday, December 11, 2010, wrote: > Look at the bottom of your message and also the top. > 'contact.contactLead.income' evaluated > to '$123' and you do not have a method > com.afs.entity.ContactLead.setIncome([Ljava.lang.String;)] > > Scott &g

Re: [S2.2.1] Struts Type Converter for "sub-model" objects not working?

2010-12-13 Thread Burton Rhodes
urrencyConverter contact.contactLead.income=com.afs.web.converter.MyCurrencyConverter Thanks, Burton On Mon, Dec 13, 2010 at 1:09 AM, Lukasz Lenart wrote: > 2010/12/12 Burton Rhodes : >> I know. I don't have a setIncome(String) method. But I do have >> setIncome(BigDec

Re: [ANN] Struts 2.2.1.1 GA release available

2010-12-23 Thread Burton Rhodes
Looks like the "Release Notes" link for version 2.2.1.1 is broken on main page: http://struts.apache.org/download.cgi#struts2211 Currently: http://struts.apache.org/2.2.1.1/version-notes-2211.html Should be: http://struts.apache.org/2.2.1.1/docs/version-notes-2211.html On Wed, Dec 22, 2010 at 1:

[S2] Struts doesn't upload 0 byte files?

2011-01-17 Thread Burton Rhodes
For some reason when a user uploades a file to my Struts application that has a size of "0 bytes", the file is not copied to the work directory of my tomcat server. Is this a bug or a feature? Below is a stacktrace of when I tried to upload "test2.txt" with no data (0 bytes). Shouldn't Struts co

Re: [S2] Struts doesn't upload 0 byte files?

2011-01-18 Thread Burton Rhodes
or not? Or is this entirely unrelated to Struts? Any thoughts are appreciated. On Mon, Jan 17, 2011 at 5:46 PM, Burton Rhodes wrote: > For some reason when a user uploades a file to my Struts application > that has a size of "0 bytes", the file is not copied to the work > directo

Re: [S2] Struts doesn't upload 0 byte files?

2011-01-18 Thread Burton Rhodes
? I don't know. It's an interesting question. >> >> Paul >> >> On Tue, Jan 18, 2011 at 3:33 PM, Burton Rhodes wrote: >> >>> Paul & Maurizio - >>> >>> Point taken.  I know it's a rare case, but I do feel like an empty >&

Re: [S2] Struts doesn't upload 0 byte files?

2011-01-18 Thread Burton Rhodes
Struts file uploader actually gives me the fileName and contentType of the file via the form! There just no file in the work directory. In my opinion that is a bug. On Tue, Jan 18, 2011 at 3:46 PM, Burton Rhodes wrote: > Well that line actually only gets an error because the file > (emp

Re: [S2] Struts doesn't upload 0 byte files?

2011-01-19 Thread Burton Rhodes
Done! https://issues.apache.org/jira/browse/WW-3562 On Wed, Jan 19, 2011 at 1:02 AM, Lukasz Lenart wrote: > 2011/1/19 Burton Rhodes : >> Thanks for all the help.  I ended up "solving" the issue with a "if >> (file.exist())" check. >> >> Howeve

Re: Exception in hibernate3

2011-02-25 Thread Burton Rhodes
I recall having a similiar issue when moving to MySQL from MSSQL. I solved it by adding c3po.properties file to the classpath with the text below. It kept the connection alive with the database. # This property corresponds to the query run defined by the "hibernate.c3p0.idle_test_period" value c

Re: Struts2 list all the parameters

2011-03-05 Thread Burton Rhodes
Would do the trick for you? On Thursday, March 3, 2011, Kiwi209 wrote: > > > Thanks for your response, the problem is that I don't know all the > parameters set in the Action... So I would like to retrieve the list of all > the request parameters as name / value list. > > (sorry for my english b

Re: Exception in hibernate3

2011-03-05 Thread Burton Rhodes
Have u set up you logs to verify that your 'select 1' query is actually being run? On Saturday, March 5, 2011, Dave Newton wrote: > If this question is related to hibernate it'd be more efficient and > appropriate to ask on a hibernate-related list probably. > > Dave >  On Mar 5, 2011 3:32 AM, "a

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Burton Rhodes
Here is an old thread talking of this same issue. It appears some suggestions are given, but still 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, CHRI

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Burton Rhodes
form for the JSP, but all other data dispayed on the page would be reference by a "clean" version of Customer. I'm sure it can't be that simple, but trying to help. On Thu, Mar 10, 2011 at 7:39 PM, Burton Rhodes wrote: > Here is an old thread talking of this same issue.  I

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-11 Thread Burton Rhodes
d > takes place right after the clearing of my entity manager.  Now the audit > service doesn't persist any pending changes from my action environment. > > Anyone see any flaws or issues with this?  So long as my action is making a > single call in my execute() method t

Re: Data/Access Security in Struts2

2011-03-23 Thread Burton Rhodes
IMHO, if Spring can solve all the security requirements you need, I would stick with one technology for security. Adding another layer of security with another technology (e.g. Hibernate) *may* complicate code maintainability. I have not delved into Hibernate security, but "keep it simple stupid"

[S2] Collections Validation (For Dynamic Form Fields)

2011-03-24 Thread Burton Rhodes
I am trying to think through creating a page that allows the users to dynamically add "phone" form fields for a "contact" (Contact model has a collection on Phone objects). The method is similiar to this example: http://www.quackfuzed.com/demos/jQuery/dynamicField/generalUse.cfm Where I am havin

Re: how to Generate Validation.xml file

2011-05-02 Thread Burton Rhodes
Good luck on your interview! :-) On Monday, May 2, 2011, Dave Newton wrote: > On Monday, May 2, 2011, vijay333 wrote: >> http://struts.1045723.n5.nabble.com/file/n4364557/untitled.bmp > > Can't actually see the text that causes the error. (Personally I've > never had great luck with Eclipse and

Re: How to allow to accept dynamic src image file?

2011-05-30 Thread Burton Rhodes
You can override the freemarker template to do this. It's fairly easy. Just look for the submit tpl file, copy it a templates dir, and modify it to accept 'src' parameter. There are examples of how to override struts templates by googling it. On Monday, May 30, 2011, Emi Lu wrote: > Hello list, >

How to set a List using JSON plugin?

2011-06-04 Thread Burton Rhodes
I am trying to do something incredibly simple and for some reason I cannot get the JSON plugin to work. Below are a few code snippits. Can any tell me why I get an error when trying to set a List when using the JSON plugin? Do I need a converter for this? Or am I missing somthing simple? // Tes

Re: How to set a List using JSON plugin?

2011-06-04 Thread Burton Rhodes
ss the data parameter in html instead of json: >  data: "ignoreTaskIds=1&ignoreTaskIds=3" > > On 4 June 2011 17:20, Burton Rhodes wrote: >> I am trying to do something incredibly simple and for some reason I >> cannot get the JSON plugin to work.  Below are a fe

[S2] Random java.lang.reflect.InvocationTargetException and java.lang.NullPointerException error??

2011-09-06 Thread Burton Rhodes
I was wondering if anyone can help track down this error that I'm getting. Unfortunately, I cannot reproduce the error with any consistency - just sort of appears to happen randomly. My debug log & stack trace is below. It happens only when a user submits this one form that may (or may not) cont

Re: [S2] Random java.lang.reflect.InvocationTargetException and java.lang.NullPointerException error??

2011-09-06 Thread Burton Rhodes
uto routed to a login screen and will not allow the action to be reached. On Tue, Sep 6, 2011 at 4:06 PM, Chris Pratt wrote: > Expired session maybe? >  (*Chris*) > > On Tue, Sep 6, 2011 at 1:39 PM, Burton Rhodes wrote: > >> I was wondering if anyone can help track down

[S2] How to override an interceptor in the default stack?

2011-10-04 Thread Burton Rhodes
I would like to override/extend the existing "exception" interceptor in the default stack to log a few more items when an exception occurs. However, all the solutions I have found require you to redfine the default stack. (See Final Thoughts on this page: http://markjgreene.wordpress.com/2009/01/

[S2] Displaying user entered values after failed type conversion while using getText()?

2011-11-16 Thread Burton Rhodes
I am having an issue with displaying the original value entered on a form after failed type conversion.  This "bug" is caused by my use of getText() in the form value fields. I'm curious how one solves this issue for making sure the field is formatted correctly upon display, but also making sure t

'Best' Struts Development Envirnoment?

2012-01-24 Thread Burton Rhodes
I think this has been addressed before on this list, but I am wondering what you guys have found is the best environment to develop Struts. Currently I use Eclipse Indigo and don't really see any 'good' plugins. Since I use the XML method rather than annotations to map my actions, I find myself sc

Re: 'Best' Struts Development Envirnoment?

2012-01-24 Thread Burton Rhodes
ebugger > - JPQL console > > -Wes > > On Tue, Jan 24, 2012 at 12:10 PM, Burton Rhodes > wrote: >> I think this has been addressed before on this list, but I am wondering >> what you guys have found is the best environment to develop Struts. >> Currently I use Eclipse

How to organize "regular" Actions and "ajax/json" Actions

2012-06-08 Thread Burton Rhodes
I have a web application that originally mapped only one action per page (for the most part). Little by little it's grown to incoporate ajax/json actions (using Struts json plugin) that populate different parts of pages or update the database. My question is how best to organize these new actions

Re: How to organize "regular" Actions and "ajax/json" Actions

2012-06-08 Thread Burton Rhodes
separates > them from what they actually are. > > I'm not sure what is meant by "spanning multiple pages"; in general > wouldn't they still be associated with specific data types, or > functionality? > > Dave > > On Fri, Jun 8, 2012 at 10:03 AM, Burto

Re: Camel Case Package Names

2012-09-08 Thread Burton Rhodes
Dave, if you could please post your '2Girls1Cup' package that would be great. On Saturday, September 8, 2012, Dave Newton wrote: > This doesn't seem to be Struts-related at all. > > In any case, as Bruno says, of course camelCase package names are > *allowed*. > > If the classes exist as files on

Re: Header "overflow" on redirectAction

2012-12-29 Thread Burton Rhodes
I think I got an answer here. Unforutnately, not the one I wanted to hear http://grokbase.com/t/struts/user/084r2f1npk/redirect-action-parameters-via-post On Fri, Dec 28, 2012 at 10:37 PM, Burton Rhodes wrote: > I am running into an issue in my development environment (maven jetty

Unable to change content-type with Interceptor?

2012-12-30 Thread Burton Rhodes
I'm not sure what I'm doing wrong, but I cannot for the life of me change the content-type of the response using an interceptor. My interceptor code is below. The example below seems a bit absurd, but eventually I will add code to change the content-type dynamically from "application/json" to "te

Re: Unable to change content-type with Interceptor?

2012-12-30 Thread Burton Rhodes
AM, Lukasz Lenart wrote: > 2012/12/30 Burton Rhodes : > > I'm not sure what I'm doing wrong, but I cannot for the life of me change > > the content-type of the response using an interceptor. My interceptor > code > > is below. The example below seems a bit abs

Re: Unable to change content-type with Interceptor?

2012-12-30 Thread Burton Rhodes
ntent-Type response header dynamically to either 'application/json' or 'plain/text' * according to what the request header identifies in the "Accept" header * * (this is to fix browser wanting to download the json response on an ajax submit) * * @

Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread Burton Rhodes
I am having issues setting nested parameters on an object using the json-plugin. I've created a basic example that I'm currently testing. When debugging at the "return SUCCESS" line, both the testValue and contactId variables are set correctly. The contact variable, however, is null. The relevan

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread Burton Rhodes
he contact firstName as "contact.firstName", so Struts > will invoke > > setContact(new Contcat()); > getContact().setFirstName("John"); > > -- JSON TEST SUBMISSION -- > $.ajax({ > ... other ajax settings ... > // manually insert data for testing > data:

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread Burton Rhodes
Actually, I just notice that if I use the jquery method serialize() as opposed to serializeArray() it works out of the box. On Tue, Oct 28, 2014 at 9:31 PM, Burton Rhodes wrote: > That's it... thank you! However, the docs mention that the JSON string > must be "well formed"

Tracking down a "StreamResult error"??

2014-11-12 Thread Burton Rhodes
I am having trouble tracking down an error we are experiencing on our production server. This happens very rarely, but every once in a while we will get flooded with 75+ error logs in about a 1 minute span with the errors below. Having trouble identifying which action and/or class is causing the

Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-28 Thread Burton Rhodes
I have a simple json action that searches for a Contact in the system. I am using a GET request with the following url: "ContactSearchJson.action?searchCriteria.searchStringContact=Doe&searchCriteria.categories=agent You'll notice I'm trying to set two variable in the object searchCriteria. Howe

Re: Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-29 Thread Burton Rhodes
actionErrors.*,actionMessages.*,fieldErrors.* On Fri, Nov 28, 2014 at 10:04 AM, Dave Newton wrote: > What does the action in question look like, specifically, stuff > related to the `searchCriteria` object? > > On Fri, Nov 28, 2014 at 10:29 AM, Burton Rhodes > wrote: >

Re: Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-29 Thread Burton Rhodes
; related to the `searchCriteria` object? > > On Fri, Nov 28, 2014 at 10:29 AM, Burton Rhodes > wrote: > > I have a simple json action that searches for a Contact in the system. I > > am using a GET request with the following url: > > > > > "Contac

Re: Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-30 Thread Burton Rhodes
rchJsonAction. > > 2014-11-29 17:51 GMT-05:00 Burton Rhodes : > > > Also, here is a partial version of the SearchCriteria.java object... > > > > package com.afs.service.search; > > public class SearchCriteria implements Serializable { > > > >private int u

[S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

2015-02-27 Thread Burton Rhodes
I am having a similar issue as it relates to the new excludedPackageNamePatterns in 2.3.20 (upgrading from 2.3.16.3). The following line [1] will not resolve with the excludedPackageNamePatterns default value, but it will resolve when I clear the constant in struts.xml. I am wondering why I am no

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

2015-03-03 Thread Burton Rhodes
te: > 2015-02-27 19:29 GMT+01:00 Burton Rhodes : > > I am having a similar issue as it relates to the new > > excludedPackageNamePatterns in 2.3.20 (upgrading from 2.3.16.3). The > > following line [1] will not resolve with the excludedPackageNamePatterns > > default value

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

2015-03-04 Thread Burton Rhodes
Lukasz - Probably should have mentioned that searchMangeerService.getPage().getLastPageNumber() returns an "int" On Mon, Mar 2, 2015 at 2:12 AM, Lukasz Lenart wrote: > 2015-02-27 19:29 GMT+01:00 Burton Rhodes : > > I am having a similar issue as it

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

2015-03-31 Thread Burton Rhodes
Lukasz - Apologies for the delay... Here is my logfile filtered for xwork2.ognl https://www.dropbox.com/s/t5u285gel0uu59m/log.ognl.txt?dl=0 Thanks! On Sat, Mar 7, 2015 at 12:40 AM, Lukasz Lenart wrote: > 2015-03-04 13:24 GMT+01:00 Burton Rhodes : > > Lukasz - Probably should have

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

2015-04-06 Thread Burton Rhodes
ok - I will get back to you On Fri, Apr 3, 2015 at 1:13 AM, Lukasz Lenart wrote: > No idea what's wrong, without a small working example I cannot help you :( > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > 2015-03-31 22:31 GMT+

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

2015-04-14 Thread Burton Rhodes
Lukasz - Below is a link to a small test project (maven) that demonstrates my issue. Hopefully it's something trivial. Again, thank you for investigating. https://www.dropbox.com/s/qurhklxwz4v82jx/afsTest.zip?dl=0 Thanks, Burton On Mon, Apr 6, 2015 at 6:15 PM, Burton Rhodes wrote: >

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

2015-04-20 Thread Burton Rhodes
o it must be named the same way in JSP (you are missing 'Service' suffix) > > searchManager.page.totalNumberOfElements: value="%{searchManagerService.page.totalNumberOfElements}"/> > > and now it works: > http://screencast.com/t/WmZ4S076J > > > Regar

S2 String Trim Interceptor?

2017-04-21 Thread Burton Rhodes
Since the invocation.getInvocationContext().getParameters().toMap() method is now deprecated, how would I refactor my String Trim interceptor to trim incoming parameters? The HttpParameters parameter objects are designed to be "immutable". Some posts online have suggested type converters, but see

Extending StrutsTypeConverter :: How to detect specific type of "Class toClass"?

2017-09-24 Thread Burton Rhodes
When extending the StrutsTypeConverter, is there anyway to figure out if the "toClass" is a List or a List? I have found that when converting data from a submitted webpage that has a value of a List in a single variable, the standard struts conversion fails. For example: display as . When the f

Re: Extending StrutsTypeConverter :: How to detect specific type of "Class toClass"?

2017-09-29 Thread Burton Rhodes
Sorry for the delay. I have upgraded to the newest version and everything seems to be working. Thanks! On Mon, Sep 25, 2017 at 2:34 AM, Lukasz Lenart wrote: > 2017-09-25 5:04 GMT+02:00 Burton Rhodes : > > When extending the StrutsTypeConverter, is there anyway to figure out i

How to put Spring object in Struts application scope on web startup?

2017-09-29 Thread Burton Rhodes
How do you put a Spring object into the Struts application scope Map on startup of a web application? I have 2 listeners that I thought would be the usual suspects, but have not had success yet. I have a ServletContextListener class but on the contextInitialized(ServletContextEvent event) method,

Re: How to put Spring object in Struts application scope on web startup?

2017-09-29 Thread Burton Rhodes
/> > > > * register the appropriate application listeners > > * add the @Scope variables to controllers > > -- > _ > Adam Brin > Director of Technology, Digital Antiquity > 480.965.1278 > > > O

Re: How to put Spring object in Struts application scope on web startup?

2017-09-30 Thread Burton Rhodes
...StrutsPrepareFilter > > > MYStrutsPrepareFilter > MYStrutsPrepareFilter > > > struts2execute > ...StrutsExecuteFilter > > > struts2prepare > /* > > > MYStrutsPrepareFilter &

Re: Extending StrutsTypeConverter :: How to detect specific type of "Class toClass"?

2017-09-30 Thread Burton Rhodes
7 at 10:56 AM, Burton Rhodes wrote: > Sorry for the delay. I have upgraded to the newest version and everything > seems to be working. Thanks! > > On Mon, Sep 25, 2017 at 2:34 AM, Lukasz Lenart > wrote: > >> 2017-09-25 5:04 GMT+02:00 Burton Rhodes : >> > When

Re: Extending StrutsTypeConverter :: How to detect specific type of "Class toClass"?

2017-10-01 Thread Burton Rhodes
es and found out that > following makes your example working: > ```jsp > > > value="%{isItemsFailSelected(#choice)}"/> > > ``` > > Hope these help! > Yasser. > > On 10/1/2017 6:57 AM, Burton Rhodes wrote: > > Well shoot - aft

Re: Extending StrutsTypeConverter :: How to detect specific type of "Class toClass"?

2017-10-01 Thread Burton Rhodes
uot;disabled"<#rt/> /> Thoughts? Any reason this would cause issues elsewhere? On Sun, Oct 1, 2017 at 1:37 PM, Burton Rhodes wrote: > Got it. I'll use that for now. Don't you think that is a bit of a hack? > Do you think this be fixed or reported as

Re: Extending StrutsTypeConverter :: How to detect specific type of "Class toClass"?

2017-10-02 Thread Burton Rhodes
Lukasz - yes. The checkbox.ftl was overridden using the technique you linked to. For my case, I just performed the "simple" theme modification. However, after looking at the other checkbox.ftl files - it appears they just include the /simple/checkbox.ftl file - so the code change is only required

Re: Extending StrutsTypeConverter :: How to detect specific type of "Class toClass"?

2017-10-02 Thread Burton Rhodes
Lukasz - I've created a fix in my fork of the struts project on GitHub. Should I still create the JIRA or just submit a pull request? Not sure about protocol here. Thanks, Burton On Mon, Oct 2, 2017 at 5:11 AM, Burton Rhodes wrote: > Lukasz - yes. The checkbox.ftl was overridden u

[S2] ExecuteAndWait Interceptor // Only re-submit token parameters on refresh?

2018-04-15 Thread Burton Rhodes
I have been getting "Bad Request" or "URL too long" errors on occasion for an email form that uses the execute and wait interceptor. I am using the to resubmit the form per the documentation. "/> However, the original form submits via POST and the meta tag uses GET which I believe is the source

  1   2   3   >