Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Dave Newton
urn it off? > > Thanks, > HC > > On Wed, Nov 17, 2010 at 11:39 AM, Dave Newton wrote: > >> Failed validation will send user back to the input result. >> >> Dave >> On Nov 17, 2010 2:29 PM, "Harsh C" wrote: >> > Hi, >> > >&g

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Dave Newton
Please start new threads for new questions. There's a jquery plugin, or you can use any framework in its "raw" form. The latter is almost always my personal recommendation so the JavaScript can be optimized for the application. Dave On Nov 17, 2010 4:30 PM, "Harsh C" wrote:

Re: Jasper Relevancy

2010-11-18 Thread Dave Newton
If you want reports? On Thursday, November 18, 2010, Frans Thamura wrote: > hi all > > what is the benefit using Jasper with S2, if we can run using JSP and run > well > > i see that we must use List and throw to Jasper with S2, is there a better > alternatif > > F >

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

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

2010-11-18 Thread Dave Newton
How is using S2 more work than JSP? You can't just "use JSP", you still need a back end. And JR does things like pagination: try printing out a nicely-paginated report using JSP. Dave On Thu, Nov 18, 2010 at 7:37 AM, Frans Thamura wrote: > Ya we want to make pdf as output

Re: Struts2, convention plugin, websphere 6.1

2010-11-18 Thread Dave Newton
onventionPlugin-Configurationreference I also always put the action classes in a package whose name ends in "actions"; I vaguely remember having an issue if it was named anything else, but I could be *completely* misremembering that. Dave <http://struts.apache.org/2.1.8/docs/convention-

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 <http://struts.apache.org/1.3.10/userGuide/building_view.html#form_validation&g

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: Struts 2 and Tiles 2.2 problem - Result type is not recognized

2010-11-22 Thread Dave Newton
ill need to set up a default result type, or define results as being "tiles" results. Dave On Mon, Nov 22, 2010 at 11:50 AM, John Dondapati wrote: > Hi, > > I am very new to Struts 2 and really want to use it in a project at work. > We have Struts 2, Spring 2.5.6 working pe

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

Re: Specify template to use for struts tag

2010-11-23 Thread Dave Newton
That'll work too :) Glad you worked it out! Dave On Tue, Nov 23, 2010 at 3:39 PM, Harsh C wrote: > Thanks! > > Actually, I used the template attribute and it worked great. Now, I have > access to the default ftl as well as to the templates that I am creating. > > On Tu

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 f

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-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: 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
Oh. I'm sorry, I completely missed the nested tags (not sure how I missed it, though :) Sorry for the confusion. Dave On Fri, Nov 26, 2010 at 8:29 AM, Dominique JUSTE wrote: > Thank you Dave, > > Let me show you the gener

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: Recommended technology for pages layout in Struts2

2010-11-26 Thread Dave Newton
c:import, c:param, etc. Actually did my last few projects using just that and it worked fine, although I didn't do any real performance comparisons. I suspect it's not adequate for some common usecases, but for all the stuff I'm currently involved in, it's fine. Dave On Fr

Re: binding paramters in struts2 without the form

2010-11-29 Thread Dave Newton
gt; use the map to populate your fields. > It won't? Is this new behavior? It's always worked for me just fine. Dave

Re: Link Display Logic

2010-11-29 Thread Dave Newton
y within the S2 framework. Spring Security is another option. Dave On Mon, Nov 29, 2010 at 1:41 PM, Biesbrock, Kevin wrote: > Hello users. I'm Kevin, first time caller, long time listener (Mr. > Obvious reference). > > I have two reports and need to display a link for each if the follow

Re: S2 and Sitemesh basic configuration

2010-11-30 Thread Dave Newton
uts-prepare and struts-execute filters. Is this the example wrong? > The declaration order of filters doesn't matter: it's the filter-mappings that are ordered. 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: 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: AJAX file upload

2010-12-01 Thread Dave Newton
ated, not removed. People still use it, but after being marked "deprecated" they do so at their own risk. Dave

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

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 metho

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 w

Re: Internationalization with REST/Convention plug-ins

2010-12-01 Thread Dave Newton
gotten a lot of stuff--I really need to de-rust myself :( Dave On Wed, Dec 1, 2010 at 4:15 PM, wrote: > I had a guy ask me why his internationalized properties were not accessible > in his Struts app that was using both the REST and Convention plug-ins. My > first action was to rea

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
on't want that to be get back to > view again. I just want to show a error. > Look at the results of the AJAX call. If it's an error, display a message. Should be trivial if using JSON, only marginally less trivial if you're not. Dave

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
the session. Dave

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
rned data other than calling a JS function you don't show. *Where I am doing wrong? Step 1: What does the action return for success? For failure? Step 2: How do you determine in the JS if it's a success or failure? Dave

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
able(returnValue); //add email to table "Tap it" in that function: isn't the returnValue either the email (if successful) or nothing (if not)? Although personally I'd still use JSON; easier. Dave

Re: Struts 1 and AJAX

2010-12-02 Thread Dave Newton
You *could* do that, or do it in the view layer, or just serialize a rational JSON object to the response and skip all the other issues, and make things easier. Dave On Thu, Dec 2, 2010 at 2:06 PM, Anjib Mulepati wrote: > So do I need to map two different view in action class as fol

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: Using Dojo with Struts 2

2010-12-02 Thread Dave Newton
ts 2. > Just use Dojo--it's framework-neutral. Dave

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: Struts2 + Dojo 1.5

2010-12-03 Thread Dave Newton
off the top of my head that would be different about using Dojo with S2. Dave On Fri, Dec 3, 2010 at 10:44 AM, developer researcher < java.developer.researc...@gmail.com> wrote: > Hello, > > I understand that my last question is more appropiate for dojo mailing > lis

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 c

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

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

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

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 >

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

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

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 <http://struts.apache.org/2.x/docs/validation.html#Validation-RegisteringValidators> Dave On Thu, Dec

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

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 solut

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: Cancel in a form re: bypass Validation

2010-12-10 Thread Dave Newton
te has nothing to do with server-side validation, that's only an indication of client-side validation. So it's likely something else is wrong. Dave

Re: Live Reload - Play framework

2010-12-10 Thread Dave Newton
n OGNL change or an S2 change, but when I updated the book for S2.1 that was one of the changes I had to make. Don't know if anything is cached or not. Dave

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

Re: Struts Interceptors

2010-12-10 Thread Dave Newton
) is that the result has already been rendered by the time you return from the "invoke" call; if you want to do something before rendered you need to implement PreResultListener. Dave

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 Emai

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 met

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

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

