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

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]" wro

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 f

Re: Struts 1.2.4 validator framework.

2011-06-27 Thread Dave Newton
Oh, you're saying that the error message *renders* as "... less than ${var.minlength} characters"? What happens when you declare the var as ${var:minlength} as in the docs? Dave On Mon, Jun 27, 2011 at 8:17 AM, Maithily wrote: > Thanks  for the reply Dave. > > T

Re: Struts 1.2.4 validator framework.

2011-06-27 Thread Dave Newton
>From http://struts.apache.org/1.2.4/userGuide/dev_validator.html * minlength - validate input data isn't less than a specified minimum length. Requires a minlength variable. minlength3 So, it's a colon there. Dave On Mon, Jun 27, 2011 at 8:31

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
net/pub/a/today/2003/11/14/tagfiles.html ... etc ... Try searching. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: POJO's collection not populated when submitting form

2011-06-27 Thread Dave Newton
ction syntax (square brackets, as you tried) or indexed notation (paren) would work, since there's no getAt type thing for a set. You may be able to create a custom type converter, but meh. Dave On Mon, Jun 27, 2011 at 10:15 AM, Justin Robbins wrote: > Hi folks, > > Not possible to po

Re: POJO's collection not populated when submitting form

2011-06-27 Thread Dave Newton
known order, or to be able to get specific items in the collection by ID. Dunno :) I honestly don't recall how the default XW2 handles sets (the built-in type conversion irritates me, actually, the way it's implemented) but perhaps it's something worth

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

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

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

2011-07-01 Thread Dave Newton
But the include tag is still directly referencing a JSP, no? Dave On Friday, July 1, 2011, Александр Высоков wrote: > In attached in jira test-project (StrutsBugTest.war) index.html contains > link: > click > > Action mapping file contains: > Configuration 2.0//EN" &q

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

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

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. D

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 dat

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

2011-07-03 Thread Dave Newton
s difficult to guess what you're doing. Dave On Jul 3, 2011 8:47 PM, "log2akshat" wrote: > No, validation is not failing as you can see the screenshot in my previous > post in an another problem. The problem is that when I am including the > validation xml file the form is

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

2011-07-04 Thread Dave Newton
re you using? Are you using the Spring plugin? Have you done any form validation successfully in the application, or did you write all this then start debugging everything at once? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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 n

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 O

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

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.Param

Re: "/" character an invalid key?

2011-07-07 Thread Dave Newton
regex that would allow arbitrary characters inside quotes, and future-proof the interceptor. IMO coupling field labels to semantic constructs is a Bad Idea: there are reasons for decoupling things at the presentation layer. Hopefully you'll never need to sell paint to people that speak Spanish. Dave

Re: "/" character an invalid key?

2011-07-07 Thread Dave Newton
t; of value stored under an arbitrary number of labels, yep. The analogy would be a class having an "age" field, but "age", "edad", "alter", "âge", etc. properties. Dave - To unsubscrib

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

2011-07-08 Thread Dave Newton
n code above. Please, *please* refactor your code, clean it up, and pay very close attention to what the code you're writing is actually doing. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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

2011-07-10 Thread Dave Newton
cle.com/javase/tutorial/java/package/namingpkgs.html The JLS (not sure which version I was just looking at) doesn't say much about it, but does show an example showing "mousefinder" as part of a package. I see camelCase package name components /very/ rarely, even when a component is a compound word. Meh. Dave

[OT] Re: Using Display Tag library

2011-07-11 Thread Dave Newton
aging would help me ? By making it unnecessary to keep your entire list in session or request, like your original question seemed to ask. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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

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 F

Re: JUnit in Struts

2011-07-12 Thread Dave Newton
e web there's quite a few resources available, and several options for setting everything up. Dave On Jul 12, 2011 4:35 AM, "Udhay" wrote: > Hi, > > Please help me how to perform JUnit testing in Struts 1.1 applications. > > Kindly share me any links and other inf

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 kno

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 anymor

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

2011-07-12 Thread Dave Newton
maven-ized) minimal example showing the behavior; I'll change the S2 version to the two you mention and debug this--messages should *not* persist between requests. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.o

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

