Re: call method with more then one param

2011-06-30 Thread Dave Newton
On Thu, Jun 30, 2011 at 5:37 AM, nero81de wrote: >

Re: Multiple matches with single

2011-06-29 Thread Dave Newton
ost stuff in S2 apps. Dave On Jun 29, 2011 11:30 AM, "Nick Broadhurst" wrote: > "...antiquated Struts tags..." you're concerning me. That's all I use. > > On Wed, Jun 29, 2011 at 10:17 AM, Dave Newton wrote: > >> How about using JSTL? It's th

Re: Multiple matches with single

2011-06-29 Thread Dave Newton
How about using JSTL? It's the recommended solution when both it and Struts tags provide equivalent functionality, and it's arguably better than using the antiquated Struts tags. Dave On Jun 29, 2011 10:03 AM, "sudhakar487248" wrote: > is there any way to test more than one match at a time by us

Re: POJO's collection not populated when submitting form

2011-06-27 Thread Dave Newton
On Mon, Jun 27, 2011 at 10:57 AM, Justin Robbins wrote: > I wonder why the Hibernate docs use Set and mention Set is the most > commonly used Collection in mappings. Maybe it is, I guess I've just never found it helpful in anything I've done--I've usually needed either a known order, or to be abl

Re: POJO's collection not populated when submitting form

