Re: New warning message appearing with version 6.3 - SecurityMemberAccess - Access to non-public ... is blocked!

2023-12-16 Thread Dale Newfield
Unrelated to your question, but why do you create redundant maps every time your static getter method is called? (And note they're mutable.) You can eliminate all that syntax, remove the getter side-effects, and add the safety of immutability with Lombok and the Map static constructors:

Re: Issue with "Hello World Using Struts 2"

2023-12-08 Thread Dale Newfield
You've already got three breadcrumbs to follow: First, make sure this is a valid path, that the file permissions allow the file to be opened, and look at what's on line 7 (maybe specifically column 6)? > [Fatal Error] log4j2.xml:7:6: The processing instruction target matching > "[xX][mM][lL]" is

Re: Issue with ExecuteAndWait when using Spring Session (Redis)

2023-09-24 Thread Dale Newfield
alable/simpler; less expensive to build/launch/operate/etc.). YMMV. -Dale > On Sep 23, 2023, at 9:52 PM, Dale Newfield wrote: > > If it runs again then look at the logic where it's gotta decide whether this > is the initial call or if the job is already running and this

Re: Issue with ExecuteAndWait when using Spring Session (Redis)

2023-09-23 Thread Dale Newfield
If it runs again then look at the logic where it's gotta decide whether this is the initial call or if the job is already running and this is just a status check. Is it looking at the request to figure that out? If so, and the expected info isn't found, walk the data path to figure out where

Re: Urgent and priority help on Struts 1.3 upgrade to Struts 6.0

2023-06-04 Thread Dale Newfield
Original Message- > From: Don Brown > Sent: Sunday, June 4, 2023 11:31 AM > To: Dale Newfield > Cc: Struts Users Mailing List ; > user-ow...@struts.apache.org; user-...@struts.apache.org; > user-i...@struts.apache.org > Subject: Re: Urgent and priority help on Struts 1

Re: Urgent and priority help on Struts 1.3 upgrade to Struts 6.0

2023-06-03 Thread Dale Newfield
Am I the only one that finds at least some humor in one sentence that includes both "Struts 1" and the word "urgent"? :-) -Dale PS: I would guess, based on transitive dependencies, if nothing else, that anything still based upon struts1 is rife with vulnerabilities. I agree it probably

Re: OFF TOPIC: Introduction

2019-12-05 Thread Dale Newfield
On Dec 5, 2019, at 8:58 PM, Zahid Rahman wrote: > > I dislike the concept of Javadoc for same reason that documents are > generated from the code which flies in the face of best software > development practice as I understand it. Are well written javadoc on a Java Interface a reasonable

Re: How to avoid ognl exception.

2013-11-10 Thread Dale Newfield
And/or add no-op setters in your actions. -Dale On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote: Set dev mode false and this shd go Sent from BlackBerry® on Airtel -Original Message- From: Yaragalla Muralidhar yaragallamur...@gmail.com Date: Sun, 10 Nov 2013 21:50:03

Re: How to avoid ognl exception.

