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 ignored.

Is this supported?  Is it just for future use?  If not, how can I get that
value?

Thanks.
 (*Chris*)


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

 



   



 
 

 


I want to get the value for the ones which are select one they are submit.
For that I am using the below java script

function showChecked(selItems) 
{
  var thetable = document.getElementById('mktselect');
  var data="";
  var cableid="";
  var theform = document.cableHeadends;
  var tot = theform.elements.length;
  for (i=0; ihttp://www.nabble.com/Display-the-list-of-values-in-check-box---Interesting-problem-tf4039222.html#a11475627
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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 object to carry along in the forward?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.



listContacts.jsp(48,0) Attribute preload invalid for tag div according to
TLD




Musachy Barroso wrote:
>
> 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.
>>
>> > listenTopics="/fooFoo" formId="fooForm" >
>> Data will display after you enter data above...
>> 
>>
>> Thanks,
>> Jason
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11454523
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
>

--
View this message in context:
http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11473267
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


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.
> 
> 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.
>>
>> > listenTopics="/fooFoo" formId="fooForm" >
>> Data will display after you enter data above...
>> 
>>
>> Thanks,
>> Jason
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11454523
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11473267
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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).

Any help is appreciated.

--
HORRI Khalid
J2EE Developer
-
PHONE: +(212)22897659
GSM: +(212)77763981


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 feature for the next version.
 (*Chris*)

On 7/6/07, yitzle <[EMAIL PROTECTED]> wrote:


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 base.execute() you examine the URL and set the role.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 base.execute() you examine the URL and set the role.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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]
For additional commands, e-mail: [EMAIL PROTECTED]




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? 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

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: optionstransferselect tag






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'm calling the function below:
> function doSubmitSelect()
> {
> var selectObj = document.getElementById('leftId'); 
> selectAllOptionsExceptSome(selectObj, 'key', '');
> selectObj = document.getElementById('rightId'); 
> selectAllOptionsExceptSome(selectObj, 'key', '');" 
> 
> }
> 
> the optiontransfertag definition is here:
>  tooltip="Selectionner vos support favoris"
> headerKey="-1"
> headerValue="--- Selectionnez ---"
> doubleHeaderKey="-1"
> id="leftId"
> doubleId="rightId"
> doubleHeaderValue="--- Selectionnez ---"
> emptyOption="true"
> doubleEmptyOption="true"
> label="Support favoris"
> leftTitle="Supports favoris"
> rightTitle="support favoris Choisis"
> name="supportsFavoris" 
> list="#application.supports" 
> listKey="codeSupport" listValue="libelle"
> doubleName="supportsFavorisChoisis"
> doubleList="defaultListSupport" />
> 
> 
> I wonder if I have to define the leftId and the
> rightId in the form.
> 
> Meissa
> 
> 
> 
> Bill Johnson <[EMAIL PROTECTED]> 
> 06/07/2007 17:23
> Veuillez répondre à
> "Struts Users Mailing List" 
> 
> 
> A
> Struts Users Mailing List 
> cc
> 
> Objet
> Re: optionstransferselect tag
> 
> 
> 
> 
> 
> 
> 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've done wrong.
> > here is my jsp:
> > 
> > <%@ taglib prefix="s" uri="/struts-tags" %>
> > 
> > 
> > 
> >  Media - Tags - UI Tags -
> > Optiontransferselect
> >  > type="text/javascript">
> > function doSubmitSelect()
> > {
> > var selectObj = document.getElementById('leftId'
> > );selectAllOptionsExceptSome(selectObj, 'key',
> '');
> > selectObj = document.getElementById('rightId'
> > );selectAllOptionsExceptSome(selectObj, 'key',
> '');"
> > 
> > 
> > }
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> >  > cellpadding="0" cellspacing=
> > "0">
> > 
> >  > align="left"> 
> > 
> >  > tooltip="Selectionner vos support favoris"
> > headerKey="-1"
> > headerValue="--- Selectionnez ---"
> > doubleHeaderKey="-1"
> > id="leftId"
> > doubleId="rightId"
> > doubleHeaderValue="--- Selectionnez ---"
> > emptyOption="true"
> > doubleEmptyOption="true"
> > label="Support favoris"
> > leftTitle="Supports favoris"
> > rightTitle="support favoris Choisis"
> > name="supportsFavoris" 
> > list="#application.supports" 
> > listKey="codeSupport" listValue="libelle"
> > doubleName="supportsFavorisChoisis"
> > doubleList="defaultListSupport" />
> > 
> > 
> > 
> > 
> > 
> > 
> >  > onsubmit="javascript:doSubmitSelect();"/>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Jeromy Evans <[EMAIL PROTECTED]> 
> > 06/07/2007 09:49
> > Veuillez répondre à
> > "Struts Users Mailing List"
> 
> > 
> > 
> > A
> > Struts Users Mailing List 
> > cc
> > 
> > Objet
> > Re: optionstransferselect tag
> > 
> > 
> > 
> > 
> > 
> > 
> > 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');selectAllOptionsExceptSome(selectObj,
> > 
> > 'key', '');"
> > 
> > where:
> > leftId is the id of the first select (id value)
> > rightId is the id of the second select (doubleId
> > value)
> > 
> > That is an exact copy of the javascript included
> in
> > 

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'm calling the function below:
> function doSubmitSelect()
> {
> var selectObj = document.getElementById('leftId'); 
> selectAllOptionsExceptSome(selectObj, 'key', '');
> selectObj = document.getElementById('rightId'); 
> selectAllOptionsExceptSome(selectObj, 'key', '');" 
> 
> }
> 
> the optiontransfertag definition is here:
>  tooltip="Selectionner vos support favoris"
> headerKey="-1"
> headerValue="--- Selectionnez ---"
> doubleHeaderKey="-1"
> id="leftId"
> doubleId="rightId"
> doubleHeaderValue="--- Selectionnez ---"
> emptyOption="true"
> doubleEmptyOption="true"
> label="Support favoris"
> leftTitle="Supports favoris"
> rightTitle="support favoris Choisis"
> name="supportsFavoris" 
> list="#application.supports" 
> listKey="codeSupport" listValue="libelle"
> doubleName="supportsFavorisChoisis"
> doubleList="defaultListSupport" />
> 
> 
> I wonder if I have to define the leftId and the
> rightId in the form.
> 
> Meissa
> 
> 
> 
> Bill Johnson <[EMAIL PROTECTED]> 
> 06/07/2007 17:23
> Veuillez répondre à
> "Struts Users Mailing List" 
> 
> 
> A
> Struts Users Mailing List 
> cc
> 
> Objet
> Re: optionstransferselect tag
> 
> 
> 
> 
> 
> 
> 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've done wrong.
> > here is my jsp:
> > 
> > <%@ taglib prefix="s" uri="/struts-tags" %>
> > 
> > 
> > 
> >  Media - Tags - UI Tags -
> > Optiontransferselect
> >  > type="text/javascript">
> > function doSubmitSelect()
> > {
> > var selectObj = document.getElementById('leftId'
> > );selectAllOptionsExceptSome(selectObj, 'key',
> '');
> > selectObj = document.getElementById('rightId'
> > );selectAllOptionsExceptSome(selectObj, 'key',
> '');"
> > 
> > 
> > }
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> >  > cellpadding="0" cellspacing=
> > "0">
> > 
> >  > align="left"> 
> > 
> >  > tooltip="Selectionner vos support favoris"
> > headerKey="-1"
> > headerValue="--- Selectionnez ---"
> > doubleHeaderKey="-1"
> > id="leftId"
> > doubleId="rightId"
> > doubleHeaderValue="--- Selectionnez ---"
> > emptyOption="true"
> > doubleEmptyOption="true"
> > label="Support favoris"
> > leftTitle="Supports favoris"
> > rightTitle="support favoris Choisis"
> > name="supportsFavoris" 
> > list="#application.supports" 
> > listKey="codeSupport" listValue="libelle"
> > doubleName="supportsFavorisChoisis"
> > doubleList="defaultListSupport" />
> > 
> > 
> > 
> > 
> > 
> > 
> >  > onsubmit="javascript:doSubmitSelect();"/>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Jeromy Evans <[EMAIL PROTECTED]> 
> > 06/07/2007 09:49
> > Veuillez répondre à
> > "Struts Users Mailing List"
> 
> > 
> > 
> > A
> > Struts Users Mailing List 
> > cc
> > 
> > Objet
> > Re: optionstransferselect tag
> > 
> > 
> > 
> > 
> > 
> > 
> > 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');selectAllOptionsExceptSome(selectObj,
> > 
> > 'key', '');"
> > 
> > where:
> > leftId is the id of the first select (id value)
> > rightId is the id of the second select (doubleId
> > value)
> > 
> > That is an exact copy of the javascript included
> in
> > 

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.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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('rightId'); 
selectAllOptionsExceptSome(selectObj, 'key', '');" 

}