2011-06-27 Thread Dave Newton
IMO a set is user-hostile unless you've defined an iterator with known sequence, otherwise the same page might return the same values in a different order. That's just confusing. (And I've never actually used a set in Hibernate, always a list or a map.) I don't think collection syntax (square bra

Re: include tag problem

2011-06-27 Thread Dave Newton
On Mon, Jun 27, 2011 at 8:32 AM, k3v1n wrote: > Can you send example code please? ... http://download.oracle.com/javaee/5/tutorial/doc/bnalj.html http://www.javascriptdownload.net/site/page.asp?dsy_id=501 http://onjava.com/pub/a/onjava/excerpt/jserverpages3_ch11/index.html http://today.java.net/

Re: Struts 1.2.4 validator framework.

2011-06-27 Thread Dave Newton
Cool; glad you got it working. Dave On Mon, Jun 27, 2011 at 8:37 AM, Maithily wrote: > Oh! yes, thanks for pointing that out. It works smoothly. > Apologies for the silly mistake. > > Regards, > Maithily. > > On Mon, Jun 27, 2011 at 6:03 PM, Dave Newton

Re: Struts 1.2.4 validator framework.

2011-06-27 Thread Dave Newton
of them seem to work for me. Could any lib file be missing which is not > able to interpret teh ${...} expression? > > > > On Mon, Jun 27, 2011 at 5:51 PM, Dave Newton wrote: > >> Oh, you're saying that the error message *renders* as "... less than >> ${var.minlengt

Re: Struts 1.2.4 validator framework.

2011-06-27 Thread Dave Newton
he default error message configured as follows > errors.minlength={0} can not be less than {1} characters. > > Regards, > Maithily > > On Mon, Jun 27, 2011 at 4:30 PM, Dave Newton wrote: > >> {1} like the default message. >> >> Dave >>  On Jun 27, 2011 3:14 AM

Re: include tag problem

2011-06-27 Thread Dave Newton
Why not use a JSP-based custom tag? Dave On Jun 27, 2011 7:03 AM, "k3v1n" wrote: > Hi all, > > I need help, please. > > I have collection of User object... In my jsp page, I have foreach block for > print all user contains in my collection. I want use other jsp for print it! > > For example: > >

Re: Struts2 - The requested list key 'state' could not be resolved as a collection/array/map/enumeration/iterator type

2011-06-27 Thread Dave Newton
You're only populating the list in the "execute" method, but that isn't run on a validation error--"input" is. Consider implementing Preparable. IIRC this is in the faq (I might be recalling wrong). Dave On Jun 27, 2011 3:18 AM, "akshat [PG8]" wrote: > Hi everyone, > > Please help me in Struts2

Re: Struts 1.2.4 validator framework.

2011-06-27 Thread Dave Newton
{1} like the default message. Dave On Jun 27, 2011 3:14 AM, "Maithily" wrote: > Hi, > > I am new to this mailing list and am facing a problem using the "minlength" > field validation provided by the Struts Validation Framework. > Struts version - 1.2.4 > Application Server - Apache Tomcat (5.5)

Re: Migration from Struts 2.0.14 to Struts 2.2.3 - tabbed panel not working

2011-06-24 Thread Dave Newton
On Jun 24, 2011 8:17 PM, "Andrzej Adamczyk" wrote: > I am more inclined to think the opposite approach is safer - > forget DoJo plugin and replace DoJo with jQuery first, then move to new > version of Struts framework. I don't know if moving away from Dojo itself is necessary, but I continue to be

Re: checking fielderrors into javascript

2011-06-24 Thread Dave Newton
Then your JSP engine is not configured for modern JSP. Fix that first. Dave On Jun 24, 2011 4:13 PM, "Arpan" wrote: > Not yet, Actually it shows as a string itself ${theActionProperty}.So I > dont get the actual value. > > On Fri, Jun 24, 2011 at 10:49 PM, Dave Newton wr

Re: checking fielderrors into javascript

2011-06-24 Thread Dave Newton
same in javascript.. > > On Fri, Jun 24, 2011 at 10:19 PM, Dave Newton wrote: > >> On Fri, Jun 24, 2011 at 12:47 PM, Arpan wrote: >> > Can I aceess the field errors in java script? >> > like : document.getElementById("fieldErrors") or how can i get the value? &

Re: checking fielderrors into javascript

2011-06-24 Thread Dave Newton
On Fri, Jun 24, 2011 at 12:47 PM, Arpan wrote: > Can I aceess the field errors in java script? > like : document.getElementById("fieldErrors") or how can i get the value? ... Let's take a step back: how would you access a simple action property in JavaScript, assuming, say, you were doing it on a

Re: checking fielderrors into javascript

2011-06-24 Thread Dave Newton
On Friday, June 24, 2011, Arpan wrote: > In my JavaScript method I want to check if the page has got any fielderror > or messege. > > How to access these struts2 objects into java script.Any example? Just write the JavaScript in something (JSP, FreeMarker, etc.) that processes server-side code. O

Re: Linking to another application

2011-06-24 Thread Dave Newton
On Fri, Jun 24, 2011 at 7:29 AM, Patrick McCourt wrote: > The RequestsManager then passes off to the 2nd application, a > RequestHandler which will gather the details of the request, the > reason this is external is they want to be able to add in new request > types by simply building the struts f

Re: Linking to another application

2011-06-24 Thread Dave Newton
Different apps have different sessions. Dave On Fri, Jun 24, 2011 at 6:48 AM, Patrick McCourt wrote: > I’ve got 2 Struts 2 applications running on Tomcat 6.0. > > In summary the main application is a manager application for requests > in our company, application 2 is a handler for a specific req

Re: [OT] Re: adding more package via Maven

2011-06-22 Thread Dave Newton
On Wed, Jun 22, 2011 at 8:43 AM, Mohamed SIDI wrote: > you're right I coul post this issue in a maven mailing list I should find > more infirmation but this idea coming after but never mind ! > > instead of creating the packages manually, I prefere use Maven to create > these packages I'm still n

Re: protect prameters avoid being show in log files

2011-06-22 Thread Dave Newton
On Wed, Jun 22, 2011 at 8:42 AM, Baka,David wrote: > Please remove me from this list > [...] > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For addi

[OT] Re: adding more package via Maven

2011-06-22 Thread Dave Newton
Are you aware there's a Maven mailing list? You may need to be a bit more specific with what you're trying to do as well--is something going wrong? What behavior are you seeing, and how does it differ from what you expect? Dave On Wed, Jun 22, 2011 at 8:24 AM, Mohamed SIDI wrote: > Hello there,

Re: Html:link Javascript validation

2011-06-21 Thread Dave Newton
The "onclick" attribute should return true/false based on whether or not the form should be submitted. If there's no "return" keyword, the form will be submitted regardless of what happens in the onclick handler. Dave On Tue, Jun 21, 2011 at 8:22 AM, Sunil Choppara wrote: > Siva, > > Don't decla

Re: Action[/emaillayout] does not contain specified method (check logs)

2011-06-20 Thread Dave Newton
What's with the weird stuff in the URL? What's the actual request URL end up looking like (as per proxy/Firebug/etc. And are you using the exact same URL from the browser when testing it as a non-Ajax request? Dave On Monday, June 20, 2011, sivaks75 wrote: > Hi, > > I am using struts 1.3.8 with

Re: access static method with request parameter

2011-06-20 Thread Dave Newton
Or, pass in what you actually need from the request instead of introducing a dependency on the servlet spec. What's required from the request? Dave On Jun 20, 2011 7:19 AM, "Lukasz Lenart" wrote: > 2011/6/20 k3v1n : >> >> aaa >> > > Wrap call to myMethod inside your action that should impleme

Re: [s1,validation] Multi-page flow, session-scoped DynaValidatorForm with checkbox

2011-06-17 Thread Dave Newton
On Friday, June 17, 2011, Christopher Schultz wrote: > I can't believe I've been working with Struts for nearly 10 years and > I'm still using Struts 1. Fixed. > The problem is that if we check the box and submit to A2 (then show P2), > then go back (either browser-BACK or using our "previous" bu

Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Dave Newton
o >> enter a new market. >> (*Chris*) >> >> On Tue, Jun 14, 2011 at 12:27 PM, webmeiker wrote: >> >> > I mean use of CKEditor, CKFinder or ElFinder 3rd party software (based in >> > PHP) that allow server file exploration inside a Struts2 application

Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Dave Newton
Oh, OP meant embedding an HTML component in an S2 I guess. Duh, never mind. Dave On Jun 14, 2011 12:07 PM, "Brian Thompson" wrote: > You sure that isn't the File FTP Protocol? :P > > Redundancy FTW! > > -Brian > > > On Tue, Jun 14, 2011 at 11:01 AM, Dav

Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Dave Newton
On Tuesday, June 14, 2011, webmeiker wrote: > Have somebody successfully integrated a Struts2 app with some (web)FTP > editor (based in PHP) like ElFinder? > > I always get responses like ‘Invalid backend configuration’, ‘Invalid XML > Response’ or things like that. S2 doesn't implement the FTP pr

Re: struts tags: How to use a list inside another list

2011-06-14 Thread Dave Newton
I don't see a "key" attribute anywhere, maybe that's why it doesn't work. In any case: to remove the default theme's (xhtml) formatting, you use the "simple" theme. You lose a lot of what Struts provides you, however. You may wish to explore a custom theme. Dave On Tue, Jun 14, 2011 at 7:01 AM,

Re: jsp caching problem

2011-06-13 Thread Dave Newton
That's an IDE issue. On Mon, Jun 13, 2011 at 1:11 PM, Arpan wrote: > Even if I write in my jsp like this : > > > > It tells that "autocomplete" is Undefiend attribute. > > Thanks > > On Mon, Jun 13, 2011 at 10:33 PM, Eric Lentz wrote: > >> > Are you currently using struts2? If so then open ur j

Re: jsp caching problem

2011-06-13 Thread Dave Newton
I thought we allowed dynamic attributes now? Or was that just via patching? I don't remember things :( Dave On Mon, Jun 13, 2011 at 1:03 PM, Eric Lentz wrote: >> Are you currently using struts2? If so then open ur jsp and type > attribute "autocomplete" in textfield or form element and see if i

[OT] Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Dave Newton
On Fri, Jun 3, 2011 at 12:09 PM, Emi Lu wrote: >       > Ew. Use something nice. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Dave Newton
The "completeStack" should be whatever your normal stack is, I think. Dave On Fri, Jun 3, 2011 at 9:57 AM, Emi Lu wrote: > Good morning, > >> your interceptor stack doesn't appear to be complete. > > By adding the following codes into struts.xml, no exception anymore. But the > action page does

Re: Hash tags

2011-06-01 Thread Dave Newton
On Wed, Jun 1, 2011 at 1:24 PM, Jason Pyeron wrote: >> From: struts@spamgourmet.com >> The example at the bottom is clearly intended to be a >> "complete" example, but ignores the attributes supported by >> the extended class: >> >> .../2.2.3/struts2-core/apidocs/org/apache/struts2/dispatcher/S

Re: Hash tags

2011-06-01 Thread Dave Newton
On Wed, Jun 1, 2011 at 12:59 PM, wrote: > The key insight is that this is called an "anchor" (not a hash). This works: Cool, I don't even know if I ever knew that. > This document should be updated: > http://struts.apache.org/2.2.3/docs/redirect-action-result.html Best ways to go about doing t

Re: Hash tags

2011-06-01 Thread Dave Newton
On Wed, Jun 1, 2011 at 11:51 AM, wrote: > Does the redirectAction result support [...] a hash tag to append? > > For example, this: > hash="userPreferences">viewuser What happens when you try it? Did you try viewuser#userPreferences? I don't know if that'd work or not, but easy enough to find o

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

2011-05-30 Thread Dave Newton
On Mon, May 30, 2011 at 11:30 AM, Emi Lu wrote: > But does not support src = "<%%>" Does normal EL work? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apach

Re: When start tomcat6 always got "java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor" Error!

2011-05-27 Thread Dave Newton
On Fri, May 27, 2011 at 11:29 AM, Emi Lu wrote: > Confirmed. Two tags are used in jsp for now: > > <%@ taglib prefix="sj" uri="/struts-jquery-tags"              %> > <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> Hmm, okay. > Is dojo deprecated? Has been for some time, don't recall for sure h

Re: Struts2 resource property and dynamic population of action in jsp file

2011-05-27 Thread Dave Newton
On Fri, May 27, 2011 at 10:40 AM, Sachin Lale wrote: > 1. In Jsp while displaying text box and i want this to populate from > ApplicationResource.properties file. I did this be adding getText() method > like below. Is this the only way? > Nope; you can use the "key" tag attribute to define the pr

Re: When start tomcat6 always got "java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor" Error!

2011-05-27 Thread Dave Newton
Are you really using all of those S2 plugins? You should not deploy plugins you are not using, as they may change fundamental S2 behavior. If nothing else it is almost certainly a bad idea to include both the codebehind (deprecated) and convention plugins. It's unusual to use both the Dojo and jQ

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Dave Newton
On Friday, May 27, 2011, Miguel wrote: > Following my previous email and agreeing with you on this,  I might, of > course, get off the request hook by changing the request injection with > injecting, for example, those two properties (username and ipaddress) to > this class, but the underlying prob

Re: Can we use spring-plugin to inject a HttpServletRequest onto a bean?

2011-05-27 Thread Dave Newton
What specifically do you need an actual request for? This strikes me as coupling your design to the servlet spec, and there's rarely a strong reason to do that past the web layer itself. The idea on injecting a request just seems wrong. Is that a Struts 2 interceptor you're trying to inject it in

Re: Action not working - HTTP 500

2011-05-26 Thread Dave Newton
So you're asking us how to instantiate a class of yours correctly? How would we know? Dave On May 26, 2011 6:10 AM, "Will Sumekar" wrote: > I have a service class inside my action class and I override the constructor > of my action class adding an instantiation of the service class. If I remove

Re: hi, I me a problem using Struts2 with Dojo, could any one kindly help me?

2011-05-25 Thread Dave Newton
I'd consider using Dojo without the tags, or perhaps wrapped in thin JSP-based tags. Dave On May 25, 2011 10:32 PM, "xiaxia347work" wrote:

Re: Issue: Action redirect do not include parameter as complex objects?

2011-05-24 Thread Dave Newton
On Tue, May 24, 2011 at 1:35 PM, Amol Ghotankar wrote: > 1, Why I need to pass the object and not the id. > --> I have just inserted it and do not want additional reads from database. Doesn't matter (and if your caching is configured properly, shouldn't do a round-trip anyway). Look at a browser

Re: Issue: Action redirect do not include parameter as complex objects?

2011-05-24 Thread Dave Newton
Not to mention that's not how URL parameters work--all you can send is strings. Dave On Tue, May 24, 2011 at 12:40 PM, Maurizio Cucchiara wrote: > Aside from you're using an old version of S2, I don't think your approach is > the best one. Why should you pass every parameters? You could simply p

RE: Iterating over a tree structure

2011-05-23 Thread Dave Newton
On May 23, 2011 5:13 PM, "Jason Pyeron" wrote: > To clarify, I am not looking to render a tree widget […] Still just a tree, though. I've also always done this with a tag that gets passed a node and recurses as needed. Dave

Re: Where does the stdout of Actions go?

2011-05-23 Thread Dave Newton
Why would you use S.o.p anyway? Why not just use the logging framework that's already there? Dave On Mon, May 23, 2011 at 10:09 AM, Pankaj Shrivastava wrote: > The catalina.out was getting the Struts messages through the logger. It was > just not getting the SOP. I blew away all the log files, r

Re: syntax for passing java contents inside jsp using struts 2.2.1

2011-05-21 Thread Dave Newton
Why not just put the lists in a map or collection? Dave On May 21, 2011 7:21 PM, "inception" wrote: > Hi... > > > I want to hold a unique names for the tags during its loop. > for example: > > > list="test > > *

Re: What is getModel() for?

2011-05-20 Thread Dave Newton
On May 20, 2011 8:56 AM, "Eric Lentz" wrote: > >"Getting" is not always the same thing as "instantiating" and/Or > "initializing". > > […] call that out in the documentation and expand on what that means. > What's the process for doing that? For wiki edit access rights you can fill out an Apache C

Re: Unable to add value in

2011-05-20 Thread Dave Newton
I did, I suggested ActiveX, applets, and Flash. It was noted that these would need to be signed ("trusted"). The behavior you're seeing is just how browsers work. This is a requirement you cannot meet in the same timeframe as your original estimate. If it were me, I'd do two things: 1) Take owne

RE: S2 TEst Best Practices

2011-05-20 Thread Dave Newton
On May 20, 2011 9:40 AM, "Ilya Kazakevich" wrote: > That is action logic, not view itself. Sure, unless there's a bug in the view layer, which is why it gets tested. Dave

RE: S2 TEst Best Practices

2011-05-20 Thread Dave Newton
On May 20, 2011 9:26 AM, "Ilya Kazakevich" wrote: > There should not be logic in view. If there is no logic -- there is nothing > to test:) Sure there is, and I'm not even including JavaScript-based functionality. Are the right things displayed? Does the UI reflect proper state? Is the flow correc

