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 lukaszlen...@apache.orgwrote: The DTDs are back :-) http://struts.apache.org/dtds/ Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

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 problem

Re: Legacy struts 1 dtd's gone?

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

Wildcard mappings and Annotations

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

Re: Struts 2 - Velocity Templates rendered twice

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

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: s:if test=%{value_here} Eric Rank - Senior Web App Engineer www.referencevault.com On Jan 3

Upgrading to Struts 2.1 and rtxpvalue=false

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

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]: In migrating

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.

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: 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

Re: FieldExpressionValidator: How do I reference field names?

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

Re: FieldExpressionValidator: How do I reference field names?

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

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

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

Re: Struts Tags Include?

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

Re: Struts Tags Include?

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

Re: [s2] Difference between actionMessages and actionErrors

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

Re: Problem with file upload in struts2

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

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

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

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

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 ww:property value=#top.user.username / Eric Rank 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: Unfortunately

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

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

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

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

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 bit of clarification about

Non standard url parameter -- when jsessionid appended

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

Re: Non standard url parameter -- when jsessionid appended

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

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 2:32 PM, Eric Rank wrote

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

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

[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]

Re: [S2] Single quote in package.properties

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

[s2] Adding ActionErrors / Messages with a named key

2007-02-16 Thread Eric Rank
messages Thanks for your advice, Eric Rank - 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, something

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

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

2007-01-30 Thread Eric Rank
. 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: [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 not the best way

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: Hi Guys, I tried without

Failed build of svn HEAD on Mac OS X

2007-01-12 Thread Eric Rank
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: Failed build of svn HEAD on Mac OS X

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

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'm assuming that I'll need

[S2] how to specify ActionMapper -- Restful2ActionMapper

2007-01-05 Thread Eric Rank
method of my action? 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-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 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

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

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

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

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

[tiles 2] Accessing items from a putList?

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

[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
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

[s2]

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

Re: [s2]

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

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

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

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

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

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
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

Validating DynaForms

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

Re: Validating DynaForms

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

Re: Validating DynaForms

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

Multiple Forms on one page

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

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, Eric Rank

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

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

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

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