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

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

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

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

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: 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: 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: 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: 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
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
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: 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: 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: 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: 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: 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: 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
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: 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: 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: 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: 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: 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: 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: call method with more then one param

2011-07-01 Thread Dave Newton
Just call it with multiple params, OGNL calls look like Java. But you're trying to call it on form /submission/ and I don't believe you need to. Dave On Jul 1, 2011 5:52 AM, "nero81de" wrote:

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
Unless the JSP is processed through an action, the original comment in the jira ticket is correct. Recall that a filter can stop processing a request, which is what happens if it's not a request that hits an action. Dave On Jul 1, 2011 8:59 AM, "Александр Высоков" wrote: > Hello all. > > I have

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
gt; >> Maurizio Cucchiara >> >> Il giorno 01/lug/2011 16.30, "Александр Высоков" ha >> scritto: >> > I've created test project (attached StrutsBugTest.war) in jira. In that >> > project you can click to the link in index.html and see the s

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
2011/7/1 Александр Высоков : > So you try to tell me that in include's value must be only *.action? No, I don't. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
2011/7/1 Александр Высоков : > Dave, if I expressed roughly, I am very sorry (my bad english is not good > enough). Nope, you're doing great :) Try using a link to an action in the tag instead of a plain JSP. For now you could just create a class-less action mapping that forwards to the JSP yo

Re: Any examples struts1.x using json jquery ?

2011-07-02 Thread Dave Newton
A. Lotfi wrote: > Where can I find an example of struts1.x using jquery and json ? What specifically are you trying to do? The use of jQuery/JSON is framework-neutral, any jQuery tutorial should be trivially adaptable to S1. Dave -

Re: On applying action-validation.xml action is not executing.

2011-07-03 Thread Dave Newton
Validation is failing? Bad validation file? Type conversion failure? You didn't really give us much to go on. Dave On Jul 3, 2011 8:18 PM, "log2akshat" wrote: > When I am removing the validation xml file the action is executing properly > and injecting the data in the database & start sending mai

Re: On applying action-validation.xml action is not executing.

2011-07-03 Thread Dave Newton
I'm supposed to remember a previous post, for a different problem, realize they're related, on my cell phone? Right, okay, I'll let someone else jump through those hoops. Post complete questions, with code or config: why would you make it difficult for people to help you? It's difficult to guess

Re: On applying action-validation.xml action is not executing.

2011-07-04 Thread Dave Newton
On Sun, Jul 3, 2011 at 9:11 PM, log2akshat wrote: > Action name is : Submitappform > The name of the action class is : SubmitAppFormAction > Validation file name : SubmitAppFormAction-validation.xml > > My *struts.xml* file for this action: > class="net.Candidate.application.action.SubmitAppFormAc

Re: Any examples struts1.x using json jquery ?

2011-07-05 Thread Dave Newton
Then look at the examples they provide, there's nothing really struts specific. Dave On Jul 5, 2011 1:36 PM, "A. Lotfi" wrote: > I am trying to display a grid from an action. > thanks > > --- On Sat, 7/2/11, Dave Newton wrote: > > From: Dave Newton > Subje

Re: Scope Interceptor and Struts2 Validation query...

2011-07-06 Thread Dave Newton
The exception is being thrown from the JSP and has nothing to do with the Java code you've shown, as far as I can tell. The error message states the problem pretty clearly. Dave On Jul 6, 2011 9:44 AM, "log2akshat" wrote: > Thanks for your reply. > > Got no success with that link > > Act

Re: "/" character an invalid key?

2011-07-07 Thread Dave Newton
My first guess would be that OGNL is trying to evaluate it, although since it's a string, not sure that makes any sense. I don't know how your DB is laid out or how what sounds like ad-hoc structures are being created, but is a text ID really the only thing you have available? Dave On Thursday,

Re: "/" character an invalid key?

2011-07-07 Thread Dave Newton
On Thursday, July 7, 2011, Eric Lentz wrote: > Do we call this a bug? Probably, but I don't if it's an S2 or OGNL issue. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h.

Re: "/" character an invalid key?

2011-07-07 Thread Dave Newton
Oh, can't you just set the parameter then? Dave On Thu, Jul 7, 2011 at 8:35 AM, Eric Lentz wrote: >>> Do we call this a bug? >> >>Probably, but I don't if it's an S2 or OGNL issue. >> >>Dave > > com.opensymphony.xwork2.interceptor.ParametersInterceptor > > private String acceptedParamNames = "[a