the optiontransfertag definition is here:



I wonder if I have to define the leftId and the rightId in the form.

Meissa



Bill Johnson <[EMAIL PROTECTED]> 
06/07/2007 17:23
Veuillez répondre à
"Struts Users Mailing List" 


A
Struts Users Mailing List 
cc

Objet
Re: optionstransferselect tag






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've done wrong.
> here is my jsp:
> 
> <%@ taglib prefix="s" uri="/struts-tags" %>
> 
> 
> 
>  Media - Tags - UI Tags -
> Optiontransferselect
>  type="text/javascript">
> function doSubmitSelect()
> {
> var selectObj = document.getElementById('leftId'
> );selectAllOptionsExceptSome(selectObj, 'key', '');
> selectObj = document.getElementById('rightId'
> );selectAllOptionsExceptSome(selectObj, 'key', '');"
> 
> 
> }
> 
> 
> 
> 
> 
> 
> 
>  
>  cellpadding="0" cellspacing=
> "0">
> 
>  align="left"> 
> 
>  tooltip="Selectionner vos support favoris"
> headerKey="-1"
> headerValue="--- Selectionnez ---"
> doubleHeaderKey="-1"
> id="leftId"
> doubleId="rightId"
> doubleHeaderValue="--- Selectionnez ---"
> emptyOption="true"
> doubleEmptyOption="true"
> label="Support favoris"
> leftTitle="Supports favoris"
> rightTitle="support favoris Choisis"
> name="supportsFavoris" 
> list="#application.supports" 
> listKey="codeSupport" listValue="libelle"
> doubleName="supportsFavorisChoisis"
> doubleList="defaultListSupport" />
> 
> 
> 
> 
> 
> 
>  onsubmit="javascript:doSubmitSelect();"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Jeromy Evans <[EMAIL PROTECTED]> 
> 06/07/2007 09:49
> Veuillez répondre à
> "Struts Users Mailing List" 
> 
> 
> A
> Struts Users Mailing List 
> cc
> 
> Objet
> Re: optionstransferselect tag
> 
> 
> 
> 
> 
> 
> 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');selectAllOptionsExceptSome(selectObj,
> 
> 'key', '');"
> 
> where:
> leftId is the id of the first select (id value)
> rightId is the id of the second select (doubleId
> value)
> 
> That is an exact copy of the javascript included in
> 

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've done wrong.
> here is my jsp:
> 
> <%@ taglib prefix="s" uri="/struts-tags" %>
> 
> 
> 
>  Media - Tags - UI Tags -
> Optiontransferselect
>  type="text/javascript">
> function doSubmitSelect()
> {
> var selectObj = document.getElementById('leftId'
> );selectAllOptionsExceptSome(selectObj, 'key', '');
> selectObj = document.getElementById('rightId'
> );selectAllOptionsExceptSome(selectObj, 'key', '');"
> 
> 
> }
> 
> 
> 
> 
> 
> 
> 
>  
>  cellpadding="0" cellspacing=
> "0">
> 
>  align="left"> 
> 
>  tooltip="Selectionner vos support favoris"
> headerKey="-1"
> headerValue="--- Selectionnez ---"
> doubleHeaderKey="-1"
> id="leftId"
> doubleId="rightId"
> doubleHeaderValue="--- Selectionnez ---"
> emptyOption="true"
> doubleEmptyOption="true"
> label="Support favoris"
> leftTitle="Supports favoris"
> rightTitle="support favoris Choisis"
> name="supportsFavoris" 
> list="#application.supports" 
> listKey="codeSupport" listValue="libelle"
> doubleName="supportsFavorisChoisis"
> doubleList="defaultListSupport" />
> 
> 
>  
> 
> 
> 
>  onsubmit="javascript:doSubmitSelect();"/>
> 
> 
>  
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Jeromy Evans <[EMAIL PROTECTED]> 
> 06/07/2007 09:49
> Veuillez répondre à
> "Struts Users Mailing List" 
> 
> 
> A
> Struts Users Mailing List 
> cc
> 
> Objet
> Re: optionstransferselect tag
> 
> 
> 
> 
> 
> 
> 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');selectAllOptionsExceptSome(selectObj,
> 
> 'key', '');"
> 
> where:
> leftId is the id of the first select (id value)
> rightId is the id of the second select (doubleId
> value)
> 
> That is an exact copy of the javascript included in
> 

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 - Optiontransferselect