[OT] RE: S2 TEst Best Practices

2011-05-20 Thread Dave Newton
On May 20, 2011 9:18 AM, "Miguel" wrote: > An interesting view on this from Gojko Adzic seems to almost suggest > these tests should be avoided: I read it more as "do them right". Dave

Re: What is getModel() for?

2011-05-20 Thread Dave Newton
On May 20, 2011 8:27 AM, "Eric Lentz" wrote: > So my question is this: What is getModel supposed to be used for? I > apparently was naively thinking it was for, well... "getting the model." What makes you believe that's incorrect? It's how the model gets pushed on the stack by the interceptor. Ho

Re: Unable to add value in

2011-05-20 Thread Dave Newton
Why would the container matter? Isn't this a browser issue? Dave On May 20, 2011 12:31 AM, "Chris Pratt" wrote: > Depending on what container you're using, you might try: > > styleId="frmTxtAttachment" style="width:300px" > value="${parecRequestForm.attachPath}" /> > > (*Chris*) > > On Thu, May

[OT] Re: Unable to add value in

2011-05-19 Thread Dave Newton
gt; Although it should have this capability .. I am stuck with this requirement > which has > turn into a big problem from a small looking requirement.. > > > Thanks! > -- Vivek > > On Fri, May 20, 2011 at 8:14 AM, Dave Newton wrote: > >> I'm not sure, maybe

