Re: s:fielderror not working in Java 8, WebSphere

2018-06-14 Thread Doug Breaux
On 2018/05/22 18:24:34, bre...@us.ibm.com wrote: > Struts 2.5.14.1, WebSphere 8.5.5.13, IBM Java 8 (level 1.8.0_161) on AIX. > > We have a JSP with a plain element that works without issue > when we switch WebSphere back to Java 7, but in Java 8 produces the following > error: > > 2018-05

Re: s:fielderror not working in Java 8, WebSphere

2018-05-29 Thread Doug Breaux
On 2018/05/24 14:42:55, Yasser Zamani wrote: > > But freemarker claims "Java method "AbstractCollection.size()" threw an > exception when invoked on LinkedHashMap$LinkedKeySet object "[]"; see > cause exception in the Java stack trace" and Java stack trace in JSP > exception says "Caused by: java

Re: s:fielderror not working in Java 8, WebSphere

2018-05-24 Thread Doug Breaux
On 2018/05/24 06:42:48, Yasser Zamani wrote: > > It seems IBM JDK 8 has different behavior than Oracle or OpenJDK 8. Your > exception claims that JDK is not able to call abstract method size on > LinkedKeySet but here, Oracle and OpenJDK 8 are able to run: > > LinkedHashMap lhm = new Li

Re: s:fielderror not working in Java 8, WebSphere

2018-05-24 Thread Doug Breaux
On 2018/05/24 06:42:48, Yasser Zamani wrote: > > It seems IBM JDK 8 has different behavior than Oracle or OpenJDK 8. Your > exception claims that JDK is not able to call abstract method size on > LinkedKeySet but here, Oracle and OpenJDK 8 are able to run: > > LinkedHashMap lhm = new Li

Re: s:fielderror not working in Java 8, WebSphere

2018-05-23 Thread Doug Breaux
On 2018/05/23 19:30:40, Yasser Zamani wrote: > > Thanks. Sorry, for last one, could you check: > > java.util.Map lhm = new java.util.LinkedHashMap<>(); > Class c = lhm.getClass(); > java.lang.reflect.Method m = c.getMethod("keySet"); > Object ks = m.invoke(lhm)

Re: s:fielderror not working in Java 8, WebSphere

2018-05-23 Thread Doug Breaux
On 2018/05/23 18:38:19, Yasser Zamani wrote: > then reply back COPY MEs values please. Here I get: > > COPY ME 1: public abstract int java.util.Set.size() > COPY ME 2: 0 Looks the same: java TestForStruts COPY ME 1: public abstract int java.util.Set.size() COPY ME 2: 0 -

Re: s:fielderror not working in Java 8, WebSphere

2018-05-23 Thread Doug Breaux
On 2018/05/23 18:11:34, Yasser Zamani wrote: > Thanks. Could you also check if your IBM JDK 8 is able to run this: > > java.util.Map> lhm = new > java.util.LinkedHashMap<>(); > Class c = lhm.getClass(); > Method m = c.getMethod("keySet"); > Object ks = m.invoke

Re: s:fielderror not working in Java 8, WebSphere

2018-05-23 Thread Doug Breaux
On 2018/05/23 15:38:51, Yasser Zamani wrote: > > Could you check with latest version of IBM JDK 8? And are you maybe able > to check also with Oracle and OpenJDK 8? This is the latest IBM JDK 8. Or at least the latest that works with our version WebSphere, but it's very recent. The build date

Re: s:fielderror not working in Java 8, WebSphere

2018-05-23 Thread Doug Breaux
On 2018/05/23 06:07:05, Lukasz Lenart wrote: > You mean ? There is no tag. Did you > try to use the latest Freemarker version? Yes, sorry. I did not try the latest Freemarker, I'm using what is packaged with Struts (min-lib.zip). Which, even at the very latest 2.5.16, is apparently 2.3.2

Re: Struts2 documentation and Stack Overflow

2016-08-31 Thread Doug Erickson
Stack Overflow Documentation isn't meant to duplicate existing documentation. It's intended to provide missing documentation and compensate for poor documentation. So, copying current documentation to SO is definitely not in line with their goals. It *could *be a place to create better documentat

Confusion on Security Bulletin fix versions

