servlet null when integrating with spring

2007-02-21 Thread anoe
Hi, i am integrating my struts based app with spring, and have a weird problem, when configuring the controller to be org.springframework.web.struts.DelegatingRequestProcessor in order to manage my Action classes as spring beans, i can no more access the servlet attribute from my Action classes

FileUpload problem

2007-02-21 Thread Nagraj Rao
Hi I've recently upgraded my app to work with Struts 2.0.5. Sometimes i'm getting this problem, specially when i try to upload 2 or more files concurrently java.lang.RuntimeException: Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest () - [unknown location]

Fw: FileUpload problem

2007-02-21 Thread Nagraj Rao
Also i think i'm using the right set of dependencies commons-io-1.3.1 commons-collection 3.2 commons-fileupload-1.1.1 - Original Message - From: Nagraj Rao To: Struts Users Mailing List Sent: Wednesday, February 21, 2007 5:04 PM Subject: FileUpload problem Hi I've recently

Issues running Struts 2.0.6 on Resin 3.0.21

2007-02-21 Thread mraible
I get the following error when I try to deploy a Struts 2.0.6 application on Resin 3.0.21: java.lang.NullPointerException at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:50) at _jsp._error__jsp._jspService(common/messages.jsp:2) From this,

struts2 validation for only one method in action

2007-02-21 Thread ros
Hi! How to configure struts2 validation for only one method in action? Thanks. -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a9082687 Sent from the Struts - User mailing list archive at Nabble.com.

client side validation on included form

2007-02-21 Thread C. Adams
I have a form that I access via an action on an ajax-ish page. (Form and results are on same page) It's working great, but I can't figure out the validation. The page looks like this now: s:div theme=ajax href=PersonByAge_input.action executeScripts=true / s:div id=resultBox theme=ajax / with

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread cilquirm
I believe you can use validation annotation to specify validation routines at the method level. ros wrote: Hi! How to configure struts2 validation for only one method in action? Thanks. -- View this message in context:

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread Musachy Barroso
See here: http://struts.apache.org/2.x/docs/validation.html you can add a file ActionName-MethodName-validation.xml with the validation for that method. regards musachy On 2/21/07, cilquirm [EMAIL PROTECTED] wrote: I believe you can use validation annotation to specify validation routines

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread André Faria
Ok, but what about annotations without xmls? Musachy Barroso escreveu: See here: http://struts.apache.org/2.x/docs/validation.html you can add a file ActionName-MethodName-validation.xml with the validation for that method. regards musachy On 2/21/07, cilquirm [EMAIL PROTECTED] wrote:

