RE: where is the datepicker in struts2-core-2.1.8.1

2010-07-11 Thread Guy Thomas
Just integrated jquery datepicker in my application: - maven dependencies: com.jgeppert.struts2.jquery struts2-jquery-plugin 2.2.0 com.jgeppert.struts2.jquery struts2-jquery-grid-plugin 2.2.0 com.j

where is the datepicker in struts2-core-2.1.8.1

2010-07-11 Thread Salish S
Hi all How can i add datepicker in jsp if i'm using the struts2-core-2.1.8.1.jar and is that all the jar files i need for a simple application in struts2 from here http://mirror.olnevhost.net/pub/apache/struts/library/struts-2.1.8.1-lib.zip thank for replys

Re: validation and form display problem

2010-07-11 Thread Jake Vang
what i did was to override ValidationAware.hasErrors(). according to the docs, the workflow interceptor calls this method, if there are validation errors, it returns "input" and stops further execution of the action. i tried this... public boolean hasErrors() { boolean result = super.hasErrors();

Re: Authentication and Empty Classes

2010-07-11 Thread JP Cafaro
I'm trying to get away from using a struts.xml as much as possible. My struts.xml looks like this: type="redirect">/authenticate/login-page class="interceptors.AuthenticationInterceptor" />

Re: Authentication and Empty Classes

2010-07-11 Thread Brian Thompson
In my project, I have everything defined as an action in a struts.xml. All my action classes extend BaseAction. Then, for cases where everything I need really *is* in the jsp, I just have an action set up something like: no-action-jsp.jsp Doing it this way, *everything* will be an action (t

Re: Authentication and Empty Classes

2010-07-11 Thread JP Cafaro
I'm not sure I follow. There isn't an action here. Let's say I have a jsp page that I want to be secure, aka you have to be logged in to visit. For all of the secure pages that actually require some work to be done, this is ok, because the workflow is: 1) Click link to secure page, "/secure-

Re: Convention plugin question

2010-07-11 Thread JP Cafaro
Not quite. I think I already have it set up for direct jsp access disabled. Aka, when I type in the path to something.jsp, I can't access it. HOWEVER, when I type in "/something", I can access it. Sometimes, this is good. For example, if I have a form I want the user to fill out, I don't w

Re: Authentication and Empty Classes

2010-07-11 Thread Brian Thompson
Couldn't you just declare "BaseAction.java" as the action's class? Also; it sounds like you're using a custom security solution; I'd suggest using Spring Security instead. Custom security code is likely to suffer from many of the bugs that Spring Security ran into years ago. -Brian On Sun, Jul

Re: Convention plugin question

2010-07-11 Thread Paweł Wielgus
Hi, if i get You right search for disabling direct jsp access on this group. Best greetings, Paweł Wielgus. 2010/7/11 JP Cafaro : > I'm using struts2 with the convention plugin.  I'm really new to all of it > and haven't really used Struts 2 WITHOUT the plugin before.  Seeing as it's > called "c

Authentication and Empty Classes

2010-07-11 Thread JP Cafaro
One thing that I don't like (haven't figured out how to get around this) is the need for empty classes. If I have a secure page, like an image upload form, let's call it (image-upload-form.jsp), I don't want the user to be able to access it if he or she is not logged in. To accomplish this, I

Re: validation and form display problem

2010-07-11 Thread Burton Rhodes
That sounds like a classic 'prepare' problem. Take a look at the documentation on implementing Preparable in your action. You will want to initialize your backing beans inside the Prepare method in your action. That when 'input' is needed, your backing beans will be loaded. On 7/10/10, Jake Vang

Convention plugin question

2010-07-11 Thread JP Cafaro
I'm using struts2 with the convention plugin. I'm really new to all of it and haven't really used Struts 2 WITHOUT the plugin before. Seeing as it's called "convention", I imagine that there are a lot of things that it can do automatically by convention. One of the things I was curious about