Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 3 Jun 2008 15:37:47 -0000 Issue 8068

user-digest-help

2008-06-03


Author LoginPost Reply

user Digest 3 Jun 2008 15:37:47 -0000 Issue 8068

Topics (messages 187159 through 187179):

Re: Problem generating a csv file for download
 187159 by: Dave Newton
 187168 by: Mark Shifman
 187169 by: Jan Froehlich

Re: Struts2, Uncodage / Charset=ISO-8859-1
 187160 by: Dave Newton
 187162 by: Yousri BENDI ABDALLAH

Re: newbie issue - tiles plugin, adding content to "dynamic" attributes
 187161 by: Antonio Petrelli

Re: struts2 dojo plugin (ajax)
 187163 by: Rane

problem with values display by the display tag
 187164 by: Varun Deep

Re: i18nInterceptor in Linux
 187165 by: Regalut

Client Side Validation Not Generated
 187166 by: StrutsUser

Re: fieldError tag
 187167 by: Felipe Lorenz

Re: [Struts 2] Set action parameter - simple
 187170 by: Milan Milanovic
 187172 by: Milan Milanovic
 187173 by: Musachy Barroso
 187174 by: Milan Milanovic
 187176 by: Milan Milanovic

Spring bean access from custom validation
 187171 by: Alec C4

s2 dojo / datepicker conundrum
 187175 by: Jim Kiley

Re: Struts2 can't populate array property to form beans
 187177 by: Jacky Shih

Re: Is there such a thing as flash in S2?
 187178 by: kenk

Constructor with arguments
 187179 by: Alberto A. Flores

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------

Attachment: user_187159.ezm (zipped)
Ah, okay. (Although that does depend on how your browser is set up to handle a CSV content type).

Dave

--- On Mon, 6/2/08, Jan Froehlich <Jan.Froehlich@(protected):

> From: Jan Froehlich <Jan.Froehlich@(protected)>
> Subject: AW: Problem generating a csv file for download
> To: "Struts Users Mailing List" <user@(protected)>
> Date: Monday, June 2, 2008, 5:47 PM
> Hey Dave,
> thanks for your hint - I searched for "contype"
> and guess I found what
> you meant.
>
> What I understood is, that IE sends two extra requests
> after the "main"
> request to identify the content type from content that has
> to be
> displayed in a plug-in like Acrobat Reader.
> For csv files its different. Those files are just plain
> text files with
> "Colon Separated Values" - means that no plugin
> is neccesary to display.
>
> For me it s nice to know, but unfortunately it doesn't
> solve my problem.
>
> Regards
> Jan
>
>
> Von: Dave Newton [mailto:newton.dave@(protected)]
> Gesendet: Montag, 2. Juni 2008 22:55
> An: Struts Users Mailing List
> Betreff: Re: Problem generating a csv file for download
>
> Isn't there something about IE that makes two calls,
> one with a
> "contype" user agent request header? I remember
> seeing something about
> that somewhere relating to PDF documents; I have no idea if
> it's similar
> for CSV or not, but it's easy enough to check the wire.
>
> Dave
>
>
> --- On Mon, 6/2/08, Jan Froehlich
> <Jan.Froehlich@(protected):
>
> > From: Jan Froehlich
> <Jan.Froehlich@(protected)>
> > Subject: Problem generating a csv file for download
> > To: "Struts Users Mailing List"
> <user@(protected)>
> > Date: Monday, June 2, 2008, 1:28 PM
> > Hi List,
> >
> > I'm developing an webapp generating csv files
> based on
> > some hibernate
> > queries - so far so good.
> >
> > Action "csvSelect" is used to display a form
> with
> > a select box and a
> > datetimepicker and to pass 2 parameters to the second
> > action
> > "csvGenerate" which is the one that
> generates the
> > csv file.
> >
> >    <action name="csvSelect"
> > class="de.myfiles.actions.CsvSelect">
> >      <result name="success"
> > type="redirectAction">
> >        <param
> >
> name="actionName">csvGenerate</param>
> >      </result>
> >      <result name="input"
> >
> type="tiles">tiles.page.select</result>
> >    </action>
> >
> >    <action name="csvGenerate"
> > class="de.myfiles.actions.CsvGenerate">
> >      <result name="success"
> > type="stream"></result>
> >    </action>
> > To this point everything is working like a charm.
> > But when I set
> >
> >      response.setHeader("Content-Disposition",
> > "attachment; filename=myfile.csv");
> >
>      response.setContentType("text/x-download");
> >
> > The action is called once and building my csv content
> -
> > after I return
> > SUCCESS it displays the Internet Explorer "Open /
> > Save" dialog and when
> > I click on "open" or "save" the
> action
> > is called another time - but now
> > I dont have access to the parameters passed from the
> first
> > action.
> >
> > As I am new to struts2 and I am no native speaker I
> hope
> > that someone
> > understands what my problem is and gives me a clue!
> >
> > Thanks in advance!
> >
> > Jan Froehlich
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@(protected)
> > For additional commands, e-mail:
> > user-help@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment: user_187168.ezm (zipped)
I had problems downloading stuff when IE was the client. After snooping
around google, I added these header lines and things worked but I don't
really understand why.
    response.setHeader("Pragma", "public");
    response.setHeader("Cache-Control", "max-age=0");