Re: Problem with action mapping

2010-12-16 Thread Dave Newton
You'll probably want to turn your logging up to DEBUG. Dave On Thu, Dec 16, 2010 at 2:27 PM, Anjib Mulepati wrote: > Tomcat Log in Netbeans says > > Dec 16, 2010 2:26:03 PM org.apache.catalina.core.ApplicationDispatcher > invoke > WARNING: Servlet action is currently u

Re: Problem with action mapping

2010-12-16 Thread Dave Newton
sands of man-hours of experience generally used to create better, more robust platforms. Dave On Thu, Dec 16, 2010 at 3:27 PM, Anjib Mulepati wrote: > There was space at the beginning. That is solved. I'm getting something but > not whole page just logo and header. > I though nam

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

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 >

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

Re: web application response time is too large.

2010-12-21 Thread Dave Newton
d sometimes normalization isn't the best approach. (Although I try to isolate that kind of stuff behind triggers and a reporting table since that's where I often run in to it. But over-normalization can be a performance drag under some circumstances.) Dave

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

Re: Invoking Javascript function from Struts 1.3

2010-12-22 Thread Dave Newton
Just create the tag normally, > the same way as you would sans Struts, and use your beans to supply the > values. Wth. That's precisely what I said. Dave

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 s

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

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

2010-12-23 Thread Dave Newton
ither, but it'd depend on the nature of the issue. Dave On Dec 23, 2010 3:33 AM, "chris snow" wrote: > > I am working on various legacy software projects that have various versions > of struts 1.x. (mostly 1.1.x and 1.2.x) > > I need to ensure I am only using versions

Re: Setting object from param tag fails in Struts 2.2.1

2010-12-23 Thread Dave Newton
well not). > The page from which the action is called has a property getActionLinks and > returns the data. > That would return the actionLinks from the *original* action, because it's the first object on the stack with a publicly-accessible getter, no? I don't see why the action being called would have setActionLinks() called. Dave

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

2010-12-23 Thread Dave Newton
No no, I was asking why you're learning Struts 1 when there are a number of substantially better options available in today's modern era. Dave On Thu, Dec 23, 2010 at 8:51 AM, Amit Oberoi wrote: > Dave, > > I have just started few days back and am still picking it up. The

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

2010-12-23 Thread Dave Newton
, in fact, on the grounds of Barnacle Manors, and did, also in fact, bludgeon our dear Barnacle with her own facial massager. To the pub, Watson, I has a thirst! Dave

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 :

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: 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: 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: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
Save cookies outside the request then, and only add the cookie at the last minute. Dave On Dec 24, 2010 8:49 AM, wrote: > Can't be done. The HttpServletResponse does not provide a method to check if there is already a cookie on the request. And I need to put the cookie generated by

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

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: 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: namespace vs package

2010-12-27 Thread Dave Newton
hs and packages. Dave On Mon, Dec 27, 2010 at 12:56 PM, Greg Akins wrote: > On Mon, Dec 27, 2010 at 11:21 AM, Maurizio Cucchiara > wrote: > > Did you try ParentPackage Annotation? > > Also I'm not sure that empty string for namespace is the best value. > > No. &g

Re: namespace vs package

2010-12-27 Thread Dave Newton
Yes, there's a default package, and its value is shown in the documentation for the Convention plugin IIRC (which I may very well not, and I'm struggling w/ limited Verizon connectivity on my Google CR-48 laptop at the moment.) Dave (Like I how I just snuck in that part about the Goo

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"

Re: Authorization/ Authentication

2010-12-28 Thread Dave Newton
and if they're allowed access the interceptor just moves along, and if they're not, they're redirected somewhere reasonable. For Spring Security stuff I would refer you to the Spring documentation, since it's not directly related to Struts 2. Dave

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 up

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: change the filename to be downloaded

2010-12-28 Thread Dave Newton
I didn't misunderstand you at all; now you're asking a different question. Have you checked that the content type is correct in the headers? Dave On Dec 28, 2010 7:18 PM, "maven apache" wrote: > I am afraid you misundersatnd me. > > *I mean jus the "contentTy

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