Re: Unable to add value in

2011-05-19 Thread Dave Newton
ly Dave. Is there any other trick from which we can > achieve this scenario? > > -- Vivek > > On Thu, May 19, 2011 at 10:10 PM, Dave Newton wrote: > >> Can't do that. >> >> Dave >> >> On Thu, May 19, 2011 at 12:04 PM, vivek mishra >

Re: Struts2 Validation w/ModelDriven

2011-05-19 Thread Dave Newton
On Thu, May 19, 2011 at 3:55 PM, CRANFORD, CHRIS wrote: > 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 t

Re: Struts2 Validation w/ModelDriven

2011-05-19 Thread Dave Newton
On Thu, May 19, 2011 at 2:22 PM, Eric Lentz wrote: > I'm curious. If you are using ModelDriven, then why do you load your model > in prepare()? Why not in getModel? That'd mean you'd need the "did I already load the model?" code in getModel(), wouldn't it? Seems cleaner to use prepare, since that

Re: iterate cannot find bean

2011-05-19 Thread Dave Newton
On Thu, May 19, 2011 at 12:51 PM, Edward W. Rouse wrote: > No, the vars HashMap has as many as 50 objects of different names and > classes in it, plus the bean it used the toString on has the exact contents > (SortableData beans) of the exact quantity that I expected. Nice thought > though and I th