function doSubmitSelect()
{
var selectObj = document.getElementById('leftId'
);selectAllOptionsExceptSome(selectObj, 'key', '');
selectObj = document.getElementById('rightId'
);selectAllOptionsExceptSome(selectObj, 'key', '');" 

}







 


 




 


 


 
 











Jeromy Evans <[EMAIL PROTECTED]> 
06/07/2007 09:49
Veuillez répondre à
"Struts Users Mailing List" 


A
Struts Users Mailing List 
cc

Objet
Re: optionstransferselect tag






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');selectAllOptionsExceptSome(selectObj, 
'key', '');"

where:
leftId is the id of the first select (id value)
rightId is the id of the second select (doubleId value)

That is an exact copy of the javascript included in 

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:


















El vie, 06-07-2007 a las 09:30 -0500, James Carr escribió:
> 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]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 

Jorge Martin Cuervo
Analista Programador
 
Outsourcing Emarketplace
deFacto Powered by Standards
 
email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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]
For additional commands, 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 PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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]
For additional commands, e-mail: [EMAIL PROTECTED]



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 display after you enter data above...


Thanks,
Jason

--
View this message in context:
http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11454523
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


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 my english.

--
Gessé Silva
Programador - Developer
Santa Casa de Misericórdia da Bahia - Brazil
Tel.: (55)(71)2203-9641


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 object to carry along in the forward?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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:
> 
>   
> 
>
>
>  
>
>  
> 
> 
> label="%{reports}" sets all values of the iterator. 
> 
> Where could I find all status properties (first, last, odd, even, count,
> etc.)
> 
> Thanks in advance.
> Tony
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-checkbox-label-value-in-a-iterator-tf4035305.html#a11463841
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:



   
 
 
   
   