Jan Froehlich wrote:
> Hey Dave,
> thanks for your hint - I searched for "contype" and guess I found what
> you meant.
>
> What I understood is, that IE sends two extra requests after the "main"
> request to identify the content type from content that has to be
> displayed in a plug-in like Acrobat Reader.
> For csv files its different. Those files are just plain text files with
> "Colon Separated Values" - means that no plugin is neccesary to display.
>
> For me it s nice to know, but unfortunately it doesn't solve my problem.
>
> Regards
> Jan
>
>
> Von: Dave Newton [mailto:newton.dave@(protected)]
> Gesendet: Montag, 2. Juni 2008 22:55
> An: Struts Users Mailing List
> Betreff: Re: Problem generating a csv file for download
>
> Isn't there something about IE that makes two calls, one with a
> "contype" user agent request header? I remember seeing something about
> that somewhere relating to PDF documents; I have no idea if it's similar
> for CSV or not, but it's easy enough to check the wire.
>
> Dave
>
>
> --- On Mon, 6/2/08, Jan Froehlich <Jan.Froehlich@(protected):
>
>> From: Jan Froehlich <Jan.Froehlich@(protected)>
>> Subject: Problem generating a csv file for download
>> To: "Struts Users Mailing List" <user@(protected)>
>> Date: Monday, June 2, 2008, 1:28 PM
>> Hi List,
>>
>> I'm developing an webapp generating csv files based on
>> some hibernate
>> queries - so far so good.
>>
>> Action "csvSelect" is used to display a form with
>> a select box and a
>> datetimepicker and to pass 2 parameters to the second
>> action
>> "csvGenerate" which is the one that generates the
>> csv file.
>>
>>    <action name="csvSelect"
>> class="de.myfiles.actions.CsvSelect">
>>      <result name="success"
>> type="redirectAction">
>>        <param
>> name="actionName">csvGenerate</param>
>>      </result>
>>      <result name="input"
>> type="tiles">tiles.page.select</result>
>>    </action>
>>
>>    <action name="csvGenerate"
>> class="de.myfiles.actions.CsvGenerate">
>>      <result name="success"
>> type="stream"></result>
>>    </action>
>> To this point everything is working like a charm.
>> But when I set
>>
>>      response.setHeader("Content-Disposition",
>> "attachment; filename=myfile.csv");
>>      response.setContentType("text/x-download");
>>
>> The action is called once and building my csv content -
>> after I return
>> SUCCESS it displays the Internet Explorer "Open /
>> Save" dialog and when
>> I click on "open" or "save" the action
>> is called another time - but now
>> I dont have access to the parameters passed from the first
>> action.
>>
>> As I am new to struts2 and I am no native speaker I hope
>> that someone
>> understands what my problem is and gives me a clue!
>>
>> Thanks in advance!
>>
>> Jan Froehlich
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail:
>> user-help@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>


