Yay, thanks for the update.
On Wed, Feb 13, 2013 at 6:37 AM, Lukasz Lenart wrote:
> The DTDs are back :-)
>
> http://struts.apache.org/dtds/
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> -
> To un
; that most likely means you have a configuration issue. The DTDs are part of
> the library; your application server should be able to load them locally.
>
> Paul
>
> On Tue, Feb 12, 2013 at 5:36 PM, Eric Rank wrote:
>
> > Hi list!
> >
> > I've got an odd prob
Hi list!
I've got an odd problem related to an old Struts 1.2 application my team
maintains.
The basic problem is that the Struts servlet cannot load because it fails
with a "File not found" Exception
java.io.FileNotFoundException:
http://struts.apache.org/dtds/struts-config_1_2.dtd
This proble
.com/page
I can override with an action mapping in the struts.xml as follows, but I'd
like to avoid using xml if I can.
{1}
input.jsp
success.jsp
Thanks for the help.
Eric Rank
Hope that helps.
Eric Rank
On May 15, 2008, at 4:56 AM, Canny Duck wrote:
Hi,
I realized a Struts 2 process to create a new contract. As template
results
I tried JSP and Velocity. All JSP templates are rendered correct,
but the
velocity templates are rendered twice. So I see the same con
I ran in to this same problem. The Struts tags no longer accept EL. It
was a bug fix. More detail here:
https://issues.apache.org/struts/browse/WW-2107
You can still use OGNL though:
Eric Rank
-
Senior Web App Engineer
www.referencevault.com
On Jan 3, 2008, at 3:39 AM, Michał
Ah yes, I remember that bug! I guess I didn't look too closely at the
solution before.
Thanks for the info.
Eric Rank
---
Senior Web App Engineer
www.referencevault.com
On Dec 28, 2007, at 8:27 AM, Guillaume Carré wrote:
2007/12/28, Eric Rank <[EMAIL PROTECTED]>:
I
he modification.
Thanks,
Eric Rank
---
Senior Web App Engineer
www.referencevault.com
My Bad, there's another scenario when this field will validate. When
reason != 'friend'
Better expression:
(reason != 'friend') or ((reason ==
'friend') and (friendEmail != null) and (friendEmail.trim().size() >
0))
Eric
On Jul 19, 2007, at 1
Hi Matt,
I tried out your scenario, and I think I found the problem. In my
test, it also validated when I left the friendEmail field blank. It
seems that the value of friendEmail is not null, but an empty string.
To solve the problem, I added another clause to check for String
length. Aft
d that be the problem?
I only point it out because the backwards logic involved with
validators has bitten me in the past. I always have to remind myself
that my validators test for things that I want, not for things that
will cause failure.
Eric Rank
On Jul 18, 2007, at 3:08 PM, mrai
framework would allow a sort of inverse short circuiting.
In some cases, if one field-validator passes, it would be nice to
skip the others.
Eric Rank
On Jul 18, 2007, at 11:38 AM, mraible wrote:
I'm trying to use a FieldExpressionValidator (or
ExpressionValidator) to
compare field
te your own theme by extending an existing one
http://struts.apache.org/2.0.6/docs/extending-themes.html
Eric Rank
On Jun 5, 2007, at 8:17 AM, Vincent Lin wrote:
Hi!
I've done several projects with struts1 and planned to use struts2
in my new
project.
I am amazed the the code is so concis
is email
message is
addressed. If you have received this email message in error,
please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
- Original Message - From: "Eric Rank" <[EMAIL PROTECTED]>
To: &
I have to admit, I haven't used the tag, but I think
it might do what you want.
instead of :
try this:
More info: http://struts.apache.org/2.x/docs/action.html
---
Eric Rank
On Apr 30, 2007, at 12:47 PM, Paul wrote:
Hey Dave,
Yup just realized that. Than
r will see that there is some kind of error,
and consequently, not fire the intended action method (execute by
default). ActionMessages do not act that way. You can add
ActionMessages without having an affect on the workflow of the action.
Eric Rank
On Apr 24, 2007, at 12:49 PM, Harring
ion
I've chosen to use is fixing the FilterDispatcher bug in my source.
I have more details in a blog post here: http://blog.lo-fi.net/
2007/04/i-know-why-struts-2-file-upload-fails.html
I hope this helps put this issue to rest,
Eric Rank
On Apr 16, 2007, at 6:45 AM, Dave Newton wrote
h (IOException e) {
String message = "Could not wrap servlet request
with MultipartRequestWrapper!";
LOG.error(message, e);
throw new ServletException(message, e);
}
return request;
}
Th
when in an iteration loop.
For the time being, I'm taking Dave Newton's advice on using the
index of the item in the valuestack array in order to access the
correct object when in the iteration.
I appreciate your help!
Eric Rank
On Mar 26, 2007, at 7:27 PM, Adam Ruggles wrote
Thanks Dave,
I was hoping that I wouldn't have to resort to specification of an
index in the array of the ValueStack, but it works for now '-]
Thanks for the tip,
Eric Rank
On Mar 26, 2007, at 7:05 PM, Dave Newton wrote:
--- Eric Rank <[EMAIL PROTECTED]> wrote:
Unf
Thanks Adam,
Unfortunately, that doesn't work. Are there other implicit objects in
the OGNL value stack that might give a more direect reference to the
action?
Eric.
On Mar 26, 2007, at 5:10 PM, Adam Ruggles wrote:
have you tried
Eric Rank wrote:
Hi Everyone,
I'm
Hi Everyone,
I'm having an interesting experience with the use of the iterator tag
(Struts 2.0.6).
I have an action with getter method signature which is the same as
the getter of an iterator item.
As such when I'm within an iterator loop, and I call the getter of
the Action value, I ac
Thanks for the clarification, Laurie. That's what I suspected, but
wasn't sure. Now I know!
Thanks,
Eric
The 'templates' directory should be a sibling of WEB-INF.
L.
Eric Rank wrote:
All of these tips are great. I'm glad this page exists.
I'd love a
oot
Does "WEB_APP root" mean that "template" should be a sibling of the
"WEB-INF" directory (I suspect it does) or does it mean that the
"template" directory should go in the "WEB-INF/classes" directory, or
somewhere else?
Thanks for the help.
are, because it removes all encoding. However
for css, image, js, and other external files, that shouldn't be a
problem.
Eric.
On Mar 5, 2007, at 3:54 PM, Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Eric,
Eric Rank wrote:
Solved this problem.
By set
Solved this problem.
By setting the DefaultType directive to "text/html" in Apache's
httpd.conf, the pages with urls containing the appended ";jsessionid"
display as html, not plain text.
I should have thought of that before :-)
Thanks
Eric.
On Mar 5, 2007, at
t in the request,
perform a redirect to the same URL. From this point on session id will
be passed as a cookie.
Michael.
On 3/5/07, Eric Rank <[EMAIL PROTECTED]> wrote:
Happy Monday everyone. I have a question for you. Hopefully it
doesn't go too far off track.
When I'm using th
nt as
"text/html" when I have a "jsessionid" appended to urls?
Is there something I can configure with httpd.conf?
Is there something I can configure with web.xml?
Is there a way to make the call to the HttpServletResponse.encodeURL
use
2007, at 3:42 PM, [EMAIL PROTECTED] wrote:
It really is, Eric.
package.properties is nothing more than a standard
java.util.Properties
file. See the javadoc for this class and you get this question
answered,
and will see many more "interesting" things ;-)
Alexander
Er
word. and this variable
VariableSentIn will not get populated
=
Thanks!
Eric Rank
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
with a key?
I can see 2 different ways:
1. Just use the addFieldError, even though there is no field for the
error I want to name. (I don't like this approach because it uses the
field errors for something which they are not intended)
2. create my own map of error messa
Never mind, I found it.
org.apache.struts2.views.util.UrlHelper
E.
One last question, where does the UrlHelper class come from?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Mmmm, Injection. Magic indeed!
That's the coolest thing I've seen all week. That does exactly what I
want it to.
One last question, where does the UrlHelper class come from?
Eric Rank
On Jan 30, 2007, at 9:36 PM, Tom Schneider wrote:
Take a look at ServletActionRedirectResult,
Thanks Bob,
I wouldn't be too afraid of doing something like that, but I need the
URL for a different Action, named in the mapping -- that is, I don't
need the URL for the Action that's executing.
Eric Rank
On Jan 30, 2007, at 6:07 PM, bob wrote:
This is surely n
ruts.xml
file.
Is it possible? What's the best way to do it?
Thanks,
Eric Rank
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Cookie
("name","value"));
Eric Rank
On Jan 23, 2007, at 6:43 AM, Tom Schneider wrote:
I seem to remember a CookieInterceptor: https://issues.apache.org/
struts/browse/WW-669. It doesn't look like it has made it into the
core framework yet.
Emmanuel KOJE wrote:
uld do it...
(in general, discussion of unreleased versions of struts is
targeted at the
dev list, but it's not a big deal...)
Joe
On 1/12/07, Eric Rank <[EMAIL PROTECTED]> wrote:
Greetings,
I don't know if this is the best place to post this, so let me know
if this questi
it's worth, building the revision tagged as 2.0.2
works fine.
Thanks,
Eric Rank
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks Don, that's the clarification I was looking for.
Eric
On Jan 5, 2007, at 2:47 PM, Don Brown wrote:
On 1/5/07, Eric Rank <[EMAIL PROTECTED]> wrote:
I'm interested in using the Restful2ActionMapper, but I'm unclear
about how to specify it's usage.
1. I
Thanks Nate, that's what I needed to know
Eric Rank
On Jan 5, 2007, at 11:44 AM, Nate Drake wrote:
Eric Rank lo-fi.net> writes:
2. In the struts-default.xml file that ships with Struts2, there's a
line, which names the class to "restful2":
So, assuming th
"create" methods
of an action. To work around the limitations of HTML, the docs say to
use the parameter "__http_method" in order to make it work.
Practically speaking, does this mean that I need a form field to do
this?
If
It's nice
to have the flexibility to put it all together, but it definitely
increases the amount of knowledge required to assemble a page of
code. Just my opinion.
Thanks again for the help,
Eric Rank
On Dec 31, 2006, at 4:24 AM, Antonio Petrelli wrote:
Eric Rank ha scritto:
Hi all,
I
be more satisfied
when I can get it to work with the struts "iterate" tag.
Thanks again,
Eric Rank
On Dec 31, 2006, at 4:24 AM, Antonio Petrelli wrote:
Eric Rank ha scritto:
Hi all,
I am trying to insert items from a putList defined in my tiles.xml
file in a template file.
struts:iterator tag, if a loop is required)?
Thanks for the help,
Eric Rank
Here's some specific code for reference:
===
tiles.xml
===
===
myTempla
Hi all
Using Map backed forms in Struts 1 was really great. I'm wondering
how it works in Struts 2. Looking at the Type Conversion docs (http://
struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-
CollectionandMapSupport) seem to get close to explaining it, but
jumps right into
est,
HttpServletResponse response
)throws Exception{
//no validation
ActionForward forward = mapping.findForward("success");
return forward;
}
}
I've had good success using this class. I hope it fits t
find more information about ognl here:
http://www.opensymphony.com/ognl/
Don
On 12/8/06, Eric Rank <[EMAIL PROTECTED]> wrote:
I've noticed that there's an EL-like syntax used within some tags in
the sample jsp's that ship with the Struts 2 apps. Namely:
How does the perc
s? or is this a
convention that I'm unaware of in the new Struts 2 tags?
Thanks for getting me up to speed!
Eric Rank
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hanks for your help on these simple questions
Eric Rank
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
icely
compartmentalizes my code. Instead of molesting the RequestProcessor,
I think I'll just suck it up and relax about putting the logic in the
execute method.
Unless anyone can convince me otherwise, from here on out it's
validate = "false"
Eric
On 4/18/06, Dave Newton <[EMAIL PR
Good Point
E.
>
> In my mind, the code is readable when I can read what it's doing. With
> validate="true" I cannot.
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
aining and
interceptor business too. What's it all about?
Eric Rank
On 4/18/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
> On 4/18/06, Eric Rank <[EMAIL PROTECTED]> wrote:
>
> > From reading a bit on Rick Reumann's site
> > (http://www.learntechnology.net/va
because
it seems to fold in the functionality that I want quite elegantly. But
obviously, the fact that the request object can't retain values is a
major setback...
So I'm found wanting. Anything that makes sense and works reliably
will do. Ultimately, I'm looking for a best-pra
ECTED]> wrote:
> The required validator would need to be registered, as usual. But the
> rest seems OK.
>
> If it were me, I'd try deploying the "simplied" version as its own
> application, and seeing if that works.
>
> -Ted.
>
> On 4/7/06, Eric R
example wouldn't work?
Eric
On 4/7/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> The framework matches the formset's *form.name* property with the
> *form-bean.name* property, so they must be the same value. (It's a 1:1
> relationship.)
>
> -
> +
>
>
unning the following code should produce an error when I submit the
form with a blank field. But it seems to run through the code in my
SearchAction just as it would if validation had been successful. I
suspect that the validation of the dynaform just isn't happening.
My code snippets follow
Thanks Michael,
That helps out quite a bit. I thought that was going to be the answer.
I was just having a hard time thinking beyond 1 to 1 relationships.
What you say makes sense.
Thanks!
Eric Rank
www.lo-fi.net
On 3/31/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 3/31/06,
ibute allowed in the 'action' element), how can I populate
multiple forms which are associated with distinct form-beans?
I have a couple of ideas for handling this, but none certain, nor tested.
What have you done to handle this kind of situation? What are the pros and
cons to such an approach
just fine.
I knew it was probably something simple. I appreciate your help!
Thanks,
Eric
On 1/7/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 1/7/06, Eric Rank <[EMAIL PROTECTED]> wrote:
>
> > My goal is to retrieve data, which a jsp will spill out. I'm trying to
Alas!
I realize that I am probably missing something fundamentally basic and
that y'all might tell me to go RTFM. And that's cool, just point me to
it. Most of the stuff I've seen is very focussed on dealing with data
AND forms, but not data by itself. I
60 matches
Mail list logo