label="%{reports}" sets all values of the iterator. 

Where could I find all status properties (first, last, odd, even, count,
etc.)

Thanks in advance.
Tony
-- 
View this message in context: 
http://www.nabble.com/How-to-set-checkbox-label-value-in-a-iterator-tf4035305.html#a11463698
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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.  

For example, the File Upload interceptor allows you to set the
maximumSize and allowedTypes.  Is this going to work if I have 2
different actions each allowing different maximumSize and allowedTypes?
This does not seem thread safe to me.  Is there only one instance of the
interceptors or does maybe each action mapping have its own instance of
the interceptors?

Thanks in advance,
Ken



-
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer. Thank you. Premier Inc.  

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



 


*FROM LOG*

[ERROR] um] - Exception performing authentication 
java.sql.SQLException: 
[Microsoft][SQLServer 2000 Driver for JDBC]Error 
establishing socket.
at 
com.microsoft.jdbc.base.BaseExceptions.createException
(Unknown Source)
at 
com.microsoft.jdbc.base.BaseExceptions.getException
(Unknown Source)
at 
com.microsoft.jdbc.base.BaseExceptions.getException
(Unknown Source)
at 
com.microsoft.jdbc.sqlserver.tds.TDSConnection.
(Unknown Source)
at 
com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open
(Unknown Source)
at 
com.microsoft.jdbc.base.BaseConnection.getNewImplConnection
(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.open
(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect
(Unknown Source)
at org.apache.catalina.realm.JDBCRealm.open
(JDBCRealm.java:699)
at org.apache.catalina.realm.JDBCRealm.authenticate
(JDBCRealm.java:344)
at 
org.apache.catalina.authenticator.FormAuthenticator.authent
icate(FormAuthenticator.java:257)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:416)
at 
org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11Connectio
nHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.r
un(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

[DEBUG] ApplicationDispatcher - 
servletPath=/public/loginError.jsp, pathInfo=null, 
queryString=null, name=null
[DEBUG] ApplicationDispatcher -  Path Based Forward
[DEBUG] JspServlet - JspEngine --> /public/loginError.jsp
[DEBUG] JspServlet -  
ServletPath: /public/loginError.jsp
[DEBUG] JspServlet - PathInfo: null
[DEBUG] JspServlet - RealPath: 
C:\projects\um_fsik\um\public\loginError.jsp
[DEBUG] JspServlet -   
RequestURI: /um/public/loginError.jsp
[DEBUG] JspServlet -  QueryString: null
[DEBUG] JspServlet -   Request Params: 
[DEBUG] JspServlet - j_username = XXX
[DEBUG] JspServlet - j_password = XXX
[DEBUG] ApplicationDispatcher -  Disabling the response 
for futher output
[DEBUG] AuthenticatorBase -  Failed authenticate() 
test ??/um/login/j_security_check
[DEBUG] AuthenticatorBase - Security checking request 
GET /um/login/um.jsp
[DEBUG] AuthenticatorBase -  Calling hasUserDataPermission
()
[DEBUG] AuthenticatorBase -  Calling authenticate()
[DEBUG] FormAuthenticator - Save request in 
session '69C7CDF7181DB575FAECF7D04492F180'
[DEBUG] ApplicationDispatcher - 
servletPath=/public/login.jsp, pathInfo=null, 
queryString=null, name=null
[DEBUG] ApplicationDispatcher -  Path Based Forward
[DEBUG] JspServlet - JspEngine --> /public/login.jsp
[DEBUG] JspServlet -  ServletPath: /public/login.jsp
[DEBUG] JspServlet - PathInfo: null
[DEBUG] JspServlet - RealPath: 
C:\projects\um_fsik\um\public\login.jsp
[DEBUG] JspServlet -   
RequestURI: /um/public/login.jsp
[DEBUG] JspServlet -  QueryString: null
[DEBUG] JspServlet -   Request Params: 
[DEBUG] ApplicationDispatcher -  Disabling the response 
for futher output
[DEBUG] AuthenticatorBase -  Failed authenticate() test



Med venlig hilsen

Søren Blidorf
Nolas Consulting
Web:  http://www.nolas.dk
Mobil: +45 61676513


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 realte to HttpSession field, I don't know.

On jsp page I have several (30-40) pictures that I would like to show
dynamically (pictures are in memory, not in files on disk), and I use
jsp code that looks like this:



${cnt.index}




(it renders HTML like this:  )

In action, there is a field:   ArrayField generatedCharts,
and showGraph method takes the "id" filed to send output stream:

os = servletResponse.getOutputStream();
ChartUtilities.writeChartAsPNG(os,
generatedCharts.get(Integer.valueOf(id)), 600, 400);
os.flush();

Each time .getOutputStream() is called, the following exception happens:

java.lang.IllegalStateException: getOutputStream() has already been
called for this response

Is there a way to do this?

Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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, and then use a special Servlet to get the Chart object and to
output a png or jpg image object.  An image referenced in a page with an
href always causes a separate request cycle to serve the content.
Although this required a separate servlet, there were probably only 10
lines of code in it.  Another solution is to output the image in svg
format or to output it in a binary byte stream as a multi-part request.

The really nice feature of CeWolf, which none of these other methods have
is that CeWolf had image-mapped tool tips to give the coordinates of
important features.  I wonder if this project is still alive in any
meaningful way.  (I notice that its creator is a Struts contributor).

- Ray Clough

  - Original Message -
  From: "Peng Tuck Kwok"
  To: "Struts Users Mailing List"
  Subject: Re: S2 and JFreeChart (showing images)
  Date: Fri, 6 Jul 2007 17:30:23 +0800


  hmm page not updated in a while. Maybe not worth if that's the case.

  On 7/6/07, Peng Tuck Kwok 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.
  > 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/07, Andreja wrote:
  > >
  > > I have an action where I create graph(s), and I need to display
  them
  > > in the page. It is ArrayList that I need to show, but for
  > > the start I will try to display only one graph.
  > >
  > >
  > > Action code goes like this:
  > >
  > > public class ChartDisplayAction () {
  > > ...
  > > execute() {
  > > HttpSession session = servletRequest.getSession();
  > > JFreeChart mygraph = ...creating graph...
  > > BufferedImage myBuffered = mygraph.createBufferedImage (600,
  400);
  > > session.setAttribute("myBuffered", myBuffered);
  > > }
  > > ...
  > > }
  > >
  > >
  > > .jsp page code:
  > >
  > > [IMAGE]" border=0
  > > usemap="#imageMap">
  > >
  > > Obviously, I am making the mistake here (most probably when I am
  > > trying to put myBuffered in session scope), but chart that I want
  to
  > > display is not in file, it is in a stream, and there must be a
  way to
  > > pass the stream to .jsp page. How do I do that?
  > >
  > > Thanks!
  > >
  > >
  -
  > > To unsubscribe, e-mail: [EMAIL PROTECTED]
  > > For additional commands, e-mail: [EMAIL PROTECTED]
  > >
  > >
  >



- Ray Clough
[EMAIL PROTECTED]




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 errors -
[EMAIL PROTECTED]
(reason: 550 5.0.0 <[EMAIL PROTECTED]>... User unknown)
(expanded from: [EMAIL PROTECTED])

   - Transcript of session follows -
... while talking to [127.0.0.1]:
  

DATA


<<< 550 5.0.0 <[EMAIL PROTECTED]>... User unknown
550 5.1.1 [EMAIL PROTECTED] User unknown
<<< 503 5.0.0 Need RCPT (recipient)



does any of you receive this email too?
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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, 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 <[EMAIL PROTECTED]>... User unknown)
> > (expanded from: [EMAIL PROTECTED])
> >
> >- Transcript of session follows -
> > ... while talking to [127.0.0.1]:
>  DATA
> > <<< 550 5.0.0 <[EMAIL PROTECTED]>... User unknown
> > 550 5.1.1 [EMAIL PROTECTED] User unknown
> > <<< 503 5.0.0 Need RCPT (recipient)
> >
> >
> >
> > does any of you receive this email too?
> > -- 
> > 
> > Jorge Martin Cuervo
> > Analista Programador
> >
> > Outsourcing Emarketplace
> > deFacto Powered by Standards
> >
> > email <[EMAIL PROTECTED]>
> > voz +34 985 129 820
> > voz +34 660 026 384
> > 
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> --
> Ing. Andrea Vettori
> Consulente per l'Information Technology
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 

Jorge Martin Cuervo
Analista Programador
 
Outsourcing Emarketplace
deFacto Powered by Standards
 
email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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, and then use a special Servlet to get the Chart object and to
output a png or jpg image object.  An image referenced in a page with an
href always causes a separate request cycle to serve the content. 
Although this required a separate servlet, there were probably only 10
lines of code in it.  Another solution is to output the image in svg
format or to output it in a binary byte stream as a multi-part request. 

The really nice feature of CeWolf, which none of these other methods have
is that CeWolf had image-mapped tool tips to give the coordinates of
important features.  I wonder if this project is still alive in any
meaningful way.  (I notice that its creator is a Struts contributor).

- Ray Clough

  - Original Message -
  From: "Peng Tuck Kwok"
  To: "Struts Users Mailing List"
  Subject: Re: S2 and JFreeChart (showing images)
  Date: Fri, 6 Jul 2007 17:30:23 +0800


  hmm page not updated in a while. Maybe not worth if that's the case.

  On 7/6/07, Peng Tuck Kwok 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.
  > 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/07, Andreja wrote:
  > >
  > > I have an action where I create graph(s), and I need to display
  them
  > > in the page. It is ArrayList that I need to show, but for
  > > the start I will try to display only one graph.
  > >
  > >
  > > Action code goes like this:
  > >
  > > public class ChartDisplayAction () {
  > > ...
  > > execute() {
  > > HttpSession session = servletRequest.getSession();
  > > JFreeChart mygraph = ...creating graph...
  > > BufferedImage myBuffered = mygraph.createBufferedImage (600,
  400);
  > > session.setAttribute("myBuffered", myBuffered);
  > > }
  > > ...
  > > }
  > >
  > >
  > > .jsp page code:
  > >
  > > [IMAGE]" border=0
  > > usemap="#imageMap">
  > >
  > > Obviously, I am making the mistake here (most probably when I am
  > > trying to put myBuffered in session scope), but chart that I want
  to
  > > display is not in file, it is in a stream, and there must be a
  way to
  > > pass the stream to .jsp page. How do I do that?
  > >
  > > Thanks!
  > >
  > >
  -
  > > To unsubscribe, e-mail: [EMAIL PROTECTED]
  > > For additional commands, e-mail: [EMAIL PROTECTED]
  > >
  > >
  >



- Ray Clough
[EMAIL PROTECTED]



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)
from [EMAIL PROTECTED]

   - The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