2011-07-12 Thread Dave Newton
Do you understand /why/ we're saying it? IMO it'd be beneficial to understand why you're seeing a "change" in behavior. Dave On Jul 12, 2011 1:17 PM, "Emi Lu" wrote: > Thank you for all inputs! All right, I will have to change my codes. > > Emi >

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

2011-07-12 Thread Dave Newton
.] Or > maybe it's "obvious." I don't know if it "obvious" or not, but it is a well-known FreeMarker function and is documented pretty well. Like you said, it's common enough, and the FreeMarker docs reflect this. No reason /not/ to have an example, th

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

2011-07-18 Thread Dave Newton
ber which impl that's for.) Dave On Jul 18, 2011 3:58 PM, "Emi Lu" wrote: > Hello, > > Could someone tell me the differences between "jstl.jar vs. jstl-api.jar"? > > It seems that "jstl-api.jar" cannot find: > <%@ taglib prefix="c&quo

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

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

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 + spring

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

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

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
pe of behavioral control do you want? It's handled by the checkbox template and the interceptor. > * Can the document be updated to include these examples? (shall I open a JIRA issue against the docs?) Sure, or file a CLA and contribute some additional docs. Dave

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. > &g

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 el

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 fro

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,

Re: can i override freemarker template

2011-08-01 Thread Dave Newton
ear, consistent path convention. Dave On Aug 1, 2011 6:47 AM, "Yonder" wrote: > Dear all, > > I'm using struts 2.2.3 and conversion plugin. I have set the struts.convention.result.path to '/WEB-INF/views' and I know the convension plugin will searching for resul

Re: Destroy an Action in Struts2?

2011-08-01 Thread Dave Newton
ary? I'm pretty skeptical. Dave On Aug 1, 2011 3:49 AM, "JOSE L MARTINEZ-AVIAL" wrote: > Well, the interceptor should be the first one on the stack, so all data > required in the result should have been already used. It's not a bad idea, I > will work with that. > > W

Re: Where to put non action associated data

2011-08-01 Thread Dave Newton
k of general-purpose functionality, even though in the end it'd act the same--it's more of a semantic/cognitive difference. YMMV :) Dave On Jul 31, 2011 2:27 PM, "Chris Pratt" wrote: > This sounds like one of the very few legitimate uses of the chain result > type. Check

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 cod

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

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

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...@stru

Re: Performing Shiro Authorization Checks inside a Struts2 Action Class