--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
mark.shifman@(protected)

Attachment: user_187169.ezm (zipped)
Hi Mark,

Thank you for your hint, I tried it, but I can't see any change in the behaviour.

I solved it for me with putting the necessary properties into the session so my action can handle all the requests.
Not very beautiful but it works.

FYI - I tried the whole process with Firefox and it works like ist supposed to!

So that is just (another) issue of web applications with Internet Explorer!

If someone needs a code snippet just tell me!

Regards
Jan

-----Ursprüngliche Nachricht-----
Von: Mark Shifman [mailto:mark.shifman@(protected)]
Gesendet: Dienstag, 3. Juni 2008 14:00
An: Struts Users Mailing List
Betreff: Re: AW: Problem generating a csv file for download

I had problems downloading stuff when IE was the client. After snooping
around google, I added these header lines and things worked but I don't
really understand why.
    response.setHeader("Pragma", "public");
    response.setHeader("Cache-Control", "max-age=0");

Jan Froehlich wrote:
> Hey Dave,
> thanks for your hint - I searched for "contype" and guess I found what
> you meant.
>
> What I understood is, that IE sends two extra requests after the "main"
> request to identify the content type from content that has to be
> displayed in a plug-in like Acrobat Reader.
> For csv files its different. Those files are just plain text files with
> "Colon Separated Values" - means that no plugin is neccesary to display.
>
> For me it s nice to know, but unfortunately it doesn't solve my problem.
>
> Regards
> Jan
>
>
> Von: Dave Newton [mailto:newton.dave@(protected)]
> Gesendet: Montag, 2. Juni 2008 22:55
> An: Struts Users Mailing List
> Betreff: Re: Problem generating a csv file for download
>
> Isn't there something about IE that makes two calls, one with a
> "contype" user agent request header? I remember seeing something about
> that somewhere relating to PDF documents; I have no idea if it's similar
> for CSV or not, but it's easy enough to check the wire.
>
> Dave
>
>
> --- On Mon, 6/2/08, Jan Froehlich <Jan.Froehlich@(protected):
>
>> From: Jan Froehlich <Jan.Froehlich@(protected)>
>> Subject: Problem generating a csv file for download
>> To: "Struts Users Mailing List" <user@(protected)>
>> Date: Monday, June 2, 2008, 1:28 PM
>> Hi List,
>>
>> I'm developing an webapp generating csv files based on
>> some hibernate
>> queries - so far so good.
>>
>> Action "csvSelect" is used to display a form with
>> a select box and a
>> datetimepicker and to pass 2 parameters to the second
>> action
>> "csvGenerate" which is the one that generates the
>> csv file.
>>
>>    <action name="csvSelect"
>> class="de.myfiles.actions.CsvSelect">
>>      <result name="success"
>> type="redirectAction">
>>        <param
>> name="actionName">csvGenerate</param>
>>      </result>
>>      <result name="input"
>> type="tiles">tiles.page.select</result>
>>    </action>
>>
>>    <action name="csvGenerate"
>> class="de.myfiles.actions.CsvGenerate">
>>      <result name="success"
>> type="stream"></result>
>>    </action>
>> To this point everything is working like a charm.
>> But when I set
>>
>>      response.setHeader("Content-Disposition",
>> "attachment; filename=myfile.csv");
>>      response.setContentType("text/x-download");
>>
>> The action is called once and building my csv content -
>> after I return
>> SUCCESS it displays the Internet Explorer "Open /
>> Save" dialog and when
>> I click on "open" or "save" the action
>> is called another time - but now
>> I dont have access to the parameters passed from the first
>> action.
>>
>> As I am new to struts2 and I am no native speaker I hope
>> that someone
>> understands what my problem is and gives me a clue!
>>
>> Thanks in advance!
>>
>> Jan Froehlich
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail:
>> user-help@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>