Re: "/" character an invalid key?

2011-07-07 Thread Dave Newton
On Jul 7, 2011 9:38 AM, "Eric Lentz" wrote: > That seems fragile for my use case Your use case is intrinsically fragile. What happens when the field name has a single or double quote? If it doesn't matter, then you're /already/ down the slippery slope of special-casing. I'd file this as an inter

Re: "/" character an invalid key?

2011-07-07 Thread Dave Newton
On Thursday, July 7, 2011, Eric Lentz wrote: >> IMO coupling field labels to semantic constructs is a Bad Idea > This particular app. is poised to become > international, so perhaps a different approach has come of age? Unless you're keen on having the same "type" of value stored under an arbitra

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

2011-07-08 Thread Dave Newton
On Fri, Jul 8, 2011 at 4:25 PM, log2akshat wrote: > package net.Candidate.application.action; Again, I would strongly urge you to follow normal Java naming conventions > import java.io.*; > import java.sql.*; > import java.util.*; And again, I would strongly urge you to *not* do all this databas

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

2011-07-10 Thread Dave Newton
On Jul 10, 2011 9:44 PM, "Dale Newfield" wrote: > 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. FWIW the Java tutorial states they're all lower-case. http://download.oracle.com/javase/tutorial/ja

[OT] Re: Using Display Tag library

2011-07-11 Thread Dave Newton
On Mon, Jul 11, 2011 at 8:34 AM, JavaNoobie87 wrote: > The thing is I'm  NOT using struts 2 here , just basic jsp,javabeans and > servlets .(Its a sort of demo project!). Well, this is a Struts mailing list. > As of now my DAO fetches the result according to this query How the data is retrieved

Re: Documentation styles missing some classes?

2011-07-11 Thread Dave Newton
I thought we just used the default Confluence styles, but perhaps I'm mistaken. Dave On Monday, July 11, 2011, Luiz Roberto Meier wrote: >  I liked the stylesheet of v2.0.14 example. I hope that this change was just > a mistake. > > On Mon, Jul 11, 2011 at 4:44 PM, wrote: > >> This could be int

Re: Asynchronous Display of Action Results

2011-07-11 Thread Dave Newton
On Mon, Jul 11, 2011 at 4:51 PM, Baubak Gandomi wrote: > Thanks I'll test your solution, and see how it works. It's the only solution there is. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional com

Re: JUnit in Struts

2011-07-12 Thread Dave Newton
Depends on what you're trying to test. For integration/functional testing I wouldn't use JUnit, I'd use easyb, jwebunit, or whatever. I've never bothered unit testing S1 actions because it's so irritating sure to the servlet spec dependencies, but if you search the web there's quite a few resource

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

2011-07-12 Thread Dave Newton
Because it's a redirect, and things in the request go away when there's a new request. Dave On Tue, Jul 12, 2011 at 11:39 AM, Emi Lu wrote: > Hello List, > > Struts2.2.3, it seems that addActionMessage does not show message after > redirect. > > Someone knows why? > > Thank you, > Emi > > ==

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

2011-07-12 Thread Dave Newton
I'll need to be convinced that using a stock interceptor stack, and prototype-scope actions (if using Spring), will keep something in the request across requests. Dave On Tue, Jul 12, 2011 at 11:45 AM, Emi Lu wrote: > It works for 2.2.1, but the message does not shown for 2.2.3 anymore! Is it >

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

2011-07-12 Thread Dave Newton
On Tue, Jul 12, 2011 at 12:05 PM, Emi Lu wrote: >> Because it's a redirect, and things in the request go away when >> there's a new request. > Not true for previous version. Previous version had a bug, then, because by default, anything relating to an action's instantiation should go away during a

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

2011-07-12 Thread Dave Newton
request in >> Struts/2 lasts for one reqest/response trip. >> >> Peace, >> Scott >> >> On Tue, Jul 12, 2011 at 11:14 AM, Dave Newton wrote: >> >>> On Tue, Jul 12, 2011 at 12:05 PM, Emi Lu wrote: >>>>> Because it's a redirect, an

Re: Using string literals or references to objects in @s.url?

