Well, you should only see that error when your logs have debug
enabled. You could clean it out via an interceptor, if you really
wanted to.
Don
On 11/7/06, Oleg Galkin <[EMAIL PROTECTED]> wrote:
When I use the div ajax tag the exception
Error setting expr 'dojo.transport' with value '...'
ognl
If you are using 2.0.1 or later, you need to include the struts2-sitemesh
plugin.
Don
On 10/31/06, Mariano Stampella <[EMAIL PROTECTED]> wrote:
Hi,
I am using actually this libraries:
org.apache.struts
struts2-core
2.0.2-SNAPSHOT
org.apache.struts
struts2-extr
Not at the moment. Take a look at the showcase example application,
which demonstrates all the ajax tags.
Don
On 11/16/06, wolverine my <[EMAIL PROTECTED]> wrote:
Hi!
Any idea if there is any good Struts 2's Ajax tutorial that is similar
to the Bootstrap step-by-step tutorial?
--
On 11/20/06, Juan Espinosa <[EMAIL PROTECTED]> wrote:
I dont understand when you say in the latest trunk, (i have to improve my
english) did it mean in the next version.
Yes, the next version will be 2.0.2
Plugins - i have a question ! sitemesh has a plugin like spring ??
Yes.
Don
Thank
Thanks for bringing this up. I created a ticket and have fixed the
issue: http://issues.apache.org/struts/browse/WW-1532
The problem is complicated by the fact that IE doesn't submit the
button name in addition to the .x and .y. All cases should be
properly handled now.
Don
On 11/28/06, Ing.
Thanks for the tip. I do that but I still get jsessionid's in the URL:
WEB-INF/tiles-defs.xml
...
jsp/common/layouts/mainLayout.jsp:
<%@ page session="false" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
I can't seem to reproduce the sessionid's in a browser, but the search
robots have a
Hi Prem,
At the time of landing the page, you are showing some values. That values are
taken from DB. Once error coming you are redirecting to the same page. but with
the error value.
This is your problem right?
this can be easily solved. you are showing the values taken from formbean. At
the
On 11/30/06 7:45 PM, "Christopher Schultz" <[EMAIL PROTECTED]>
wrote:
> Mark Menard wrote:
>> public String getDataRetrievedFromSessionBean () {
>> return this.dataRetrievedFromSessionBean;
>> }
>
> Sorry for poking my nose in, but wouldn't this be horrendously
> non-threadsafe?
No proble
What makes it not thread safe? If you are thinking in terms of s1, then
yes, but s2 actions are not reused and can therefore keep state as you
normally would have had to put in a s1 formbean.
On 11/30/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: S
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mark,
Mark Menard wrote:
> public String getDataRetrievedFromSessionBean () {
> return this.dataRetrievedFromSessionBean;
> }
Sorry for poking my nose in, but wouldn't this be horrendously
non-threadsafe?
Since I know virtually nothing about
On 11/30/06 5:29 PM, "Don Brown" <[EMAIL PROTECTED]> wrote:
> If you only need request-scoped data, you don't need to bother with
> the ScopeInterceptor or even the ServletRequestAware interface.
> Simply define a getter on your action that returns the object in
> question, then access it via your
On 11/30/06 4:40 PM, "walidito" <[EMAIL PROTECTED]> wrote:
Quick caveat, I haven't used the methodology, but I might start now.
> and I don't understand this stuff :
> in struts.xml
>
> the tutorial says :
> The "method={1}" attribute is replaced with "method=input".
> Why ? Can someone explain
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tarek,
Tarek Nabil wrote:
> Christopher,
>
> I really wonder if the Struts you're talking about is the one I've using
> for years now!! The Struts I know sucks big time when it comes to action
> chaining. I'm afraid I don't understand how defining tw
If not this specific implementation, an otherwise clean way to handle
view preprocessing after a validation failure. It can build on the
action-forward-specific command chain, but a solution that's more
tightly integrated with action objects should be considered as well.
Hubert
On 11/30/06, Mic
On 11/29/06, Yujun Liang <[EMAIL PROTECTED]> wrote:
To solve the action chaining problem, I wrote a subclass of
RequestProcessor. In the subclass, override some templates method. In the
last method of process(), I set a flag in request, and I check for this flag
in some methods and if the flag is
On 11/28/06, Tarek Nabil <[EMAIL PROTECTED]> wrote:
Hi,
One of the problems with Struts was that if you had a page that requires
some setup and this page submits to an Action, then you would not be
able to set validate to true on that action because if validation
problems occur then Struts will
Download the example apps from the Struts download site:
http://struts.apache.org/download.cgi#struts201
Don
On 11/30/06, walidito <[EMAIL PROTECTED]> wrote:
Hi,
I'm new to struts 2 and I face few problems. I need a link where I can
download a simple example application with a form and few for
If you only need request-scoped data, you don't need to bother with
the ScopeInterceptor or even the ServletRequestAware interface.
Simply define a getter on your action that returns the object in
question, then access it via your JSP via JSP EL (JSP 2.0), a JSTL
expression, or a Struts 2 property
Hi Adam-
Could you post your JSP?
in particular could we see XMLHttpRequest.OnReadyStateChange AND the javascript
function which is the receptor for the Asynchronous call
Thanks,
M
This e-mail communication and any attachments may contain confidential and
privileged information for the use of t
On 11/30/06, Simon Chappell <[EMAIL PROTECTED]> wrote:
> For Struts 1, a second edition of James Holmes' "Struts, The Complete
> Reference" will be out soon.
Do you know which version of "classic" will that cover?
It's up to date for Struts 1.3.5.
http://www.amazon.com/Struts-Complete-Refere
On 11/30/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
On 11/30/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
> Are there books available on Struts 2? or any newer
> versions of Struts?
The WebWork in Action book is the only thing I'm aware of at the moment.
For Struts 1, a second edition of James
Hello,
I'm working through the official struts 2 tutorial
(http://struts.apache.org/2.x/docs/validating-input.html ...)
and I don't understand this stuff :
in struts.xml
the tutorial says :
The "method={1}" attribute is replaced with "method=input".
Why ? Can someone explain me why it is replac
Wendy,
thank u for your support.
I don't know if I need to choose an ActionForm or DynaActionForm for the
login page.
When do u choose to make it a DynaActionForm ? What's the advantage of it.
On 11/30/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
I have the following DynaValidatorForm :
..
How am I supposed to get the parameters of this Form bean in the Action
class ?
Section 4.3.1 is popular today. :)
http://struts.apache.org/1.x/userGuide/building_controller.html
"DynaActionFor
Hi,
I have the following DynaValidatorForm :
How am I supposed to get the parameters of this Form bean in the Action
class ?
public class LoginAction extends Action {
public ActionForward execute(
Hi. I'm new to Struts and have a question regarding how data is passed from
an Action (in Struts 2) to the JSP which one is redirected to after the
action is executed. Reading the documentation on Struts 2, I've found that
using the Scope Interceptor one can specify Action properties to be bound t
Hi,
I'm new to struts 2 and I face few problems. I need a link where I can
download a simple example application with a form and few form's valdation
actions/jsp etc
thank you
Walid
--
View this message in context:
http://www.nabble.com/Struts-2---sample-appl-tf2733969.html#a7626825
Sent fr
Wendy you're right!
Thanks.
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 2:51 PM
To: Struts Users Mailing List
Subject: Re: Retrieving DynaValidatorForm values with JSTL
On 11/30/06, Edward Song <[EMAIL PROTECTED]> wrote:
> In JSP
On 11/30/06, Edward Song <[EMAIL PROTECTED]> wrote:
In JSP pages using the Struts Taglib, attributes of DynaActionForm objects
can be referenced just like ordinary ActionForm objects. Wherever a Struts
tag refers to a "property", the tags will automatically use the
DynaActionForm properties just
Thank you Wendy
For all,
In JSP pages using the Struts Taglib, attributes of DynaActionForm objects
can be referenced just like ordinary ActionForm objects. Wherever a Struts
tag refers to a "property", the tags will automatically use the
DynaActionForm properties just like those of a conventiona
On 11/30/06, Edward Song <[EMAIL PROTECTED]> wrote:
I have a form stored within the session and am trying to dump some of the
Form values in the presentation using JSTL.
Specifically something like
Country :
See 4.3.1 on http://struts.apache.org/1.x/userGuide/building_controller.html
--
Wen
Hi all,
I have a form stored within the session and am trying to dump some of the
Form values in the presentation using JSTL.
Specifically something like
Country :
The form's name is
SubscriptionProcessForm and the value to be retrieved from the form is
country.
Obviously I'm looking to
Could not load user defined filter in web.xml:
org.apache.struts2.dispatcher.FilterDispatcher.
java.lang.NoSuchMethodError: java.lang.ThreadLocal.remove()V
I used the nightly core/api run through retro.
I'm guessing I have some funky versioning going on.
Also, should I be using the xwork beta or
On 11/30/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
Are there books available on Struts 2? or any newer
versions of Struts?
The WebWork in Action book is the only thing I'm aware of at the moment.
For Struts 1, a second edition of James Holmes' "Struts, The Complete
Reference" will be out s
From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Are there books available on Struts 2?
WebWork in Action
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Are there books available on Struts 2? or any newer
versions of Struts?
Thanks for the information in advance.
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
On 11/28/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
Hi,
since I added a constraint for the length with minlength, I have the
following errror :
28-nov.-2006 21:31:33 org.apache.struts.validator.DynaValidatorForm validate
GRAVE: org.apache.struts.util.StrutsValidator
org.apache.commons.validato
Nobody can help me ?
No-one has *Any* idea ?
Pass AccountId(?) to the next Action and then retrieve the AccountInfo object
again based on that id.Now, you can pass it to the jsp for display and put it
in session if you so desire.
-Original Message-
From: priya [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 11:05 AM
To:
My search returns multiple rows (as seen in the for loop).. How can I
possibly have a session when I dont know what link the user is going to
click?
On 11/29/06, Asthana, Rahul <[EMAIL PROTECTED]> wrote:
Priya,
As a short term solution you can create a new tag,as in myLibrary:link
which derives
Hi,
I'm using struts 1.2 version and currently held up in a minor issue but
I could not figure out what i'm missing.
In the code snippet below, From Action class I'm adding an ActionErrors
to display an Error message in the JSP. In JSP I've a message Tag with
correctly.
The Action is correctly
I want to use the validation framework, but i cant it get work well
Now i have the actions to register a user, i want that before registering
get validated...but i cant...
-Mensaje original-
De: Dave Newton [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 30 de Noviembre de 2006 11:49 a.m.
I dropped in the JARS from the the 2.0.1 showcase, and it seemd to
work just fine.
You might want to try deploying it on another workstation there.
-Ted.
On 11/29/06, Tarek Nabil <[EMAIL PROTECTED]> wrote:
Thanks Ted.
I sent the WAR file and zip file containing the source of the action to
yo
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
Generally this is at the bottom of all messages.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
From: Juan Espinosa [mailto:[EMAIL PROTECTED]
> Im using struts2, doing in this way works in struts2
> In struts2 i have the object mapping and form??
Struts2 is rather different, but you can still do your validation in
your actions if you really want to (or do additional business-logic
orient
In struts 2 if i have validation enabled an i call an action
Customer!registerCustomer.action, te validation get executed, and if its
fails what results uses, and if the validation passwhat it
does...execute the action called maybe...
-Mensaje original-
De: Ed Griebel [mailto:[EMAIL P
I want to know if could use validation in this way, telling
validation to be used only in the medthod registercustomer and the
results for this method
validationOk - result registrationView validationFail - result
registrationEnd
I dont want to use the methods input and success, also in this
Sorry, I assumed you were using S1, I don't know how for s2.
On 11/30/06, Juan Espinosa <[EMAIL PROTECTED]> wrote:
Im using struts2, doing in this way works in struts2
In struts2 i have the object mapping and form??
-Mensaje original-
De: Ed Griebel [mailto:[EMAIL PROTECTED]
Enviado
Action Chaining
First, we usually define "action chaining" as creating a "move" action
by having a "copy" action forward to a "delete" action. Simply going
from one action to another isn't a classic example of harmful
chaining. The key point is whether only one action resolves the
business use ca
Hi,
Can i know how to unregister from this site
On 11/9/06, Balwinder <[EMAIL PROTECTED]> wrote:
Hi All !!
I have a situation in my application, i want to implement a
functionality that does, if a user accidentally close his browser
window, on his next request(in new window) to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
prkumar,
prkumar_1234 wrote:
> 1) in jsp iam displaying values from javabean in textboxes.(i can
> change
> these values)
> 2) when i submit with modified values , iam doing validation in
> formbean.
> 3) When validatio fails i formbean returning to
Im using struts2, doing in this way works in struts2
In struts2 i have the object mapping and form??
-Mensaje original-
De: Ed Griebel [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 30 de Noviembre de 2006 10:51 a.m.
Para: Struts Users Mailing List
Asunto: Re: VALIDATION
The easiest w
The easiest way to do this is to turn off automatic validation in your
struts-config.xml and manually call validation in your desired
methods. Something like:
ActionMessages errors = form.validate(mapping, request);
if ( errors != null && errors.size() > 0 ) {
LOG.warn("Errors detected!!");
r
But u suggested me to use the <[EMAIL PROTECTED] ... %> if I want to add
static jsp
content.
Well then it's in contradiction with what u say !
I understand that let u fill the attributes but
why do u suggest me then to use <[EMAIL PROTECTED] ... %> ?
This attribute will then render always the s
From: Chris Pratt [mailto:[EMAIL PROTECTED]
> eval() evaluates JavaScript, not XML or HTML.
Well, in FF, apparently it evaluates XML to some degree, huh?
Dave
> On 11/29/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> > > (interestingly, in IE I
Thomas Thomas ha scritto:
I could just use this :
** tiles-defs.xml **
** base.jsp **
<[EMAIL PROTECTED] page="incl/header.jsp" %>
[...]
And use the base.jsp-layout in different pages.
And u see I'm not using
I can't see your point, you're using base.
I could just use this :
** tiles-defs.xml **
** base.jsp **
<[EMAIL PROTECTED] page="incl/header.jsp" %>
[...]
And use the base.jsp-layout in different pages.
And u see I'm not using
hi to all, im having some problems with validation i have an action named
RegisterCustomer with three methods and an object
RegisterCustomer implements ModelDriven
Customer customer = null;
getModel
showCustomerRegistrationView
registerCustomer
I want to know if
Craig and Mark,
Thanks a lot for pointing out the "Preparable" interface. I think that
solves a major problem with Struts 1. I'm yet to experiment heavily with
WW/Struts 2, but I feel like the "Interceptor" concept is a very
powerful approach, though a bit dangerous if not well controlled.
Craig,
U can use the nn-validation.js, have a look :
http://www.siteexperts.com/tips/functions/ts21/page10.asp
-Original Message-
From: Jim Reynolds [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 12:22 AM
To: user@struts.apache.org
Subject: Validator without Struts
Hello,
I have
Is this value a long or int, or whatever numeric value,
And u r trying to enter characters in it then validation fails ?
Cuz if so the Struts won't be able to populate the long with the string
value
U entered and in this case it'll keep it's old numeric value.
In case of validating numeric field
I have a select/option in my JSP like this:
I have also defined the bean for catSelList:
In the Form java file, I have the method public Collection getCatSelList(),
that returns the list of values that needs to be displayed in the
select/option menu.
The page works fine when opened. The
62 matches
Mail list logo