Try this way, and it might works.
Make your action beans all implement com.opensymphony.xwork2.Preparable,
and implement a method prepare() in your action beans just like this:
public void prepare() throws Exception
{
// Clear last error messages
clearErrorsAndMessages();
}
Everytime when
In my scenario, I didn't use any Struts validation frame.
s:textfield name=field1 /
Here, field1 is a numeric field in Java bean. If I input a validate
numeric, for instance, a random string, there is an error validation message
appearing automatially by Struts.
Invalid field value for
but the showcase sample example is working correctly.
That's why I'm troubledshooted not to have my example working.
Meissa
Bill Johnson [EMAIL PROTECTED]
05/07/2007 17:56
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org
A
Struts Users Mailing List user@struts.apache.org
There is bug in optionstransferselect tag in struts 2.0.6. When the form
is submitted,nothing
is selected.
Can someone tells me if this has been fixed in struts 2.0.8.
thanks in advance.
Meissa
[EMAIL PROTECTED]
06/07/2007 09:25
Veuillez répondre à
Struts Users Mailing List
You can work-around this bug in 2.0.6 by adding the following javascript
to the onsubmit attribute of optionstransferselect:
onsubmit=var selectObj =
document.getElementById('leftId');selectAllOptionsExceptSome(selectObj,
'key', '');selectObj =
Hi all,
I use the struts validation plugin. Now tomcat runs into a
javax.servlet.UnavailableException: Cannot load a validator resource
from '/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml'
Like it is described in the struts user guide I replaced the dtd in
validation.xml and
i've in my struts-config.xml:
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property
property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
/plug-in
can you send us the struts-config.xml related portion?
El vie, 06-07-2007 a las
Hi,
that's the same I have in my struts-config.xml. For checking I paste it
here:
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property property=pathnames
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml /
/plug-in
Anja
are you sure that you have this files in WEB-INF? are you using any IDE
like eclipse or netbeans?
El vie, 06-07-2007 a las 11:13 +0200, Anja Fischer, IBE escribió:
Hi,
that's the same I have in my struts-config.xml. For checking I paste it
here:
plug-in
Hi Jorge,
it's running now because I replaced the struts lib with the latest
build! But I don't have a clue what the problem was.
Thank you for your help.
Best wishes
Anja
-Ursprüngliche Nachricht-
Von: Jorge Martín Cuervo [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 6. Juli 2007
hmm page not updated in a while. Maybe not worth if that's the case.
On 7/6/07, Peng Tuck Kwok [EMAIL PROTECTED] wrote:
You could possibly use Cewolf, which provides a set of tag libraries that
you can you to display a chart in your jsp page. Link is
Hi all, every time i've sent an email to this list i receive another
email like that:
The original message was received at Fri, 6 Jul 2007 11:19:25 +0200
(CEST)
from [EMAIL PROTECTED]
- The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
(reason: 550 5.0.0
Yes,
I think it's a non-existent email that's subscribed...
Il giorno 06/lug/07, alle ore 11:30, Jorge Martín Cuervo ha scritto:
Hi all, every time i've sent an email to this list i receive another
email like that:
The original message was received at Fri, 6 Jul 2007 11:19:25 +0200
(CEST)
We have used CeWolf, and it is quite good, but based on the last release
date and the fact that the newer versions of JFreeChart seem to be not
supported, I wonder if the CeWolf project is moribund. Another solution
I used several years ago is to store the JFreeChart 'Chart' object in the
please, can any admin remove this email account from the mailing list?
El vie, 06-07-2007 a las 11:32 +0200, Ing. Andrea Vettori escribió:
Yes,
I think it's a non-existent email that's subscribed...
Il giorno 06/lug/07, alle ore 11:30, Jorge Martín Cuervo ha scritto:
Hi all, every
You could possibly use Cewolf, which provides a set of tag libraries that
you can you to display a chart in your jsp page. Link is
herehttp://cewolf.sourceforge.net/new/index.html.
I've played with it a while back and it did seem easy to get a simple chart
up. Worth a look if you ask me.
On
Hm I dont get this email.
Jorge Martín Cuervo wrote:
Hi all, every time i've sent an email to this list i receive another
email like that:
The original message was received at Fri, 6 Jul 2007 11:19:25 +0200
(CEST)
from [EMAIL PROTECTED]
- The following addresses had permanent fatal
I checked the SVN activity for cewolf, there were lots of reads, few writes
in 2006 but very little activity in 2007.
On 7/6/07, Ray Clough [EMAIL PROTECTED] wrote:
We have used CeWolf, and it is quite good, but based on the last release
date and the fact that the newer versions of JFreeChart
First, thank you for the answer!
Are you accessing the session in the S2 way
by implementing sessionaware and
having a setSession method?
No, I didn't do that, because I don't understand how to implement
setSession method.
public void setSession(Map arg0) {
???
}
How does Map
Hi.
I am having trouble setting up my application on a new laptop running XP.
Every thing works perfectly on my old laptop with the same software versions.
Only change is microsoft update upgrades. So I think that it could be security
issues.
Any Idears???
BR
Soren, DK
Context
From what I understand from reading the documentation, interceptors are
suppose to be thread safe. However, I have noticed that some of the
interceptors do contain instance variables and I have seen some
examples where these variables are set or modified from with in the
action configurations.
I have a iterator where each value is the label of a checkbox.
How could I set each value into the checkbox label?
This is code:
s:iterator id=reports value=reports status=reportStatus
tr
td
:clap:
FOUND:
label=%{reports[#reportStatus.count -1]}
Where could I find all status properties (first, last, odd, even, count,
etc.)
TonyD wrote:
I have a iterator where each value is the label of a checkbox.
How could I set each value into the checkbox label?
This is code:
Im using a RedirectingActionForward in a struts actions (Struts 1.3.x)
to take a person to another page under certain circumstances. When I do
this, anything I put in the request objects setAttribute doesnt seem to
carry to the new page. Is there a way to move the stuff I put in the
request
Hi,
I am with a problem on fileupload. When the form is submited with
theme=ajax, the class action is executed correctly,
but the return is a [Object HTMLDocument]. When the form is submited
when theme=simple, it functions perfectly.
Anybody already it passed to this problem?
Sorry for my
Set preload to false.
regards
musachy
On 7/5/07, jthurst [EMAIL PROTECTED] wrote:
How do I get the following struts2 a:div to not automatically do an ajax
request when the page loads. I only want it to happen when a /fooFoo
topic
notification occurs from an event in form.
s:div
Oops. I misunderstood your question.
Maybe use a default action... If there is a way to 'peek' at the URL
requested, maybe you can set the role in the default execute() based
on that.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
JSP:
Create several textfields with the same name:
s:textfield name=text /
s:textfield name=text /
s:textfield name=text /
Action:
private String[] textFields;
public void setText (String s[]) { textFields = s; }
public String execute () throws Exception { ... }
How can I add head elements (script, style, etc) to the head of a
document created using tiles? I can add them to the body, but this is
WRONG and goes against standards.
Thanks,
James
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
you can add a position header to use.
Something like this:
html:html
head
titles:message key=common.title//title
tiles:insert attribute=header/
/head
body
div id=contenedor
tiles:insert attribute=text/
tiles:insert attribute=links/
2007/7/6, James Carr [EMAIL PROTECTED]:
How can I add head elements (script, style, etc) to the head of a
document created using tiles? I can add them to the body, but this is
WRONG and goes against standards.
First of all, what version of Tiles are you using?
Antonio
I'm trying to use the onsubmit attribute in the s:submit tag but it fails.
The exception is saying that the attribute onsubmit is not correct
according to submit TLD.
Can someone tell what I've done wrong.
here is my jsp:
%@ taglib prefix=s uri=/struts-tags %
html
head
title Media - Tags - UI
The onsubmit attribute is for the s:form tag, not
the s:submit tag.
-Bill
--- [EMAIL PROTECTED] wrote:
I'm trying to use the onsubmit attribute in the
s:submit tag but it fails.
The exception is saying that the attribute onsubmit
is not correct
according to submit TLD.
Can someone tell
I've corrected it.
But when my form is submitted, values that are selected are still not
submitted.
I'm calling the function below:
function doSubmitSelect()
{
var selectObj = document.getElementById('leftId');
selectAllOptionsExceptSome(selectObj, 'key', '');
selectObj =
How to I make a radio button get rendered as checked?
I'm making several radio buttons, one per s:radio ... / and they all
render unchecked.
Even when I generate several with one radio tag and a map, I can't
figure out how to set one to checked.
You have to change the rightid and leftid values
with the actual names assigned to the select tags
generated by the S2 tags. Does that make sense?
-Bill
--- [EMAIL PROTECTED] wrote:
I've corrected it.
But when my form is submitted, values that are
selected are still not
submitted.
I'm
it's now working.
the doSubmitSelect() was never called because of an error (the quote letft
at the end).
thank for all who replied.
meissa
Bill Johnson [EMAIL PROTECTED]
06/07/2007 18:22
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org
A
Struts Users Mailing List
That's more or less what I'm trying to do. Instead of using the default
execute(), I can use the default setRole() by specifying the param
name=role element. That I can't figure out is how to define the default
action.
(*Chris*)
On 7/6/07, yitzle [EMAIL PROTECTED] wrote:
Oops. I
TonyD wrote:
label=%{reports[#reportStatus.count -1]}
Where could I find all status properties (first, last, odd, even, count,
etc.)
http://struts.apache.org/2.0.8/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html
Looks like what you want is index.
-Dale
It looks like he's using Tiles 1, but the concept is the same on any version
of tiles.
(*Chris*)
On 7/6/07, Antonio Petrelli [EMAIL PROTECTED] wrote:
2007/7/6, James Carr [EMAIL PROTECTED]:
How can I add head elements (script, style, etc) to the head of a
document created using tiles? I
I think the trouble is you want are specifying the action but not its
matching class, in which case it uses the default class which can not
be changed.
I'm suggesting that you don't have the action in the xml file and have
it use the default action for which you had specified the class.
action
I think we're both on the same page, but according to some things I've read
on the internet, I should be able to change the default class. But when I
try what they suggest, it doesn't work. I'm hoping someone here knows for
sure whether it can be done or not.
If not, I'd like to suggest it as
Hi all,
I use link to open a popup, in this popup i have a list of cars with radio
button.
So if the user choose a car, i want to do:
1-get the idcar and affect it to ActionForm.
2-close the popup.
3- refresh the parent window and show the car selected(if possible the id
car must be in a hidden).
Hi,
Set the property that is associated with the s:radio tag to with the value
you want to be checked.
Thanks,
Nuwan
- Original Message -
From: yitzle [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, July 06, 2007 4:14 PM
Subject: Radio Button
Thanks for the response. I tried your preload suggest but it says that it's
not supported by the div tag and I don't see a reference to it in the docs.
s:div id=contactList preload=false theme=ajax href=%{fooUrl}
listenTopics=/foo formId=contactForm
listContacts.jsp(48,0) Attribute preload
My bad, that was added on 2.1 :(
https://issues.apache.org/struts/browse/WW-1860
musachy
On 7/6/07, jthurst [EMAIL PROTECTED] wrote:
Thanks for the response. I tried your preload suggest but it says that
it's
not supported by the div tag and I don't see a reference to it in the
docs.
Cary,
A redirect causes a second request. You're putting data in the first
request, redirecting, which then loses the data as the browser sends a
new request.
Paul
Cary Ho wrote:
Im using a RedirectingActionForward in a struts actions (Struts 1.3.x)
to take a person to another page under
I am using iterator to display list in bean with check boxas below
s:iterator value=cableHeadends id=cableHeadendsIter
status=rowstatus
tr
td
s:property name=cableName
48 matches
Mail list logo