Re: Unable to add value in

2011-05-19 Thread Dave Newton
Can't do that. Dave On Thu, May 19, 2011 at 12:04 PM, vivek mishra wrote: > Hi list, > > I am trying to add some value in but unable to do this. > > Here is my code: > "frmTxtAttachment"* style=*"width:300px"* > > ** value=*""* >> > > I am getting value in * property='attachPath'  /> , but it'

Re: iterate cannot find bean

2011-05-19 Thread Dave Newton
On Thu, May 19, 2011 at 11:54 AM, Edward W. Rouse wrote: > > > [produces the following exception] > > 2011-05-19 11:15:50.961: Resin javax.servlet.jsp.JspException: Cannot find > bean: "[com.comsquared.workflow.web.util.SortableData@671416, > com.comsquared.workflow.web.util.SortableData@157d162,

Re: Login Page

2011-05-19 Thread Dave Newton
Sounds like an interview question to me. In general I think it's better for everyone to provide hints/pointers/links/etc. instead of outright answers--at least that way the OP will have *some* actual clue instead of simply regurgitating the knowledge of others, leading to more work for someone els

Re: syntax for passing java contents inside jsp using struts 2.2.1

2011-05-19 Thread Dave Newton
On Thu, May 19, 2011 at 3:54 AM, inception wrote: > My actual requirement is that i have to generate dynamic comboboxes [usig > select tag] inside iterator . > > > /> > That doesn't help me understand what you're trying to do, though, or why you believe you need to use a scriptlet, or how