Re: Usage of Struts - Tiles using tile controllers (Please help asi couldn't find enough documentation on it)

2007-02-21 Thread sriharsha . chevuru
If you can post some demo, that would be of great help Ray. Basically, i am trying to use tiles action or tiles controller. I would wait for your reply on this. Thanks again. Sri [EMAIL PROTECTED] Ray Clough [EMAIL PROTECTED] 02/20/2007 08:04 PM Please respond to Struts Users Mailing List

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread ros
I assume for action: public class TicketAction extends com.opensymphony.xwork2.ActionSupport { ... public string save() { ... } ... } the file name should be TicketAction-save-validation.xml ??? File with such name is ignored on form submit. Only TicketAction-validation.xml is valid file

Please Help: Problem in implementing Tiles Controller

2007-02-21 Thread sriharsha . chevuru
__ Hi Dave, Thanks for pointing me towards the link, it was of great help. Here is what i did. And i am also pasting the error i am getting. Step1: I created the following definition in my tiles-defs.xml tiles-defs.xml tiles-definitions definition name=base.page

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread ros
Java Script validation fro button disabled by s:submit cssClass=button method=delete key=button.delete onclick=document.getElementById('ticketForm').onsubmit = null; / ros wrote: If I have in one form DELETE and SAVE buttons, how to turn off client side validation

Validate phone question 1.2.9

2007-02-21 Thread Jim Reynolds
Best way to validate a phone that has 3 textfields. Scope wants 3 textfields (areacode, phoneexchange, phone4) on a form. We need to validate that the phone has all digits in each of the fields. But upon looking at the docs, I do not see a clean way to handle this. I am sure this is done often,

Tomcat locks jars after undeploying web application

2007-02-21 Thread Juan Espinosa
Hi to all im having problems with tomcat and windows. The struts2-core jar get locked when i do an undeploy of my web application. I found that in tomcat you can put a property to avoid lock of jars…also i found a lot of posts that say that this property is not working… Anyone has fight with

Re: Validate phone question 1.2.9

2007-02-21 Thread Dave Newton
Regexp (mask) validator? http://struts.apache.org/1.2.9/userGuide/dev_validator.html --- Jim Reynolds [EMAIL PROTECTED] wrote: Best way to validate a phone that has 3 textfields. Scope wants 3 textfields (areacode, phoneexchange, phone4) on a form. We need to validate that the phone has

Re: Validate phone question 1.2.9

2007-02-21 Thread Jim Reynolds
If I am reading you correctly, you are saying to use that for one field. Which is actually what I just did. EG: global constant constant-namephone/constant-name constant-value^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$/constant-value /constant but the client wants to see 3

Re: Validate phone question 1.2.9

2007-02-21 Thread Dave Newton
So... define three regexps? (Well, two, but you know what I mean :) --- Jim Reynolds [EMAIL PROTECTED] wrote: If I am reading you correctly, you are saying to use that for one field. Which is actually what I just did. EG: global constant constant-namephone/constant-name

Problem with action tag - Bug in result handling for actions rendered with

2007-02-21 Thread Rich Thornett
I am using the action tag -- View this message in context: http://www.nabble.com/Problem-with-action-tag---Bug-in-result-handling-for-actions-rendered-with-tf3268979.html#a9088100 Sent from the Struts - User mailing list archive at Nabble.com.

[S2] configuring velocity toolbox

2007-02-21 Thread bob
I'm trying to use the velocity toolbox with struts2. It seems that there some problem getting the velocity toolbox configured. None of the tools I configure in the toolbox.xml file are available in the velocity templates. The wierd thing is that the output from the velocity servlet init

struts2-blank-2.0.6.war doesn´t work ?

2007-02-21 Thread Pedro Herrera
I´ve moved struts2-blank-2.0.6.war to my deploy location in jboss(405) to see struts2 working but it doesn´t work. Anybody has tested this ?? Tks Herrera -- View this message in context: http://www.nabble.com/struts2-blank-2.0.6.war-doesn%C2%B4t-work---tf3269121.html#a9088618

Re: struts2-blank-2.0.6.war doesn´t work ?

2007-02-21 Thread Ted Husted
It works for me. Are you sure there isn't another issue? On 2/21/07, Pedro Herrera [EMAIL PROTECTED] wrote: I´ve moved struts2-blank-2.0.6.war to my deploy location in jboss(405) to see struts2 working but it doesn´t work. Anybody has tested this ?? Tks Herrera

Re: [S2] struts2-blank-2.0.6.war doesn´t work ?

2007-02-21 Thread Pedro Herrera
I´m so sorry !!! I´ve made a new installation of jboss, and the blank application works fine !! Herrera husted wrote: It works for me. Are you sure there isn't another issue? On 2/21/07, Pedro Herrera [EMAIL PROTECTED] wrote: I´ve moved struts2-blank-2.0.6.war to my deploy

RE: Please Help: Problem in implementing Tiles Controller

2007-02-21 Thread Strachan, Paul
I can't see q1Choice defined in your tiles, it looks like you have defined the attribute only on request scope. header,contact,footer are tiles attributes - just comment out the tiles:useAttribute.../ and you might be OK. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Nested tags confusion

2007-02-21 Thread David Miller
Greetings. I'm having extreme difficulty getting my application to work with nested tags. My form is very simple: it consists of a string and a DTO Object. The DTO Object in turn contains a List that holds another DTO Object: Form - Bean - List. Currently I can display data with no trouble but

Re: Nested tags confusion

2007-02-21 Thread Nuwan Chandrasoma
hi, try remvoing the 'name' attribute from the nested text tasg. eg: nested:text property=description indexed=true / Regards, Nuwan. - Original Message - From: David Miller [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, February 21, 2007 11:39 PM Subject: Nested

Re: [S2] Issues running Struts 2.0.6 on Resin 3.0.21

2007-02-21 Thread mraible
This issue turned out to be a bug in Spring's RequestContextLoader and will be fixed in Spring 2.0.3: http://forum.springframework.org/showthread.php?t=33874 Matt mraible wrote: I get the following error when I try to deploy a Struts 2.0.6 application on Resin 3.0.21: