How to get 2.1.8 from Maven Snapshot Repository?

2009-09-28 Thread David C. Hicks
I've added the snapshot repository to my pom.xml, but I'm still unable to get the 2.1.8 snapshot release. I have found a message about 2.1.8 being available there dated 9/22/09, however. Is there something else I should or should not be doing? There is a specific bug fix in 2.1.8 that I'd like

Re: How to get 2.1.8 for Maven build?

2009-09-28 Thread David C. Hicks
That makes sense, Wendy. Guess I should have thought about it being a snapshot build. Thanks. Wendy Smoak wrote: On Thu, Sep 24, 2009 at 3:35 PM, David C. Hicks dhi...@i-hicks.org wrote: I've added the snapshot repository to my pom.xml, but I'm still unable to get the 2.1.8 release. �I

Re: Please Disregard: How to get 2.1.8 from Maven Snapshot Repository?

2009-09-28 Thread David C. Hicks
Oops! Pardon the duplicate posting. I had a misconfigured email filter that led me to believe my message had not gone out. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

How to get 2.1.8 for Maven build?

2009-09-24 Thread David C. Hicks
I've added the snapshot repository to my pom.xml, but I'm still unable to get the 2.1.8 release. I have found a message about 2.1.8 being available there dated 9/22/09, however. Is there something else I should or should not be doing? Here's what I've added: repository

.action suffix - how to control it?

2009-07-22 Thread David C. Hicks
Hi folks, I'm having some issues with the .action suffix with respect to my integration testing. When we are in development, we typically run our application using the Maven Jetty plugin. It works great for us. In this environment, there are no .action suffixes on our action mappings.

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread David C. Hicks
I think Grails is a nice tool, as long as what you want to do is within the confines of what it is designed to give you for free. After that, you'll be writing mounds of code. The project I'm working on now was originally started on the Grails platform. It was maybe 5 to 6 months down the

Re: breaking struts.xml

2009-03-25 Thread David C. Hicks
It's just a resource on your classpath like any other. Never done it, but you should be able to without any problem. sudhi123 wrote: Hello ... I am quite new to struts2 I just want to know how to break struts.xml in to a module (jar). Anybody has done this ...? Thanks for

To .action or not to .action.

2009-03-13 Thread David C. Hicks
We recently discovered, quite by accident, that we can cause our app built on struts2 to NOT display .action on any of the URL's. I'd simply like to find out if this is an intended feature or a possible defect? The difference is in how we start off our interaction in the browser. If we use

Re: To .action or not to .action.

2009-03-13 Thread David C. Hicks
We don't really care whether Struts wants a .action, or not. However, it's confusing when it seems to pick up the behavior based on the URL you used to enter into the system in the first place. Both URL's that I posted in the original note work, but the resulting behavior after the fact is

Re: To .action or not to .action.

2009-03-13 Thread David C. Hicks
Greg Lindholm wrote: There was a change sometime between Struts 2.0.11 and Struts 2.1.6 where the default list of action extensions (struts.action.extension) changed from just 'action' to 'action' plus (no extension). This will cause requests with no extension to be treated as an action.

Re: To .action or not to .action.

2009-03-13 Thread David C. Hicks
I think Greg answered my question sufficiently - at least, enough for my needs. If you're still interested, I'll try to find a JSP over the weekend. We're not really doing anything strange, though. It's just s:url tags, much like the one I posted earlier. Martin Gainty wrote: so you're

How to set base context path?

2009-02-05 Thread David C. Hicks
I have a project that originally started out being called harvey because we didn't have a name for it. The URL's for our pages all end up looking like: http:///harvey/... Now that we have a real name, that doesn't fly very well. I have two questions with regard to this. 1) How would I

Re: How to set base context path?

2009-02-05 Thread David C. Hicks
I think we've got the problem solved now. One of the developers found that in one case the path was actually hard-coded in a JSP. Ugh! We also had not provided a namespace for our struts package, and so apparently it was defaulting to the package name. Just little details that get left

Re: How to set base context path?

2009-02-05 Thread David C. Hicks
ChadDavis wrote: Harvey is nice though. Great movie. There's a scene with this slightly chubby lady singing that cracks me up completely. Amazing, but you're the first person I've encountered who got the reference to the movie. I had to explain it to everyone else - the magical,

Re: How to set base context path?

2009-02-05 Thread David C. Hicks
5, 2009 at 5:13 PM, David C. Hicks dhi...@i-hicks.org wrote: ChadDavis wrote: Harvey is nice though. Great movie. There's a scene with this slightly chubby lady singing that cracks me up completely. Amazing, but you're the first person I've encountered who got

Couple of validation questions.

2008-11-25 Thread David C. Hicks
1) Validating numeric fields. I have a couple of numeric fields on a form, and I have configured the required validator for them. If I leave the fields blank and submit the form, there is no error. Instead, the fields end up with values of 0, each. Either there is no validation taking

Re: Couple of validation questions.

2008-11-25 Thread David C. Hicks
Richa Pandharikar wrote: Can you please send the validation.xml file that you are using? here is the add validation. the update is essentially identical, right now... validators field name=playlistMediaBoardComponent.mediaBoard field-validator type=required messageYou

Re: Couple of validation questions.

2008-11-25 Thread David C. Hicks
default value is null. You may want to try (a) using an Integer property, and (b) using both the required and int validators. Dave --- On Tue, 11/25/08, David C. Hicks [EMAIL PROTECTED] wrote: From: David C. Hicks [EMAIL PROTECTED] Subject: Re: Couple of validation questions. To: Struts Users