2011-07-12 Thread Dave Newton
On Tuesday, July 12, 2011, wrote: > Which of these is more correct when using Struts2 freemarker tag dynamic > attributes for @s.url: > >        <@s.url action="viewitem" itemid="${item.itemid?c}"  /> > or >        <@s.url action="viewitem" itemid=item.itemid /> > > I've been favoring the seco

Re: "jstl.jar vs. jstl-api.jar" for struts2.2.3

2011-07-18 Thread Dave Newton
One's an implementation, one's the api (I assume). Neither is related to Struts 2. Some app servers provide JSTL out-of-the-box, some you'll need to deploy, you shouldn't need to deploy the API jar, just the implementation. (There's also standard.jar, but I can never remember which impl that's for.

Re: Doubt on Struts 2 Architechture

2011-07-18 Thread Dave Newton
Interceptors wrap actions, like servlet filters do (more or less). If they didn't get control back you couldn't do things like an open-session-in-view. Dave On Jul 18, 2011 10:06 PM, "mohan rao" wrote: > Interceptors stack will be triggered before action class is executed and > after the result.

Re: struts2 There is a bug in FileUploadInterceptor (FileContentType).

2011-07-18 Thread Dave Newton
Use a file type sniffer library. Dave On Jul 18, 2011 10:06 PM, "mohan rao" wrote: > I'm trying to rescrit a file being Upload based on FileContentType. I'm > facing browser compatability issue. Suppose if i have to allow only jar > files (application/java-archive) but i'm getting different cont

Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception

2011-07-19 Thread Dave Newton
Probably because of what the exception says; try removing the extra jar file. Dave On Jul 19, 2011 12:12 PM, "Emi Lu" wrote: > Hello List, > > I got the following exception, could someone tell me what cause it? > > I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + > freemar

Re: [S1] Validator configuration error [bump]

2011-07-19 Thread Dave Newton
If it works, I wouldn't worry about it. I'm not sure if anybody is planning any further 1.x releases, to be honest; maybe if a patch is filed against the ticket someone would apply it, but I'm not sure who (Paul, are you still doing S1 stuff?) Dave On Tue, Jul 19, 2011 at 5:17 PM, Christopher Sc

Re: Doc for Struts2

2011-07-19 Thread Dave Newton
There's nothing about custom validators there, though, unless I missed it. The validation annotations page discusses it briefly, but I don't think it has a complete example either. If I have time I'll add something to the wiki outer blog about it this weekend. Dave On Jul 19, 2011 11:19 PM, "Jef

Re: Doc for Struts2

2011-07-19 Thread Dave Newton
Wiki outer blog?! Ah auto-complete, you complete me. "I'll add something to the wiki or blog about it this weekend." Sheesh. Dave On Tuesday, July 19, 2011, Dave Newton wrote: > There's nothing about custom validators there, though, unless I missed it. > The v

Re: Documentation: Checkbox "false" injection

2011-07-20 Thread Dave Newton
On Jul 20, 2011 12:57 PM wrote: > * How is the string "false" injected? Hidden field. > Is there a way to control the behavior of the injection or the injected value? IIRC you can control the value via the interceptor, but I could definitely be wrong on that one. What type of behavioral contr

Re: I'm trying to unsuscribe from the struts-user mailing list

2011-07-20 Thread Dave Newton
Did you try spelling it right too? Dave On Jul 20, 2011 6:35 PM, "Croydon Dias" wrote: > I have tried sending an email to user-unsuscr...@struts.apache.org with > the subject 'unsuscribe', but I still end up getting emails from the > mailing list. > > > > Please help. > > > > Regards, > > Croydo

Re: Failed validation returns Action.NONE instead of Action.INPUT in Struts 2.2.3

2011-07-21 Thread Dave Newton
It'd be easier to diagnose/discuss if we knew more about your config/etc. Dave On Thursday, July 21, 2011, christoe wrote: > Hi, > > Is anyone else experiencing this? I posted a JIRA issue some time ago at > https://issues.apache.org/jira/browse/WW-3654 - but since noone else has > reported prob

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Dave Newton
Did you enable static method access? The default may have changed. (Is there a reason the default formatting tags aren't being used? Or the JSTL format tags?) Dave On Thursday, July 21, 2011, Asleson, Ryan wrote: > > Hello, > > We are attempting to upgrade our application from Struts2 version 2.

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Dave Newton
(Or struts.xml, the preferred mechanism AFAIK). On Thursday, July 21, 2011, Jason Pyeron wrote: >> -Original Message- >> From: Asleson, Ryan >> Sent: Thursday, July 21, 2011 8:37 >> To: user@struts.apache.org >> Subject: [struts-user] OGNL Problems During Struts2 Upgrade >> >> >> Hello, >

Re: how web.xml load several tile files?

2011-07-28 Thread Dave Newton
Did you try the tiles list? Dave On Jul 28, 2011 4:28 PM, "Emi Lu" wrote: > Good afternoon, > > Tiles2.2.2 + struts2.2.3. > > Web.xml > = > > > org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG > > > /WEB-INF/tiles/t1.xml, > /WEB-INF/tiles/t2.xml > > > > Only t1.xml

Re: can i override freemarker template

2011-08-01 Thread Dave Newton
I don't recall which will be searched first, or if it will even search both. I've probably just try it. That said, if this type of customization is a feature of the application, I've strongly consider a cleaner solution, like serving the templates from a database, or providing a clear, consistent

Re: Destroy an Action in Struts2?

2011-08-01 Thread Dave Newton
Unless you have proof an action's properties are causing a memory leak, it sounds like "cargo cult" programming to me. Most cases if leaks like this are caused by something else in the code keeping references. Have you profiled the app to see if what you want is really necessary? I'm pretty skepti

Re: Where to put non action associated data

2011-08-01 Thread Dave Newton
Meh, while I think turning this into something event-based is way overkill, I wouldn't turn to chaining, either. I'd probably just use an interceptor, AOP, or any other "around"-type solution. I view actions as something a user can hit (insert mom-joke here), not as a chunk of general-purpose func

Re: Where to put non action associated data

2011-08-01 Thread Dave Newton
Yep, a service is the canonical solution--my impression was that the OP was trying to avoid *any* knowledge of the additional search stuff, but composing capabilities via services sure seems like the easiest thing to do. Dave On Mon, Aug 1, 2011 at 9:32 AM, Aaron Brown wrote: > If I were coding

Re: Struts Action Form bean population problem

2011-08-04 Thread Dave Newton
On Thu, Aug 4, 2011 at 3:33 AM, wrote: > Not sure why it is not populating the action form. Without any further information it's impossible to help. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additio

Re: Using s:actionerror

2011-08-09 Thread Dave Newton
On Tue, Aug 9, 2011 at 10:14 AM, Christian Grobmeier wrote: > Is it probably related when i switched to the plain theme? Yes; the "plain" templates don't do much for you. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.ap

Re: Using s:actionerror

2011-08-09 Thread Dave Newton
On Tue, Aug 9, 2011 at 10:20 AM, Christian Grobmeier wrote: > Shouldn't at least the message text come out of it? No, the plain theme doesn't do much for you. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: Performing Shiro Authorization Checks inside a Struts2 Action Class

2011-08-10 Thread Dave Newton
On Wed, Aug 10, 2011 at 10:49 AM, wrote: > Struts will ignore the shiro annotations which is expected . > Not sure what that means. >@RequiresPermissions("account:create") >public String createAccount(){ > > Is it possible to get configure struts to process the annotation? > P

Re: Custom tag in Struts 1.3.8

2011-08-11 Thread Dave Newton
wrong version of struts. On Aug 11, 2011 1:23 PM, "Christian Grobmeier" wrote: > Hi, > > I do not know a text tag in struts: > http://struts.apache.org/2.2.3/docs/ui-tag-reference.html > > And the texfield tags renders correct with closing /> (at least in my app) > > Might it be related to the tag

Re: Looking for source to com.opensymphony.xwork2.ActionContext

2011-08-13 Thread Dave Newton
On Sat, Aug 13, 2011 at 10:41 AM, acnice wrote: > Hey Can you please tell me the solution for this error. > Kinda difficult w/o any context. Did you set up the appropriate filter(s) in your web.xml? Dave

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Dave Newton
Check for JS errors in the console then, jQuery works fine with S1. Dave On Aug 16, 2011 12:44 PM, "Anjib Mulepati" wrote: > On 8/16/2011 10:51 AM, Eric Lentz wrote: >>> I have following code with drop-list name "agencyName". But >> event.change() attached to this object never called. >> >> Make

Re: [OT] JQuery or dojo?

2011-08-16 Thread Dave Newton
What are your criteria? IMO they're different things, Dojo is more of an app framework, although there's overlap in functionality at the low level. Dave On Aug 16, 2011 12:38 PM, "Balwinder" wrote: > Hi All, > > Can any one suggest, for ajax which framework is better? > > Regards, > Balwinder K

Re: [OT] JQuery or dojo?

2011-08-16 Thread Dave Newton
jQuery. Dave On Aug 16, 2011 1:01 PM, "Balwinder" wrote: > Dave, > > My criteria is: > > Able to ajaxify my app seamlessly. > Quick in implementation. > Ease of maintenance. > Quick to learn. > > > Regards, > Balwinder Kumar > > On 8/1

Re: [OT] JQuery or dojo?

2011-08-16 Thread Dave Newton
er" wrote: > Out of curiosity. > What are the criteria which speak for Dojo, in your opinion? > > On Tue, Aug 16, 2011 at 7:07 PM, Dave Newton wrote: >> jQuery. >> >> Dave >> On Aug 16, 2011 1:01 PM, "Balwinder" wrote: >>> Dave, >>&

Re: Does jQuery work with Struts 1.3.8 custom tag?

2011-08-16 Thread Dave Newton
What script? The script that attaches the handler? Dave On Aug 16, 2011 1:46 PM, "Anjib Mulepati" wrote: > Yes script runs fine. > On 8/16/2011 1:19 PM, Eric Lentz wrote: >>> There is no error at console but can run the script in console itself. >>> Any suggestion? >> Are you saying that you can

Re: [OT] JQuery or dojo?

2011-08-16 Thread Dave Newton
But modern Dojo can be used on its own. Dave On Aug 16, 2011 10:20 PM, "Vishwa Sahan" wrote: > dojo plugin is no longer supported i think... > > > > > -- > Vishwa Rajakaruna > > *...It does not take a new day to make a brand new start > It only takes a deep desire to try with all your heart...*

Re: getOutputStream() has already been called for this response

2011-08-20 Thread Dave Newton
A request can only return one response: the file, or a forward (assuming it's not some sort of streaming forward). That method is pretty hard to follow, and should be refactored, IMO. Dave On Saturday, August 20, 2011, raaja.g wrote: > Hi, > > I am getting the *java.lang.IllegalStateException:

Re: Struts2 dispatch request to another application

2011-08-26 Thread Dave Newton
On Fri, Aug 26, 2011 at 6:51 PM, wrote: > I thought of that, but it doesn't work because the other server is not > available through Internet, only the first one. So I need to 'tunnelize' the > request from the browser to the other server thorugh my application. > If you're trying to make it loo

Re: Struts2.0

2011-08-27 Thread Dave Newton
On Sat, Aug 27, 2011 at 1:46 AM, dineshram89 wrote: > With FIlter tags: > In web.xml i mentioned the "filter" tags. When i run the index.jsp, Its > not running. Showing ERROR:...The requested resource (/struts2_app1/) > is > not available. > Make sure you've turned on debug mode, and increa

Re: Convention plugin can't find Actions

2011-08-28 Thread Dave Newton
Try naming it TestAction. Dave On Sun, Aug 28, 2011 at 4:13 PM, chengas123 wrote: > Hi, > > I created the action below in a package ending with "action" and extended > ActionSupport. Yet, the convention plugin is not finding the action. I > installed the config browser plugin and it does not s

Re: Convention plugin can't find Actions

2011-08-28 Thread Dave Newton
IIRC it needs to be in a package ending in action/actions/something-else and the name needs to end in Action, at least that was the case when I wrote the book covering 2.0. If changing the package suffix to "actions" doesn't do it then you'll probably want to take a quick gander and the scanning co

Re: Struts DataSource Feature

2011-08-29 Thread Dave Newton
It's been deprecated for a long time because there are non-Struts ways to achieve the same functionality. I wouldn't use it. Dave On Monday, August 29, 2011, Anjib Mulepati wrote: > Is Struts DataSource Feature still worth using. I am on Struts 1.3.8. > I heard it will be removed from Struts eve

Re: rest-plugin: paramPrepareParam + Namespaces

2011-08-30 Thread Dave Newton
On Tue, Aug 30, 2011 at 1:25 PM, M. Rakowski wrote: > 1) paramPrepareParam-Stack: > It seems that the rest plugin does not support paramPrepareParam-Stack. Define "support"; the REST plugin defines its own interceptor stack [1] and if you're modifying it you'll need to keep that in mind. Paramet

<    5   6   7   8   9   10   11   12   13   14   >