Yay, thanks for the update.
On Wed, Feb 13, 2013 at 6:37 AM, Lukasz Lenart lukaszlen...@apache.orgwrote:
The DTDs are back :-)
http://struts.apache.org/dtds/
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
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 problem
the DTDs,
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 ericr...@lo-fi.net wrote:
Hi list!
I've got an odd problem related to an old Struts
as follows, but I'd
like to avoid using xml if I can.
action name=page/* class=com.site.actions.PageAction
param name=variable{1}/param
result name=inputinput.jsp/result
result name=successsuccess.jsp/result
/action
Thanks for the help.
Eric Rank
.
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 content
twice
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:
s:if test=%{value_here}
Eric Rank
-
Senior Web App Engineer
www.referencevault.com
On Jan 3
.
Thanks,
Eric Rank
---
Senior Web App Engineer
www.referencevault.com
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]:
In migrating
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.
My Bad, there's another scenario when this field will validate. When
reason != 'friend'
Better expression:
param name=expression(reason != 'friend') or ((reason ==
'friend') and (friendEmail != null) and (friendEmail.trim().size()
0))/param
Eric
On Jul 19, 2007, at 1:33 PM, Eric
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 fields. Unfortunately, it doesn't seem to be working. I
have a radio
button (named reason) and a text field named friendEmail
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, mraible wrote:
That didn't work
the child elements. It might take some experimenting.
3. Create 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
---
Eric Rank
On Apr 30, 2007, at 12:47 PM, Paul wrote:
Hey Dave,
Yup just realized that. Thanks. I changed it to the following:
s:url action=listUserAction id=userlist includeContext=false /
I no longer have the double {project}s but unfortunately still have
the same error
) to whom this 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: Struts
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 Figueiredo
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:
--- Mahdi Milani Fard
servlet request
with MultipartRequestWrapper!;
LOG.error(message, e);
throw new ServletException(message, e);
}
return request;
}
Thanks,
Eric Rank
Dave Newton wrote:
Did either of you try specifying
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
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 ww:property value=#top.user.username /
Eric Rank 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:
Unfortunately
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:
I just realized I
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.
Eric Rank
On Mar 16, 2007, at 7:04 AM, Ted Husted wrote
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 bit of clarification about
?
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 a question mark instead of a semicolon?
Thanks for your help!
Eric Rank
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 the struts url tag (struts 2) to generate
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 2:32 PM, Eric Rank wrote
-
Hash: SHA1
Eric,
Eric Rank wrote:
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 :-)
Since you ran across this problem
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]
27, 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
Eric Rank [EMAIL
messages
Thanks for your advice,
Eric Rank
-
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, something
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
.
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]
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 not the best way
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:
Hi Guys,
I tried without
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]
, 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 question is out of scope.
I recently attempted
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'm assuming that I'll need
method of my action?
Thanks!
Eric Rank
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks Nate, that's what I needed to know
Eric Rank
On Jan 5, 2007, at 11:44 AM, Nate Drake wrote:
Eric Rank ericrank at 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:
bean type=org.apache.struts2
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. The only way that I can seem to do it is
by using the following process
for the help,
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. The only way that I can seem to do it is
by using the following process
1. make the putList 'List
for pulling values out of a putList
(preferably with the struts:iterator tag, if a loop is required)?
Thanks for the help,
Eric Rank
Here's some specific code for reference:
===
tiles.xml
===
definition name=myTemplate
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
the bill for you.
Eric Rank
On Dec 12, 2006, at 10:00 AM, Thom Burnett wrote:
I have a few buttons on my jsp page and I want to have validation
happen on
some buttons and not on other buttons.
Is that possible? How? Any examples around
? 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]
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:
s:a href=%{url}
How does the percent sign work
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-practices sort of solution
to this basic problem. What do you do to work around this?
Thanks for your collective wisdom!
Eric Rank
www.lo-fi.net
. 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/validate-manually.do)
a simple way to handle this is to call the validate method
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]
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 PROTECTED] wrote:
Eric Rank
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. Any Ideas?
Eric Rank
www.lo
=dealerSearchForm
+ form name=searchForm
HTH, Ted.
On 4/7/06, Eric Rank [EMAIL PROTECTED] wrote:
Hi All,
I'm attempting to use the Validation framework to validate a Dynaform,
and it doesn't seem to be working. I've done a bit of googling, but
haven't been able to dig up anything
:
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 Rank [EMAIL PROTECTED] wrote:
Ted,
Thanks for responding. In my real code
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?
Thanks for your help!
Eric
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, Eric Rank
documentation.
Thanks for your collective help in getting me on track!
Eric Rank
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
do it by writing a simple Action subclass to get the data and send it
along. The way
59 matches
Mail list logo