Access to Session from Validator and/or TypeConverter?

2008-11-19 Thread David C. Hicks
Is there a way to get hold of the Session object from inside a Validator or TypeConverter? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Access to Session from Validator and/or TypeConverter?

2008-11-19 Thread David C. Hicks
Should I take that as a no ? Dave Newton wrote: --- On Wed, 11/19/08, David C. Hicks wrote: Is there a way to get hold of the Session object from inside a Validator or TypeConverter? Why would you want to? That smells like an unnecessary dependency. Dave

Re: Access to Session from Validator and/or TypeConverter?

2008-11-19 Thread David C. Hicks
in that instance. Should we encounter more of this, then it'll be time to refactor. Thanks for the information! Dave Musachy Barroso wrote: You can get it from ActionContext.getContext().getSession(), but I second Dave's opinion. On Wed, Nov 19, 2008 at 1:22 PM, David C. Hicks [EMAIL PROTECTED

Custom Validators?

2008-11-18 Thread David C. Hicks
Is there a decent guide somewhere on the Internet about writing customer validators? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Custom Validators?

2008-11-18 Thread David C. Hicks
I'm mainly looking for information on S2 validators. I think I've figured out what I needed, though. Thanks. Dave Newton wrote: --- On Tue, 11/18/08, David C. Hicks wrote: Is there a decent guide somewhere on the Internet about writing customer validators? For which version

Transaction wrapper for web request?

2008-11-11 Thread David C. Hicks
Hi, I'd like to wrap entire web requests with a transaction, so that multiple calls to different DAO's are all considered part of the same transaction. I currently have the OpenEntityManagerInView filter set up, and it seems to be working fine. I thought that might give me what I want, but

Re: Session timeout

2008-10-16 Thread David C. Hicks
I think the usual method is to have some kind of authentication interceptor on your stack. If it cannot find a User/Login/Authentication object in the session for the current request, then it redirects to the login page. That's all server-side, of course. Francisco Exposito wrote: Hi, How

Validation Help?

2008-10-15 Thread David C. Hicks
I'm sure I've just got some little something not set up right or out of place, but I can't seem to get validation working. I have a class com.allureglobal.harvey.controller.CustomerController that extends ActionSupport. There is a corresponding CustomerController-validation.xml file located

Re: Validation Help?

2008-10-15 Thread David C. Hicks
information is helpful. Dave Newton wrote: --- On Wed, 10/15/08, David C. Hicks wrote: [...] Validation is on my interceptor stack. Is workflow? Do you know that *validation* doesn't occur, or that it just doesn't return to input on validation errors? Without any further information

Re: Validation Help?

2008-10-15 Thread David C. Hicks
=buttons:submit//span /td /tr /tbody /table /div Dave Newton wrote: --- On Wed, 10/15/08, David C. Hicks wrote: I can't really tell if validation is even being called. If by is workflow you mean is it in the interceptor stack, Yes. It is in the stack immediately following validation. I'll

Re: Validation Help?

2008-10-15 Thread David C. Hicks
Oh geez. All of the indentation got waxed when I sent this. Sorry about that. It looked a lot neater when I composed it. David C. Hicks wrote: We are not overriding the validate() method of ActionSupport. I double-checked to be sure of that. CustomerController (is an extension of a couple

Re: Validation Help?

2008-10-15 Thread David C. Hicks
We are using the simple theme primarily, but even if the page won't report errors shouldn't the action fail if it is validating and I give it bad data on purpose? We believe it's simply not executing the validation. Our main layout has a s:actionerror/ tag that should get any reported

Re: Validation Help?

2008-10-15 Thread David C. Hicks
/15/08, David C. Hicks wrote: We are using the simple theme primarily, but even if the page won't report errors shouldn't the action fail if it is validating and I give it bad data on purpose? Yes, but you never actually said specifically what was or wasn't happening, so I had to guess

Re: Struts2 startup service/action

2008-10-10 Thread David C. Hicks
I've been working with ContextLoaderListener for a while this afternoon, but I think I have a problem with dependencies. The latest API docs on Spring indicate that you can get the current web application context from a static method on ContextLoader, but I'm stuck with version 2.0.3 due to

Re: Struts2 startup service/action

2008-10-10 Thread David C. Hicks
I see. Thanks for the feedback. Ron Chan wrote: I've not used Spring for a while so I can't answer your question directly. But all I'm trying to do is get access to something that would have been correctly initialized had I been under struts. i.e. my QuartzService example was already working

Custom Tag Libs

2008-10-08 Thread David C. Hicks
Can anyone point me to a source of information about how to build a custom tag lib for Struts2? Maybe it's a plugin? I'm a little old school and still learning. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Custom Tag Libs

2008-10-08 Thread David C. Hicks
can be a pain in the rear. Scott On Wed, Oct 8, 2008 at 5:20 PM, David C. Hicks [EMAIL PROTECTED] wrote: Can anyone point me to a source of information about how to build a custom tag lib for Struts2? Maybe it's a plugin? I'm a little old school and still learning. Thanks

Re: Newbie Help: Struts 2 + Spring + Hibernate

2008-09-24 Thread David C. Hicks
Ryan, I just went through a similar learning process. I found that by following the model of the online tutorial, I had a lot more luck getting started than trying to start from scratch. Load up the WTP plugins for Eclipse, grab the quickstart zip file mentioned in the online tutorial, and