(reason: 550 5.0.0 <[EMAIL PROTECTED]>... User unknown)
(expanded from: [EMAIL PROTECTED])

   - Transcript of session follows -
... while talking to [127.0.0.1]:

DATA

<<< 550 5.0.0 <[EMAIL PROTECTED]>... User unknown
550 5.1.1 [EMAIL PROTECTED] User unknown
<<< 503 5.0.0 Need RCPT (recipient)



does any of you receive this email too?
--

Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Ing. Andrea Vettori
Consulente per l'Information Technology



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 <[EMAIL PROTECTED]>... User unknown)
(expanded from: [EMAIL PROTECTED])

   - Transcript of session follows -
... while talking to [127.0.0.1]:
>>> DATA
<<< 550 5.0.0 <[EMAIL PROTECTED]>... User unknown
550 5.1.1 [EMAIL PROTECTED] User unknown
<<< 503 5.0.0 Need RCPT (recipient)



does any of you receive this email too?
-- 

Jorge Martin Cuervo
Analista Programador
 
Outsourcing Emarketplace
deFacto Powered by Standards
 
email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.
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/07, Andreja <[EMAIL PROTECTED]> wrote:
>
> I have an action where I create graph(s), and I need to display them
> in the page. It is ArrayList that I need to show, but for
> the start I will try to display only one graph.
>
>
> Action code goes like this:
>
> public class ChartDisplayAction () {
>   ...
>   execute() {
>  HttpSession session = servletRequest.getSession();
> JFreeChart mygraph = ...creating graph...
> BufferedImage myBuffered = mygraph.createBufferedImage (600, 400);
> session.setAttribute("myBuffered", myBuffered);
>   }
>   ...
> }
>
>
> .jsp page code:
>
> " border=0
> usemap="#imageMap">
>
> Obviously, I am making the mistake here (most probably when I am
> trying to put myBuffered in session scope), but chart that I want to
> display is not in file, it is in a stream, and there must be a way to
> pass the stream to .jsp page. How do I do that?
>
> Thanks!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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/07, Andreja <[EMAIL PROTECTED]> wrote:


