Hi,
I think you have to write it like this.
Thanks,
Nuwan
Session A Mwamufiya wrote:
Hi,
I've been trying for some time to get the following logic to work:
where "freshSmigFlag" is a variable in my action, and there is a getter and
setter defined for it.
I also tried to surr
Thanks a lot Dave for the detail explanation.
I have checked the META-INF/context.xml of my web application for cookies
and found that it does not have cookies attribute.
It means I have cookie enabled session.
http://jf.omnis.ch/log/archives/2004/12/disabling-session-cookie-in-tomcat.html
Thanks very much , Ted, tom tom, Oleg, for your helpful replies.
-
Pinpoint customers who are looking for what you sell.
Hi,
I've been trying for some time to get the following logic to work:
where "freshSmigFlag" is a variable in my action, and there is a getter and
setter defined for it.
I also tried to surround the variable with the property tag as such:
But that didn't work either.
Any ideas how we'r
That validation config doesn't seem to make much sense to me. The field
accountNumber cannot be both int and string, so you have to use required
instead of requiredstring if you want to process the input as int. If you
want it as string, you have to use something else than the int validator,
possib
I know you mentioned it but I would suggest that the simplest method is to
override the simple theme error tag template filederror.ftl and create a
base that you're happy with. You then have something that is independent of
the core libraries and can easily modify later.
I've had to do this for a
Hi,
You need to have a getter and setter for the id you have given to the iterate
tag in the form bean. The return type of the getter method should be the type
of object you have inside the arraylist. This way you can retrieve the
arraylist. One more point to be noted is all the tags like whi
I have three text fields in a row. I.e. City, State and Zip. I have to
validate all these fields required and mask properties and show the
error by inserting a red star at the end of the zip text field. The
error message is shown as a tool tip for the red star. What my problem
is if one of the fiel
hi i have to forward to controller with javascritp my script is as below.
function fwd(field){
var val=field.value;
if(val == 1){
[b]mypage.do[/b] //<--- this is how i needed
}
}
one
one
one
thx in Adv
Ajay
--
View this message in context:
http://www.nabbl
On 8/7/07, sol myr <[EMAIL PROTECTED]> wrote:
> 2. Would you happen to know when struts2 was released as "stable" version ?
> we couldn't find documentaion on the site.
* http://struts.apache.org/announce.html#a20070223
Version 2.0.6 was the first GA, but there have been two GA release
since
JIRA issue WW-2091 created for this.
--
View this message in context:
http://www.nabble.com/Ajax-validation-example-on-Apache-Struts-website-tf4232972.html#a12046419
Sent from the Struts - User mailing list archive at Nabble.com.
The best way to get the docs updated or fixed is to create a ticket in JIRA so
that the work can be prioritized. It would be even better if you were to
contribute some
documentation to help get the page up to date.
http://issues.apache.org/struts/
James
-Original Message-
From: orsh
Any ideas about how to stop a form from validating the data when it first gets
launch?
Thanks
> A bit more info on this. My struts.xml (actually, a different config
> file that's called from struts.xml) contains the following:
>
> class="edu.cmu.sei.smart.zen.server.smigmaintenance.SMIGSelec
Yes we got it working on production, works fine, there
are tiny little areas you need to work out,
What we did was struts2 portlets, which is one step
ahead to the applications,
Looks good so far,
But have a look at the bug I raised recently. Look
for the forum.
Other than that, with thorou
Here's a better example that I just ran into:
I had getEmail() and getPassword() with @RequiredStringValidator on the
base UserAction.
When I came to test ResetPasswordAction (which only requires an email),
my execute() method was never called but I got no field errors on the
rendered page.
A bit more info on this. My struts.xml (actually, a different config file
that's called from struts.xml) contains the following:
/pages/smigmaintenance/SMIGSelection.jsp
/pages/smigmaintenance/EmptyReloadNavigationTree.jsp
SMIGCreation_input
/pages/smigmaintenance/SMIGCreation.jsp
Session A Mwamufiya wrote:
I'm relaunching this thread in case an s:tree expert may have missed it the
first time around :).
Is there a way that when a s:tree is reloaded, it expends to a particular
level of expansion? I presume that I will save that expansion level in
my session object, but
Session A Mwamufiya wrote:
I'm relaunching this thread in case an s:tree expert may have missed it the
first time around :).
Is there a way that when a s:tree is reloaded, it expends to a particular
level of expansion? I presume that I will save that expansion level in
my session object, but I
Hi Can anyone please fix the example page at
http://struts.apache.org/2.0.6/docs/ajax-validation.html
I am having to implement ajax validation with Struts 2, and not only is
there a lack of concrete resources on the web, the existing one - like the
one above are either incomplete or do not provide
Hi,
I've been trying to not have my validation fire when I navigate to a form and
populate it with data to be edited. Unfortunately, it still fires. To
clarify, I'm using both xml validation and my action is validateable with a
validate() method. I used the approach from the HelloWorld examp
The validation and the related messages are on the domain objects and
not the action, so they are separate. Then the action defines which
domain object is validated via the visitor validation - there is also a
prefix (not sure of the exact attribute off hand), which would ensure
that coapp or
Hi,
I would like to access a Struts [1.3] Form property from the JSP page
via scriplet.
Is there a simple way of doing that ?
TIA,
Oleg.
Hi all,
I am trying to enforce a "requiredstring" on a text field and also make sure
it follows certain constraints. I am using the following in the
-validation.xml:
---
rrecoba wrote:
i have an ajax submit button that replaces the div specified by the targets
attribute with the result from an action, and the result returned by the
action has some javascript to be executed that uses the
document.getElementById().
I´ve read that this is a known issue (WW-1951)
rrecoba wrote:
i have an ajax submit button that replaces the div specified by the targets
attribute with the result from an action, and the result returned by the
action has some javascript to be executed that uses the
document.getElementById().
I´ve read that this is a known issue (WW-1951)
Hi,
I have an s:tree with category, question, and answer elements, and I'd like to
differentiate them a bit by having a different icon for each type of element.
Is there a way to specify which icon to use for an element of the tree? I know
which function gets called to obtain the root element
I'm relaunching this thread in case an s:tree expert may have missed it the
first time around :).
Thanks for any help,
Session
> Hi,
>
> Is there a way that when a s:tree is reloaded, it expends to a particular
> level of expansion? I presume that I will save that expansion level in
> my sess
nodep wrote:
and it's wrong because there's a tag "field-validator" not closed.
Struts2 doesn't stop the flow and go to my action: for me it's not logic,
it should stop with some error and return to the prev page ...
What do you think?
We think that XML validity check is a task of DTD attac
rrecoba wrote:
Hi, The problem was that the js has some javascript to be executed that uses
the document.getElementById(). ( known issue (WW-1951) ), that will be fixed
in v2.1.0. Now i´m trying to find some workaround ¿any ideas?
Define a function with your JS and execute it once page is loade
sol myr wrote:
1. Have you used struts2 in production, and did you feel it was mature and
stable?
We used it.
It's AJAX theme is not very mature, the rest is.
If you know how to use DOJO manually - you're pretty safe.
Oleg
---
All,
I've implemented the autocompleter for my project. For
some autocompleters, my user would like the ability to enter a value and
have the autocompleter display the name. IE. Enter a country code and
the country autocompleter, and have the autocompleter 'refresh' with the
count
I have the same problem, how we fix this ?? we have to wait to 2.1 release ??
Manuel Correa.
-Original Message-
From: rrecoba [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 07, 2007 4:17 PM
To: user@struts.apache.org
Subject: Re: executeScript not working?
Hi, The problem was that th
All,
I've implemented the autocompleter for my project. For
some autocompleters, my user would like the ability to enter a value and
have the autocompleter display the name. IE. Enter a country code and
the country autocompleter, and have the autocompleter 'refresh' with the
count
Hi, The problem was that the js has some javascript to be executed that uses
the document.getElementById(). ( known issue (WW-1951) ), that will be fixed
in v2.1.0. Now i´m trying to find some workaround ¿any ideas?
thanks.
mihel wrote:
>
> rrecoba wrote:
>> Hi, i´m trying to do something li
i have an ajax submit button that replaces the div specified by the targets
attribute with the result from an action, and the result returned by the
action has some javascript to be executed that uses the
document.getElementById().
I´ve read that this is a known issue (WW-1951) that will be fixe
Hi All,
I am facing some problem with iterate tag. I am able to display data using
iterate tag, but the i am not able to regenerate the list that is used in
iterate tag. I am using the following code:
JSP Code:
Java Code :
In Form:
*private* ArrayList data = *new* A
The dojo plugin will be available on version 2.1 which has not been
released yet. To do ajax validation on the 2.0.x family you would have
to use DWR.
regards
musachy
On 8/7/07, orshoe <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I am trying to set up Struts 2 ajax-validation for my application, but the
Hi,
I am trying to set up Struts 2 ajax-validation for my application, but the
application is not finding the struts-dojo-tags tld. Can anyone tell me
where I can find the tld jar, or if there is a dojo plugin for struts2 that
is shipped separately from the core. I am using Struts 2.0.9, and Freem
Hi Ian,
>From the documentation, VisitorFieldValidator seems interesting. Can you
please provide some inputs on if/how we can use this for the following
scenario :
the domain object Name has properties firstname, lastname, initial etc.
now, Name could be associated with a primaryapplicant or a
And you can place them on the domain objects and use a visitor validator ;)
Dave Newton wrote:
--- j alex <[EMAIL PROTECTED]> wrote:
My understanding is that the validators are tied to
fields and not methods - right?
They *can* be tied to the fields (in other words,
every action metho
Not just poor Italy... my experience has been that this isn't uncommon in
the United States either, and anecdotally in other countries as well... in
fact, I'm willing to say that S1 usage, and even 1.1 usage, is still the
most common Struts usage world-wide.
Dunno where it'll be a year from now of
would you mind giving me some example?
tks in advance.
john
Paul Benedict <[EMAIL PROTECTED]> wrote:
If you want to link to absolute URLs, perform a JSP include at the top of
your pages. The included page should contain all the definitions you need.
Alternatively, you can writ
2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> Downloading Commons Digester and Collections to get ClassDefNotFoundErrors
> to go away for a starter.
Uh you're right. Anyway here are the instructions for Tiles (without Struts):
http://tiles.apache.org/getting_started.html
Antonio
---
> - For a new project, which I would like to eventually move it to JSF?
choose the technology (component based or action based) before choosing the
framework.
if you want to go for a component based approach like JSF then choose a
framework like Apache Shale or JBoss Seam. Even VWP may be consi
Downloading Commons Digester and Collections to get ClassDefNotFoundErrors
to go away for a starter.
On 8/7/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
>
> 2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> > What about the other trial & error steps?
>
> What are you referring to?
>
>
I am a struts newbie so take my thoughts for what they are ... a newbie
grappling with a new way of doing things. Maybe (I hope!) an expert will
show me the error of my ways.
A simple example:
I wanted to put all the user properties on a UserAction that is shared
by my 'create user' and 'upda
2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> - For the job market, which one is in higher demand?
It depends on the nation, I suppose.
In Italy, there are lots of requests for Struts 1 (in fact they still
call it "Jakarta Struts", and Struts 1.1 is still in use, poor Italy
:-) )
Antonio
--
Hi,
I am getting seriously involved with Struts and have 2 questions
related to choosing either s1 or s2?
- For a new project, which I would like to eventually move it to JSF?
- For the job market, which one is in higher demand?
thanks much!
gaétan
-
2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> What about the other trial & error steps?
What are you referring to?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If you want to link to absolute URLs, perform a JSP include at the top of
your pages. The included page should contain all the definitions you need.
Alternatively, you can write yourself a ContextListener to put attributes
into application scope.
If you want to link to other Struts actions, use th
What about the other trial & error steps?
On 8/7/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
>
> 2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> > Can someone point me to the actual steps to add Tiles to the blank app
> in
> > the struts2-blank-2.0.9.war. I followed all the instructions I
2007/8/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> Can someone point me to the actual steps to add Tiles to the blank app in
> the struts2-blank-2.0.9.war. I followed all the instructions I could find
> between bouncing between S2 and T2 and ultimately had to download Commons
> Digester and Collec
--- j alex <[EMAIL PROTECTED]> wrote:
> My understanding is that the validators are tied to
> fields and not methods - right?
They *can* be tied to the fields (in other words,
every action method) but you can specify validations
based on the action name as well.
d.
___
When I put that, the application freeze and do anything
Manuel Correa.
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 07, 2007 1:18 PM
To: Struts Users Mailing List
Subject: Re: div href dojo scripts
set executeScripts = "true" on the div tag.
Thanks for your inputs.
Kevin, can you please explain a bit more abt the "provide a new annotation
to enable/disable particular validations for particular methods" -- are you
saying that for certain actions (aka methods, i presume) you don't want the
fields to be validated, but the validation nee
set executeScripts = "true" on the div tag.
musachy
On 8/7/07, Manuel Correa <[EMAIL PROTECTED]> wrote:
> Some knows why I cant write methods javascript using tabbedpanel, when I
> write some div with references another page, for example:
>
>
>
>
>
>label="Home" />
>
>
Some knows why I cant write methods javascript using tabbedpanel, when I
write some div with references another page, for example:
The Javascript that are in the index.jsp and page1.jsp don't work, if I
put the javascript outside, where is the t
Here's what I've done:
IMO, should detect when there's only one error and emit no
tags. I've entered an issue in JIRA for this:
https://issues.apache.org/struts/browse/WW-2090
On a related note, looking at the docs, it looks like you're required to use
to specify the field name. Is this
I started with annotations and wild-carded actions and I very quickly
ran into the problem of not all fields apply to every action.
I briefly considered switching to xml validations but decided instead to
stick with one method per action. I hated the duplicate code in the
actions and in struts
Hi All,
When i am submitting a page which holds a list of objects, this list is not
getting populated in form object.
In form object i am holding data as an arraylist of objects and I
am populating a series of rows in JSP using struts nested:iterate tag over
the array list. But when i am submitttin
Can someone point me to the actual steps to add Tiles to the blank app in
the struts2-blank-2.0.9.war. I followed all the instructions I could find
between bouncing between S2 and T2 and ultimately had to download Commons
Digester and Collections to get ClassDefNotFound errors to go away! I also
I asked this same question and got this answer:
There are several threads on this topic. You need to set the
"templateCssPath" to the url of the css file. You will have to take a look
at the current css to know what you have to overwrite:
http://svn.apache.org/viewvc/struts/struts2/branches/STRU
On my current project I started using annotations, but very soon my
few actions were packed with them, to the point that I had more
annotations that actual code in my actions :), so I went the xml way.
musachy
On 8/7/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
> Hi Joseph,
>
> I haven't used anno
Thanks to Antonio and Elias, Roller is now working fine with Struts 2.0.9.
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi, I wrote this xml-file for validation:
<< ...
...
>>
and it's wrong because there's a tag "field-validator" not closed.
Struts2 doesn't stop the flow and go to my
Hi Joseph,
I haven't used annotation validation since S2.0.6 so these issues may be
a little dated.
These are my experiences:
1. I tend to use wildcards in actions. In this situation, annotations
applied to properties in an action are not appropriate as not all
validations apply for each ac
I need to change the lookandfeel of the tabbedpane component, I found
the image that load is:
/struts/dojo/src/widget/templates/images/tab_top_right.gif
But, I want to know how make my own lookandfeel using this gadget.
Manuel Correa.
inside jsp/struts 1.3, how can i set global constants that i can make change
one place, but can make all the corrspondent change cross all the files.
for example, if i have script file 1.jsp, 2.jsp ..n.jsp, all the file
contains
any way i can set it as , then i change one
Hi,
Is there a way that when a s:tree is reloaded, it expends to a particular level
of expansion? I presume that I will save that expansion level in my session
object, but I'm not sure how to get it or set the tree to it, or if it's even
possible.
Thanks,
Session
---
Yes it has, but when i use it, a "Undefined" message appears in the page
inside the div. What i´m doing wrong?
Thanks.
mihel wrote:
>
> rrecoba wrote:
>> Hi, i´m trying to do something like the example "A div that calls the
>> server,
>> and JS in the resulting page is executed" in the showca
How how I change the color blue of the tabbedpane.
Thanks.
Manuel Correa.
--- Sawan <[EMAIL PROTECTED]> wrote:
>> Don't type it in / paste it when you test on the
>> other machine.
> Can you please explain me in detail. That what is
> "\", What I don't type in "\", etc.
...
"\", which I assume is a misspelling of "/" (the
character I used) is used to separate two words
>Don't type it in / paste it when you test on the other
>machine.
Can you please explain me in detail. That what is "\", What I don't type in
"\", etc.
Thanks and regards
Sawan
newton.dave wrote:
>
> --- Sawan <[EMAIL PROTECTED]> wrote:
>> If the problem is due to addition of jsessionid then
To do have a similar behavior I have extended ServletDispatcherResult
and overridden doExecute(...)-
@Override
public void doExecute(String finalLocation, ActionInvocation
invocation) throws Exception {
try {
// some operation
} catch (Exception e) {
su
It doesn´t works, the Result is executed after the Interceptors
On 8/7/07, Thorsten Schäfer <[EMAIL PROTECTED]> wrote:
>
> > I need to do something like:
> >
> > public void execute(ActionInvocation invocation) throws
> > Exception {
> > try {
> >// Some operations
> >
Hi,
I am about to migrate a S1 app to S2 and need to decide which route to take
regarding validations - XML or annotations? . Our app has a lot of custom
validators involving rules dependent on multiple fields. Is there a specific
benefit to using annotations vs XML ?
Thanks,
Joseph
> I need to do something like:
>
> public void execute(ActionInvocation invocation) throws
> Exception {
> try {
>// Some operations
> } catch (Exception e) {
>//Send user to a error page
> }
> }
>
> Any idea?
You could write an intercepto
Thanks for reply Vinod, but my class is a Result not a action.
public class CustomResult implements Result {
public void execute(ActionInvocation invocation) throws Exception {
try {
// Some operations
} catch (Exception e) {
//Send user to a error page
Do something like below-
path_to_error.jsp
public void execute(ActionInvocation invocation) throws Exception {
try {
// Some operations
} catch (Exception e) {
//Send user to a error page
return "error";
}
}
Vinod
I need to do something like:
public void execute(ActionInvocation invocation) throws Exception {
try {
// Some operations
} catch (Exception e) {
//Send user to a error page
}
}
Any idea?
--- Sawan <[EMAIL PROTECTED]> wrote:
> If the problem is due to addition of jsessionid then
> I really wants to remove it from my url.
Don't type it in / paste it when you test on the other
machine.
d.
Hi,
Short of modifying the template for s:fielderror is there a way to retrieve
just the text of the error message on a JSP?
Even with the theme set to simple I get the following on my jsp:
An Error Message
What I want is just the message:
An Error Message
And then I am free to decorate it as
Hi All,
The Struts 1.x provides a facility to extend the ActionMapping by
defining it in web.xml in following manner-
mapping
CustomActionMapping
In Struts 2.x I don't see anyway to extend ActionConfig.
The ActionConfig class is hard coded in addAction(...) method of
c
Hi,
We've been using webwork, and naturally we're considering migration to
struts2.
However, we are slight concerned about maturity and "real-life production
experience" of struts2 (Our company has very limited resources, and we can't
afford the risk of using "experimental/beta versions
84 matches
Mail list logo