2016-04-26 Thread Doug Erickson
security updates for 2.3.20 and 2.3.24? How long will they be supported? Thanks for the help! Doug

Re: synchronization problem

2016-04-09 Thread Doug Erickson
The code you've shown won't allow simultaneous executions of the DAO method. Either you've left some important details out of the sample, or you have other code accessing the DAO. This has nothing to do with Struts. The synchronization is implemented in lower layers. > On Apr 9, 2016, at 8:11

OGNL upgrade in 2.3.28 breaks expressions

2016-04-06 Thread Doug Erickson
" of OGNL 3.0.13 that I will be missing out on? I appreciate any advice or explanation that is offered. Doug

Re: [S2] DEBUG NPE

2009-09-08 Thread doug Shi
Hi Ken, I encountered the same problem. Did you find the solution yet? Thanks Doug - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Struts 2.1.6 Test Examples

2009-05-13 Thread Doug Pham
Hi All, In the main page one of the bullet point is: Easy-to-test Actions - Test Struts2 Actions directly, without resorting to mock HTTP objects. I would love to see a few examples of these. Cheers, Doug

Re: Any hint of JQuery on struts2 tutorial, thanks!

2009-04-29 Thread Doug Pham
g S2, Hibernate & Sitemesh which is doing OK for me.  Hopefully, you have some unit testing setup and strategy as that is my main weakness. Cheers, Doug --- On Tue, 4/28/09, Wes Wannemacher wrote: From: Wes Wannemacher Subject: Re: Any hint of JQuery on struts2 tutorial, thanks! To: "

Unit Testing Struts 2 Action

2009-01-17 Thread Doug Pham
Hi All,     I am putting together Struts 2, Hibernate & Sitemesh.  Where can I find information on how to unit test my new application actions? Thanks, Doug

Validation

2008-06-22 Thread Doug Pham
I have an action that have multiple methods that I mapped to.  Only one action that I need validation for, the rest I don't need.  Where can I get information to set this up or how do I set it up using the XML file? Thanks, Doug

Re: Using Struts2 Template

2008-06-22 Thread Doug Pham
Dave, Do you have to add anything to the web.xml file or what libraries to include.  If I am using Sitemesh, anything different I have to do? Doug Pham --- On Sun, 6/22/08, Dave Newton <[EMAIL PROTECTED]> wrote: From: Dave Newton <[EMAIL PROTECTED]> Subject: Re: Using Struts2

Using Struts2 Template

2008-06-22 Thread Doug Pham
Hi All, Do I have to include anything special to use the Freemarker templates? Thanks, Doug

Re: tomcat/struts ---> flash/.swf >> hang problem

2008-05-08 Thread Doug Lochart
John, Install Live HTTP Headers / Header Monitor plugin into Firefox and then watch the HTTP traffic between your browser and the server. Your answer will most likely be there. My assumption is that the MIME Type .swf is not enabled in your Tomcat but that is just a wild guess. regards, Doug

Re: Strange behavior: Trying to implement saveToken() in display actions.

2008-04-02 Thread Doug Lochart
On Wed, Apr 2, 2008 at 2:37 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Doug Lochart <[EMAIL PROTECTED]> wrote: > > > --- Martin Gainty <[EMAIL PROTECTED]> wrote: > > > > Is there any reason (other than political) why you are using 1.3.8 > >

Re: Strange behavior: Trying to implement saveToken() in display actions.

2008-04-02 Thread Doug Lochart
he same JSP. Hope I made it more clear. thanks for your time Doug > > > > - Original Message - > > From: "Doug Lochart" <[EMAIL PROTECTED]> > > To: > > Sent: Wednesday, April 02, 2008 6:43 AM > > Subject: Re: Strange behavior: Try

Re: Strange behavior: Trying to implement saveToken() in display actions.

2008-04-02 Thread Doug Lochart
what I have done looks like it should work. Does anyone have any ideas? regards, Doug Lochart On Tue, Apr 1, 2008 at 2:02 PM, Doug Lochart <[EMAIL PROTECTED]> wrote: > I am trying to implement a pattern so that I can use struts tokens to > help prevent double submission. I seem t

Strange behavior: Trying to implement saveToken() in display actions.