I have an action where I create graph(s), and I need to display them
in the page. It is ArrayList that I need to show, but for
the start I will try to display only one graph.


Action code goes like this:

public class ChartDisplayAction () {
  ...
  execute() {
 HttpSession session = servletRequest.getSession();
JFreeChart mygraph = ...creating graph...
BufferedImage myBuffered = mygraph.createBufferedImage(600, 400);
session.setAttribute("myBuffered", myBuffered);
  }
  ...
}


.jsp page code:

" border=0
usemap="#imageMap">

Obviously, I am making the mistake here (most probably when I am
trying to put myBuffered in session scope), but chart that I want to
display is not in file, it is in a stream, and there must be a way to
pass the stream to .jsp page. How do I do that?

Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 11:17
An: Struts Users Mailing List
Betreff: Re: AW: struts validation


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="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
>   
> 
> 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 validation
> 
> 
> i've in my struts-config.xml:
> 
> 
>  property="pathnames"
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.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 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-rules.xml with
> > 
> >  > Commons Validator Rules Configuration 1.0//EN" 
> > "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
> > 
> > 
> > I don't have an idea what is still going wrong and there is nothing
> > more to find in the internet. Please send me your help.
> > 
> > Many regards,
> > Anja
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
-- 

Jorge Martin Cuervo
Analista Programador
 