Re: syntax for passing java contents inside jsp using struts 2.2.1

2011-05-18 Thread Dave Newton
On Wed, May 18, 2011 at 7:49 AM, inception wrote: > <% String test ="#session.levelList"/> > > > i am not able to pass the sting test inside the select tag.. > > it gives me an exception Normally you'd give details, like what the exception actually is, otherwise... In any case, what are you try

[OT] Re: error JSTL

2011-05-16 Thread Dave Newton
On Mon, May 16, 2011 at 8:14 AM, Mohamed SIDI wrote: > Static attribute must be a String literal, its illegal to specify an > expression Did you try searching the web for an answer? Sometimes just copying an error message verbatim is enough. Dave

Re: struts2 & hibernate

2011-05-15 Thread Dave Newton
On Sun, May 15, 2011 at 6:46 PM, Saeed Najahi wrote: > code that implicates hibernate and struts, the documentation doesn't help > much unfortunatly, explanation or indication of what version of what jar is > needed isn't mentioned, Dependencies should be managed by Maven (or similar), not by han

Re: Chained actions and their properties in the value stack

2011-05-15 Thread Dave Newton
On Sun, May 15, 2011 at 12:10 PM, Alan D. Cabrera wrote: > A knows how to find/generate instances of Foo. > B knows how to find/generate instances of Bar. > C is an application specific Action that needs an instance of Foo and an > instance of Bar. A & B are application-specific actions too. With

Re: Chained actions and their properties in the value stack

2011-05-15 Thread Dave Newton
On Sunday, May 15, 2011, Alan D. Cabrera wrote: > I have a st of chained actions, in order A, B, C. Jason's correct--IMO action chaining is more trouble than it's worth, almost always. *Three* in a chain?! What's the use case for this? > A has a getter for Foo.  B does not have a getter/setter fo

[OT] Re: Iterator tag and enumeration

2011-05-13 Thread Dave Newton
On Fri, May 13, 2011 at 10:17 AM, Biesbrock, Kevin wrote: > This peaked my interest [...] Piqued, piqued. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache

Re: Pagination using Struts library

2011-05-13 Thread Dave Newton
On Fri, May 13, 2011 at 10:04 AM, Miguel wrote: > Speaking of which, Dave, have you used displaytag recently? I've never used it at all. > This is due to the fact that displaytag's export url is > Someaction.action?6578706f7274=1&d-16533-e=5 and 6578706f7274 doesn't > seem to be valid on recent v

Re: Separate Java Bean Class for Getter/Setter method.

2011-05-12 Thread Dave Newton
On Thu, May 12, 2011 at 11:59 AM, arin_12 wrote: > I am passing three parameters via URL from one page to another. > I only see one available on the second page; don't know why. > > Page one > > > >     >     > > > Page two > > value="%{#parameters.alDescription}"/> > > > > Any feed bac

Re: Tag iterator and my object container

2011-05-12 Thread Dave Newton
You could probably get away with just exposing the map. Dave On May 12, 2011 3:26 AM, "Chris Pratt" wrote: > You could possibly get away with just implementing Iterable instead of > Iterator. It's a much simpler interface to implement. > (*Chris*) > > On Thu, May 12, 2011 at 12:17 AM, wrote: >