2013-11-10 Thread Dale Newfield
Yaragalla. *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/* On Sun, Nov 10, 2013 at 9:54 PM, Dale Newfield d...@newfield.org wrote: And/or add no-op setters in your actions. -Dale On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote: Set dev mode false and this shd

Re: is there a way to get action name in the execute method?

2013-09-29 Thread Dale Newfield
For the benefit of others in the future searching archives of this list for the answer to the same question, would you please describe your scenario and solution in another post? -Dale On 9/29/13 2:03 PM, Yaragalla Muralidhar wrote: I got the answer. Thanks. *Thanks and Regards,* Muralidhar

Re: Apple sec breach.. Struts?

2013-07-31 Thread Dale Newfield
On Jul 31, 2013, at 9:25 AM, Dave Newton davelnew...@gmail.com wrote: I'm not convinced OGNL itself is the issue, but rather its unfettered access into internals. An intermediate, sandbox-y layer might resolve that. It's only partially what data ognl can fetch/modify, it's also what it can do.

Re: How to set the name parameter on a multiple s:select

2013-05-30 Thread Dale Newfield
On May 30, 2013, at 5:42 AM, Miguel Almeida mig...@almeida.at wrote: That's an alternative, yes. I do tend to prefer having the model objects in my actions though, to keep the number of objects to a minimum - it makes more sense to have a ListSomeObject objects than an Integer[] ids, but maybe

Re: How to set the name parameter on a multiple s:select

2013-05-29 Thread Dale Newfield
I would have a setter on my action class that takes an array of ids. Then the action does the appropriate lookups, and sets the hydrated objects on the appropriate models. You do recognize that the data you provided is ambiguous, though, right? Nothing you stated is sufficient to know *which*

Re: Localised text tag

2013-05-07 Thread Dale Newfield
It seems like an evaluation of a value, which could be bad, in fact a large security hole. What if that value were System.exit()? (I forget my ognl...I think you need fully qualified path and a hash or at or something to call static methods, but you get the point.) -Dale On May 7, 2013, at

Re: Redirecting to another action which is in another web context

2013-05-07 Thread Dale Newfield
It's just generating a URL and telling the browser to redirect there. Why should the scope (local/remote) matter? -Dale On May 8, 2013, at 1:38 AM, Sreekanth S. Nair sreekanth.n...@egovernments.org wrote: Hi Gang, I hope these all works only for those action which exist in the same web

Re: addActionMessage does not show message after redirect (struts2.2.3)

2011-07-12 Thread Dale Newfield
On 7/12/11 12:57 PM, stanl...@gmail.com wrote: what Struts/2 needs is a simple FlashScope that allows a request to last two life-cycles. Unfortunately most pages are a result of many requests (images, stylesheets, ajax requests, scripts, etc.), so that constant number (2, 7, 99, whatever)

Re: How to display data from database to JSP Page in Struts2

2011-07-10 Thread Dale Newfield
On 7/10/11 9:36 PM, Steven Yang wrote: some hints about Java naming convention 1. package names are all lower cases They're actually camelCase after the first word. Typically people figure out ways to keep each dotted component to one word to avoid that, though. -Dale

Re: How to display data from database to JSP Page in Struts2

2011-07-10 Thread Dale Newfield
On 7/10/11 9:56 PM, Dave Newton wrote: FWIW the Java tutorial states they're all lower-case. D'oh! I wonder where it was I found that advised otherwise all those years ago? In the interim I've written lots of code in violation. :-/ -Dale

Re: About StrutsTypeConverter

2011-07-07 Thread Dale Newfield
On Wed, Jul 6, 2011 at 5:47 PM, Jeff Black jeffrey.bl...@yahoo.com wrote: Whereas I am confused why the signature is not public T T convertFromString(Map context, String[] values, ClassT toClass).  Is this in scope of the effort someone described recently to Java5-ify the code base? What is the

Re: About StrutsTypeConverter

2011-07-06 Thread Dale Newfield
On Jul 4, 2011, at 12:27 AM, Vincent Lin vincent.lin...@gmail.com wrote: I am confused that why the signature of convertFromString is public Object convertFromString(Map context, String[] values, Class toClass) instead of public Object convertFromString(Map context, String value, Class

Re: Call execAndWait but got NullPointerException ?

2011-06-02 Thread Dale Newfield
You didn't add exec-and-wait, you replaced your entire interceptor stack with just the exec-and-wait interceptor. -Dale On Jun 2, 2011, at 3:35 PM, Emi Lu em...@encs.concordia.ca wrote: Hello, One action class to send emails to 50 users. Before action is done, I'd like to show a waiting

[OT] Re: Job postings

2011-05-26 Thread Dale Newfield
On 5/26/11 7:51 AM, Martin Gainty wrote: does'nt dale live down there? Thanks for thinking of me. The reason I've been scarce around these parts lately is that I finally had to get a real job at the end of last year, so I no longer have as much time to respond to questions here, and I'm no

Re: AJAX Sessions

2011-01-28 Thread Dale Newfield
On 1/27/11 9:28 PM, CRANFORD, CHRIS wrote: 2. Does HttpSession contain value holding time of last User request? No - Create one, store it in session, proceed Shouldn't that - LOGIN instead of proceed? -Dale - To

Re: OptionTransferSelect problem

2011-01-03 Thread Dale Newfield
On 1/3/11 10:01 AM, RogerV wrote: component will Will auto-select all its elements upon its containing form submision. but it's not doing that - I have to manually select the items in the right hand list to get the values returned when the containing form is submitted. The magic is all in:

Re: Calculate module of index in Struts2 iterator

2010-12-25 Thread Dale Newfield
On Dec 24, 2010, at 1:29 PM, JOSE L MARTINEZ-AVIAL jlm...@gmail.com wrote: Thanks for the advice!! I'll follow it. The best example I forgot to include is when you want to pass in to an attribute a string whose value is the same as the name of one of your action properties. foo=user can be

Re: Calculate module of index in Struts2 iterator

2010-12-24 Thread Dale Newfield
On 12/24/10 6:15 AM, JOSE L MARTINEZ-AVIAL wrote: s:if test=(#fieldNameStatus.index % 10 )==0x/s:if I guess I've not been around on this list much lately (darned work :-/ ). So my constant harping about this hasn't been so constant: I *really* advise people to always use %{} when

Re: web application response time is too large.

2010-12-23 Thread Dale Newfield
On 12/23/10 1:13 AM, manu.francis.mat...@accenture.com wrote: Thank you very much for explaining so clearly. One suggestion I don't think anyone here offered is running your application in a profiler to see where it's spending its time. I've found the one in NetBeans to be pretty good, and

Re: execAndWait Interceptor

2010-12-09 Thread Dale Newfield
On Dec 9, 2010, at 11:11 AM, stanl...@gmail.com wrote: Does anyone actually use this interceptor? Extensively. Any system that contains large amounts of data can have valid reasons for needing this, and not just for reporting. -Dale

Re: Struts - optiontransferselect - Triple

2010-11-02 Thread Dale Newfield
On 11/2/10 1:34 AM, Raghuveer Vellanki wrote: Is it possible to customize / Build optiontransferselect for three dropdown boxes With Triple List (3 List boxes with Left and Right buttons)? Look at the html and javascript that actually runs in the browser when you use this tag. It's pretty

Re: s:iterator get value to specific key

2010-11-02 Thread Dale Newfield
in Java you have two tools to get what you're asking for: Map has an entrySet() method returns a SetMap.Entry, each one of which has a getKey() and a getValue() method. The original map also has a get() method. So translating to ognl, you can iterate over map.entrySet(), and use top.key,

Re: REST and Web API

2010-10-28 Thread Dale Newfield
On 10/28/10 10:31 PM, Chris Pratt wrote: That coupled with looking at how Google FaceBook did things Careful. Read the agreements you signed to get those accounts and make sure that in reverse engineering their practices you're not violating that contract. If you're not careful they might

Re: referencing javascript files from (action) jsp file

2010-10-15 Thread Dale Newfield
On 10/15/10 4:12 AM, Li Ying wrote: I tried %{#request.getContextPath()}, but it don't work for some reason i don't know. #request is not the request object, it's a map containing the items in request scope. -Dale - To

Re: sx:datetimepicker

2010-10-10 Thread Dale Newfield
On 10/10/10 10:52 AM, cellterry wrote: It seems that I should turn to study jquery plugin. Or, as keeps being suggested (even by the authors of those plugins), just use raw jquery. -Dale - To unsubscribe, e-mail:

Re: ParentPackage Annotation

2010-09-25 Thread Dale Newfield
On Sep 25, 2010, at 7:33 AM, Jason Ferguson fergusonja...@gmail.com wrote: Can the @ParentPackage annotation accept more than one argument (i.e. both struts-default and json-default)? IIRC, json-default extends struts-default, so that shouldn't be an issue... -Dale

Re: additional onsubmit javascript validation

2010-09-23 Thread Dale Newfield
On 9/23/10 7:48 AM, Robert Taylor wrote: I'm not sure modifying the templates will work here. css_xhtml/form-validate.ftl contains: #if parameters.onsubmit?? ${tag.addParameter('onsubmit', ${parameters.onsubmit}; return validateForm_${parameters.id}();)} #else

Re: Struts 2.2.1 Problem

2010-09-22 Thread Dale Newfield
On 9/22/10 11:56 AM, Michelle Weeks wrote: If one key has a special character the whole Map is not set into the action. I'm guessing it's an encoding issue. Are these strings encoded in the resulting html? If the parameters are part of the URL (GET request) then they'll probably wind up

Re: order of plugin-struts.xml and struts.xml

2010-09-22 Thread Dale Newfield
On 9/22/10 12:35 PM, Josep García wrote: This does not seem to work as the load order is struts-plugin.xml first, then struts.xml. http://struts.apache.org/2.2.1/docs/plugins.html describes this strict ordering: struts-default.xml (bundled in the Core JAR) struts-plugin.xml (as many as can be

Re: additional onsubmit javascript validation

2010-09-22 Thread Dale Newfield
On 9/22/10 9:44 PM, Dave Newton wrote: I modified the templates http://struts.apache.org/2.2.1/docs/template-loading.html describes how you can override existing templates within your application. -Dale - To unsubscribe,

Re: Struts 2.2.1 Problem

2010-09-22 Thread Dale Newfield
On 9/22/10 1:58 PM, Michelle Weeks wrote: input type=text name=pagesMap['name/name'].key value=keyValue / And is that form submitted with GET or POST? Are any characters encoded in that submission? Are you certain that the pagesMap map isn't having .put(name%2fname, keyValue) called on it?

Re: Bizarre sporadic problem with streaming a stylesheet.

2010-09-21 Thread Dale Newfield
On 9/21/10 12:36 AM, Dave Belfer-Shevett wrote: LINK REL=StyleSheet href=getConfiguredStylesheet.action type=text/css It shouldn't matter, but the browser might be deciding something wonky based on the fact that that url doesn't end .css...you could either add css as an action extension or

Re: Bizarre sporadic problem with streaming a stylesheet.

2010-09-21 Thread Dale Newfield
On 9/21/10 12:02 PM, Martin Gainty wrote: to ask the unasked question..If Streaming is associated with media types such as audio or video How does one stream a stylesheet? I was assuming he just meant that he wanted to feed the output out from a stream, although you're right -- unless the

Re: Bizarre sporadic problem with streaming a stylesheet.

2010-09-21 Thread Dale Newfield
On 9/21/10 1:00 PM, Dave Belfer-Shevett wrote: You're returning no header information. That's not the case actually - the http headers are there (curl -i shows them). Is your request going directly to the app server on which this is running, or is some apache httpd/proxy/etc. in between

Re: [struts] Thanks! Works also with redirect actions...

2010-09-20 Thread Dale Newfield
On 9/20/10 12:30 PM, martinib wrote: action name=registrationMain class=somepackage.registrationAction result name=redirect type=redirectAction ${customActionRedirect}?${urlParams} true

Re: How to download a file without creating it on a server

2010-09-16 Thread Dale Newfield
java.io.SequenceInputStream might prove helpful to you here, as well. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Array Input Fields

2010-09-11 Thread Dale Newfield
input type=text id=user[1].name name=user[1].name value=smith size=20 / therefore i'd expect the params interceptor to make calls like getUser(1).setName(smith) for the above input field sent to the server but it doesn't set the value or error - the params interceptor debug shows the

Re: Managing code between Action Class and JSP.

2010-09-09 Thread Dale Newfield
On 9/9/10 4:12 PM, anjibman wrote: What I am really struggling in is I have processing result in the form of List of objects. What would be the best practice to send such list to JSP ready to grab. Best practice is to store it inside the action, and add a getter to your action that returns

Re: URL format advice

2010-09-06 Thread Dale Newfield
On 9/6/10 6:27 AM, jordi wrote: You can do that with wildcard mappings. I'm using Advanced wildcard mappings with regex... check it out http://struts.apache.org/2.x/docs/wildcard-mappings.html Especially if you couple that with the Url Rewrite Filter. http://www.tuckey.org/urlrewrite/ -Dale

Re: WG: Struts2 Dynamic Merge of two webform objects / join two objects in database

2010-09-06 Thread Dale Newfield
On 9/6/10 8:06 AM, Nicolas Kopp wrote: Sorry for interrupting again, but it seems that its even easier without the Scope plugin. What we did right now is just to implement preparable Which is why someone earlier suggested the params-prepare-params technique. It allows you to have lots of

Re: Avoid Phishing in Struts Applications plugin

2010-09-06 Thread Dale Newfield
On 9/6/10 11:42 AM, Oscar wrote: anti-phishing mehcanism into the application If I understand what people generally refer to as phishing, it's someone else making pages appear enough like yours to fool the customers, but with the submitted data going to a third party. As such, there's not a

Re: Avoid Phishing in Struts Applications plugin

2010-09-06 Thread Dale Newfield
Examples of why SiteKey really isn't sufficient: http://antivirus.about.com/b/2010/03/23/bank-of-america-sitekey-scam.htm http://www.aviransplace.com/2007/02/05/study-finds-bank-of-america-sitekey-is-flawed/ (As well as the fact that it's possible for a phishing site to use the same provided ID

Re: org.xml.sax.SAXParseException: The content of element type package must match

2010-09-02 Thread Dale Newfield
On 9/2/10 10:50 AM, Satheesh Kannan A B wrote: The content of element type package must match (result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exc eption-mappings?,action*). Means exactly what it says. With a package tag, all

Re: Struts2 REST plugin problems

2010-08-31 Thread Dale Newfield
On 8/31/10 1:04 PM, Rafael Taboada wrote: I have an struts2.0.14 app working well and I decided to migrate to struts2.1.8. Migration worked well. But when I tried to include rest plugin, my current urls to process some actions don't work. I have a http 404 error as a result. My goal is using

Re: Struts2 REST plugin problems

2010-08-31 Thread Dale Newfield
On 8/31/10 2:05 PM, Rafael Taboada wrote: Is there a chance to my traditional actions can co-exist with restful controllers?... If you're looking to have different parts of your url space get processed by different action mappers, the PrefixBasedActionMapper included in 2.2 might be what

Re: Struts2 REST plugin problems

2010-08-31 Thread Dale Newfield
On 8/31/10 3:15 PM, Rafael Taboada wrote: I migrated my app to 2.1 because I need to use restful plugin, didn't think in 2.2 because it was released just a month ago (i think) and i don't know if it is a good option in production environment. Theoretically any GA (General Availability) release

Re: Struts2 REST plugin problems

2010-08-31 Thread Dale Newfield
On 8/31/10 4:40 PM, Rafael Taboada wrote: I have in my struts.xml bean type=org.apache.struts2.dispatcher.mapper.ActionMapper name=pseudoRestful class=org.apache.struts2.dispatcher.mapper.Restful2ActionMapper/ constant name=struts.mapper.class

Re: Struts2 REST plugin problems

2010-08-31 Thread Dale Newfield
On 8/31/10 5:17 PM, Rafael Taboada wrote: But I'm having the same problem HTTP status 404 So it is failing to find any valid action mapping? What do your logs show? This might help you figure out what's going on: http://struts.apache.org/2.x/docs/config-browser-plugin.html My struts.xml

Re: json result type with struts 2.1.8.1

2010-08-27 Thread Dale Newfield
On 8/27/10 12:39 PM, chsekhar wrote: result name=success type=json/result I didn't really look at the details of your message because I've got to run, but why does that result have a body, instead of result name=success type=json/ -Dale

Re: NullPointerException while accessing request struts2

2010-08-26 Thread Dale Newfield
On 8/26/10 7:04 AM, Rohit wrote: Yes I have done that, it's not that every time I am getting the null pointer exception. It's happening randomly. First I'd track down the code in question and see just what objects are getting dereferenced on that line. If you have any problem that is not

Re: Interceptor - Dynamically Add Result Config to Action Config

2010-08-24 Thread Dale Newfield
The execAndWait interceptor used to do something like this for the wait result--I'd look there for how it works around the change requiring these be immutable. -Dale - To unsubscribe, e-mail:

Re: Any way to load resources in java.util.ResourceBundle

2010-08-24 Thread Dale Newfield
On 8/24/10 12:54 PM, Greg Akins wrote: On Tue, Aug 24, 2010 at 10:51 AM, akinsgreangryg...@gmail.com wrote: struts.xml constant name=struts.custom.i18n.resources value=com.fiserv.sourceone.ribs.common.bundles.DbResourceBundle / That constant has a String value. index.jsp s:text

Re: Performance issues

2010-08-19 Thread Dale Newfield
On 8/18/10 7:42 PM, Nathan Meeker wrote: Well, I added Javatemplate plugin: Has anyone figured out any way to use this selectively? Meaning on some portion of a site (certain .jsps, etc.) or just on tags using the simple theme (still using the freemarker implementation for non-simple tags)?

Re: getting label from property

2010-08-02 Thread Dale Newfield
On 7/28/10 2:16 PM, Ryan Beckes wrote: I'm working my way through properties and I'm kind of stuck. I have a properties file (package.properties) with a message entry... Index.message= Color ... I am able to pull this message via the s:text tag, so I know it's available in the value stack

Re: Can I access URL parameters within struts.xml using ognl ?

2010-08-02 Thread Dale Newfield
On 8/2/10 3:31 AM, colaru wrote: For me is not working. I want something like this: action name=mainContent class=com.integrationpath.mengine.webapp.action.ArticleAction method=list result name=success/themes/%{application_theme}/pages/production/mainContent.jsp/result

Re: Can I access URL parameters within struts.xml using ognl ?

2010-07-30 Thread Dale Newfield
On 7/30/10 3:42 AM, colaru wrote: Good question. Did you get a response, somehow? Is possible to use attributes from request, session or application in dynamic URL's? I'm interested in this.

Re: OGNL Qurey

2010-07-29 Thread Dale Newfield
On 7/29/10 9:50 PM, Zoran Avtarovski wrote: What I want to know if there is a way for OGNL to evaluate the expression represented by the string through recursion? I see no reason you can't get a reference to the ValueStack object from within OGNL and call the findValue() method to make that

Re: OGNL Qurey

2010-07-29 Thread Dale Newfield
On Thu, Jul 29, 2010 at 10:07 PM, Dale Newfield d...@newfield.org wrote: On 7/29/10 9:50 PM, Zoran Avtarovski wrote: What I want to know if there is a way for OGNL to evaluate the expression represented by the string through recursion? I see no reason you can't get a reference

Re: OGNL Qurey

2010-07-29 Thread Dale Newfield
On 7/29/10 11:23 PM, Zoran Avtarovski wrote: This sounds too easy, so I just want to clarify. From my action if I call findValue(myExpressionString) and it will use OGNL to evaluate the expression. Yes. To be more specific,

Re: Parse url parameter

2010-07-28 Thread Dale Newfield
On 7/29/10 12:02 AM, Franz Wong wrote: http://localhost:8080/myApp/action/myAction/user/name/Peter). I would like to map those parameters in the following way. class MyAction { private String searchType; // user private String searchMethod; // name private String searchData //

Re: performance issues with enabling rtexprvalue

2010-07-23 Thread Dale Newfield
On 7/23/10 11:26 AM, Scott Koenig wrote: I was wondering if anyone knew how great the performance optimization gains are in leaving runtime expression values disabled for assorted Struts tags, or where I could find some resources on the topic. It seems incredibly useful to be able to set a

Re: Absolute Path for result

2010-07-22 Thread Dale Newfield
On 7/22/10 3:40 AM, Amol Ghotankar wrote: Can't i directly give w/error.jsp w/error.jsp is a relative path. What happens if you specify /w/error.jsp? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: Absolute Path for result

2010-07-22 Thread Dale Newfield
On 7/22/10 10:59 AM, Amol Ghotankar wrote: So I can conclude if we give w/error.jsp it takes path relative to namespace. If we give /w/error.jsp it take absolute path from web content folder. This is true, but can be stated more generally, not related to struts: A path starting with / is

Re: REST and Non-REST actions

2010-07-20 Thread Dale Newfield
On 7/20/10 11:37 AM, Johannes Geppert wrote: you can get current release from here. http://people.apache.org/builds/struts/2.2.1/ Except that it's not a release, yet. It's currently just a build, and until the (currently ongoing) vote is concluded we won't know if it will become a

Re: lost URL parameters with s:param tag

2010-07-20 Thread Dale Newfield
On 7/20/10 11:48 AM, Emi Lu wrote: It seems that s:param does not work well when more than one s:param is assigned. I use multiple param tags inside url tags all over the place. It does work. I would suggest running your application inside a debugger to find out what exactly is not working

Re: Dispatch action calling a function multiple times depending on browser

2010-07-16 Thread Dale Newfield
On 7/16/10 1:06 PM, abhishek jain wrote: The dispatch action is calling some of the functions of the action class multiple times, it calls it twice for mozilla and single time in chrome. One common error that will appear to result in this behavior are images without a specified src, resulting

Re: Accessing scoped variables via s:property.../ tags

2010-07-14 Thread Dale Newfield
On 7/14/10 1:22 PM, mailtolouis2020-str...@yahoo.com wrote: https://cwiki.apache.org/WW/application-session-request-objects-in-jsp.html I think the doc need to update. Done, thanks: https://cwiki.apache.org/confluence/pages/diffpages.action?pageId=14052originalId=23332622 -Dale

Re: Struts2 or Struts1?

2010-07-09 Thread Dale Newfield
On 7/9/10 6:42 AM, Alvarito wrote: Does anyone knows what is the support and existing online documentation to work with Struts2 and Hibernate together? Matt Raible has put together quite useful documentation that goes along with his AppFuse tool that basically helps you kick start an

Re: Authorization Best Practices

2010-07-08 Thread Dale Newfield
This isn't your architecture review board. This is a mailing list supporting struts, just one of many components in your application. Not a single one of your questions relates to struts. -Dale - To unsubscribe, e-mail:

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Dale Newfield
On 7/8/10 9:44 AM, ch...@chrismiles.org wrote: Getting the resuling rendered JSP would be something tricky. And not what you want. You'd still have to go through that output and modify all the relative links to make them absolute, and you sure don't want to have any javascript or forms in

Re: Authorization Best Practices

2010-07-08 Thread Dale Newfield
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 in this thread: Spring Security. The best practices are to learn about architecture and security, which are completely independent

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Dale Newfield
On 7/8/10 10:37 AM, Robert Graf-Waczenski wrote: Yes, tricky indeed, but currently the only way to go. Not the only way. Just because you use jsp to render pages doesn't mean that's the only way to render them. You could render that page with freemarker or velocity (or, or, or) which can

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Dale Newfield
I'm pretty certain this is not a good idea, but it's a hack that's been floating in my head: If you use sitemesh, you could make a decorator that captures the full message, does something with it, then echoes it again. basically: c:set scope=request var=theFullMontydecorator:body//c:set

Re: Authorization Best Practices

2010-07-07 Thread Dale Newfield
On 7/7/10 7:04 AM, Amol Ghotankar wrote: Authorization will have two parts 1. decide which action are allowed and which are not, Spring Security. 2 . decide how much data to access. Means if I have a database which has 100 rows, then to show 100 or 10 or 50 based on the role of the user

Re: Authorization Best Practices

2010-07-07 Thread Dale Newfield
On 7/7/10 1:28 PM, Amol Ghotankar wrote: 2 . decide how much data to access. This I am really working something where struts2 intercepter will read what role the user has and set some global role for that reqest which will be read by dao to use to fetch the data. The interceptor cannot know

Re: Authorization Best Practices

2010-07-07 Thread Dale Newfield
On 7/7/10 2:11 PM, Ken wrote: This is a hand rolled solution I used: Create an interceptor which checks if a User object exists when accessing a secure package, if it does not exist redirect the user to a login page and record the initial url (will redirect back to that page after login). This

Re: Authorization Best Practices

2010-07-07 Thread Dale Newfield
On 7/7/10 2:26 PM, Amol Ghotankar wrote: Part 2 . How to control access of data from back end database based on action/user-role. i.e how much data should be returned through called action, 10 rows, 100 rows or 1000 rows from database, based on user role and/or called action. Whether data

Re: OGNL to get list of keys

2010-07-01 Thread Dale Newfield
On 7/1/10 3:51 PM, Ken wrote: This produced the desired effect: (added var=header to iterator tag) s:iterator value=list[0].keys var=header ths:property value=header//th /s:iterator If you have var=header in the iterator, the

Re: OGNL to get list of keys

2010-07-01 Thread Dale Newfield
On 7/1/10 4:08 PM, Ken wrote: Adding 'var=header' to the s:iterator tag simply pushed a named object onto the stack. Am I missing something? Yes. Any use of an s:iterator always pushes the current item onto the top of the stack during each iteration of the body. You can refer to that as

Re: Struts time picker does not render in IE7/IE8

2010-06-29 Thread Dale Newfield
On 6/29/10 9:03 AM, john.vargh...@smartonline.com wrote: Hi friendsany suggesstions? My suggestion is don't use dojo. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Re: Page composition strategy

2010-06-29 Thread Dale Newfield
On 6/26/10 4:26 AM, Paweł Wielgus wrote: as a long time tiles user it would be very interesting for me to read about some specific problem that can be easily solved in sitemesh and hard or impossible to solve in tiles. One thing that's difficult to get right if you have to generate the page

Re: Page composition strategy

2010-06-29 Thread Dale Newfield
On 6/29/10 6:23 PM, Chris Pratt wrote: I think the decision really comes down to which model you like better. No argument. I'm mainly using sitemesh with this project because I jump started it with appfuse, and that's what it used :-) -Dale

Re: How to render HTML in Form Tag Label?

2010-06-28 Thread Dale Newfield
On 6/28/10 4:16 AM, David Lu wrote: I ended up just rendering that particular checkbox myself using standard JSP and HttpServletRequest, doing things the old fashioned way. :) If you want the checkbox interceptor to work, you need a corresponding hidden input field...you might want to render

Re: s:if test condition

2010-06-27 Thread Dale Newfield
lucas owen wrote: Bill Bohnenbergerbill98...@gmail.com Since 'activated' is a String, try swapping your single double quotes, e.g. s:if test='%{warning.activated==Y}' that was it!!! The key is understanding *why* it makes a difference. The reason is that a single character demarcated by

Re: How to modify Struts2 start up process.

2010-06-25 Thread Dale Newfield
On 6/25/10 2:36 PM, hisameer wrote: I have to implement a logic so that when the server starts I can execute some database scripts using my DAO service layer. implement a ServletContextListener that includes the method contextInitialized(ServletContextEvent event). You should be able to get

Re: How to modify Struts2 start up process.

2010-06-25 Thread Dale Newfield
Oh, and I forgot to mention, add a listener/ segment to your web.xml so the application server knows to instantiate and call it. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands,

Re: Page composition strategy

2010-06-24 Thread Dale Newfield
On 6/24/10 5:33 PM, Brian Thompson wrote: Out of curiosity, has anyone on the list actually used both Tiles and Sitemesh? I'd really like to read a comparison of the two I used tiles with Struts1 about 6 years ago. I've been using sitemesh with Struts2 for the last several years. I think

Re: Get a list stored in the session to the struts tag

2010-06-23 Thread Dale Newfield
On 6/23/10 6:55 AM, Kushan Jayathilake wrote: Thank you very much for your quick reply, i have found the way, s:iterator value='%{session.test}' no need of that # sign there. That probably means that your action has a getSession() method. Since you may use that view layer page from a

Re: Migrating from Struts 2.0.x to 2.1.8.x

2010-06-16 Thread Dale Newfield
On 6/16/10 9:04 AM, Frans Thamura wrote: but migrate and mix with REST, is still a problem Huh? On Wed, Jun 16, 2010 at 7:53 PM, Greg Lindholmgreg.lindh...@gmail.comwrote: It should be a pretty easy migration and all the issues are documented here

Re: tag attributes evaluation

2010-06-14 Thread Dale Newfield
On 6/13/10 2:02 PM, Oleg Mikheev wrote: I really think that this notation must be documented specifically on this page: http://struts.apache.org/2.1.8.1/docs/ognl.html It's a wiki. Please feel free to offer the modifications you think are appropriate. -Dale

Re: tag attributes evaluation

2010-06-14 Thread Dale Newfield
On 6/14/10 4:25 PM, Emi Lu wrote: On 06/14/2010 09:59 AM, Dale Newfield wrote: On 6/13/10 2:02 PM, Oleg Mikheev wrote: I really think that this notation must be documented specifically on this page: http://struts.apache.org/2.1.8.1/docs/ognl.html It's a wiki. Please feel free to offer

Re: Exec Wait

2010-06-03 Thread Dale Newfield
On 6/2/10 3:04 PM, Roger wrote: I was more, kind of wondering, what does using execwait with Token support buy me over using execwait without Token support? (I've never used the in- built token support before) https://issues.apache.org/jira/browse/WW-1741 appears to be where this code snippet

  1   2   3   4   5   6   >