Re: Struts2 with AJAX file upload??

2006-12-15 Thread Nagraj Rao
well i had this tag in my struts-config.xml after all the acion mappings multipartClass="net.kencochrane.upload.ExtendedMultiPartRequestHandler" /> Do i need to override the fileupload interceptor in this case?? - Original Message - From: "Don Brown" <[EMAIL PROTECTED]> To: "Struts Us

Re: Struts2 : Request found null with Multipart enc-type

2006-12-15 Thread Nagraj Rao
Exactly i'm letting S2 populate the fields thru setters in my action. I've not specified any interceptor in my action mappings, hope it'll take the default-stack which has the file upload interceptor reference in it. - Original Message - From: "Don Brown" <[EMAIL PROTECTED]> To: "Str

Re: [S2] autocompleter, predefining initial value

2006-12-15 Thread Musachy Barroso
The initial value can be set with "value" if you are setting the options with "list". If the values are loaded dynamically, then the initial value cannot be set, this is something that could be done, but I wasn't sure that it was a good idea, cause maybe the value was not one of the possible op

Re: internationalization in struts

2006-12-15 Thread Chris Pratt
Looking at your structure above it appears that you have two subdirectories of WEB-INF, classes (which is automatically on the classpath) and resources (which is not on the classpath). If you move the resources directory under the classes directory it should work. (*Chris*) On 12/12/06, Kranti

Re: Preprocessing of request

2006-12-15 Thread Ed Griebel
On 12/15/06, Anil Kumar T <[EMAIL PROTECTED]> wrote: Hi ... Thanks to Ed and Frank for explaining this.. I understand it. One more question was .. is there a way to avoid mandatory calling it in all the sub actions, instead the call should happen automatically. For Ex : I believe .. w

[S2] autocompleter, predefining initial value

2006-12-15 Thread Dariusz Wojtas
Hi, I am using Struts 2.0.2, trunk. I have an action (/listy/kodyPocztowe) that returns postal codes [id, name] and another action that server a form (form points to the same action back). How to define the initial value in the autocompleter field? Even if I submit the form and it reloads with

Re: struts action servlet interaction with jsp files

2006-12-15 Thread Frank W. Zammetti
Note however that there is no JSTL equivalent for most of the Struts HTML taglib... the Struts HTML tags are Struts-aware, i.e., will automatically pull data from your form beans to populate the fields... JSTL can't do that automatically. Aside from the HTML taglib, Laurie is of course right,

Re: Validation rule writing

2006-12-15 Thread Laurie Harper
What Chris said, plus this: there's no validation rule named 'areaCodeMask' or 'phoneMask'; you want just 'mask' as the rule name. See the validator documentation for examples. Also, is validation working at all for you? For example, is it correctly detecting errors for the properties you h

Re: struts action servlet interaction with jsp files

2006-12-15 Thread Laurie Harper
Simply put, the Struts tags pre-date JSTL. The JSTL tags provide equivalent functionality in many areas and more besides. Since they are a standard and more complete solution than the equivalent Struts tags, their use is recommended. The Struts tags have been kept for backwards compatibility a

Re: Formbean information lost

2006-12-15 Thread Laurie Harper
Thomas Thomas wrote: Hi, If I fill my form with, for example, "xyz" as login, and if there is an error, "xyz" will stay in the textfield, (for some reason, as additional question if u can say me why that happen, would be great) It's a function of the design of Struts. When you form is submitte

RE: S2 with eclipse/WTP

