Re: R: R: Error : request.getReader()

2007-01-30 Thread Craig McClanahan
On 1/29/07, Marcello Savino [EMAIL PROTECTED] wrote: The reason i need the request body is that the action i should take is to analyze the html generated. (ie.: syntax checking, finding img without alt attributes, reading meta-information ...). More: this job must be done server side (no

Is it possible to join Struts Team?

2007-01-30 Thread Struts2 Fan
Hi, I just want to know if it is possible to join Struts2 Team. If (possible) { how(); }else if( !possible){ willItBePossible(); }

Building struts application

2007-01-30 Thread Saravanan Ponnusamy, EAS-Chennai
Hi How to build struts application using Maven 1.1? Can you show me some guidance? Thanks Sarav DISCLAIMER: --- The contents of this e-mail and any attachment(s) are

Getting the ip address in the Action

2007-01-30 Thread Struts2 Fan
Hi community, How can I get the client's ip address on the action's execute method? Thanks...

Re: Getting the ip address in the Action

2007-01-30 Thread Gareth Evans
request.getRemoteAddr(); Gareth Struts2 Fan wrote: Hi community, How can I get the client's ip address on the action's execute method? Thanks... -- Gareth Evans Senior Developer MSoft eSolutions Limited Technology Centre Inward Way Rossmore Business Park Ellesmere Port Cheshire CH65 3EN

Re: Getting the ip address in the Action

2007-01-30 Thread Struts2 Fan
I want to get it in Struts 2 and How can I get the request?

Re: Getting the ip address in the Action

2007-01-30 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html - Original Message - From: Struts2 Fan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, January 30, 2007 12:03 PM Subject: Re: Getting the ip address in the Action I

Re: Is it possible to join Struts Team?

2007-01-30 Thread Tim Williams
On 1/30/07, Struts2 Fan [EMAIL PROTECTED] wrote: Hi, I just want to know if it is possible to join Struts2 Team. If (possible) { how(); }else if( !possible){ willItBePossible(); } These should be helpful: http://struts.apache.org/helping.html

Re: [s2] File Upload Problem with large Files in struts2

2007-01-30 Thread avajon
hi, i think it is a bug in the FilterDispatcher. I change the Method prepareDispatcherAndWrapRequest to this and now it works. Should i post it to a bug-report? is there such a thing? best regards avajon pre protected HttpServletRequest prepareDispatcherAndWrapRequest(HttpServletRequest

Re: Struts vs JSF

2007-01-30 Thread Piero Sartini
I had the same problem some time ago. At the end I decided to go with struts2 instead of JSF for several reasons: - development time (i am familar with action based frameworks - it reflects better how i think of web application) - there is no good JSF framework out there in my eyes. nothing

Struts2: New life to IBM RAD?

2007-01-30 Thread Bruno Melloni
IBM seems to have abandoned Struts (stuck at Struts 1.1, with no plans to support newer versions) on their RAD 6 IDE and later. They also strongly discourages replacing the Struts JAR files in RAD with newer versions, stating that various problems would occur. I am trying to find a way to

Re: upgrade to 2.0.4

2007-01-30 Thread Ted Husted
You might want to remove any plugins that you are not using. The only JARs now required by the core framework are * struts-core * struts-api * xwork * freemarker * ognl * commons-logging The seamless S2 Spring support is also provided by a plugin now. -- HTH, Ted. *

Struts 1.3.5 and URL Validation

2007-01-30 Thread pushkar . p
Hi everyone, I'm using Struts version 1.3.5 and I intend to use URL validation for a field using the validation.xml file. But, when I declare the field in validation.xml, it does not validate the field to check whether the URL is a valid one, meaning that it takes any input that I give in that

Re: Struts 1.3.5 and URL Validation

2007-01-30 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Is there anything else that I need to do for URL validation besides declaring in validation.xml? You need to provide more information. ActionForm class, how you're mapping from action = validation (bean name or action name), does any *other* validation on the same

Struts 1.3.5 - Radio Button validation

2007-01-30 Thread pushkar . p
Hi all, Can you please tell me whether I can validate a set of radio buttons so that atleast one of them is checked, using the struts validation.xml? Is there a pre-defined validator method (like required) defined for that or will I have to write a custom validator method? Thanks. -Pushkar

Re: how to use struts2 + spring + JPA

2007-01-30 Thread shahab
Hi: Thanx so much for your help. WebApp Context got loaded now. I greatly appreaciate your help. thanx Shahab Musachy Barroso-2 wrote: Good catch, I got confused between WEB-INF and META-INF :) musachy cilquirm wrote: your persistence.xml must be in META-INF directory in the

Failure request.getAttribute();

2007-01-30 Thread bjorn.de.bakker
Some weird things are happening here : I have a form, with a hidden field and a button. This button is placed on a page with some user information. I want to pass that users ID to the subsequent action, to retrieve his data and display it on the other page. In another part of my webapp, I'm

Re: Struts 1.3.5 and URL Validation

2007-01-30 Thread Niall Pemberton
On 1/30/07, Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: Is there anything else that I need to do for URL validation besides declaring in validation.xml? You need to provide more information. ActionForm class, how you're mapping from action = validation (bean name or

Re: Failure request.getAttribute();

2007-01-30 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: String userId = (String) req.getAttribute(userId); getParameter. d. No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started.

Re: R: R: Error : request.getReader()

2007-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcello, Marcello Savino wrote: The reason i need the request body is that the action i should take is to analyze the html generated. (ie.: syntax checking, finding img without alt attributes, reading meta-information ...). More: this job must

Re: Struts 1.3.5 - Radio Button validation

2007-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pushkar, [EMAIL PROTECTED] wrote: Can you please tell me whether I can validate a set of radio buttons so that atleast one of them is checked, using the struts validation.xml? Is there a pre-defined validator method (like required) defined for

RE: R: R: Error : request.getReader()

2007-01-30 Thread Dave Newton
From: Christopher Schultz I'm starting to think that Dave Newton was on the right track, although it seemed like a hideous hack ;) Pretty much any time I'm on the right track it's a hideous hack. I start off meaning well then it all goes cow's legs up. I think this is best done with a filter.

Wiki link?

2007-01-30 Thread Frank W. Zammetti
Could someone point me at the link from the Struts home page to the wiki? I can still find it by clicking the Struts 1.2.9 links under Documentation, but seems a bit tucked away... might it be better to be more prominent? (or is it and I'm just missing it?) Frank -- Frank W. Zammetti Founder

RE: Is it possible to join Struts Team?

2007-01-30 Thread Adrian_Rios
I am interested too. __ Senior Programmer Analyst, Tax Distributed Systems Development Tax Compliance Development, ADP IT Phone: (909) 592-6411 Ext. 3863 e-mail: [EMAIL PROTECTED] -Original Message- From: Struts2 Fan [mailto:[EMAIL

Re: Wiki link?

2007-01-30 Thread Ted Husted
For Struts 1.x and Struts 2x, the links are under Support on each product's home page, so that all the material for each product is together. * http://struts.apache.org/1.x/ ** http://wiki.apache.org/struts/ * http://struts.apache.org/2.x/ ** http://cwiki.apache.org/S2WIKI/home.html -Ted. On

Problem with formatting money amounts with bean:write formatKey=

2007-01-30 Thread Adam Lipscombe
Folks I am using bean:write name=myBean property=beanProperty formatKey=global.moneyFormat/ global.moneyFormat is defined in the vanilla ApplicationResources.properties file as #,##0.00 To support users in France and Germany there are also ApplicationResources_fr and

[s2] file upload causing param problems

2007-01-30 Thread bob
Hi. I am having some strange problems when using the file upload interceptor. When I use the file upload, I experience an extremely erratic behaviour where sometimes my request params get set on my action and sometimes they do not. All params from my form are either there or not there;

Re: [s2] file upload causing param problems

2007-01-30 Thread Dariusz Wojtas
I had similar problems with fileupload last weekend. At first I thought that it could be caused by a filter that I have in front of my app - prints the URI and all params to the console - does the processing before analising multipart data. But I modified the filter to get/print that info after

Re: Wiki link?

2007-01-30 Thread Frank W. Zammetti
Ok, so next stupid question... how does one get to the home page for a specific product if you don't know the address already? Well, I can answer that partially... there is a Struts 1 and Struts 2 link under the The Apache Struts Project heading, as part of the paragraph text... I'm not seeing

Re: Wiki link?

2007-01-30 Thread Ted Husted
Under Documentation are the links to the archived sites for Struts 1.2.9 and Struts 1.3.5, which are the most current GA releases. (Struts 2.0.x is in beta.) Under Development are the links to the latest draft documentation for each product. Asking for the home page is a bit of a loaded

best possible design

2007-01-30 Thread Maya menon
All, I need to enable role based access to my Struts-J2EE application. ie, if a normal user logs in, user should see one page whereas if a superuser logs in he should see another page. Whats the best suited design here ? Any links ? I use Struts 1.x,Eclipse and Tomcat

Re: Wiki link?

2007-01-30 Thread Rick Reumann
I've always found incredibly difficult to find things on the Struts home page http://struts.apache.org/ I really think the home page should have a clarification of terms and what you plan on doing. For one thing this is incredibly confusing... On Struts home page: Struts 2 was originally known

Re: best possible design

2007-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maya, Maya menon wrote: I need to enable role based access to my Struts-J2EE application. ie, if a normal user logs in, user should see one page whereas if a superuser logs in he should see another page. IU'm not sure about best possible design,

Re: Wiki link?

2007-01-30 Thread Frank W. Zammetti
On Tue, January 30, 2007 3:07 pm, Ted Husted wrote: Under Documentation are the links to the archived sites for Struts 1.2.9 and Struts 1.3.5, which are the most current GA releases. (Struts 2.0.x is in beta.) I'm not following... conceptually I mean... I followed the links just fine :) ...

Re: Struts2: New life to IBM RAD?

2007-01-30 Thread cilquirm
From my experience, it is possible to run Struts1 and Struts2 side by side As far as I've seen and worked with, other than keeping the org.apache start of the package name, the namespaces and class names are different. Bruno Melloni-2 wrote: Are all the package.class names different

keys, security on downloads

2007-01-30 Thread bob
All, I'm an admitted security gumbie, but I do have some questions regarding the download security mechanisms on the struts site. Note, they are pretty much similar to those found on other similar sites so I'm not picking on anyone. In fact, I just want someone to explain to me how it

RE: Failure request.getAttribute();

2007-01-30 Thread bob
Parameters are the set of values coming from the http request. Attributes are the things you can set on the request yourself, yourself can include struts because it too is a user in the space above the ServletAPI. ___ Join Excite! -

Re: [S1] Select multiple matching values from form bean

2007-01-30 Thread Laurie Harper
Grant Harding wrote: Hi, I'm trying to create an 'edit form' page. In this, I'm trying to populate a multiple select field with a bean in the request scope and match the selected values from the form. I'm not sure how to get this to work. After looking in the taglib source, it looks like I

Tiles2 and Struts2

2007-01-30 Thread Gonçalo Luiz
Hello, After a few days fighting with Struts2 and Tiles2 I decided to ask in the mailing list: does actually anybody managed to get them to work together? I tried different approaches: 1 - Use a listener in web.xml - got an error that kept tomcat throwing 404 error 2 - use a servlet in web.xml

Re: Tiles2 and Struts2

2007-01-30 Thread Gonçalo Luiz
I forgot to mention: Struts - version struts2-api-2.0.1 Tiles - version struts2-tiles-plugin-2.0.1 On 30/01/07, Gonçalo Luiz [EMAIL PROTECTED] wrote: Hello, After a few days fighting with Struts2 and Tiles2 I decided to ask in the mailing list: does actually anybody managed to get them to

Re: Tiles2 and Struts2

2007-01-30 Thread Dave Newton
--- Gonçalo Luiz [EMAIL PROTECTED] wrote: Struts - version struts2-api-2.0.1 Tiles - version struts2-tiles-plugin-2.0.1 I've been using Struts2/Tiles2 since 2.0.1 (on 2.0.3 now) and have had almost no issues; did you follow the instructions on the S2 wiki (now located at

Re: upgrade to 2.0.4

2007-01-30 Thread Laurie Harper
Yes, you would certainly need to remove struts2-core-2.0.1 when upgrading to 2.0.4, or you'll have multiple versions of the same classes in your classpath. The same holds for plugin jars and any/all dependencies. L. xiao jie wrote: hi: I tried to update my application from 2.0.1 to 2.0.4 and

Re: Building struts application

2007-01-30 Thread Laurie Harper
Saravanan Ponnusamy, EAS-Chennai wrote: Hi How to build struts application using Maven 1.1? Can you show me some guidance? Start at the Maven 1 home page [1] to learn how to build projects with Maven (or the main page [2] if you can use Maven 2, which I'd recommend doing if it's an

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

2007-01-30 Thread Eric Rank
Hi List, I'm attempting to construct a URL within an action's execute code. The URL will be sent out in an email, serving as a link for a user to click on. It'd be great if I could do this by finding the URL of an Action using the Action name, which I have defined in the struts.xml file.

Re: Struts2: New life to IBM RAD?

2007-01-30 Thread Laurie Harper
Correct. Struts2 uses the org.apache.struts2 package whereas Struts1 uses org.apache.struts, so there is no conflict if both are included in a project. L. cilquirm wrote: From my experience, it is possible to run Struts1 and Struts2 side by side As far as I've seen and worked with, other

Re: Struts 1.3.5 - Radio Button validation

2007-01-30 Thread Laurie Harper
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pushkar, [EMAIL PROTECTED] wrote: Can you please tell me whether I can validate a set of radio buttons so that atleast one of them is checked, using the struts validation.xml? Is there a pre-defined validator method

Re: IRC #struts on freenode

2007-01-30 Thread Vinny
Ok, it's kind of a late reply but this is the best irc client I've found for OSX thus far, it's an Aqua version of good ole X-Chat. Come join us #struts on freenode http://www.versiontracker.com/dyn/moreinfo/macosx/17132 On 8/29/06, James Mitchell [EMAIL PROTECTED] wrote: I need to find

Re: Struts 1.3.5 - Radio Button validation

2007-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Laurie, Laurie Harper wrote: Actually, assuming it's a radio button group that maps to a single property, you probably just need the 'required' validation to ensure that property has a value. You should only need 'validwhen' if there are multiple

Re: Wiki link?

2007-01-30 Thread Laurie Harper
Frank W. Zammetti wrote: Ok, so next stupid question... how does one get to the home page for a specific product if you don't know the address already? Well, I can answer that partially... there is a Struts 1 and Struts 2 link under the The Apache Struts Project heading, as part of the

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

2007-01-30 Thread bob
This is surely not the best way . . . but you can implement one of the Aware interfaces that gives you a reference to the ServletRequest and get the URL info from that, from there I assume you could probably build the action specific url. But I'm also sure there must be access to the struts

[s2] multi part plugin

2007-01-30 Thread bob
Hello. I'm moving my application up to s2.04 ( from 2.0.1 ). I'm getting an error from the struts filter that says it can't find the pell mulit part request class. The odd thing is, I have verified that the correct jar is available and that it holds the correct class. The problem seems

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: [s2] multi part plugin

2007-01-30 Thread Dave Newton
Hrm, that's the same thing I reported last week sometime. --- Don Brown [EMAIL PROTECTED] wrote: Fixed, thanks for bringing it up: http://issues.apache.org/struts/browse/WW-1692 Don On 1/30/07, bob [EMAIL PROTECTED] wrote: Hello. I'm moving my application up to s2.04 ( from

Re: Wiki link?

2007-01-30 Thread Ted Husted
On 1/30/07, Rick Reumann [EMAIL PROTECTED] wrote: I've always found incredibly difficult to find things on the Struts home page http://struts.apache.org/ I really think the home page should have a clarification of terms and what you plan on doing. For one thing this is incredibly confusing...

cannot see s:datetimepicker

2007-01-30 Thread xiao jie
Hi : I am using struts 1.0.4 now and I try to use the s:datetimepicker, i can see the tag label but not the datetimepicker itself... am i missing sth here? do I have to configure dojo explicitly to get it working? or is it included in struts2 already? and when I use s:datetimepicker

Re: Wiki link?

2007-01-30 Thread Ted Husted
On 1/30/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: Just to clarify my motiviation so you know I'm not just being a wanker :) ... I believe wikis are a fantastic way for all users, not just project devs, to share information with one another in a persistent way. Because of that, I always

Re: Wiki link?

2007-01-30 Thread Dave Newton
--- Ted Husted [EMAIL PROTECTED] wrote: Technically, all of the Struts 2 documentation is a wiki, except for the first page. Anyone who files a CLA with the ASF is welcome to contribute. I love Confluence and all its power, but it's frustrating when a lot of the docs are pulled in from

[s2] versions?

2007-01-30 Thread bob
At first I thought there was only a 2.0.1 version of struts2, as its the only one listed upfront; now I've found 2.0.2 . . . 2.0.5. I'm not really familiar with official versioning practices, so maybe this is obvious, but what are the differences?

Re: [s2] versions?

2007-01-30 Thread Dave Newton
--- bob [EMAIL PROTECTED] wrote: At first I thought there was only a 2.0.1 version of struts2, as its the only one listed upfront; now I've found 2.0.2 . . . 2.0.5. I'm not really familiar with official versioning practices, so maybe this is obvious, but what are the differences?

Re: [s2] file upload causing param problems

2007-01-30 Thread Nagraj Rao
Even i'm not sure what has been causing this. But probably you can just check your lib to contain commons-lang-1.1.1.jar instead of commons-lang.jar(remove this in case it exists). - Original Message - From: Dariusz Wojtas [EMAIL PROTECTED] To: Struts Users Mailing List

RE: Struts 1.3.5 and URL Validation

2007-01-30 Thread pushkar . p
Yes, I was expecting client-side validation to work for URLs. And ya, other validations like required, email, maxlength..etc are working fine on this form. Thanks. -Pushkar -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 9:11 PM To:

Struts 1.3.5 - Validate for in mask validator

2007-01-30 Thread pushkar . p
Hi, Maybe this is more of a Regular Expressions question than struts, but please help me if you can. I'm using Mask validator in Struts 1.3.5 and I'm not able to include symbol in the regular expression for the mask. I intend to allow the user to enter inside the text box but, even after giving

RE: Struts 1.3.5 - Validate for in mask validator

2007-01-30 Thread Strachan, Paul
try: amp; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wed 1/31/2007 2:58 PM To: user@struts.apache.org Subject: Struts 1.3.5 - Validate for in mask validator Hi, Maybe this is more of a Regular Expressions question than struts, but please

Re: Tiles2 and Struts2

2007-01-30 Thread Joe Germuska
On 1/30/07, Gonçalo Luiz [EMAIL PROTECTED] wrote: Hello, After a few days fighting with Struts2 and Tiles2 I decided to ask in the mailing list: does actually anybody managed to get them to work together? I tried different approaches: 1 - Use a listener in web.xml - got an error that kept

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

2007-01-30 Thread Tom Schneider
Take a look at ServletActionRedirectResult, something like this might do it: @Inject public void setActionMapper(ActionMapper mapper) { this.actionMapper = mapper; } to inject the action mapper. I've coined the phrase 'magic injector' to describe this. Then String uri =

Re: Struts 2 and tiles

2007-01-30 Thread Sai Nay Thurein Nyo
Joe Germuska joe at germuska.com writes: Have you seen http://cwiki.apache.org/S2PLUGINS/tiles-plugin.html ? Struts 2 is intentionally mostly ignorant of Tiles, except for the plugin, so something like per-package tiles defs would involve writing your own code, perhaps a custom subclass

Re: Struts 2 and tiles

2007-01-30 Thread Joe Germuska
That looks right to my eye. I'd suggest setting your logging config to debug for the category org.apache.tiles.impl (the class which specifically handles the definitions is BasicTilesContainer). Perhaps that will help. I have to stress once again that Tiles 2 has not been released. If you

formatting money values with bean:write

2007-01-30 Thread Adam Lipscombe
Folks I am using bean:write name=myBean property=myBeanProperty formatKey=global.moneyFormat/ global.moneyFormat is defined in the vanilla ApplicationResources.properties file as #,##0.00 To support users in France and Germany there are also ApplicationResources_fr and