Params on Actions in Struts.xml

2007-07-06 Thread Chris Pratt
After looking through the DTD for struts.xml ( http://cwiki.apache.org/WW/strutsxml-examples.html) it says that the following is legal in struts.xml: paramValue home I've been attempting to figure out how to get the value "paramValue" from the action, but it seems to be ignore

Display the list of values in check box - Interesting problem

2007-07-06 Thread banurekha
I am using iterator to display list in bean with check boxas below

Re: RedirectingActionForward and the request object?

2007-07-06 Thread Paul Benedict
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 ce

Re: How to have a struts2 a:div not autoload?

2007-07-06 Thread Musachy Barroso
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. l

Re: How to have a struts2 a:div not autoload?

2007-07-06 Thread jthurst
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. listContacts.jsp(48,0) Attribute preload invalid for tag div according to TLD Musachy Barroso wrote: > > Set "preload" to false. > > reg

Re: Radio Button - setting a to 'checked'

2007-07-06 Thread Nuwan Chandrasoma
Hi, Set the property that is associated with the tag to with the value you want to be checked. Thanks, Nuwan - Original Message - From: "yitzle" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, July 06, 2007 4:14 PM Subject: Radio Button - setting a to 'checked

how to passing values from popup to parent window and refresh it?

2007-07-06 Thread horri khalid
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).

Re: [S2] Default Action

2007-07-06 Thread Chris Pratt
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 a

Re: [S2] Default Action

2007-07-06 Thread yitzle
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. Inside

Re: How to set checkbox label value in a iterator

2007-07-06 Thread Dale Newfield
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

Re: [S2] Default Action

2007-07-06 Thread Chris Pratt
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 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 misunderstood your questi

Re: Tiles question

2007-07-06 Thread Chris Pratt
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

Re: optionstransferselect tag

2007-07-06 Thread meissa . sakho
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" A Struts Users Mailing List cc Objet Re: optionstr

Re: optionstransferselect tag

2007-07-06 Thread Bill Johnson
You have to change the "rightid" and "leftid" values with the actual names assigned to the 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

Radio Button - setting a to 'checked'

2007-07-06 Thread yitzle
How to I make a radio button get rendered as checked? I'm making several radio buttons, one per 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. ---

Re: optionstransferselect tag

2007-07-06 Thread meissa . sakho
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 = document.getElementById

Re: optionstransferselect tag

2007-07-06 Thread Bill Johnson
The onsubmit attribute is for the tag, not the 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 what I'

Re: Tiles question

2007-07-06 Thread Antonio Petrelli
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

Re: optionstransferselect tag

2007-07-06 Thread meissa . sakho
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" %> Media - Tags - UI Tags - O

Re: Tiles question

2007-07-06 Thread Jorge Martín Cuervo
you can add a position header to use. Something like this: and in your tiles def:

Tiles question

2007-07-06 Thread James Carr
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]

Re: Struts 2 - Array of Text Fields

2007-07-06 Thread yitzle
JSP: Create several textfields with the same name: Action: private String[] textFields; public void setText (String s[]) { textFields = s; } public String execute () throws Exception { ... } - To unsubscribe, e-mail: [EMAIL P

Re: [S2] Default Action

2007-07-06 Thread yitzle
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] F

Re: How to have a struts2 a:div not autoload?

2007-07-06 Thread Musachy Barroso
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. Data will d

Problem Fileupload, submit form remote

2007-07-06 Thread Gessé
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 m

RedirectingActionForward and the request object?

2007-07-06 Thread Cary Ho
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 obj

Re: How to set checkbox label value in a iterator

2007-07-06 Thread TonyD
: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: > >

How to set checkbox label value in a iterator

2007-07-06 Thread TonyD
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:

[S2] Interceptor Question (Thread Safety)

2007-07-06 Thread Hoying, Ken
>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.

Realm problems - security issues?

2007-07-06 Thread Søren Blidorf
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

Re: S2 and JFreeChart (showing images)

2007-07-06 Thread Andreja
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 r

Re: S2 and JFreeChart (showing images)

2007-07-06 Thread Peng Tuck Kwok
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

Re: [ot] weird message

2007-07-06 Thread Shervin Asgari
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 er

Re: [ot] weird message

2007-07-06 Thread Jorge Martín Cuervo
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,

Re: S2 and JFreeChart (showing images)

2007-07-06 Thread Ray Clough
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 Session

Re: [ot] weird message

2007-07-06 Thread Ing. Andrea Vettori
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) f

[ot] weird message

2007-07-06 Thread Jorge Martín Cuervo
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 <[EMA

Re: S2 and JFreeChart (showing images)

2007-07-06 Thread Peng Tuck Kwok
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 here

Re: S2 and JFreeChart (showing images)

2007-07-06 Thread Peng Tuck Kwok
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 here. 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 7/5

AW: AW: struts validation

2007-07-06 Thread Anja Fischer, IBE
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

Re: AW: struts validation

2007-07-06 Thread Jorge Martín Cuervo
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: > > > > value="/WE

AW: struts validation

2007-07-06 Thread Anja Fischer, IBE
Hi, that's the same I have in my struts-config.xml. For checking I paste it here: Anja -Ursprüngliche Nachricht- Von: Jorge Martín Cuervo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 6. Juli 2007 11:02 An: Struts Users Mailing List Betreff: Re: struts v

Re: struts validation

2007-07-06 Thread Jorge Martín Cuervo
i've in my struts-config.xml: can you send us the struts-config.xml related portion? El vie, 06-07-2007 a las 10:31 +0200, Anja Fischer, IBE escribió: > Hi all, > > I use the struts validation plugin. Now tomcat runs into a > javax.servlet.UnavailableException: Cannot load a validato

struts validation

2007-07-06 Thread Anja Fischer, IBE
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 validator-ru

Re: optionstransferselect tag

2007-07-06 Thread Jeromy Evans
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 = document.getElementById('rightId');selectAllOp

Re: optionstransferselect tag

2007-07-06 Thread meissa . sakho
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" A "Struts Us

Re: optionstransferselect tag

2007-07-06 Thread meissa . sakho
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" A Struts Users Mailing List cc Objet Re: optionstransferselect tag