Re: Precedence

2010-12-30 Thread Dave Newton
Which version of struts? Do you call super () (S1)? Did you just try it? On Dec 30, 2010 11:10 AM, "Anjib Mulepati" wrote: > When using both validation.xml and validate() method for form validation > which one have precedence? > > Anjib > > -

Re: Problem with browser or Struts file upload code.

2010-12-29 Thread Dave Newton
he action called from the Struts framework. > * @param mapping The ActionMapping used to select this instance. > * @param request The HTTP Request we are processing. > * @return set of errors. > */ > @Override > public ActionErrors validate(ActionMapping mapping, > HttpServletRe

Re: How to save the valuestack when using the redirectaction result type

2010-12-29 Thread Dave Newton
JSP pages should be under WEB-INF to avoid direct access; this has been a best practice for years. Dave On Dec 29, 2010 1:14 AM, "maven apache" wrote: > Hi: > In my application I first use the chain result type for one > action:"loginSub". > > If login success,user should be taken to the manager

Re: change the filename to be downloaded

2010-12-28 Thread Dave Newton
pe"* > > Nomatter I set it to text/plain or application/vnd/ms-word,I can not see the > difference. So I wonder if there is relly no difference. > > 2010/12/29 Dave Newton > >> http://struts.apache.org/2.x/docs/stream-result.html >> >> On Tue, Dec 28, 2010

Re: change the filename to be downloaded

2010-12-28 Thread Dave Newton
http://struts.apache.org/2.x/docs/stream-result.html On Tue, Dec 28, 2010 at 7:35 PM, maven apache wrote: > Hi jlmagc: > > How do you set the contenttype in the result of the action? > > 2010/12/27 maven apache > > > > > > > 2010/12/27 > > > >> That's right. I don't have access to the code now,

Re: Problem with browser or Struts file upload code.

2010-12-28 Thread Dave Newton
Both commons-fileupload and Tomcat usually have a maximum file upload size; configure one or both. Dave On Dec 28, 2010 2:30 PM, "Anjib Mulepati" wrote: > I am writing an app to upload file using Struts 1.3.8. > > It works fine if I upload small file. But when I try to upload > lager(>200MB) fil

Re: Authorization/ Authentication

2010-12-28 Thread Dave Newton
On Tue, Dec 28, 2010 at 11:10 AM, Amol Ghotankar wrote: > Even I am searching for some better way in which authentication can be done > using struts2 or spring security toghether. > > No direct or simple example to explain it working together. > > Specially for these two cases where > > 1. which u

Re: problem mapping values from the jsp to the action

2010-12-27 Thread Dave Newton
No code, no help. Struts doesn't know about HTML, so a property's location in the DOM is unlikely to be the problem-but we have zero clue regarding your implementation, so I'm not sure what kind of help you expect. Dave On Dec 27, 2010 4:28 PM, "developer researcher" < java.developer.researc...@g

Re: namespace vs package

2010-12-27 Thread Dave Newton
gle laptop? My geek cred shot up like maybe a thousand percent when that thing showed on my doorstep, so I gotta brag every now and then.) On Mon, Dec 27, 2010 at 1:11 PM, Greg Akins wrote: > On Mon, Dec 27, 2010 at 1:05 PM, Dave Newton > wrote: > > It *is* the default namespace, but

Re: namespace vs package

2010-12-27 Thread Dave Newton
It *is* the default namespace, but almost always ends up being confusing at some point. The minimal namespace I recommend is "/". There's no direct relationship between package and namespace other than a package has a namespace--I always figured it was to allow decoupling of paths and packages. D

Re: Authorization/ Authentication

2010-12-27 Thread Dave Newton
(Let me clarify slightly.) On Mon, Dec 27, 2010 at 8:38 AM, Dave Newton wrote: > Why/how did it confuse you? Login shouldn't be /performed/ by an > interceptor, an interceptor should check if a user has logged in for a given > resource and if not redirect to a login page. >

Re: Authorization/ Authentication

2010-12-27 Thread Dave Newton
27;re trying to figure out. Dave On Dec 27, 2010 7:18 AM, "Greg Akins" wrote: > I'm just starting to research the appropriate Struts2 way to do > Authorization/Authentication. > > Looks like a LoginInterceptor on the default stack is the way to go > (though I found

Re: S2: Populate with List

