Re: Legacy struts 1 dtd's gone?

2013-02-14 Thread Eric Rank
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

Re: Legacy struts 1 dtd's gone?

2013-02-12 Thread Eric Rank
; 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

Legacy struts 1 dtd's gone?

2013-02-12 Thread Eric Rank
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

Wildcard mappings and Annotations

2008-07-17 Thread Eric Rank
.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

Re: Struts 2 - Velocity Templates rendered twice

2008-05-15 Thread 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

Re: Update from 2.0.9 to 2.0.11

2008-01-03 Thread Eric Rank
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ł

Re: Upgrading to Struts 2.1 and rtxpvalue="false"

2007-12-28 Thread Eric Rank
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

Upgrading to Struts 2.1 and rtxpvalue="false"

2007-12-28 Thread Eric Rank
he modification. Thanks, Eric Rank --- Senior Web App Engineer www.referencevault.com

Re: FieldExpressionValidator: How do I reference field names?

2007-07-19 Thread Eric Rank
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

Re: FieldExpressionValidator: How do I reference field names?

2007-07-19 Thread Eric Rank
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

Re: FieldExpressionValidator: How do I reference field names?

2007-07-18 Thread Eric Rank
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

Re: FieldExpressionValidator: How do I reference field names?

2007-07-18 Thread Eric Rank
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

Re: [S2] How do I disable tags generated by ?

2007-06-05 Thread Eric Rank
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

Re: Struts Tags Include?

2007-04-30 Thread Eric Rank
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: &

Re: Struts Tags Include?

2007-04-30 Thread Eric Rank
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

Re: [s2] Difference between actionMessages and actionErrors

2007-04-24 Thread Eric Rank
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

Re: Problem with file upload in struts2

2007-04-16 Thread Eric Rank
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

Re: upload fail occasionally [also Re: File upload fails first time, then works after page reload]

2007-04-11 Thread Eric Rank
h (IOException e) { String message = "Could not wrap servlet request with MultipartRequestWrapper!"; LOG.error(message, e); throw new ServletException(message, e); } return request; } Th

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Eric Rank
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

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Eric Rank
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

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Eric Rank
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

Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Eric Rank
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

Re: [S2 Tip] Always set devMode to false in production

2007-03-16 Thread Eric Rank
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

Re: [S2 Tip] Always set devMode to false in production

2007-03-16 Thread Eric Rank
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.

Re: Non standard url parameter -- when jsessionid appended [SOLVED]

2007-03-05 Thread Eric Rank
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

Re: Non standard url parameter -- when jsessionid appended [SOLVED]

2007-03-05 Thread Eric Rank
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

Re: Non standard url parameter -- when jsessionid appended

2007-03-05 Thread Eric Rank
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

Non standard url parameter -- when jsessionid appended

2007-03-05 Thread Eric Rank
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

Re: [S2] Single quote in package.properties

2007-02-27 Thread Eric Rank
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

[S2] Single quote in package.properties

2007-02-27 Thread Eric Rank
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]

[s2] Adding ActionErrors / Messages with a named key

2007-02-16 Thread Eric Rank
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

Re: [s2] Finding a URL of an Action within execute()

2007-01-31 Thread Eric Rank
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]

Re: [s2] Finding a URL of an Action within execute()

2007-01-31 Thread Eric Rank
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,

Re: [s2] Finding a URL of an Action within execute()

2007-01-30 Thread Eric Rank
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

[s2] Finding a URL of an Action within execute()

2007-01-30 Thread Eric Rank
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]

Re: Struts2 + Cookies

2007-01-23 Thread Eric Rank
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:

Re: Failed build of svn HEAD on Mac OS X

2007-01-12 Thread Eric Rank
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

Failed build of svn HEAD on Mac OS X

2007-01-12 Thread Eric Rank
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]

Re: [S2] how to specify ActionMapper -- Restful2ActionMapper

2007-01-06 Thread Eric Rank
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&#x

Re: [S2] how to specify ActionMapper -- Restful2ActionMapper

2007-01-05 Thread Eric Rank
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

[S2] how to specify ActionMapper -- Restful2ActionMapper

2007-01-05 Thread Eric Rank
"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

Re: [tiles 2] Accessing items from a putList?

2006-12-31 Thread Eric Rank
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

Re: [tiles 2] Accessing items from a putList?

2006-12-31 Thread Eric Rank
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.

[tiles 2] Accessing items from a putList?

2006-12-29 Thread Eric Rank
struts:iterator tag, if a loop is required)? Thanks for the help, Eric Rank Here's some specific code for reference: === tiles.xml === === myTempla

[S2] How to use a Map backed form?

2006-12-25 Thread Eric Rank
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

Re: Multiple buttons and validation

2006-12-12 Thread Eric Rank
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

Re: [s2]

2006-12-08 Thread Eric Rank
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

[s2]

2006-12-08 Thread Eric Rank
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]

ApplicationResources vs. MessageResources

2006-06-13 Thread Eric Rank
hanks for your help on these simple questions Eric Rank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to execute code in an Action when ActionForm validation fails?

2006-04-18 Thread Eric Rank
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

Re: How to execute code in an Action when ActionForm validation fails?

2006-04-18 Thread Eric Rank
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]

Re: How to execute code in an Action when ActionForm validation fails?

2006-04-18 Thread Eric Rank
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

How to execute code in an Action when ActionForm validation fails?

2006-04-18 Thread Eric Rank
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

Re: Validating DynaForms

2006-04-07 Thread Eric Rank
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

Re: Validating DynaForms

2006-04-07 Thread Eric Rank
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.) > > - > + > >

Validating DynaForms

2006-04-07 Thread Eric Rank
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

Re: Multiple Forms on one page

2006-03-31 Thread Eric Rank
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,

Multiple Forms on one page

2006-03-31 Thread Eric Rank
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

Re: How to merely retrieve data? -> Newbie looking for best practices

2006-01-07 Thread Eric Rank
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

How to merely retrieve data? -> Newbie looking for best practices

2006-01-07 Thread Eric Rank
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