Outsourcing Emarketplace
deFacto Powered by Standards
 
email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
>   
> 
> 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 validation
> 
> 
> i've in my struts-config.xml:
> 
> 
>  property="pathnames"
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.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 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-rules.xml with
> > 
> >  > Commons Validator Rules Configuration 1.0//EN" 
> > "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
> > 
> > 
> > I don't have an idea what is still going wrong and there is nothing 
> > more to find in the internet. Please send me your help.
> > 
> > Many regards,
> > Anja
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
-- 

Jorge Martin Cuervo
Analista Programador
 
Outsourcing Emarketplace
deFacto Powered by Standards
 
email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 validation


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 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-rules.xml with
> 
>  Commons Validator Rules Configuration 1.0//EN" 
> "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
> 
> 
> I don't have an idea what is still going wrong and there is nothing 
> more to find in the internet. Please send me your help.
> 
> Many regards,
> Anja
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 

Jorge Martin Cuervo
Analista Programador
 
Outsourcing Emarketplace
deFacto Powered by Standards
 
email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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-rules.xml with
> 
>  Commons Validator Rules Configuration 1.0//EN"
> "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
> 
> 
> I don't have an idea what is still going wrong and there is nothing more
> to find in the internet. Please send me your help.
> 
> Many regards,
> Anja 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 

Jorge Martin Cuervo
Analista Programador
 
Outsourcing Emarketplace
deFacto Powered by Standards
 
email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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-rules.xml with

http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>


I don't have an idea what is still going wrong and there is nothing more
to find in the internet. Please send me your help.

Many regards,
Anja 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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');selectAllOptionsExceptSome(selectObj, 
'key', '');"


where:
leftId is the id of the first select (id value)
rightId is the id of the second select (doubleId value)

That is an exact copy of the javascript included in 

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 Users Mailing List" 
cc

Objet
Re: optionstransferselect tag







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






I'm having the same problem and it appears to be
because the default theme is requiring DOJO to
automatically select all the select options before
submitting the form. I'm not sure if there is a JIRA
bug opened for this or not, but there probably should
be. The default (non-ajax) theme should not require
DOJO for the optionstransferselect tag to work.

I think the way to fix this is to have the default
theme use plain JavaScript to do the "select all"
functionality and not DOJO.

-Bill


--- [EMAIL PROTECTED] wrote:

> 
> Hi all,
> I have a problem with the optiontransferselect tag.
> When I click on the submit button,nothing is set on
> the listeSelectedKeys 
> attribute of my updateActionClass.
> Can someone tells me what i've missed.
> here is an extract of my jsp.
> 
> 
> 
> 
> 
> 
> 
>
> 
>  headerValue="--- 
> Veuillez selectionner un compartiments ---"
> 
>  headerKey="-1"
>  emptyOption="false"
>  list="#application.vlisteCompartiments"
>  listValue="libelleCompartiment"
> 
>  listKey="id" 
>  buttonCssClass="bouton"
> 
>  cssStyle="width: 
> 350px;" 
>  allowSelectAll="false"
> 
> 
>  doubleList="listeCompartiments"
> 
> 
> doubleName="listSelectedKeys"
>  doubleHeaderValue="--- Veuillez selectionner un
> compartiments ---"
>  doubleHeaderKey="-1"
>  doubleEmptyOption="false"
>  buttonCssStyle="bouton"
>  doubleCssStyle="width: 350px;"
> 
>   />
> 
>cssClass="bouton" type="submit"  value="Modifier" 
> /> 
> 
>   
> 
> 
> thank in advance.
> 
> meissa.
> 
> L'integrite de ce message n'etant pas assuree sur
> internet, Natixis ne peut etre tenu responsable de
> son contenu. Toute utilisation ou diffusion non
> autorisee est interdite. Si vous n'etes pas
> destinataire de ce message, merci de le detruire et
> d'avertir l'expediteur.
> Ensemble, faisons un geste pour l'environnement :
> n'imprimons nos mails que si necessaire
> 
> The integrity of this message cannot be guaranteed
> on the Internet. Natixis can not therefore be
> considered responsible for the contents. Any
> unauthorized use or dissemination is prohibited. If
> you are not the intended recipient of this message,
> then please delete it and notify the sender.
> Let us mind the environment : let's print our mails
> only when necessary.
> 



 