2010-12-26 Thread Dave Newton
I don't know if that would work either, and it's *very* brittle/error-prone. It would be a trivial operation to create a proper mapping from the Object[] to something that has actual *meaning*, or to use Hibernate in a more rational way, and eliminate the problem. Dave On Thu, Dec 23, 2010 at 7:

Re: Struts2 and Guice

2010-12-24 Thread Dave Newton
What isn't stable enough, and where did you read it? On Dec 24, 2010 10:41 PM, "Frans Thamura" wrote: > I read that it is not stable enough > /m/ > > -Original Message- > From: foo bar > Date: Sat, 25 Dec 2010 15:19:14 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List

Re: RE: FW: Iterator: field errors.

2010-12-24 Thread Dave Newton
Did you /try/ using index notation? If you have no way of referring to a specific element I'm not sure what else to tell you. Dave On Dec 24, 2010 12:02 PM, "Dave Newton" wrote: > Nope, on cell. > On Dec 24, 2010 1:02 PM, "Satheesh Kannan A B" > wrote: >>

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
, right? Or is there? > > Thanks > Jose > > Sent via BlackBerry from T-Mobile > > -Original Message- > From: Dave Newton > Date: Fri, 24 Dec 2010 12:57:53 > To: Struts Users Mailing List;

Re: RE: FW: Iterator: field errors.

