Add a -e (or it might be a capital -E) to the command, and Maven
will print out the stack trace and a little more information about the
problem. That might give you something to work with.
-Original Message-
From: maestro [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 10, 2008 8:42 PM
To:
Hi, all.
I'm using Sitemesh decorators on my Struts2 project to create a generic
header menu. However, I'd like to use a CSS class to highlight the menu
item for where the user currently is. Is there a good way to get the
current action name and namespace just with JSP code? I know I can get
it
at 12:10 PM, Allen, Daniel [EMAIL PROTECTED]
wrote:
Hi, all.
I'm using Sitemesh decorators on my Struts2 project to create a
generic
header menu. However, I'd like to use a CSS class to highlight the
menu
item for where the user currently is. Is there a good way to get the
current action
in the stack.
musachy
On Mon, May 12, 2008 at 1:35 PM, Allen, Daniel [EMAIL PROTECTED]
wrote:
Thanks for the tip, but to clarify, what I want to know is whether
that
action reference has an easy, built-in way to get its name and
namespace, as configured in struts.xml.
For example, I have
Subject: Re: [s2] Getting the current Action name in a JSP?
%{#struts.actionMapping} -Action Mapping
%{#action} - Last executed action
musachy
On Mon, May 12, 2008 at 3:05 PM, Dave Newton [EMAIL PROTECTED]
wrote:
--- Allen, Daniel [EMAIL PROTECTED] wrote:
So that's what #action gets? That's really
Oh, ok. I was just in the middle of poking around the debug info to see
why that wasn't working.
Thanks,
~DVA
-Original Message-
From: Allen, Daniel
Sent: Monday, May 12, 2008 3:11 PM
To: Struts Users Mailing List
Subject: RE: [s2] Getting the current Action name in a JSP?
Ok, thanks
If you want client-side anything, wouldn't you want to use JavaScript?
As far as I know, everything XWork validation does is on the server.
(I would say have a validator in the action bean too, though, in case
the use has JS disabled and manages to submit without passing that
check.)
Hmm. I don't know of a way to make Struts 2 give back 2-D array
properties in the auto-magical way that it will do 1-D arrays (doesn't
mean there's not one: I keep finding out that a lot of things I want to
do can be done by magic if you know the correct XML incantation) but
perhaps you could
anyone ever done this?
Allen, Daniel wrote:
If you want client-side anything, wouldn't you want to use JavaScript?
As far as I know, everything XWork validation does is on the server.
(I would say have a validator in the action bean too, though, in case
the use has JS disabled
A couple of things strike me as really odd about this.
First: why are you creating HTML using strings in Java code? The whole
point of JSPs was to avoid doing exactly that. You should either make
use of .jsp files and the logic tags in Struts [1] or just use regular
servlets if you really want
else i can do as i am unable to see anything
in
apache logs as well.
On Wed, May 7, 2008 at 1:48 PM, Allen, Daniel [EMAIL PROTECTED]
wrote:
A couple of things strike me as really odd about this.
First: why are you creating HTML using strings in Java code? The whole
point of JSPs was to avoid
and shorter.
Nils-H
On Thu, Apr 24, 2008 at 10:12 PM, Allen, Daniel
[EMAIL PROTECTED]
wrote:
I can, and I considered that, but I was hoping to keep it in the XML
to
minimize the number of files that need to be changed. The
documentUpload
action that's the redirect target below is actually
Actually, I found Maven very helpful when I was starting Struts2.
http://struts.apache.org/2.x/docs/struts-maven-archetypes.html has some
information on the archetype plugin, which Maven can use to generate the
empty shell of an application. That's great for beginners because all
the
Did you read the page I linked? The archetype creator writes you a basic
POM, in addition to many other things.
If you don't read the answers people give you, this list won't be of any
help to you.
-Original Message-
From: Vinay Nagrik [mailto:[EMAIL PROTECTED]
Sent: Friday, April 25,
Hi, all.
I'm using the snippet below[1] in my struts.xml file to send finish an
action with a redirect to another, and sending a parameter along.
However, Struts 2 defaults to passing the parameter via appending it to
the URL in a GET request. I'm going to need to add additional
parameters, some
Mailing List
Subject: Re: Redirect-action parameters via POST
Can you put the info on the session?
Nils-H
On Thu, Apr 24, 2008 at 9:52 PM, Allen, Daniel [EMAIL PROTECTED]
wrote:
Hi, all.
I'm using the snippet below[1] in my struts.xml file to send finish
an
action with a redirect to another
When I try to start up my Struts 2/Spring project, I get an exception
about a missing class, which makes me think I have a missing JAR, but I
can't find mention of anything that isn't already in my build. Could
anyone take a look, perhaps?
I have the following entries in my Maven POM. Am
Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 22, 2008 3:47 PM
To: Struts Users Mailing List
Subject: Re: Exception like a missing JAR, but I think I have them all
--- Allen, Daniel [EMAIL PROTECTED] wrote:
When I try to start up my Struts 2/Spring project, I get an exception
about
The showcase [1] has an autocompleter example page with demonstrations
of several of its features and accompanying source.
~DVA
[1] http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/
-Original Message-
From: Joey [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008
Hi, all.
I'm trying to display a message to the user to confirm that a new user
was created, basic par-for-the-course concept. However, I'm finding that
my s:actionmessage/ tag doesn't render to anything. The first thing I
thought of was that my result for the user creation is an
action-redirect,
Hmmm...
How much interfering in the internals do you suppose I'd have to do to
make action errors messages hang around until the corresponding
s:action___/ tag is rendered?
-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2008 1:58 PM
To: Struts
(sorry, I had the interceptor
name wrong on the last mail).
(*Chris*)
On Tue, Apr 1, 2008 at 11:22 AM, Allen, Daniel [EMAIL PROTECTED]
wrote:
Hmmm...
How much interfering in the internals do you suppose I'd have to do
to
make action errors messages hang around until the corresponding
Hi, all.
I have a superclass where almost all of the subclasses will require
several validations for a particular field, but one subclass will use
some but not all of those validations. I know that you can add
@SkipValidation to avoid all validators, but is there something that you
can use to
- I'm not sure that order is guaranteed when you have two params with
the same name at time they are submitted.
I thought multiple parameters with the same name is how Struts did
actions with array-typed properties. That's what's done on the File
Uploads How-To.[1] Is that example potentially
Hi, all.
I'm working on a form that would allow some arbitrary number of
documents to be uploaded at once. The idea is that by default, one set
of document fields appears, and there's a link that a user can click to
activate some javascript that would add another set of document fields.
I have
Can anyone tell me where I can get some more in-depth details on the way
the file upload interceptor works? Is there any documentation between
the levels of how to use it and the source code?
I'm trying to take an uploaded document and then transfer it to a
backend in a different thread. But when
I actually thought you couldn't nest s:* tags. You can nest them in
regular HTML tags because the JSP and the HTML are interpreted at
different steps, so from the separate perspectives of the two parsers
there's not really any nesting going on (the JSP parser on the server
only cares about JSP
Hi, all.
I have a question about using indexed properties. I need to have the
user upload some arbitrary (to be dynamically increased via Javascript
while the user is on the form page) number of files as part of a form. I
figured it makes sense to create an indexed property so that then I have
a
Wow, in the FAQs, even. My Google-fu is miserable.
Thanks/sorry.
~DVA
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2008 6:02 PM
To: Struts Users Mailing List
Subject: Re: [s2] IndexedProperties set via forms
--- Allen, Daniel [EMAIL
requests and web service?
If you have shared functionality then it sounds like a good candidate
for
web services. I wouldn't do the shared JAR deal.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
From: Allen, Daniel [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
I saw a thread go by while back about Struts and web services, and
someone suggested Spring and CXF. I've got Spring integrated into my
Struts (2.0.11) application, but I'm not familiar with CXF at all, nor
have I actually ever put together a web service before.
Does anyone know of a good guide
.
http://incubator.apache.org/cxf/
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
From: Allen, Daniel [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Date: Thu, 28 Feb 2008 14:20:54 -0500
To: Struts Users Mailing List user
Try this:
http://opensource.atlassian.com/confluence/oss/download/attachments/4942
/validating-input.pdf?version=3
Basically, all you need to do for custom or complex validation is to
have the action in question implement Validateable, and then have a
public void validate() method that makes
I've set up a login page for my site, and I've used the ValidationAware
interface on LoginAction in order to display errors on the login form
when the user name or password is incorrect. However, this has one
unintended result: the first time the user navigates to
server.com/webapp/login.action,
even require any more Java code.
Thanks!
~Dan
--- Allen, Daniel [EMAIL PROTECTED] wrote:
Is there a way to prevent the validation from firing unless the user
is
coming back to it after attempting to log in?
By default the validation interceptor won't check a set of action
methods,
including
You mean in JSPs, using the Struts taglib? There's an example that I
think is similar to what you're looking for at the bottom of the
s:iterator page[1]. For large n, it would be sort of ugly, though, so
definitely look into c:foreach like Dave said if you're going past
single-digit n.
~Dan Allen
Hi, all.
I want to redirect a user somewhere based on a parameter that came in
from a previous page's form. The basic flow should be:
1. StartPage.jsp, contains a form that points to an SomeAction, and that
form includes the parameter NextPage
2. SomeAction performs some work and then gives back
I've seen similar things working with other programs than Struts, but it
might be relevant to you. Reflection frameworks tend to give back null
rather than an exception when the method in question isn't found, so go
back and check for typos in your XML where you specify any method names.
Can't
Is there a way to have one interceptor stack defined in terms of
another? I created a log-in interceptor to check if a user is logged in
and redirect him/her to the log-in page if not, and it will be applied
to almost all pages, but there will be a few (index, etc.) that would
not need that.
Hi.
I have a few places in my web app where a URL goes to a page that is
more or less static. We still use JSPs for these static pages, since
we're looking to use Tiles to re-use header/footer code and so on.
Currently, though, my attempts to get Struts2 are just yielding no
response on the
Have you, in fact, added the struts2 filter to your web.xml?
If not, drop the following in:
filter
filter-namestruts2/filter-name
filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-cla
ss
/filter
filter-mapping
Is there any reason we shouldn't use the Logic tab library
(http://struts.apache.org/tags-logic) with Struts 2? If so, is there any
subsitute? I'm looking specifically for logic:redirect and
logic:messagesPresent (along with the old html: messages)
~Dan Allen
-Original Message-
From:
-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 13, 2008 3:36 PM
To: Struts Users Mailing List
Subject: Re: Logic tag library
--- Allen, Daniel [EMAIL PROTECTED] wrote:
Is there any reason we shouldn't use the Logic tab library
(http://struts.apache.org/tags-logic
Great. Thanks!
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2008 5:14 PM
To: Struts Users Mailing List
Subject: RE: Source for Struts Tiles Plugin?
--- Allen, Daniel [EMAIL PROTECTED] wrote:
I downloaded this source code, but it's just
://struts.apache.org/download.cgi
and follow the archive link http://archive.apache.org/dist/struts/. I
believe
there is a S2.0.9 source distro there.
Dave
--- Allen, Daniel [EMAIL PROTECTED] wrote:
PS: I'm looking for v2.0.9 specifically, if that makes any difference.
-Original Message
Actually, after all that, it turned out to be a stupid typo: my
context-param for DEFINITION_CONFIG pointed to tiles-def.xml and the
file was titlted tiles-defs.xml...
Thanks for the source link, though. That will no doubt continue to help.
~Dan Allen
-Original Message-
From: Lukasz
PS: I'm looking for v2.0.9 specifically, if that makes any difference.
-Original Message-
From: Allen, Daniel
Sent: Tuesday, February 12, 2008 2:44 PM
To: Struts Users Mailing List
Subject: Source for Struts Tiles Plugin?
Hi. I'm trying to move a web app from Struts1/Tiles1 to Struts2
Hi. I'm trying to move a web app from Struts1/Tiles1 to Struts2/Tiles2.
Unsurprisingly, quite a few things are going wrong.
In particular, I have a tiles-def.xml file in WEB-INF/classes, and it's
not being picked up, or at least not being read properly. I was able to
trace through the definitions
I replaced the dependency I had before with the dependency you gave, but
Maven's generated /lib directory still does not contain tiles-jsp.jar,
and the error message has not changed:
javax.servlet.ServletException: The absolute uri:
http://tiles.apache.org/tags-tiles cannot be resolved in either
Hey.
I have to convert an application written with Struts and Tiles 1 to 2.
Could anyone tell me what the Struts2 equivalents for some of the old
Struts1 tag libraries are?
I'm looking specifically for
http://struts.apache.org/tags-html and
http://struts.apache.org/tags-logic
Unfortunately,
Nevermind, I found the proper XML for the tiles-jsp jar. I'm curious as
to what exactly is in the plugin jar that you suggested, though. Is that
necessary to use Tiles 2 with Struts 2?
~Dan
-Original Message-
From: Allen, Daniel
Sent: Monday, February 11, 2008 2:53 PM
To: Struts Users
'
contents.
Thanks
~Dan Allen
-Original Message-
From: Allen, Daniel
Sent: Monday, February 11, 2008 5:08 PM
To: Struts Users Mailing List
Subject: RE: Struts 2 equivalents?
Ok, I found some documents that partly answer my question. However, I'm
still looking for a Struts2 equivalent
Ok, I found some documents that partly answer my question. However, I'm
still looking for a Struts2 equivalent to the old
logic:messagesPresent tag. Do we just use s:if with some special
test code now?
-Original Message-
From: Allen, Daniel
Sent: Monday, February 11, 2008 3:48 PM
No, I hadn't seen that. Thanks for pointing me to a useable tutorial
site. You have no idea how hard it is to find Struts 2 or Tiles 2
information in Google, since every Struts 1 and Tiles 1 page on
apache.org has a little text link to the new version that make the
search think it's relevant to
Hi.
I'm completely new at Struts and Tiles, but was given the task of
converting an app that relied on the first versions of those to the the
newer version.
We build with Maven 2, and as instructed by the documentation at
http://tiles.apache.org/dev/snapshots.html, I added
55 matches
Mail list logo