Re: Retrieving values for which there is no specific getter

2011-05-11 Thread Dave Newton
On Wed, May 11, 2011 at 3:29 PM, Mitch Claborn wrote: > Can you elaborate a bit?  My values will not necessarily be sequential. Not sure how to elaborate on using a map. Expose a map, use whatever key makes sense? Iterate over the keys using whatever comparator you need? What do you want to know?

Re: Retrieving values for which there is no specific getter

2011-05-11 Thread Dave Newton
On Wed, May 11, 2011 at 3:03 PM, Mitch Claborn wrote: > Is there some kind of catch-all or generic method that is called to retrieve > the value for a form field if there is no specific getter? No, but you could use a map, or a collection if they're sequential as you show. Dave -

Re: Pagination using Struts library

2011-05-11 Thread Dave Newton
There isn't any; Struts is largely front-end neutral. Check the jQuery plugin, otherwise your best bet is to use any of the myriad pagination libs. DisplayTag is open-source, BTW. Dave On May 11, 2011 7:48 AM, "Pankaj Gupta" wrote: > Hi, > > But I am looking for Pagination in Struts framework s

Re: create own annotation

2011-05-11 Thread Dave Newton
You'll want a custom validator, which you can configure with an annotation. Dave On May 11, 2011 4:39 AM, "Mohamed SIDI" wrote: > Hi all, > > I'm using struts2 annotation validation mecanisme, I have a problem with > credit card validation, I should develop my own annotation for this issue, > so

Re: string concatenation within an EL conditional

2011-05-10 Thread Dave Newton
On Tue, May 10, 2011 at 11:44 AM, Scott Koenig wrote: > This may fall under nested EL expressions, which to my understanding are > intentionally disallowed, but I was wondering if there was EL syntax that > would support what I am trying to do, namely, set a URL based on a > conditional, or if I sh

Re: Tag iterator and my object container

2011-05-10 Thread Dave Newton
Or just access the map and use the Map.Entry object map iterators supply. Dave On May 10, 2011 9:16 AM, "Steven Yang" wrote: > you need to implement the Iterator interface > > On Tue, May 10, 2011 at 4:14 PM, wrote: > >> Hi everybody, >> >> I have a container object SearchResults which contains

Re: where does

2011-05-09 Thread Dave Newton
Yeah, all the UI components extend a base that have a bunch of attributes, not all of which make sense for each UI components. Dave On Mon, May 9, 2011 at 10:19 AM, Maurizio Cucchiara wrote: > Maybe this docs was auto generated and action is inherited from another > component. > > > On 9 May 201

Re: The 'best' (simplest) wasy to modify the dojo-plugin css and HTML files

2011-05-06 Thread Dave Newton
On Fri, May 6, 2011 at 11:10 AM, David Rocks wrote: > I have looked about the docs and cannot find away to [use my own stylesheet] > and > the only way I can think to do that will be to decompile the jar file, change > code and re jar. > > Is that the case? As it is probably the last way I would

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Dave Newton
> JSP excerpt: >>> >>> >>> >>> >>> >>> >>> POJO excerpt: >>> public class Tag implements java.io.Serializable { >>> >>> >>> private int tagId; >>> >>>

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-02 Thread Dave Newton
Just out of curiosity, does it do the same thing if it's not named "id"? d. On Mon, May 2, 2011 at 8:32 PM, Justin Robbins wrote: > Anyone have any ideas on this one?  I'd be most grateful for some advice. > > Someone suggested I use a newer version of the ognl jar.  I was using > "ognl-3.0.jar"

Re: how to Generate Validation.xml file

2011-05-02 Thread Dave Newton
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 XML files over the years.) > i have interview on Struts Why, I thought you were a be

Re: how to import existing project

2011-05-02 Thread Dave Newton
On Monday, May 2, 2011, vijay333 wrote: > how to import existing project into Myeclipes ide.How many ways  to import > project and how can  import war file project in Myeclipes6.0. For MyEclipse questions you're better off asking on a MyEclipse or Eclipse list/forum, this list is primarily focuse

Re: Problem with OGNL in FieldExpressionValidator