2010-12-24 Thread Dave Newton
Nope, on cell. On Dec 24, 2010 1:02 PM, "Satheesh Kannan A B" wrote: > Hi, > > Can u please give an example for below of my code > > Thanks and Regards, > > Satheesh Kannan A B > > > > -----Original Message- > From: Dave Newton [mailto:davelnew..

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
the last action, not the first one. > Sent via BlackBerry from T-Mobile > > -Original Message----- > From: Dave Newton > Date: Fri, 24 Dec 2010 07:47:59 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: Re: How to avoid PreResu

Re: FW: Iterator: field errors.

2010-12-24 Thread Dave Newton
You can if they're indexed, no? On Dec 24, 2010 12:53 PM, "Satheesh Kannan A B" wrote: > Hi, > > Still now I didn’t get any solution for this. I think in struts 2.* server side validation is not good as struts 1.*. > Since i cant display exact fielderror message for a field in a iterator and also

Re: RE: Calculate module of index in Struts2 iterator

2010-12-24 Thread Dave Newton
Huh? Regex libraries? On Dec 24, 2010 9:14 AM, "Martin Gainty" wrote: > > good advice for portability for regular-expression libraries > > any someone put that into the docs? > > Happy Christmas and Merry New Year, > Martin Gainty > __ > Jogi és Bizalma

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
Check to see if it's already there? On Fri, Dec 24, 2010 at 7:04 AM, JOSE L MARTINEZ-AVIAL wrote: > Hello all, > I've developed an interceptor to add cookies to the response. It works as > follows: > [..] >public String intercept(ActionInvocation invocation) throws Exception { >invoc

Re: regex in if tag?

2010-12-23 Thread Dave Newton
Yep, the entire expression needs to be in the OGNL escape. Although I'd just use single and double quotes to avoid the escapes. Dave On Thu, Dec 23, 2010 at 12:53 PM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > Try this: > > > 2010/12/23 Colin Freas : > > I'm trying to use a re

Re: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Dave Newton
On Thu, Dec 23, 2010 at 12:29 PM, Brian Thompson wrote: > How could you tell he was using Struts 1? > Because of these: > > Besides the taglib prefix (which is a /strong/ hint, but not conclusive), there's no tag in S2. http://struts.apache.org/2.x/docs/tag-reference.html Furthermore, the

Re: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Dave Newton
only > reference I have is the tips and tricks available on different forums and > that is where I got this information. > > Do you have a better suggestion; or at least you can point me to a link > where I can go through few examples. > > Amit Oberoi > > > -Original

Re: Setting object from param tag fails in Struts 2.2.1

2010-12-23 Thread Dave Newton
On Thu, Dec 23, 2010 at 7:30 AM, Pro1712 wrote: > I use this action: > ignoreContextParams="true"> > > > /> > > > ActionLinksAction has this method: > public void setActionLinks(final LinkedHashMap actionLinks) > { >actionLinks_ = actionLinks; > } > > This should

Re: which versions of struts 1.x are still being maintained?

2010-12-23 Thread Dave Newton
I haven't seen anything go into 1.1 or 1.2 for a pretty long time. Upgrading from 1.1 to 1.2 was usually a pretty good idea, and usually easy. I'm not sure how much effort we'd put into fixing something in 1.1. I'm a little skeptical we'd put a lot of effort into 1.2, either, but it'd depend on th

Re: RE: How do a create an Object of standalone java class in my JSP page.

2010-12-23 Thread Dave Newton
Is there a reason you're using such old, clunky technology to write a new app? Dave On Dec 23, 2010 5:35 AM, "Amit Oberoi" wrote: > Thanks Paul. > > I finally got to the tag and has added the getStreamNames() function o the Action Form. I am sure this should work and would try as soon as I'm don

Re: Invoking Javascript function from Struts 1.3

2010-12-23 Thread Dave Newton
Right, and I said don't use a struts link tag :) Dave On Dec 23, 2010 5:22 AM, "Dennis Atkinson" wrote: > Thanks to the repliers! > > Tom, your solution is perfect. Thank you! > > Dave, I might have been unclear as to what I was looking for. I wasn't specifically looking to get the tag working

Re: Invoking Javascript function from Struts 1.3

2010-12-22 Thread Dave Newton
On Wed, Dec 22, 2010 at 12:16 PM, wrote: > > Why use a struts tag to generate a non-struts link? > And, this seems like a perfectly reasonable thing to do. Not really. The whole point of the Struts tags is to access Struts functionality, like action mappings. All this is is pure JavaScript. No

Re: Invoking Javascript function from Struts 1.3

2010-12-22 Thread Dave Newton
Why use a struts tag to generate a non-struts link? Dave On Tuesday, December 21, 2010, Dennis Atkinson wrote: > Greetings all. > > I have a problem invoking Javascript that I can't seem to solve.  I'm hoping > someone here has run into the same kind of thing. > > When I am iterating through a

Re: web application response time is too large.

2010-12-21 Thread Dave Newton
On Tue, Dec 21, 2010 at 11:56 PM, wrote: > Are you sure that database is normalised as well.. > Normalization can often *increase* response time, particularly for some types of operations, because of the join overhead. The DB needs to be correct for what it's being used for, and sometimes normali

Re: web application response time is too large.

2010-12-21 Thread Dave Newton
The problem could be *anywhere*. How are you going to start tracking it down? You must have *some* ideas of where/how to look? Dave On Tue, Dec 21, 2010 at 12:19 PM, onlysameer_no1else wrote: > Hi All > > I have developed one web application in struts 1, > database as MS SQL server and it is d

Re: Struts 2 JSR-303 Bean Validation Support

2010-12-20 Thread Dave Newton
Right. if nobody has done one shouldn't be too hard to whip one up. Dave On Mon, Dec 20, 2010 at 12:36 PM, Dave Newton wrote: > I remember it being brought up once, but I don't recall what the end result > was, and then I dropped off the planet for like a year. Seems like

Re: Struts 2 JSR-303 Bean Validation Support

2010-12-20 Thread Dave Newton
I remember it being brought up once, but I don't recall what the end result was, and then I dropped off the planet for like a year. Seems like it'd be pretty straight-forward, though, and On Mon, Dec 20, 2010 at 12:28 PM, Alfredo Manuel Osorio Martinez < alfredo.oso...@afirme.com> wrote: > What I

Re: use of interceptor stacks in struts2

2010-12-19 Thread Dave Newton
Yes. Quick glance at the logs proves it. On Dec 19, 2010 12:31 PM, "webmeiker" wrote: > Hi, > > Could you please confirm me next supposition? > > Having a custom interceptor stack defined like this: > > > > > > > > > > > > > > > > > > For all the actions that use that interceptor stack (*my

Re: Struts2 URL building in action for JSON.

2010-12-18 Thread Dave Newton
(static or > otherwise) and those configuration and action mapping classes are critical > to the functioning of the method. I'd love to find a way to move this out > of my inheritance hierarchy, so do tell? > (*Chris*) > > On Sat, Dec 18, 2010 at 12:14 PM, Dave Newton > wrote

Re: Struts2 URL building in action for JSON.

2010-12-18 Thread Dave Newton
There's no reason it couldn't work in a "helper class", though; you can define arbitrary beans etc. inside the config. Dave On Sat, Dec 18, 2010 at 3:12 PM, Chris Pratt wrote: > I assume what you want to do is turn an action name into a URL. Here's > what > I've used before, I'm not sure if the

Re: No tag "" defined in tag library imported with prefix "html"

2010-12-17 Thread Dave Newton
I'm randomly bitten by funky input files, too, like when people cut-and-paste from something like Word. I don't think that's it, but when it's something weird, you never know. Also, which line is that? It's impossible to tell where the lines are in your file. Dave On Fri, Dec 17, 2010 at 1:24 PM

Re: Problem with action mapping

2010-12-16 Thread Dave Newton
e should be body in tiles def file. so I change all to bosy as > tiles.jsp has attribute="body" > > Still same problem. > > > Anjib > > On 12/16/2010 2:15 PM, Dave Newton wrote: > >> A startup error. Check the logs. >> >> Dave >> >> O

Re: Problem with action mapping

2010-12-16 Thread Dave Newton
navailable > > Anjib > > > > On 12/16/2010 2:15 PM, Dave Newton wrote: > >> A startup error. Check the logs. >> >> Dave >> >> On Thu, Dec 16, 2010 at 1:59 PM, Anjib Mulepati >> wrote: >> >> This is the problem I am facing everytime

Re: Problem with action mapping

2010-12-16 Thread Dave Newton
A startup error. Check the logs. Dave On Thu, Dec 16, 2010 at 1:59 PM, Anjib Mulepati wrote: > This is the problem I am facing everytime I am creating new project in > Netbeans and modify the default pages. Am I missing some sequence of action > or parameters. To make it clear I am including mo

Re: Struts 2 Conditional Validators?

2010-12-16 Thread Dave Newton
Validators aren't called when *you* call a method, its not like they cause byte-code to be inserted. Dave On Thursday, December 16, 2010, RogerV wrote: > > Hi > > Is it possible to "conditionally" trigger a validator such that if > conditionA then use ValidatorX else use ValidatorY within the va

Re: Help... My url grows...

2010-12-14 Thread Dave Newton
On Tue, Dec 14, 2010 at 4:24 PM, Ellson, Jared L wrote: > Hey anybody have a quick idea what would cause my URL to grow. > Excitement. Dave

Re: Iterate through a List of Maps

2010-12-13 Thread Dave Newton
What version? Early versions sometimes required a "#" before the variable name when referencing vars defined by things like an iterator tag. Dave On Monday, December 13, 2010, JOSE L MARTINEZ-AVIAL wrote: > Hello all, I'm trying to iterate through a List of Maps(I have a method > "public List ge

Re: EmailValidator

2010-12-13 Thread Dave Newton
IIRC the default email validator isn't as robust as the page- long RFC email regex. I'd suggest either a patch, ora custom validator. Dave On Dec 13, 2010 12:11 PM, "Greg Akins" wrote: > I just tried to use angrygreg+...@gmail.com as an email , and the > Struts EmailValidator doesn't like it (S

Re: Struts Interceptors

2010-12-10 Thread Dave Newton
On Fri, Dec 10, 2010 at 2:23 PM, Biesbrock, Kevin wrote: > Ah. So is the idea that you *could* have logic in an interceptor that > executes after the action by adding logic after invocation.invoke()? > Sure, like closing a Hibernate session, for example. The caveat (to me, at least) is that the

Re: Struts Interceptors

2010-12-10 Thread Dave Newton
Interceptors don't "execute in reverse order", they're each a "wrapper" around the next interceptor's execution, and eventually, the action itself. If the interceptor is firing twice there's been to requests, which could be a result of a redirect. Dave On Fri, Dec 10, 2010 at 1:50 PM, Biesbrock,

Re: Live Reload - Play framework

2010-12-10 Thread Dave Newton
I think they still have to be public, but I don't really remember anymore. On Fri, Dec 10, 2010 at 10:09 AM, wrote: > No schit! Going to try it now. > > On Fri, Dec 10, 2010 at 9:04 AM, Dave Newton > wrote: > > > On Fri, Dec 10, 2010 at 9:59 AM, wrote: > >

Re: Live Reload - Play framework

2010-12-10 Thread Dave Newton
On Fri, Dec 10, 2010 at 9:59 AM, wrote: > I have always thought the parameters interceptor should reflect on object > properties in the case where it could > not find a set/get method. > Properties haven't needed setters since ~2.1, give or take. I don't know if that was an OGNL change or an S2

Re: Cancel in a form re: bypass Validation

2010-12-10 Thread Dave Newton
On Fri, Dec 10, 2010 at 8:19 AM, Greg Akins wrote: > Thanks Li.. you're correct. And I'm still wondering why the form in > my Application won't display fieldError messages when I use only > Serverside validation. > > If, on the s:form, I use validation="true" the javascript is included > to do

Re: Live Reload - Play framework

2010-12-10 Thread Dave Newton
On Fri, Dec 10, 2010 at 6:14 AM, Frans Thamura wrote: > any one look this > > http://www.playframework.org/ > > will this feature inside S2 > Why bother? Use one or the other. Dave

Re: execAndWait Interceptor

2010-12-09 Thread Dave Newton
On Thu, Dec 9, 2010 at 11:27 AM, wrote: > I thought about that Dave, but isn't reporting an exception to the rule? > So what if it is? Long-running requests still exist (or may, depending on architecture). > Also, should a web framework try to play the role of a reporting solution? > As the fr

Re: execAndWait Interceptor

2010-12-09 Thread Dave Newton
But some requests just take that long, reporting in particular. I'm not sure what that has to do with execAndWait in particular, though... I'd rather do something Ajaxy myself, but that's kind of a separate issue. Dave On Thu, Dec 9, 2010 at 11:11 AM, wrote: > Does anyone actually use this inte

Re: @CustomValidator - quick question

2010-12-09 Thread Dave Newton
Why not just try it? Or check the documentation? There's a note that addresses this specific issue: http://struts.apache.org/2.x/docs/validation.html#Validation-RegisteringValidators Dave On Thu, Dec 9, 2010 at

Re: any option parameter for populating parameters to my bean?

2010-12-09 Thread Dave Newton
Strange, I believe this question was asked by someone else with no name--try searching the archives. Dave On Thu, Dec 9, 2010 at 4:37 AM, maven apache wrote: > My action: > > public class MyAction{ > private MyBean bean; > //getter setter. > } > > public class MyBean{ > private Date star

Re: Dependencies for Struts2

2010-12-07 Thread Dave Newton
Yes. Dave On Tue, Dec 7, 2010 at 6:27 PM, developer researcher < java.developer.researc...@gmail.com> wrote: > Hello, > > When I created my first application with Struts 2 I found the > exception described in the attachment. Searching in the forums of the web I > noticed that several h

Re: Connection Pooling with Struts

2010-12-07 Thread Dave Newton
On Tue, Dec 7, 2010 at 6:15 PM, Anjib wrote: > I am asking about ORM tool not Struts framework itself. > I think the point was more along the lines of "why are you asking here," since you're not asking about the Struts framework. Dave

Re: Connection Pooling with Struts

2010-12-07 Thread Dave Newton
A connection pooling library? On Tue, Dec 7, 2010 at 4:25 PM, Anjib Mulepati wrote: > Ok now I get confuse. I was thinking simple JDBC can't (or complex to ) > handle connection pooling. So framework make work easy. If framework is not > used what are other alternatives to handle connection poo

Re: Connection Pooling with Struts

2010-12-07 Thread Dave Newton
Is the question about connection pooling, as the subject line indicates, or is the question about generic DB handling and JDBC v. ORMs? Dave On Tue, Dec 7, 2010 at 4:20 PM, Arthur Neves wrote: > Nop, > > You dont need using a framework... if you pick one just will make your life > easier! > If

Re: Problem using json-plugin

2010-12-07 Thread Dave Newton
My initial guess would be that it's trying to serialize everything in the world. Maybe try serializing something explicitly? Dave On Tue, Dec 7, 2010 at 11:41 AM, developer researcher < java.developer.researc...@gmail.com> wrote: > Hello, > > I am using struts2 2.2.1 and the json-plugin

Re: Open Session in View, struts2.2.1, eclipseLink (JPA2)

2010-12-07 Thread Dave Newton
Configure it? I don't think I ever had to do anything in particular. Are you having a specific issue? Dave On Dec 7, 2010 2:03 AM, "Ken McWilliams" wrote: > Hello, > > Any advice on how to get Open session in View working with struts2? > I've used spring but not well versed with it. > > Ken. > >

Re: Question about OGNL / EL

2010-12-06 Thread Dave Newton
How/where is partnerId defined? Dave On Mon, Dec 6, 2010 at 12:49 PM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > The url value syntax should be fine. Did you try to test without sitemesh? > > 2010/12/6 Greg Akins : > > This might not be specifically a OGNL question. I've got so

Re: Problem in calling method from Struts.xml in struts2

2010-12-06 Thread Dave Newton
You might *think* it's there, but I'm pretty sure it isn't--is the correct version deployed? Are its dependencies deployed? The message is pretty explicit with regards to what's wrong. Dave On Mon, Dec 6, 2010 at 12:10 PM, ashish chawre wrote: > .

Re: Struts 1 and AJAX

2010-12-03 Thread Dave Newton
Have you actually checked the object you're getting back to see (a) what it is, and (b) how to access and/or manipulate it? These are all JavaScript questions, not Struts, at least as far as I can tell. Dave On Fri, Dec 3, 2010 at 12:05 PM, Anjib Mulepati wrote: > I make following change to tes

Re: Struts2 + Dojo 1.5

2010-12-03 Thread Dave Newton
2 frameworks, > that working with each one separately. > > Thanks and regards, > > 2010/12/2 Dave Newton > > > On Thu, Dec 2, 2010 at 4:23 PM, developer researcher wrote: > > > > > Now what worries me is that there are cases where the javascript > &

Re: Using Dojo with Struts 2

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 8:32 PM, Dean Schulze wrote: > When you say "Just use Dojo" do you mean to drop Struts 2, or to just use > Dojo in the JSPs that I create for Struts 2? > Door number two. Dave

Re: Using Dojo with Struts 2

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 7:47 PM, Dean Schulze wrote: > How do I use Dojo with Struts 2? Just use Dojo. > Struts 2.2.1 has a Dojo plugin with it, but I've heard several people say > not to use the plugin. No one says what the problem is, however. > Antiquated version of Dojo (0.4.3). More diff

Re: Struts2 + Dojo 1.5

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 4:23 PM, developer researcher wrote: > Now what worries me is that there are cases where the javascript (dojo) > works well in Firefox but not on Internet Explorer. Any suggestions to > tackle this problem? > Talk to the Dojo mailing list? Dave

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
turnValue", "-1"); > >ActionErrors errors = new ActionErrors(); >errors.add("error", new ActionMessage(e.getMessage(), false)); >this.saveErrors(request, errors); >return mapping.findForward(FAILURE); //View 2 >

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 1:25 PM, Anjib Mulepati wrote: > But problem I am having is I can't tap the condition where email is > invalid. > > $.post( >"validateEmail.do", >{sendValue: email}, >function(returnValue){ >addToTable(returnValue); //add email to table

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 12:43 PM, Anjib Mulepati wrote: > Ok second also doesn't work. > "It doesn't work" actually isn't descriptive enough to allow anybody to help effectively--you'd need to say what actually happens, what you *expect* to happen, what's in your JavaScript console, what the actio

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 12:33 PM, Anjib Mulepati wrote: > 1. By refresh I mean when user press F5 all content lost. > That is the nature of Ajax-heavy applications. You need to store a means of retrieving the object/data you're currently working with. One place to store it is in the session. Dave

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
On Thu, Dec 2, 2010 at 11:44 AM, Anjib Mulepati wrote: > 1. My record in the table disappear if page is refresh. > Don't refresh? Otherwise you need a mechanism to "remember" what you're working with, like the session. > 2. And If some of my email is incorrect I don't want that to be get back t

Re: Internationalization with REST/Convention plug-ins

2010-12-01 Thread Dave Newton
I got caught out by thinking the packages were created in a different package than I assumed they were, but I don't recall if it was my fault or if there was a configuration parameter I had forgotten to set or what. But just in case it helps, I'll throw it out there. Man, I've forgotten a lot of

Re: execute javascript after action's html renders

2010-12-01 Thread Dave Newton
How is the JavaScript implemented in the child action? And do you mean that an tag is being used (from a JSP? FM?) to load an action (the "child" from above)? Dave On Tue, Nov 30, 2010 at 4:50 PM, Colin Freas wrote: > On Struts 2.1.6, Dojo and JSON plugins. > > I want to execute some JavaScri

Re: Calling OGNL static method with date issue

2010-12-01 Thread Dave Newton
What doesn't work? Anything in the logs? Dave On Tue, Nov 30, 2010 at 2:19 PM, Ken McWilliams wrote: > In my jsp I have two dates ("today" and "expiryDate") the following > works in the JSP: > > > > Now I created two static methods (In a Class called > dateUtils.DateRange): > /*

Re: Incorporating action interceptor configuration parameters into a message

2010-12-01 Thread Dave Newton
Nothing up my sleeve this time. It seems like a global property/constant would be usable, but I've never tried to @Inject a value into both interceptors and actions, so I have no idea if it'd work. Could be useful for a few usecases, though. Dave On Wed, Dec 1, 2010 at 11:38 AM, wrote: > Thank

Re: AJAX file upload

2010-12-01 Thread Dave Newton
On Wed, Dec 1, 2010 at 8:52 AM, Peter Nguyen wrote: > This seems to be a recurring piece of advice with regards to the use of the > struts 2 dojo plugin. Out of curiosity, is there any reason why the plugin > is still included in the latest releases? > Yes, because it's deprecated, not removed.

Re: AJAX file upload

2010-12-01 Thread Dave Newton
On Wed, Dec 1, 2010 at 8:33 AM, piyush kumar wrote: > Yeah you are right, dojo is there in struts2, but that is all i know :-( > ... In any case, it's deprecated, and uses an ancient version of Dojo. Don't use it. Dave

Re: Struts2 + Dojo 1.5

2010-11-30 Thread Dave Newton
Dojo is framework- agnostic. On Nov 30, 2010 12:12 PM, "developer researcher" < java.developer.researc...@gmail.com> wrote: > Hello, > > Has anyone worked with Dojo to create the UI? I do not refer to plugin > for dojo. I mean to use dojo as javascript library to create the structure > of the pages

Re: S2 and Sitemesh basic configuration

2010-11-30 Thread Dave Newton
On Tue, Nov 30, 2010 at 10:35 AM, Greg Lindholm wrote: > Question 4) In the "Example" section of the doc the sitemesh filter > appears after the two struts filters, is this correct? I was under the > impression that the sitemesh filter must be declared between the > struts-prepare and struts-execu

Re: Link Display Logic

2010-11-29 Thread Dave Newton
I'll generally expose permission info through an action (or whatever model makes it to the page) and use a custom tag to really clarify and narrow the purpose of that particular JSP/etc. logic. Other than that, though, not sure what else I'd really do, if I'm trying to stay within the S2 framework

Re: binding paramters in struts2 without the form

2010-11-29 Thread Dave Newton
On Mon, Nov 29, 2010 at 6:55 AM, Jason Ferguson wrote: > Struts will not automatically populate fields based on parameters passed > via > the URL. Your action will need to implement the ParameterAware interface, > and the setParameters(Map parameters) method. Then you > can > use the map to popula

Re: Recommended technology for pages layout in Struts2

2010-11-26 Thread Dave Newton
i, Nov 26, 2010 at 5:10 PM, webmeiker wrote: > What do you mean? (jsp includes and things like that?) > > 2010/11/26 Dave Newton > > > For lots of stuff I just use JSP's built-in mechanisms. > > > > On Fri, Nov 26, 2010 at 4:39 AM, Maurizio Cucchiara < >

Re: Struts 2 Testing - odd behaviour

2010-11-26 Thread Dave Newton
On Fri, Nov 26, 2010 at 12:09 PM, Ashlon Hill wrote: > so there is a typo in value="{platformName}" ? > If not in functionality (I'm not sure what that would do) then in clarity: either use an OGNL escape, or don't, but don't go 50%. Dave

Re: javax.servlet.ServletException: BeanUtils.populate

2010-11-26 Thread Dave Newton
value="9"> >Prénom > value="2"> > > > . > > > We see the indexed liste (liste[0], liste[1], ...). > > So, what may I do to indicate that form contains an indexe

Re: Struts 2 Testing - odd behaviour

2010-11-26 Thread Dave Newton
After fixing the typo in the "value" attribute. On Fri, Nov 26, 2010 at 6:55 AM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > Could you post the generated html? > > 2010/11/26 RogerV : > > > > Hi > > > > I guess this is not strictly a Struts problem, but I thought someone here > >

Re: javax.servlet.ServletException: BeanUtils.populate

2010-11-26 Thread Dave Newton
There's nothing in the form that indicates it's an indexed property/collection. On Fri, Nov 26, 2010 at 5:40 AM, Dominique JUSTE wrote: > > Hello all, > > Thanks a lot for your replies. As I'm French, I hope I will clearly expose > my problem. It has been a long time since my last English draft.

Re: Recommended technology for pages layout in Struts2

2010-11-26 Thread Dave Newton
For lots of stuff I just use JSP's built-in mechanisms. On Fri, Nov 26, 2010 at 4:39 AM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > I prefer SM. You should consider that both use different approaches: > 1. tiles uses composition pattern. > 2. SM decoration pattern instead. > > SM

Re: javax.servlet.ServletException: BeanUtils.populate

2010-11-25 Thread Dave Newton
If it's Struts-related, sure. Dave On Thu, Nov 25, 2010 at 4:05 PM, Dominique JUSTE wrote: > Hello all, > > Although I have used Struts for five years, I have been facing a trouble > since Monday and I don't understand what's happening... > > So may I ask for some help in this mailing list ?...

Re: Specify template to use for struts tag

2010-11-23 Thread Dave Newton
e, Nov 23, 2010 at 3:23 PM, Dave Newton > wrote: > > > Use the "theme" attribute. > > > > Dave > > > > On Tue, Nov 23, 2010 at 2:32 PM, Harsh C wrote: > > > > > Is there a way to specify a template to use for a struts tag, on a per > &

Re: Specify template to use for struts tag

2010-11-23 Thread Dave Newton
Use the "theme" attribute. Dave On Tue, Nov 23, 2010 at 2:32 PM, Harsh C wrote: > Is there a way to specify a template to use for a struts tag, on a per tag > basis e.g. > > I am trying to change the checkboxlist default L&F so that it renders in a > table. This is working fine. But if I want t

Re: Struts 2 and Tiles 2.2 problem - Result type is not recognized

2010-11-22 Thread Dave Newton
Cool; glad you worked it out :) Dave On Mon, Nov 22, 2010 at 2:00 PM, John Dondapati wrote: > Dave, you are absolutely right. Once I put the s2tiles plugin, everything > works. Thanks a bunch. I owe you big time. :) > > On Mon, Nov 22, 2010 at 1:39 PM, Dave Newton > wrote: >

Re: Struts 2 and Tiles 2.2 problem - Result type is not recognized

2010-11-22 Thread Dave Newton
Doesn't look like you have the S2 Tiles plugin anywhere. http://struts.apache.org/2.x/docs/tiles-plugin.html Without it there is no way for S2 to know what a tiles result actually *means*. Once S2 knows what Tiles even is, you still need to set

Re: Initial setup

2010-11-21 Thread Dave Newton
Which version? Have you looked at the documentation? The example apps? Dave On Sun, Nov 21, 2010 at 3:08 AM, Brajesh Patel wrote: > Hi all, > Please provide initial setup guide for struts, it will great help for me. > > -- > Thanks > Brajesh Patel >

Re: Clear up concept of validation() call

2010-11-18 Thread Dave Newton
You'll also need the validation plugin [1], and you might want to read the validation docs as well [2]. Dave [1] http://struts.apache.org/1.3.10/userGuide/building_view.html#form_validation [2] http://struts.apache.or

Re: Struts2, convention plugin, websphere 6.1

2010-11-18 Thread Dave Newton
I'd backtrack and deploy a simple app with only a single annotated action and the convention plugin and start from there; it's loading the plugin. I'd also check the configuration parameter reference: http://struts.apache.org/2.1.8/docs/convention-plugin.html#ConventionPlugin-Configurationreferenc

Re: Jasper Relevancy

2010-11-18 Thread Dave Newton
> > But feel using struts2 more work than jsp > > May be anyone have a better solution > > /m/ > ------ > *From: * Dave Newton > *Date: *Thu, 18 Nov 2010 07:38:42 -0500 > *To: *Struts Users Mailing List; < > fr...@meruvian.org> > *Subj

Re: Jasper Relevancy

2010-11-18 Thread Dave Newton
People use JasperReports when they want reports. On Thu, Nov 18, 2010 at 7:25 AM, Frans Thamura wrote: > If? > > Don't get it > > Can share? > > > /m/ > > -Original Message- > From: Dave Newton > Date: Thu, 18 Nov 2010 07:00:57 > To: Struts

Re: struts2.1 validation problem! with "fileUploadStack"

2010-11-18 Thread Dave Newton
Because ofnyou define an interceptor (stack) for an action it will be the *only* interceptor (stack) for that action. So it doesn't work until you add the defaultStack because it doesn't have the defaultStack until you add it. Dave On Thursday, November 18, 2010, Mead Lai wrote: > While, I add t

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