2006-12-15 Thread Wesley Wannemacher
I did things the easy way and just imported struts2-blank-2.0.1.war as a dynamic web project. This has worked fine in wtp-all-in-one-sdk-R-1.5.1-200609230508-win32.zip. -Wes > -Original Message- > From: Rick Schumeyer [mailto:[EMAIL PROTECTED] > Sent: Friday, December 15, 2006 1:32 PM

Re: forward request to struts action on other server

2006-12-15 Thread Laurie Harper
bramsomers wrote: Hi all, I have two servers, each running the sun appliction server (9.0). I've build a webapplication, and know I want to forward requests from the first to the second application server. You can't forward a request between two separate applications, whether they be deployed

Re: S2 with eclipse/WTP

2006-12-15 Thread Don Brown
If you want to use the Web Tools Project, you might find this useful: http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html Basically, add a flag to tell the Maven 2 plugin to generate wtp files like so: mvn -Dwtpversion=1.0 eclipse:eclipse Don On 12/15/06, Dariusz Wojtas <[EMAIL PROTE

Re: Struts2 with AJAX file upload??

2006-12-15 Thread Don Brown
What do you mean by trying to find controller tags in struts.xml? How do you have it implemented in Struts 1? Don On 12/15/06, Nagraj Rao <[EMAIL PROTECTED]> wrote: Hi guys I want to implement AJAX file upload in Struts2. tried searching over on the net, but couldn't find much. I have an AJA

Re: Struts2 : Request found null with Multipart enc-type

2006-12-15 Thread Don Brown
How are you accessing form fields? Are you letting Struts 2 populate setters in your actions or are you extracting them yourself? Also, check that the interceptor stack you are using has the fileuploadinterceptor. Don On 12/15/06, Nagraj Rao <[EMAIL PROTECTED]> wrote: Hi all I'm facing a pec

Re: S2 with eclipse/WTP

2006-12-15 Thread Dariusz Wojtas
I also use eclipse with S2 with no problem, and 'mvn eclipse:eclipse' works as it should. I repeated it also today on fresh source tree. 1) define Maven repository (for referencing JAR files) Window --> Preferences --> Java --> Build Path --> ClassPath Variables Define variable M2_REPO with val

S2 with eclipse/WTP

2006-12-15 Thread Rick Schumeyer
I would like to learn S2 while using the eclipse/WTP IDE. I currently use eclipse/WTP for a struts 1.3 project. But the way I constructed the eclipse project was a bit of a pain. In reviewing the list archives, it looks like there is an easy way to generate a blank template for an S2 project

Re: Validation rule writing

2006-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thom, Thom Burnett wrote: > I'm trying to validate two fields - area code and phone number (as nnn- > no areacode in that input). > > [snip] > > phoneFormatMask > ^[0-9]{3}-[0-9]{4}$ This regexp looks good. Have you checked th

RE: help in basic struts application

2006-12-15 Thread Scott Purcell
I believe first off you may want to consider whether to dig into struts 1.x or struts 2.x. If your are just creating a super simple app, you may just want model1 with jsp. If this will grow into something larger, you may need to get better spec, and post question again. Keeping in minds things lik

help in basic struts application

2006-12-15 Thread ajay ajay
Hi... i am new to struts... i need some help i am developing a sample basic application in struts.in that application i have two web pageson one page there are some check boxes..user will select one or more or all check boxes...i want to display values of all selected check boxes on seco

Re: S2 - customize tabs

2006-12-15 Thread walidito
OK thanks, does anyone has already written a css for struts-2-like tags : It would be great. thanks, walid. Don Brown wrote: > > You should be able to just provide your own css styling for the tags > in your usual css file. > > Don > > On 12/14/06, walidito <[EMAIL PROTECTED]> wrote: >> >>

Validation rule writing

2006-12-15 Thread Thom Burnett
I'm trying to validate two fields - area code and phone number (as nnn- no areacode in that input). Various samples and reading suggest that I should be able to create a mask and apply it as below but my result is that the area code can't be empty but it can contain letters, be longer than 3.

Re: redirect or forward from method

2006-12-15 Thread Stanislav
Tnx Chris, your answer is very helpfull :-) From: Christopher Schultz <[EMAIL PROTECTED]> To: Struts Users Mailing List Subject: Re: redirect or forward from method Date: Fri, 15 Dec 2006 09:16:24 -0500 - Original Message Follows - > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >

Re: redirect or forward from method

2006-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stan, Stanislav wrote: > I'm using Strus and this is my problem. I have this method A which > have input and outpur parameters. There is try/catch block in method > A that capture Exceptions. I want to redirect or forward to jsp page > B from method A

Re: comparing two values in validation framework..help?

2006-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mallik, Mallik wrote: > i have to comparing password and confirm password with validation framework. > how can i do this let me know please There is an example of this exact thing in the Struts validator guide: http://struts.apache.org/1.x/faqs/vali

redirect or forward from method

2006-12-15 Thread Stanislav
Hi! I'm using Strus and this is my problem. I have this method A which have input and outpur parameters. There is try/catch block in method A that capture Exceptions. I want to redirect or forward to jsp page B from method A when some error is happend and NOT to return to class C from

Struts2 : Request found null with Multipart enc-type

2006-12-15 Thread Nagraj Rao
Hi all I'm facing a peculiar problem with one of my forms in Struts2. Whenever I submit the form uaing enc-type as multipart/form-data for file uploads, i'm unable to get any of the form fields in my action. If i remove the file widgets and enc-type attribute, i'm able to get all the form field

RE: comparing two values in validation framework..help?

2006-12-15 Thread Thai Dang Vu
You could look at acegisecurity.org (used with Spring). -Original Message- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Friday, December 15, 2006 2:02 AM To: user@struts.apache.org Subject: comparing two values in validation framework..help? Hi friends i have to comparing password and c

Struts2 with AJAX file upload??

2006-12-15 Thread Nagraj Rao
Hi guys I want to implement AJAX file upload in Struts2. tried searching over on the net, but couldn't find much. I have an AJAX based file uploader working in Struts1.x but i'm not able to migrate it to Struts2 due to some uncommon controller mappings (such as i'm not finding any conroller tag

comparing two values in validation framework..help?

2006-12-15 Thread Mallik
Hi friends i have to comparing password and confirm password with validation framework. how can i do this let me know please thanks in advance ur's Mallik -- View this message in context: http://www.nabble.com/comparing-two-values-in-validation-framework..help--tf2825561.html#a7887166 Sent fr

RE: Preprocessing of request

2006-12-15 Thread Anil Kumar T
Hi ... Thanks to Ed and Frank for explaining this.. I understand it. One more question was .. is there a way to avoid mandatory calling it in all the sub actions, instead the call should happen automatically. For Ex : I believe .. when we instantiate a sub class by saying SubClass subcl

Re: [S2] the autocompleter tag - the href value

2006-12-15 Thread Dariusz Wojtas
Works perfectly now. Most likely maven had issues with the compiling struts2 code into the same directories as eclipse. After I pointed eclipse to compile into separate directories - maven started to work as expected. Thanks for help Darek On 12/15/06, Musachy Barroso <[EMAIL PROTECTED]> wrote

[s2] switching locale without an action

2006-12-15 Thread Andrew Stepanenko
Hello, is it possible to switch locale for tag on a stand alone JSP, that is a JSP which is not the result of an Action? Having read about i18n-interceptor (http://cwiki.apache.org/WW/i18n-interceptor.html) and Migrating to Struts 2 tutorial (http://opensource.atlassian.com/confluence/oss/displ