--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
mark.shifman@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


Attachment: user_187160.ezm (zipped)
--- On Mon, 6/2/08, Laurie Harper <laurie@(protected):
> I don't understand the question; there are no accented
> characters in 'February' (or anywhere in your example).

No no, "Febrüary Päin" (in this usage the umlaut is properly called "metal dots"), my glam band from the 80's.

Dave


Attachment: user_187162.ezm (zipped)
I do a translation is it my all translated I mean Février


2008/6/3 Dave Newton <newton.dave@(protected)>:

> --- On Mon, 6/2/08, Laurie Harper <laurie@(protected):
> > I don't understand the question; there are no accented
> > characters in 'February' (or anywhere in your example).
>
> No no, "Febrüary Päin" (in this usage the umlaut is properly called "metal
> dots"), my glam band from the 80's.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
Yousri BENDIABDALLAH

Attachment: user_187161.ezm (zipped)
2008/6/2 Markus L. <ml.in.hell@(protected)>:
> in the ViewPreparer i can add attributes, but i don't know how to access the
> action controller to fill them with data.. (as that would avoid the JSPs..)

I think you can get it this way.
The TilesRequestContext has a "getRequest" method. Simply cast the
result to "HttpServletRequest" and use:
ServletActionContext.getActionContext
method.

HTH
Antonio

Attachment: user_187163.ezm (zipped)

I had a similar problem - I think it is because the ajax freemarker templates
are being used, but
the component being referred to is using one of the non ajax components
behind the scenes.
anyhow, one way to fix it would be to use the dojo plugin tag for the submit
button ie

<sx:submit />

rather than

<s:submit />

Hope this makes sense.

Cheers,

Rane


Daniel Posirca wrote:
>
> I am trying to integrate struts and ajax trough dojo plugin. Freemarker is
> trowing me an error :
>
> freemarker.core.InvalidReferenceException: Expression parameters.pushId is
> undefined on line 97, column 6 in template/ajax/submit.ftl.
>
> Anyone know what that mean?
>
> This is my jsp page :
>
> <s:form name="search" action="search" namespace="/s" id="searchForm">
>   <table width="100%" align="center" cellpadding="0" cellspacing="0">
>      <tr>
>         <td style="padding:10px;">
>
>              <table width="50%" align="center" cellpadding="0"
> cellspacing="0">
>                 <tr>
>                   <td>
>                      <s:textfield name="doc1" label="doc1"/>
>                          <s:submit value="Seach" theme="ajax"
> id="searchPutton"/>
>                   </td>
>                 </tr>
>              </table>
>
>         </td>
>      </tr>
>   </table>
>
> </s:form>
>
> My libs :
>
> struts2-dojo-plugin-2.1.1-SNAPSHOT.jar
> struts2-core-2.1.1-SNAPSHOT.jar
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_187164.ezm (zipped)
Hi, Lacambra

I am facing a strange problem with values display by the display tag.
Sometime it work fine but some time whenever I click to access 2 page by
clicking on the 2 page link, it show me the same values that was in
the 1 page, after trying two to three time it show the 2 page values.
Please tell me what to do with the tag.

Thanks in advance
Varun



Attachment: user_187165.ezm (zipped)

Does anyone have a web application with Struts 2 internationalized and a
Linux server?
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_187166.ezm (zipped)

Hi,
I am new to Struts2 and am trying to generate client side validation. I have
defined an <ActionClass>-validation.xml file and have specified
'validate=true' in my JSP. But the validation script does not get generated
in the HTML. I am using appfuse maven with IE7. The same code works in a
colleague's system. He too has the same environment.
Could any one help me out?
Thanks
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_187167.ezm (zipped)
HUmmmm ok..

Did you try it:

<s:fielderror>
      <s:param value="%{'field1'}" />
      <s:param value="%{'field2'}" />
  </s:fielderror>
  <s:form .... >
    ....
  </s:form>

I found it on: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/components/FieldError.html

Try, and tell us about it...

Have good day!


On Mon, Jun 2, 2008 at 7:06 PM, David Evans <dsevans@(protected):

> I'm sorry, my explanation was too brief.
>
> Given that the field "myField" has had a field error added to the
> FieldErrors collection, I am wondering if there is a way to display it
> on a jsp page that will be shorter than the documented:
> <s:fielderror><s:param>myField</s:param></s:fielderror>
>
> I was hoping for something like:
> <s:fielderror field="myField" />
>
>
> Dave
>
> On Mon, 2008-06-02 at 17:59 -0300, Felipe Lorenz wrote:
> > Well... in the Action class just add a field error to a especific field..
> >
> > On Mon, Jun 2, 2008 at 3:21 PM, David Evans <dsevans@(protected)>
> wrote:
> >
> > > Hello,
> > >
> > > Is there any way to specify a particular field error like this:
> > > <s:fielderror field="myField" />
> > >
> > > instead of:
> > > <s:fielderror><s:param>myField</s:param></s:fielderror>
> > >
> > >
> > > Thanks,
> > >
> > > Dave
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > > For additional commands, e-mail: user-help@(protected)
> > >
> > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_187170.ezm (zipped)
Do you mean this page: http://www.planetstruts.org/struts2-showcase/ajax/index.jsp ?

But there is not "notifyTopics" in this list ?

--
Thx, Milan

Musachy Barroso <musachy@(protected)"

musachy

On Mon, Jun 2, 2008 at 4:16 PM, Milan Milanovic
wrote:
> Hi Musachy,
>
> yes, I understand. I don't want it. Could you give me any hint or a link to the solution ?
>
> --
> Thx in advance, Milan
>
> Musachy Barroso wrote: NotifyTopics are triggered 2 times, one before the request is done,
> and one after. There multiple examples in showcase and this list on
> how to do it. In 2.1 there are separate topics for the events, so no
> JS is necessary.
>
> musachy
>
> On Mon, Jun 2, 2008 at 12:47 PM, Milan Milanovic
> wrote:
>> Yes, I'm actually creating this link like this:
>>
>>
>>
>> Lukasz Lenart wrote: Hi,
>>
>> Mainly it is a problem with JavaScript, Ajax or maybe TabbedPanel. Are you
>> using one of this with connection to generated links?
>>
>>
>> Regards
>> --
>> Lukasz
>> http://www.lenart.org.pl/
>>
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



   

Attachment: user_187172.ezm (zipped)
Hi Musachy,

could I just use e.g., afterNotifyTopics instead of notifyTopics ?

--
Thx in advance.

Milan Milanovic <milanmilanovich@(protected) ?

But there is not "notifyTopics" in this list ?

--
Thx, Milan

Musachy Barroso wrote: Showcase (ajax tags section), and search this list for "notifyTopics"

musachy

On Mon, Jun 2, 2008 at 4:16 PM, Milan Milanovic
wrote:
> Hi Musachy,
>
> yes, I understand. I don't want it. Could you give me any hint or a link to the solution ?
>
> --
> Thx in advance, Milan
>
> Musachy Barroso wrote: NotifyTopics are triggered 2 times, one before the request is done,
> and one after. There multiple examples in showcase and this list on
> how to do it. In 2.1 there are separate topics for the events, so no
> JS is necessary.
>
> musachy
>
> On Mon, Jun 2, 2008 at 12:47 PM, Milan Milanovic
> wrote:
>> Yes, I'm actually creating this link like this:
>>
>>
>>
>> Lukasz Lenart wrote: Hi,
>>
>> Mainly it is a problem with JavaScript, Ajax or maybe TabbedPanel. Are you
>> using one of this with connection to generated links?
>>
>>
>> Regards
>> --
>> Lukasz
>> http://www.lenart.org.pl/
>>
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



   

   

Attachment: user_187173.ezm (zipped)
If you are using struts 2.1 yes.

musachy

On Tue, Jun 3, 2008 at 10:15 AM, Milan Milanovic
<milanmilanovich@(protected):
> Hi Musachy,
>
> could I just use e.g., afterNotifyTopics instead of notifyTopics ?
>
> --
> Thx in advance.
>
> Milan Milanovic <milanmilanovich@(protected) ?
>
> But there is not "notifyTopics" in this list ?
>
> --
> Thx, Milan
>
> Musachy Barroso wrote: Showcase (ajax tags section), and search this list for "notifyTopics"
>
> musachy
>
> On Mon, Jun 2, 2008 at 4:16 PM, Milan Milanovic
> wrote:
>> Hi Musachy,
>>
>> yes, I understand. I don't want it. Could you give me any hint or a link to the solution ?
>>
>> --
>> Thx in advance, Milan
>>
>> Musachy Barroso wrote: NotifyTopics are triggered 2 times, one before the request is done,
>> and one after. There multiple examples in showcase and this list on
>> how to do it. In 2.1 there are separate topics for the events, so no
>> JS is necessary.
>>
>> musachy
>>
>> On Mon, Jun 2, 2008 at 12:47 PM, Milan Milanovic
>> wrote:
>>> Yes, I'm actually creating this link like this:
>>>
>>>
>>>
>>> Lukasz Lenart wrote: Hi,
>>>
>>> Mainly it is a problem with JavaScript, Ajax or maybe TabbedPanel. Are you
>>> using one of this with connection to generated links?
>>>
>>>
>>> Regards
>>> --
>>> Lukasz
>>> http://www.lenart.org.pl/
>>>
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
>
>



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

Attachment: user_187174.ezm (zipped)
Nop, I'm using 2.0.11.1. What solution do you recommend ?

--
Thx, Milan

Musachy Barroso <musachy@(protected).

musachy

On Tue, Jun 3, 2008 at 10:15 AM, Milan Milanovic
wrote:
> Hi Musachy,
>
> could I just use e.g., afterNotifyTopics instead of notifyTopics ?
>
> --
> Thx in advance.
>
> Milan Milanovic wrote: Do you mean this page: http://www.planetstruts.org/struts2-showcase/ajax/index.jsp ?
>
> But there is not "notifyTopics" in this list ?
>
> --
> Thx, Milan
>
> Musachy Barroso wrote: Showcase (ajax tags section), and search this list for "notifyTopics"
>
> musachy
>
> On Mon, Jun 2, 2008 at 4:16 PM, Milan Milanovic
> wrote:
>> Hi Musachy,
>>
>> yes, I understand. I don't want it. Could you give me any hint or a link to the solution ?
>>
>> --
>> Thx in advance, Milan
>>
>> Musachy Barroso wrote: NotifyTopics are triggered 2 times, one before the request is done,
>> and one after. There multiple examples in showcase and this list on
>> how to do it. In 2.1 there are separate topics for the events, so no
>> JS is necessary.
>>
>> musachy
>>
>> On Mon, Jun 2, 2008 at 12:47 PM, Milan Milanovic
>> wrote:
>>> Yes, I'm actually creating this link like this:
>>>
>>>
>>>
>>> Lukasz Lenart wrote: Hi,
>>>
>>> Mainly it is a problem with JavaScript, Ajax or maybe TabbedPanel. Are you
>>> using one of this with connection to generated links?
>>>
>>>
>>> Regards
>>> --
>>> Lukasz
>>> http://www.lenart.org.pl/
>>>
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



   

Attachment: user_187176.ezm (zipped)
So, solution could be afterLoading instad of listenTopics, or something like that ?

Milan Milanovic <milanmilanovich@(protected) ?

--
Thx, Milan

Musachy Barroso wrote: If you are using struts 2.1 yes.

musachy

On Tue, Jun 3, 2008 at 10:15 AM, Milan Milanovic
wrote:
> Hi Musachy,
>
> could I just use e.g., afterNotifyTopics instead of notifyTopics ?
>
> --
> Thx in advance.
>
> Milan Milanovic wrote: Do you mean this page: http://www.planetstruts.org/struts2-showcase/ajax/index.jsp ?
>
> But there is not "notifyTopics" in this list ?
>
> --
> Thx, Milan
>
> Musachy Barroso wrote: Showcase (ajax tags section), and search this list for "notifyTopics"
>
> musachy
>
> On Mon, Jun 2, 2008 at 4:16 PM, Milan Milanovic
> wrote:
>> Hi Musachy,
>>
>> yes, I understand. I don't want it. Could you give me any hint or a link to the solution ?
>>
>> --
>> Thx in advance, Milan
>>
>> Musachy Barroso wrote: NotifyTopics are triggered 2 times, one before the request is done,
>> and one after. There multiple examples in showcase and this list on
>> how to do it. In 2.1 there are separate topics for the events, so no
>> JS is necessary.
>>
>> musachy
>>
>> On Mon, Jun 2, 2008 at 12:47 PM, Milan Milanovic
>> wrote:
>>> Yes, I'm actually creating this link like this:
>>>
>>>
>>>
>>> Lukasz Lenart wrote: Hi,
>>>
>>> Mainly it is a problem with JavaScript, Ajax or maybe TabbedPanel. Are you
>>> using one of this with connection to generated links?
>>>
>>>
>>> Regards
>>> --
>>> Lukasz
>>> http://www.lenart.org.pl/
>>>
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



   

   

Attachment: user_187171.ezm (zipped)

Hi,
i'm trying to understand - how to access some spring bean from my custom
validation. Could you please explain me - how to do it?
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_187175.ezm (zipped)
Hey gang,

I have an app that needs a datepicker. I initially inserted an
<s:datepicker> into my app. But I see from reviewing the docs that
s:datepicker needs <sx:head> to be around in order to work right. And of
course sx:head requires the struts-dojo-tags taglib. And the dojo plugin
isn't available as part of the distribution until 2.1.

Does this mean I shouldn't bother using the datepicker until 2.1 is GA? If
that's true, why is s:datepicker even available as a tag in 2.0.x? If
that's false, what am I missing?



--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment: user_187177.ezm (zipped)
ya, i have my own interceptors stack and no params interceptor there, after
adding it, works fine now! thx all

On Tue, Jun 3, 2008 at 10:32 AM, l4kyl4ky@(protected)>
wrote:

> perhaps,
> u need to set interceptor in ur struts.xml
> try using this in ur action
> "<interceptor-ref name="params"/>"
>
> Laurie Harper wrote:
>
>> I would expect that to work. You might try initializing User.phone to an
>> empty list and/or fiddling with a -conversion.properties [1] to try and coax
>> it into doing the right thing. However, I don't think either of those should
>> be necessary.
>>
>> Double check your log files (and perhaps try up'ing the log level for
>> Struts and Xwork to DEBUG); perhaps that will provide some clue as to where
>> it's failing.
>>
>> L.
>>
>> [1] http://struts.apache.org/2.0.11.1/docs/type-conversion.html
>>
>> Jacky Shih wrote:
>>
>>> It is not working even i changed String array to List and append the
>>> index
>>> in the jsp form....
>>>
>>> This method works in Struts1.x...but what should i do to make it
>>> functioning
>>> in Struts 2?
>>>
>>> can anyone help?
>>>
>>> On Mon, Jun 2, 2008 at 11:38 AM, l4kyl4ky@(protected)>
>>> wrote:
>>>
>>> try using List,
>>>>
>>>> public class User {
>>>>   //String [] phone;
>>>>    private List <String> phone;
>>>>
>>>> public List<String> getPhone() {
>>>>    return phone;
>>>> }
>>>>
>>>> public void setPhone(List<String> phone) {
>>>>    this.phone = phone;
>>>> }
>>>>   }
>>>>
>>>> the JSP
>>>> <form name="XXX" action="XXX">
>>>>   <input type=text name="user.phone[0]" />
>>>>   <input type=text name="user.phone[1]" />
>>>>   <input type=text name="user.phone[2]" />
>>>>   <input type=submit name=submit value=submit/>
>>>> </form>
>>>>
>>>>
>>>> And the action
>>>>
>>>> U didn't have to f this
>>>>
>>>>   private User user=new User();
>>>>>
>>>> just
>>>>
>>>> private User user;
>>>> public User getUser(){ return user;}
>>>> public void setUser(User user) { this.user=user;}
>>>>
>>>>
>>>>    Iterator it = getUser().getPhone().iterator();
>>>>    while (it.hasNext()) {
>>>>       Object object = it.next();
>>>>       System.out.print(object);
>>>>
>>>>    }
>>>>
>>>> Jacky Shih wrote:
>>>>
>>>> Hi all,
>>>>>
>>>>> I meet a problem on populating array properties...
>>>>> here is the detail description:
>>>>>
>>>>> public class User {
>>>>>    String [] phone;
>>>>>    public String[] getPhone(){
>>>>>        return phone;
>>>>>    }
>>>>>    public void setPhone(String[] phone) {
>>>>>        this.phone=phone;
>>>>>    }
>>>>> }
>>>>>
>>>>> public class UserAction {
>>>>>     private User user=new User();
>>>>>
>>>>>     public User getUser(){ return user;}
>>>>>     public void setUser(User user) { this.user=user;}
>>>>>
>>>>>     public String execute() {
>>>>>           // user.getPhone() always return null...
>>>>>     }
>>>>>
>>>>> }
>>>>>
>>>>>
>>>>> And i have a jsp which will submit a list of phone to the action class
>>>>>
>>>>>
>>>>> <form name=xxx action=xxx>
>>>>>   <input type=text name="user.phone" />
>>>>>   <input type=text name="user.phone" />
>>>>>   <input type=text name="user.phone" />
>>>>>    <input type=submit name=submit value=submit/>
>>>>> </form>
>>>>>
>>>>>
>>>>> after the form is submitted... the action class is called, however the
>>>>> list
>>>>> of phone can't be populated to the user object in the UserAction
>>>>> class...
>>>>> i have tried if the phone is not a array type.. the property is
>>>>> populated
>>>>> to
>>>>> the user object ...
>>>>> any suggestion for the issue?
>>>>> thx alot!
>>>>>
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_187178.ezm (zipped)

Hi GB,

Did you ever find a place to post your FlashResult / FlashInterceptor? I'm
interested in doing the same thing -- though I understand and agree with the
disadvantage that Brad spoke of. Basically, I'm looking to do something
similar to the
http://www.stripesframework.org/display/stripes/State+Management Stripes
flash scope

Thanks in advance,
Ken


Guillaume Bilodeau wrote:
>
> Hi guys,
>
> I have just developed a FlashResult / FlashInterceptor pair - turns out
> ....
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_187179.ezm (zipped)
Does anyone know how to make Struts2 ObjectFactory instantiate actions
with constructor-arguments.

I currently have to rely on Spring to handle that case, but would be
nice to do it without it.

--

Alberto A. Flores
http://www.linkedin.com/in/aflores

©2008 gg3721.com - Jax Systems, LLC, U.S.A.