2011-08-10 Thread Dave Newton
t's precisely what you want? (Assuming I understand your problem statement correctly.) Dave

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(

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 bet

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
Full-stack GUIs. IMO jQuery is better for minor ajaxification of apps. For strong GUI needs I'd lean towards more complete, pre-packaged solutions rather than trying to mash jQueryUI things together, which can be painful at times. Dave On Aug 16, 2011 1:10 PM, "Christian Grobmei

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 sugg

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.Illegal

Re: Struts2 dispatch request to another application

2011-08-26 Thread Dave Newton
If you're trying to make it look like the request is being served by your app, but coming from another one, then you'll basically need to use something like HttpClient to make the underlying request and stream its results back to the client of your app. Dave

Re: Struts2.0

2011-08-27 Thread Dave Newton
#x27;ve turned on debug mode, and increase your logging level to debug. Then check the log on startup. My *guess* is that you're either (a) deploying too few required libraries, or (b) deploying too many libraries and introducing an unsatisfied dependency. But again, you're not supplying enough information for us to help. Dave

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 brows

Re: Convention plugin can't find Actions

2011-08-28 Thread Dave Newton
der and the scanning code. Dave On Sun, Aug 28, 2011 at 4:20 PM, chengas123 wrote: > Thanks for the suggestion. Didn't help though. Shouldn't the fact that it > extends ActionSupport be enough anyway? > > -- > View this message in context: > http://struts.1045723.n5

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 rem

Re: rest-plugin: paramPrepareParam + Namespaces

2011-08-30 Thread Dave Newton
quot; happens when i want to > hand over an id-param (calling foo/123). > The REST plugin puts actions into its own namespace (IIRC); once you're out of that namespace you'd need to configure things manually if you want non-default behavior. Dave [1] http://svn.apache.org/viewvc/struts/

Re: bean:write formatKey tag

2011-08-30 Thread Dave Newton
Man, I hope so, otherwise it's gonna be like five years past its delivery date. Dave On Tue, Aug 30, 2011 at 7:48 AM, bvikas wrote: > Hello, > > Did you find a solution to the above problem? What is the solution? Did you > have to use localeKey attribute or is the solution so

Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Dave Newton
What happens? What do you expect to happen? What's your validation config? We need something beyond "it doesn't work". Dave On Sep 2, 2011 3:47 AM, "RajasekharReddy" wrote: > I am trying to implement Client-Side Validations using struts 1.3 > > But serve

Re: Return text to jsp, plus image and imageMap from a single Data query?

2011-09-02 Thread Dave Newton
, call the same services. Dave On Fri, Sep 2, 2011 at 11:21 AM, AndyLaw wrote: > I have an application that I need to develop that requires the following: > > Following selection by the user of the item of interest plus up and > downstream padding, report the locations and cha

Re: Return text to jsp, plus image and imageMap from a single Data query?

2011-09-03 Thread Dave Newton
Okay, so I guess my question is "Why do you want to deliver the result in three separate parts?" Without a clear understanding of what you're trying to do and why, it's difficult to answer in a helpful way. In any case, you can return a single stream from a single request.

Re: datetimepicker

2011-09-07 Thread Dave Newton
client side validation ? > Don't enable it? Or are you saying you want *selective* client-side validation, which differs from server-side validation? AFAIK that's not possible, but you could validate the date manually on the server-side and skip it in the validation config. Dave

Re: struts2 jquery autocompleter is not working

2011-09-09 Thread Dave Newton
I didn't even know it sent *any* other form information, is it actually in the HTTP request? If it is, then perhaps it builds up its request on page load, and not dynamically. Dave On Thu, Sep 8, 2011 at 8:27 PM, clanmilano wrote: > Hello there! I have a web project in which I'm

Re: struts2 jquery autocompleter is not working

2011-09-09 Thread Dave Newton
Sounds like a bug off it's supposed to be serializing on submit, or an ambiguous spec--I'd check the tag code to see what seems to be intended and take it from there. Dave On Sep 9, 2011 6:16 PM, "clanmilano" wrote: > getAllProducts() is called any time the user type in

Re: Getting continuous error in Tomcat log [Struts 1.3.8]

2011-09-19 Thread Dave Newton
Seriously? In any case, do you have a self-referential Tile/forward definition? Dave On Mon, Sep 19, 2011 at 12:52 PM, Anjib Mulepati wrote: > When I run my web application I am getting following error continuously. I > couldn't figure out so please help. > > java.lang.StackOverflowError >

Re: To create new session without invalidating existing one

2011-09-30 Thread Dave Newton
you're setting it, but not able to retrieve it, it's likely you're doing something wrong. > First time, I will set the ID as part of the URL and my problem is the ID > has to be carried for every subsequet pages. How to achieve this? > URL rewriting. Dave

Re: Unit Test Struts2 Action - Custom type converters not being run?

2011-09-30 Thread Dave Newton
was* copying over the properties files. It's more likely it was Eclipse doing that; Maven should only be taking Java source files from the Java source directory. Dave

Re: java.lang.ClassNotFoundException with struts2 after introducing tiles in my application

2011-10-11 Thread Dave Newton
IIRC the version of Tiles you're using is past what the Tiles plugin supports: http://mvnrepository.com/artifact/org.apache.struts/struts2-tiles-plugin/2.2.1 This is one reason why handling dependencies manually is almost always a bad idea these days. Dave On Sat, Oct 8, 2011 at 12:

Re: Struts2 Memory Management

2011-10-19 Thread Dave Newton
I don't understand; what does this have to do with Struts 2 *or* MVC? You load a thousand objects into memory, you load a thousand objects into memory--that's pretty much framework, design pattern, and language-neutral. Dave On Oct 19, 2011 9:18 AM, "Charles Godfrey" wrot

Re: Struts2 Memory Management

2011-10-19 Thread Dave Newton
'm > reaching > out to you all. > > -Charles > > > > On Wed, Oct 19, 2011 at 9:21 AM, Dave Newton > wrote: > > > I don't understand; what does this have to do with Struts 2 *or* MVC? You > > load a thousand objects into memory, you load a thousa

Re: Struts2 Memory Management

2011-10-19 Thread Dave Newton
--the concern was with the data fetch, not the client push. The solution is pretty simple; use a lazy list that knows when it needs to fetch more data, allowing the use of standard JSTL or S2 tags, and avoiding generation of HTML in a servlet. (Of course, you could do that in S2 as well.) Dave On Wed

Re: Struts2 Memory Management

2011-10-19 Thread Dave Newton
On Wed, Oct 19, 2011 at 12:12 PM, Charles Godfrey wrote: > Customers who use the product can have > 100 rows or 10,000 rows in a table, and several have into the 1000's. > On the *client* side?! I can't see how that's useful. Dave

Re: Struts1 in IDE but S2

2011-10-28 Thread Dave Newton
MyEclipse and IntelliJ both support S2, and I've seen at least one other Eclipse S2 plugin. S2 just isn't that popular. Dave On Fri, Oct 28, 2011 at 6:03 PM, Frans Thamura wrote: > hi all > > any reason, why S2 is not default feature, but S1 in almost IDE popular > >

Re: Running Struts2 in Weblogic

2011-10-30 Thread Dave Newton
My car won't start; what's wrong with it? http://www.coderanch.com/how-to/java/ItDoesntWorkIsUseless Dave On Sun, Oct 30, 2011 at 9:30 PM, Frans Thamura wrote: > hi all > > i have problem in loading struts.xml when try to load struts-blank.war > in weblogic 11g. > &g

Re: Running Struts2 in Weblogic

2011-10-30 Thread Dave Newton
ng this URL >> >> http://tech-architecture.blogspot.com/2009/02/getting-struts-21-to-work-in-weblogic.html >> >> i feel that there are several propietary configuration that we should >> add to weblogic. >> >> we run in glassfish, tomcat, never happen ;) >&g

Re: struts2 in weblogic 10.3

2011-11-01 Thread Dave Newton
Running S2 under multiple versions of WL w/o issue, although I wasn't personally involved in getting it running under WL 10. Dave On Tue, Nov 1, 2011 at 10:10 AM, Frans Thamura wrote: > Spring mvc app run smooth here > Inside weblogic > > Datasource bugs i believe > On

Re: multiple header in struts2 select tag

2011-11-07 Thread Dave Newton
Normally you'd do this through an tag [1]. If you need functionality beyond the defaults, you'd need to roll your own tag, or consider the optgroup approach. Dave [1] http://struts.apache.org/2.x/docs/optgroup.html On Mon, Nov 7, 2011 at 12:32 PM, Jyothrilinga Rao wrote: >

Re: multiple header in struts2 select tag

2011-11-07 Thread Dave Newton
Haven't seen the error before, but I also can't see your JSP to eyeball or test it. Dave On Mon, Nov 7, 2011 at 1:06 PM, Jyothrilinga Rao wrote: > Thank you Dave. > I used the optgroup and got a unexpected error. > Was using jars struts-core-2.0.14.jar and xwork-2.0.7.jar. &

Re: Beginner question

2011-11-11 Thread Dave Newton
Probably because it doesn't need to. Dave On Fri, Nov 11, 2011 at 4:43 PM, Marco Schwarz wrote: > Hi, > > I'm new in this mailinglist. > > I have a guestion (simple) Why a textfield disabled="true" doesn't set > his value to my object? When I set

Re: Beginner question

2011-11-11 Thread Dave Newton
Oh, I misunderstood; I thought you meant the rendered HTML. Chris is correct; disabled field values aren't sent by the browser. Sorry! On Fri, Nov 11, 2011 at 4:47 PM, Dave Newton wrote: > Probably because it doesn't need to. > > Dave > > On Fri, Nov 11, 2011 at 4:43 P

Re: Beginner question

2011-11-11 Thread Dave Newton
I'd either: (a) Not render it as a text field, but rather as plain text, or (b) Include a hidden field if the user can't edit it. There are probably other options too. Dave On Fri, Nov 11, 2011 at 5:00 PM, Marco Schwarz wrote: > Hi, > > that's I understand... but I

Re: provide Helloworld application in Struts2.0

2011-11-13 Thread Dave Newton
There are several demo apps, including a mostly-blank one called "struts-blank" provided in the full and sample apps distros. http://struts.apache.org/download.cgi<http://struts.apache.org/download.cgi#struts231-SNAPSHOT> Dave On Sun, Nov 13, 2011 at 8:53 AM, Praveen Jain <

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