2008-04-01 Thread Doug Lochart
m doing wrong or why it is working this way. Please let me know if I need to supply any more supporting documents. thanks Do

Latest Quickstart & Sitemesh

2008-03-13 Thread Doug Pham
Is there any special settings I need to do to fix this problem? Thanks, Doug __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: Quickstart Example

2008-03-11 Thread Doug Pham
I jumped the gun too quick on this one. I did get it to work, but it prevent the ajax portion to work. At least I know it works, I'll investigate on the struts ajax issue separately. Thank You, Doug Doug Pham <[EMAIL PROTECTED]> wrote: Hi All, I am experimenting with the

Quickstart Example

2008-03-11 Thread Doug Pham
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) . . Th

help integrating struts and spring 2

2006-10-25 Thread Doug Tangren
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Doug Tangren [EMAIL PROTECTED]

RE: Select first in Options list

2005-10-10 Thread Doug Thomas
o? Or, does this have to be done at the server in the Action class? Rajasekhar, If no option is SELECTED, then no default is specified. It does NOT default to the first option in the list. Doug -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, October 10, 20

Select first in Options list

2005-10-10 Thread Doug Thomas
n you want selected, by name. Any ideas on how to do this? Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Accessing request attributes

2005-10-07 Thread Doug Thomas
I can get an HTTP request parameter via bean:parameter. How do I get a request attribute using the Struts taglib, without resorting to JSP scriplets? Doug Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: logic:redirect w/ query string

2005-10-04 Thread Doug Thomas
quot;params" /> Error message: "Define tag can contain only one of name attribute, value attribute, or body content" Any suggestions? Thanks, Doug -Original Message- From: Kishore Senji [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 2:29 PM To: Doug Thomas

RE: logic:redirect w/ query string

2005-10-03 Thread Doug Thomas
Please bear with me - I'm new to struts. I've been to the link provided by Kishore, but this implies I have to obtain my parameters from a Java bean. I want to create the message in my JSP, with i18n, similar to the following: And without the use of scriplets, as in: <% String myMsg = "Server

logic:redirect w/ query string

2005-09-30 Thread Doug Thomas
is the question. Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Validation Rules method not found

2005-08-12 Thread Doug Thomas
tion error, rather than a coding error. Thanks. Doug Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Redirect error: Browser or my code?

2004-09-21 Thread Doug
Bill Siggelkow wrote: Cool -- I got this error the other day when I created a filter -- mapped to /* -- that did a redirect to another page in my app -- can you guess the result? An HTTP Infinite Loop! Håkon T Sønderland wrote: I'm getting a curious error when I try to navigate in the browser (

Re: Reloading Application.resources (Again)

2004-07-26 Thread Doug
ext ctx = getServlet().getServletContext(); ctx.setAttribute(messageResourcesKey, resources); return mapping.findForward("next"); } } Doug wrote: Yes, I know this has been asked before, and I know it's not a base capability. However, someone posted this solution several

Re: Reloading Application.resources (Again)

2004-07-23 Thread Doug
Anyone? Doug wrote: Yes, I know this has been asked before, and I know it's not a base capability. However, someone posted this solution several months ago, which seems reasonable to me. Can anyone comment on whether there's any reason not to use this approach? <http://marc.the

Reloading Application.resources (Again)

2004-07-21 Thread Doug
struts-user&m=107880611624569&w=2> MessageResourcesFactory factory = MessageResourcesFactory.createFactory(); MessageResources resources = factoryObject.createResources(nameOfMessage); ServletContext ctx = getServlet().getServletContext(); ctx.setAttribute(Globals.MESSAGE

Re: struts 1.1 and session handling

2004-04-15 Thread Doug
How about servlet filters instead? We've started using them for things we want to handle for all URLs, outside of the normal application logic, including session timeout. Dean A. Hoover wrote: I am using struts 1.1 and tomcat 5 for an application. I am also using DynaValidatorForm for validati

Re: where values have embedded quotes

2004-03-29 Thread Doug
So I'll head to BugZilla, I guess. Doug Colm Garvey wrote: It might not be sexy, but a fast solution would be to use something else instead of quotes e.g. ^ or | and then use a small Javascript replace function to write out the text correctly? Colm -Original Message- From: Doug [m