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
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
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();
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" />
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
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-
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
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
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
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
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
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
12 matches
Mail list logo