2011-04-29 Thread Dave Newton
On Fri, Apr 29, 2011 at 9:01 PM, Greg Akins wrote: >  In this case, the session has the right value when the setter is > executed, but the OGNL expression #session.birthYearEnabled is null > (or seem to be null) Just as a sanity check, birthYearEnabled (above) and birthYearDisplayed (original pos

Re: Re: Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Dave Newton
I didn't think you'd even need to have the type conversion properties file, but w/o generic accessors I'm not sure. The above JSP still has parens instead of square brackets. d. On Fri, Apr 29, 2011 at 4:07 PM, Joe wrote: > Dave Newton-6 wrote: > Try the square brackets a

Re: Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Dave Newton
n use %{#bean.id}. > > No joy.  If I use the tags like so: > >   > > > the page source looks like what I'd expect, but no values in the text fields: > id="prepTest_beanList(1)_name"/> > > > If I use the tags like so: > >   > > &g

Re: Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Dave Newton
Ah, older version of S2--yeah. Dave On Fri, Apr 29, 2011 at 1:57 PM, Chris Pratt wrote: > Oh, duh, I'm not sure why I didn't see it before.  You can either just use > %{id} and then you don't need the id="bean" on the s:iterate tag.  Or, you > can use %{#bean.id}. >  (*Chris*) > On Apr 29, 2011

Re: NPE in StrutsTestCase after enabling Tiles

2011-04-29 Thread Dave Newton
On Fri, Apr 29, 2011 at 1:35 PM, Justin Robbins wrote: > Lastly, can anyone explain what the deal is with StrutsTestCase? > There's a tutorial page for using it with Struts 2 on > struts.apache.org but the SourceForge page > (http://strutstestcase.sourceforge.net/) for it hasn't been updated > sinc

Re: Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Dave Newton
Yep. Sometimes I don't use enough words :) Dave On Fri, Apr 29, 2011 at 1:01 PM, Chris Pratt wrote: > Shouldn't that be: > > > > Is that what you meant Dave? >  (*Chris*) > > On Fri, Apr 29, 2011 at 9:07 AM, Dave Newton wrote: > >> Try with square b

Re: Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Dave Newton
Try with square brackets first; see what happens. Dave On Fri, Apr 29, 2011 at 12:04 PM, Joe wrote: > > > On Apr 29, 2011, Dave Newton-6 wrote: >>What does the JSP look like? >>Dave > > Sorry, it is the same as the example with the exception of fixing a minor >

Re: Struts 2: Does the Indexed List Example Work?

2011-04-29 Thread Dave Newton
What does the JSP look like? Dave On Fri, Apr 29, 2011 at 11:02 AM, Joe wrote: > private List beanList = new ArrayList(); - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@s

Re: Overriding interceptor in stack

2011-04-28 Thread Dave Newton
Seems like it'd be easier and cleaner to change the service impl the interceptor uses rather than the interceptor itself. Dave On Apr 28, 2011 6:54 AM, "Miguel" wrote: > Today's question actually follows yesterday's suggestion by Dave of > using the preparable interface and is really an > archit

Re: How to make s:action run when validation fails?

2011-04-27 Thread Dave Newton
On Wed, Apr 27, 2011 at 7:13 AM, Miguel wrote: > 1) Why doesn't the method mapped to get called > when the form fails, ie, why is its interceptor stack picking up an > error when it shouldn't? It's not making a separate *browser* request, it's all internal to S2. Another reason I really don't li

Re: directly send Jasper report to printer in WebApplication from local printer

2011-04-27 Thread Dave Newton
(Sorry if this is a dupe.) On Wed, Apr 27, 2011 at 5:07 AM, nagarjunabatt...@gmail.com wrote: > bt here when i am calling from client the print is invoking the server > printer unlike using local resource(printer). Well, your code is running on the server, so I'm not surprised. You need to stream

Re: Extending Template Error

2011-04-26 Thread Dave Newton
For the checkbox list try using collection notation for the checkbox names , square brackets with an index (list/array index). Dave On Apr 26, 2011 8:22 PM, "Zoran Avtarovski" wrote: > Hi guys, > > I'm having a couple of issues with my freemarker tempates. > > One is with extending the 'simple;

Re: Field Name Collision?

2011-04-26 Thread Dave Newton
exactly as designed. > (*Chris*) > > On Tue, Apr 26, 2011 at 12:55 PM, Dave Newton wrote: > >> Doubt you're doing anything wrong; I'd expect it's how OGNL does its >> lookup but haven't confirmed that. >> >> Dave >> >> On Tue,

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