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
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]
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
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,
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.
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
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:
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
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:
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
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
__
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
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
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,
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
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
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
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
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.
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
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
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
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
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
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
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
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:
27 matches
Mail list logo