Get the Yahoo! toolbar and be alerted to new email wherever you're 
surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




L'integrite de ce message n'etant pas assuree sur internet, Natixis ne 
peut etre tenu responsable de son contenu. Toute utilisation ou diffusion 
non autorisee est interdite. Si vous n'etes pas destinataire de ce 
message, merci de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails 
que si necessaire

The integrity of this message cannot be guaranteed on the Internet. 
Natixis can not therefore be considered responsible for the contents. Any 
unauthorized use or dissemination is prohibited. If you are not the 
intended recipient of this message, then please delete it and notify the 
sender.



L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut 
etre tenu responsable de son contenu. Toute utilisation ou diffusion non 
autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci 
de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si 
necessaire

The integrity of this message cannot be guaranteed on the Internet. Natixis can 
not therefore be considered responsible for the contents. Any unauthorized use 
or dissemination is prohibited. If you are not the intended recipient of this 
message, then please delete it and notify the sender.
Let us mind the environment : let's print our mails only when necessary.


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






I'm having the same problem and it appears to be
because the default theme is requiring DOJO to
automatically select all the select options before
submitting the form. I'm not sure if there is a JIRA
bug opened for this or not, but there probably should
be. The default (non-ajax) theme should not require
DOJO for the optionstransferselect tag to work.

I think the way to fix this is to have the default
theme use plain JavaScript to do the "select all"
functionality and not DOJO.

-Bill


--- [EMAIL PROTECTED] wrote:

> 
> Hi all,
> I have a problem with the optiontransferselect tag.
> When I click on the submit button,nothing is set on
> the listeSelectedKeys 
> attribute of my updateActionClass.
> Can someone tells me what i've missed.
> here is an extract of my jsp.
> 
> 
> 
> 
> 
> 
> 
>
> 
>  headerValue="--- 
> Veuillez selectionner un compartiments ---"
> 
>  headerKey="-1"
>  emptyOption="false"
>  list="#application.vlisteCompartiments"
>  listValue="libelleCompartiment"
> 
>  listKey="id" 
>  buttonCssClass="bouton"
> 
>  cssStyle="width: 
> 350px;" 
>  allowSelectAll="false"
> 
> 
>  doubleList="listeCompartiments"
> 
> 
> doubleName="listSelectedKeys"
>  doubleHeaderValue="--- Veuillez selectionner un
> compartiments ---"
>  doubleHeaderKey="-1"
>  doubleEmptyOption="false"
>  buttonCssStyle="bouton"
>  doubleCssStyle="width: 350px;"
> 
>   />
> 
>cssClass="bouton" type="submit"  value="Modifier" 
> /> 
> 
>   
> 
> 
> thank in advance.
> 
> meissa.
> 
> L'integrite de ce message n'etant pas assuree sur
> internet, Natixis ne peut etre tenu responsable de
> son contenu. Toute utilisation ou diffusion non
> autorisee est interdite. Si vous n'etes pas
> destinataire de ce message, merci de le detruire et
> d'avertir l'expediteur.
> Ensemble, faisons un geste pour l'environnement :
> n'imprimons nos mails que si necessaire
> 
> The integrity of this message cannot be guaranteed
> on the Internet. Natixis can not therefore be
> considered responsible for the contents. Any
> unauthorized use or dissemination is prohibited. If
> you are not the intended recipient of this message,
> then please delete it and notify the sender.
> Let us mind the environment : let's print our mails
> only when necessary.
> 



 

Get the Yahoo! toolbar and be alerted to new email wherever you're 
surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut 
etre tenu responsable de son contenu. Toute utilisation ou diffusion non 
autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci 
de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si 
necessaire

The integrity of this message cannot be guaranteed on the Internet. Natixis can 
not therefore be considered responsible for the contents. Any unauthorized use 
or dissemination is prohibited. If you are not the intended recipient of this 
message, then please delete it and notify the sender.