Author Login
Post Reply
user Digest 3 Aug 2008 13:42:14 -0000 Issue 8175
Topics (messages 189614 through 189642):
Re: Struts 2.1 & AjaxAnywhere
189614 by: dynamicd
189625 by: Shoaib Gauhar
[FRIDAY]Re: Struts 2.1 & AjaxAnywhere
189615 by: Musachy Barroso
Re: Creating report using struts2 and pentaho
189616 by: VICKY K
189617 by: Musachy Barroso
Re: My Action was three times executed
189618 by: Laurie Harper
Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
189619 by: stanlick.gmail.com
189623 by: Milan Milanovic
Struts2 validation
189620 by: Peter Bliznak
how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu
189621 by: Narasimha Raju Naidu
189627 by: Gabriel Belingueres
189628 by: Narasimha Raju Naidu
189630 by: Gabriel Belingueres
Can't obtain object in POJO using AJAX and problem with validation
189622 by: Francisco Exposito Aguilera
189624 by: Jeromy Evans
189626 by: Francisco Exposito Aguilera
FileUploadInterceptor not always working
189629 by: matthieu martin
Re: custom converter takes String representation of long ID and replaces with Object - convertFromString not being called
189631 by: Pierre Thibaudeau
@FieldExpressionValidator calling action's method
189632 by: Hrvoje Ban
189633 by: Pierre Thibaudeau
189634 by: Hrvoje Ban
189637 by: Pierre Thibaudeau
189639 by: Hrvoje Ban
Issue with Url mapping with struts-action-extension=""
189635 by: Haulyn R. Jason
Delete Confirmation in Struts2
189636 by: hisameer
EJB Injection for Struts 2 Actions
189638 by: Alexander Bätz
189640 by: Marc Ende
Re: paramsPrepareParams vs. staticParams
189641 by: Martin Gainty
189642 by: Musachy Barroso
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_189614.ezm (zipped)
Hey Shoib,
I have tried Ajax Anywhere with Struts 2.0.12 and it didnt get me anywhere..
I did not see the ajax behavior. Did you get it to work. Canyou post some
sample code.
Shoaib Gauhar wrote:
>
> Hello,
>
> Has anyone tried AjaxAnywhere with Struts 2.1? My action class is never
> called. Actually, i am using ajax to achieve pagination in displaytag. I
> have used the example from the following link
> raibledesigns.com/rd/entry/the_future_of_the_displaytag. But the control
> doesnt reach my action class. The links addresses are updated correctly.
> After changing the page, following exception is shown in the log file.
> "ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d
> - 6210418) - p" But after that nothing happens. The control comes back to
> the jsp without updating or refreshing my table.
>
> It would be very helpful if someone could guide me to achieve my desired
> task.
>
> Thanks in advance,
>
> sagauhar
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189625.ezm (zipped)
I did achieve the desired functionality but not with ajax anywhere. Rather i
used Javascript and DWR to make it REFRESH free. Search google for DWR and
displaytag it will provide you some examples. If you dont find any, you can
always contact me.
Shoaib
dynamicd wrote:
>
> Hey Shoib,
>
> I have tried Ajax Anywhere with Struts 2.0.12 and it didnt get me
> anywhere.. I did not see the ajax behavior. Did you get it to work. Canyou
> post some sample code.
>
>
>
>
> Shoaib Gauhar wrote:
>>
>> Hello,
>>
>> Has anyone tried AjaxAnywhere with Struts 2.1? My action class is never
>> called. Actually, i am using ajax to achieve pagination in displaytag. I
>> have used the example from the following link
>> raibledesigns.com/rd/entry/the_future_of_the_displaytag. But the control
>> doesnt reach my action class. The links addresses are updated correctly.
>> After changing the page, following exception is shown in the log file.
>> "ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d
>> - 6210418) - p" But after that nothing happens. The control comes back to
>> the jsp without updating or refreshing my table.
>>
>> It would be very helpful if someone could guide me to achieve my desired
>> task.
>>
>> Thanks in advance,
>>
>> sagauhar
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189615.ezm (zipped)> I have tried Ajax Anywhere with Struts 2.0.12 and it didnt get me anywhere..
that a great one-liner
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_189616.ezm (zipped)
Hi,
Am facing the same problem, can you help me out in Creating a Report Using
pentaho & Struts.
Thanks
Vicky
soum wrote:
>
>
> hi,
> sorry for sending this message again-since i didnt get nay reply and its
> urgent
> on my project i have to creat a Report using Pentaho and struts2. Without
> using struts i am able to creat the report and disply it .but i wanted to
> customize the application and wanted to use struts in it. So for that i
> wanted to call the ViewAction class(used in pentaho to disply the data .
> this class basically take the input parameter from another XAction class
> and put the data through URL).
>
> i wanted to create my own struts generateReportAction class and Jsp pages
> to disply the report. Now how will i call the View Action class from
> struts action class and how will i pass these parameters.
> How should i specify the action mapper?
>
> i will really appriciate ,If some one could send me some sample program or
> document .and any sample example where Pentaho and Struts2 are combined to
> create report.
>
> thanks in advance
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189617.ezm (zipped)Why don't you just build a url with the parameters, and show it in
your page? Or a form?
musachy
On Fri, Aug 1, 2008 at 4:45 PM, VICKY K <chat2vicky@(protected):
>
> Hi,
>
> Am facing the same problem, can you help me out in Creating a Report Using
> pentaho & Struts.
>
> Thanks
> Vicky
>
>
> soum wrote:
>>
>>
>> hi,
>> sorry for sending this message again-since i didnt get nay reply and its
>> urgent
>> on my project i have to creat a Report using Pentaho and struts2. Without
>> using struts i am able to creat the report and disply it .but i wanted to
>> customize the application and wanted to use struts in it. So for that i
>> wanted to call the ViewAction class(used in pentaho to disply the data .
>> this class basically take the input parameter from another XAction class
>> and put the data through URL).
>>
>> i wanted to create my own struts generateReportAction class and Jsp pages
>> to disply the report. Now how will i call the View Action class from
>> struts action class and how will i pass these parameters.
>> How should i specify the action mapper?
>>
>> i will really appriciate ,If some one could send me some sample program or
>> document .and any sample example where Pentaho and Struts2 are combined to
>> create report.
>>
>> thanks in advance
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Creating-report-using-struts2-and-pentaho-tp11010588p18782270.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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_189618.ezm (zipped)Johannes Geppert wrote:
> since using struts 2.1.2 my actions was three times
> executed when i submit a form with dojo and <sx:submit>
>
> Is this a bug, or a configuration error?
How would we know without seeing any of your code or configuration?
L.

Attachment:
user_189619.ezm (zipped)Is it possible you have the server session-time-to-live set to a very small
duration of time? This might explain why the sessions are disappearing.
On Fri, Aug 1, 2008 at 11:47 AM, Milan Milanovic
<milanmilanovich@(protected):
>
> I know that they are passed through serlvet, I'm just wondering if struts
> makes some error there.
>
> Could you be positive that Struts 2.0.11.1 doesn't do anything with
> session,
> i.e., session remains
> intact and session is set for folowing action in case of redirect action ?
>
> --
> Regards, Milan
>
>
>
> Al Sutton wrote:
> >
> > Milan,
> >
> > Please read up on how sessions work. They are NOT passed via URLs unless
> > you have cookies disabled, URL rewriting enabled on your appserver, and
> > a very sick sense of what a normal configuration is.
> >
> > Al.
> >
> >
> > Milan Milanovic wrote:
> >> Hi Dave,
> >>
> >> one short question, don't be angry ;-).
> >>
> >> The link which when clicked action class lost its session looks like
> >> this:
> >>
> >>
> http://localhost:8080/myproject/show.action?dojo.preventCache=1224214242324&id=4
> >>
> >> Is it possible that session is not passed through this link ?
> >>
> >> --
> >> Regards, Milan
> >>
> >>
> >> newton.dave wrote:
> >>
> >>>> Seriously, refactor your code. 5K lines of code in 7 files
> >>>> could hide all manner of nasties.
> >>>>
> >>> We have a 1M class where I'm at now. That's *1M* of source. 30k+ lines,
> >>> mostly if-elseif.
> >>>
> >>> It broke our cyclometric complexity meter, had to put in a bigger fuse.
> >>> It
> >>> makes Eclipse cry. It makes *me* cry. Kinda like this thread.
> >>>
> >>> Dave
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >>> For additional commands, e-mail: user-help@(protected)
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> > --
> > --
> > Al Sutton
> >
> > W: www.alsutton.com
> > T: twitter.com/alsutton
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18778594.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189623.ezm (zipped)
Well, actually no.
I work through my application 30 mins. with my session o.k., but when I came
to redirect action it dissapear. I will create test application with nearly
empty action class and jsp-s to try if redirect action
to another namespace really delete session, as it happes to me. I checked
this with log, variable is here, user click on redirect link, after showing
resulting jsp, there is no any variable in session. And what is interesting,
Acegi doesn't ask for login, so not whole session is deleted, only variables
I set in Struts action class.
--
Regards, Milan
stanlick wrote:
>
> Is it possible you have the server session-time-to-live set to a very
> small
> duration of time? This might explain why the sessions are disappearing.
>
>
> On Fri, Aug 1, 2008 at 11:47 AM, Milan Milanovic
> <milanmilanovich@(protected):
>
>>
>> I know that they are passed through serlvet, I'm just wondering if struts
>> makes some error there.
>>
>> Could you be positive that Struts 2.0.11.1 doesn't do anything with
>> session,
>> i.e., session remains
>> intact and session is set for folowing action in case of redirect action
>> ?
>>
>> --
>> Regards, Milan
>>
>>
>>
>> Al Sutton wrote:
>> >
>> > Milan,
>> >
>> > Please read up on how sessions work. They are NOT passed via URLs
>> unless
>> > you have cookies disabled, URL rewriting enabled on your appserver, and
>> > a very sick sense of what a normal configuration is.
>> >
>> > Al.
>> >
>> >
>> > Milan Milanovic wrote:
>> >> Hi Dave,
>> >>
>> >> one short question, don't be angry ;-).
>> >>
>> >> The link which when clicked action class lost its session looks like
>> >> this:
>> >>
>> >>
>> http://localhost:8080/myproject/show.action?dojo.preventCache=1224214242324&id=4
>> >>
>> >> Is it possible that session is not passed through this link ?
>> >>
>> >> --
>> >> Regards, Milan
>> >>
>> >>
>> >> newton.dave wrote:
>> >>
>> >>>> Seriously, refactor your code. 5K lines of code in 7 files
>> >>>> could hide all manner of nasties.
>> >>>>
>> >>> We have a 1M class where I'm at now. That's *1M* of source. 30k+
>> lines,
>> >>> mostly if-elseif.
>> >>>
>> >>> It broke our cyclometric complexity meter, had to put in a bigger
>> fuse.
>> >>> It
>> >>> makes Eclipse cry. It makes *me* cry. Kinda like this thread.
>> >>>
>> >>> Dave
>> >>>
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> >>> For additional commands, e-mail: user-help@(protected)
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>> > --
>> > --
>> > Al Sutton
>> >
>> > W: www.alsutton.com
>> > T: twitter.com/alsutton
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>> > For additional commands, e-mail: user-help@(protected)
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18778594.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189620.ezm (zipped)Hi all,
converting big S1 application and run into this problem.
Even though form is being validated in S1 version by validator.xml
there is an user field which was validated on focus lost by asynch call using Ajax - to find found if by user chosen
user name is still available. Call is then intercepted and handled in S1 ACTION with following construct
if (nameTaken) {
msg = new ActionMessage(NAME_TAKEN);
error = addMsgErrors(error,Constants.NAME_ERROR, msg);
this.addErrors(request, error);
return mapping.getInputForward();
}.
My question is - provided asynch check must stay - how to handle this in S2 -
or what is best practice to handle such a case - to create validation error programmatically?
Thanks,
Peter

Attachment:
user_189621.ezm (zipped)hi to all,
i am using ubuntu OS and recently i installed tomcat and starting developing
struts applications. in order to compile my own servlet classes it is
required to set classpath. i am failing to set classpath becoz i am new to
UBUNTU. can any one resolve my problem. waiting for you people's solution.
Regads,
Narasimha Raju
--
uni...

Attachment:
user_189627.ezm (zipped)Install yourself a nice looking IDE like eclipse, netbeans or from any
other vendor. They handle classpaths and Tomcat configurations with a
few clicks of your mouse.
2008/8/2 Narasimha Raju Naidu <feel2work@(protected)>:
> hi to all,
>
> i am using ubuntu OS and recently i installed tomcat and starting developing
> struts applications. in order to compile my own servlet classes it is
> required to set classpath. i am failing to set classpath becoz i am new to
> UBUNTU. can any one resolve my problem. waiting for you people's solution.
>
> Regads,
>
> Narasimha Raju
>
>
> --
>
>
>
> uni...
>

Attachment:
user_189628.ezm (zipped)thanks for your reply. i installed eclipse but inorder to strat struts
application what are the steps required any reference sites, please mention.
waiting for your reply.
Regrads...
On 8/2/08, Gabriel Belingueres <belingueres@(protected):
>
> Install yourself a nice looking IDE like eclipse, netbeans or from any
> other vendor. They handle classpaths and Tomcat configurations with a
> few clicks of your mouse.
>
> 2008/8/2 Narasimha Raju Naidu <feel2work@(protected)>:
> > hi to all,
> >
> > i am using ubuntu OS and recently i installed tomcat and starting
> developing
> > struts applications. in order to compile my own servlet classes it is
> > required to set classpath. i am failing to set classpath becoz i am new
> to
> > UBUNTU. can any one resolve my problem. waiting for you people's
> solution.
> >
> > Regads,
> >
> > Narasimha Raju
> >
> >
> > --
> >
> >
> >
> > uni...
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Regards,
Narasimha Raju.Naidu
Java Application Developer
WEZEN Technologies
Hyderabad.
uni...

Attachment:
user_189630.ezm (zipped)Struts are just jar files. From Eclipse POV, it is just another User
Library or J2EE Module Dependency.
You may find more help in an Eclipse specific mailing list/forum.
2008/8/2 Narasimha Raju Naidu <feel2work@(protected)>:
> thanks for your reply. i installed eclipse but inorder to strat struts
> application what are the steps required any reference sites, please mention.
> waiting for your reply.
>
>
> Regrads...
>
>
> On 8/2/08, Gabriel Belingueres <belingueres@(protected):
>>
>> Install yourself a nice looking IDE like eclipse, netbeans or from any
>> other vendor. They handle classpaths and Tomcat configurations with a
>> few clicks of your mouse.
>>
>> 2008/8/2 Narasimha Raju Naidu <feel2work@(protected)>:
>> > hi to all,
>> >
>> > i am using ubuntu OS and recently i installed tomcat and starting
>> developing
>> > struts applications. in order to compile my own servlet classes it is
>> > required to set classpath. i am failing to set classpath becoz i am new
>> to
>> > UBUNTU. can any one resolve my problem. waiting for you people's
>> solution.
>> >
>> > Regads,
>> >
>> > Narasimha Raju
>> >
>> >
>> > --
>> >
>> >
>> >
>> > uni...
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
> --
> Regards,
> Narasimha Raju.Naidu
> Java Application Developer
> WEZEN Technologies
> Hyderabad.
>
>
> uni...
>

Attachment:
user_189622.ezm (zipped)
Hi,
I define in my menu.jsp page two <s:div>. On the left the menu which always appears. On the right, the part which is updated after every action.
Then I have another jsp with a form, the xml validation file and the POJO.
The action definition is:
<action name="CrearUsuarioAction" method="crearUsuario" class="ads.web.action.UsuarioAction">
<result name="input">/src/jsp/crear/usuarioCrear.jsp</result>
<result name="error">/src/jsp/crear/usuarioCrear.jsp</result>
<result name="success">/src/jsp/buscar/usuarioDatos.jsp</result>
</action>
My <s:submit> definition is:
<s:submit theme="ajax" href="%{crearUsuario}" targets="divContenedor" value="Crear"></s:submit>,
where the target divContenedor is defined in the menu.jsp
1) First issue: validation issue
When I click on submit and something in the form is incorrect, all validation errors are shown and all fields are emptied, when only the incorrect parts should be shown.
2) Second issue (If I remove the validation file in order to test the action)
Then I don't obtain the user info.
Both issues "works fine" if I delete in the submit the targets attribute.
<s:submit theme="ajax" href="%{crearUsuario}" value="Crear"></s:submit>,
But then a new page is opened and the menu doesn't appear.
Any help, please? Ask me for code if necessary.
Thanks in advace.
_________________________________________________________________
¿Quieres los emoticonos y guiños más divertidos? Descárgate Internet Explorer 7, y consigue contenidos exclusivos cada semana. ¡Gratis!
http://www.vivelive.com/IEAK7

Attachment:
user_189624.ezm (zipped)Hi Francisco,
Issue number 2 takes precedence over Issue number 1 as if there's no
user info available, then validation fails, errors appear on every field
and the fields are empty.
Which implies the properties are not being set on your action (you can
verify that).
Which implies Dojo is not submitting the form values
Which implies either:
- the submit isn't contained in the form and needs a FormId; or
- you're only testing in IE and you've encountered a Dojo bug that
occurs if the target (divConenedor) contains the form that's being
posted. The problem in this case, is that the Loading... text
overwrites the form prior to it's values being read. If so, set the
showLoadingText="false" attribute on the submit button and this problem
is resolved. (you can verify this is the problem by testing in Firefox
before making the change)
Hope that helps,
Jeromy Evans
Francisco Exposito Aguilera wrote:
> Hi,
>
> I define in my menu.jsp page two <s:div>. On the left the menu which always appears. On the right, the part which is updated after every action.
>
> Then I have another jsp with a form, the xml validation file and the POJO.
>
> The action definition is:
>
> <action name="CrearUsuarioAction" method="crearUsuario" class="ads.web.action.UsuarioAction">
> <result name="input">/src/jsp/crear/usuarioCrear.jsp</result>
> <result name="error">/src/jsp/crear/usuarioCrear.jsp</result>
> <result name="success">/src/jsp/buscar/usuarioDatos.jsp</result>
> </action>
>
> My <s:submit> definition is:
>
> <s:submit theme="ajax" href="%{crearUsuario}" targets="divContenedor" value="Crear"></s:submit>,
>
> where the target divContenedor is defined in the menu.jsp
>
> 1) First issue: validation issue
>
> When I click on submit and something in the form is incorrect, all validation errors are shown and all fields are emptied, when only the incorrect parts should be shown.
>
> 2) Second issue (If I remove the validation file in order to test the action)
>
> Then I don't obtain the user info.
>
>
> Both issues "works fine" if I delete in the submit the targets attribute.
>
> <s:submit theme="ajax" href="%{crearUsuario}" value="Crear"></s:submit>,
>
> But then a new page is opened and the menu doesn't appear.
>
> Any help, please? Ask me for code if necessary.
>
> Thanks in advace.
>
> _________________________________________________________________
> ¿Quieres los emoticonos y guiños más divertidos? Descárgate Internet Explorer 7, y consigue contenidos exclusivos cada semana. ¡Gratis!
> http://www.vivelive.com/IEAK7
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.138 / Virus Database: 270.5.10/1584 - Release Date: 31/07/2008 12:00 PM
>
>
>

Attachment:
user_189626.ezm (zipped)
Hi,
the correct answer was the last one. After set showLoadingText="false" it works properly in IE and Firefox. I hadn't tested it on Firefox and it worked before making the change.
Thanks a lot...
> Date: Sat, 2 Aug 2008 20:59:18 +1000
> From: jeromy.evans@(protected)
> To: user@(protected)
> Subject: Re: Can't obtain object in POJO using AJAX and problem with validation
>
> Hi Francisco,
>
> Issue number 2 takes precedence over Issue number 1 as if there's no
> user info available, then validation fails, errors appear on every field
> and the fields are empty.
>
> Which implies the properties are not being set on your action (you can
> verify that).
> Which implies Dojo is not submitting the form values
> Which implies either:
> - the submit isn't contained in the form and needs a FormId; or
> - you're only testing in IE and you've encountered a Dojo bug that
> occurs if the target (divConenedor) contains the form that's being
> posted. The problem in this case, is that the Loading... text
> overwrites the form prior to it's values being read. If so, set the
> showLoadingText="false" attribute on the submit button and this problem
> is resolved. (you can verify this is the problem by testing in Firefox
> before making the change)
>
> Hope that helps,
> Jeromy Evans
>
> Francisco Exposito Aguilera wrote:
> > Hi,
> >
> > I define in my menu.jsp page two <s:div>. On the left the menu which always appears. On the right, the part which is updated after every action.
> >
> > Then I have another jsp with a form, the xml validation file and the POJO.
> >
> > The action definition is:
> >
> > <action name="CrearUsuarioAction" method="crearUsuario" class="ads.web.action.UsuarioAction">
> > <result name="input">/src/jsp/crear/usuarioCrear.jsp</result>
> > <result name="error">/src/jsp/crear/usuarioCrear.jsp</result>
> > <result name="success">/src/jsp/buscar/usuarioDatos.jsp</result>
> > </action>
> >
> > My <s:submit> definition is:
> >
> > <s:submit theme="ajax" href="%{crearUsuario}" targets="divContenedor" value="Crear"></s:submit>,
> >
> > where the target divContenedor is defined in the menu.jsp
> >
> > 1) First issue: validation issue
> >
> > When I click on submit and something in the form is incorrect, all validation errors are shown and all fields are emptied, when only the incorrect parts should be shown.
> >
> > 2) Second issue (If I remove the validation file in order to test the action)
> >
> > Then I don't obtain the user info.
> >
> >
> > Both issues "works fine" if I delete in the submit the targets attribute.
> >
> > <s:submit theme="ajax" href="%{crearUsuario}" value="Crear"></s:submit>,
> >
> > But then a new page is opened and the menu doesn't appear.
> >
> > Any help, please? Ask me for code if necessary.
> >
> > Thanks in advace.
> >
> > _________________________________________________________________
> > ¿Quieres los emoticonos y guiños más divertidos? Descárgate Internet Explorer 7, y consigue contenidos exclusivos cada semana. ¡Gratis!
> > http://www.vivelive.com/IEAK7
> >
> > No virus found in this incoming message.
> > Checked by AVG - http://www.avg.com
> > Version: 8.0.138 / Virus Database: 270.5.10/1584 - Release Date: 31/07/2008 12:00 PM
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
_________________________________________________________________
¡Lo mejor de MSN y Windows Live en tu móvil! Hotmail, Messenger, Spaces… Pruébalo ya y disfruta de todas sus ventajas donde quieras
http://serviciosmoviles.es.msn.com/

Attachment:
user_189629.ezm (zipped)Hi all,
I am working with file uploads and use the corresponding interceptor. This
is working very well but not constantly.
I added to my action the three setter methods along with their corresponding
variables.
I upload my files, on after the other, and at some point my variable of type
File which is supposed to represent my uploaded file is null.
I read lots of things on the web, but haven't found a solution, so it's up
to you guys !
Thanks in advance,
Cheers,
Matthieu

Attachment:
user_189631.ezm (zipped)2008/7/29 durbinjo593@(protected)>
> [...] First, might I make the assumption that type
> converters and validators can be represented as beans. Reason being is
> because I need to be able to do dependency injection via spring.
Converters as beans: that's not a problem. I have a similar setup with a
RegionConverter, and I inject the RegionDao inside the converter. If you
use Spring 2.5 or above, you can use the following annotation (which is
infinitely handy)
import javax.annotation.Resource;
public class RegionConverter extends StrutsTypeConverter {
@Resource(name = "regionDao") private RegionDao regionDao;
...
}
No need even for a setRegionDao() method! It works great! And the
definition of the Spring bean becomes merely:
<bean name="regionConverter"
class="com.mysite.locale.converters.RegionConverter" />
There again, no need to inject the reference to the "regionDao" bean! The
@Resource annotation does the work!
Now, as to the rest of your issue, I've never used ,properties files for
setting converters. What if you tried with annotations? Find the class
containing the property that requires a converter (usually it's the action,
but it could be the model if your action is ModelDriven). Annotate that
class with @Conversion. Then annotate the getter of that property with
@TypeConverter(converter = "beanName"). In my case, I have an action that
implements ModelDrive<User>, and here's an excerpt of what my User class
looks like:
import
com.opensymphony.xwork2.conversion.annotations.Conversion;
import
com.opensymphony.xwork2.conversion.annotations.TypeConversion;
@Conversion
public class User extends AbstractPersistentObject {
...
private Region birthplace;
@TypeConversion(converter = "regionConverter")
public Region getBirthplace() { return birthplace; }
public void setBirthplace(Region region) { this.birthplace = region; }
...
}
I hope that may help!

Attachment:
user_189632.ezm (zipped)I placed validation code for one of my fields inside action's method
and I'm trying to call it using OGNL expression:
@Validation
public class RegistrationAction extends ActionSupport {
private String username;
public boolean isUsernameAvailable() {
// ...
}
@RequiredStringValidator(shortCircuit = true, trim = true, message = "...")
@FieldExpressionValidator(expression = "isUsernameAvailable()",
message = "...")
public String getUsername() {
return username;
}
}
Instead, when isUsernameAvailable() is supposed to be called I get
this warning in Tomcat console:
"Got result of null when trying to get Boolean."
Why, and how can I fix it?

Attachment:
user_189633.ezm (zipped)Since it's "expression" is an OGNL expression, have you tried instead:
@FieldExpressionValidator(expression = "usernameAvailable", message = "...")
which would attempt to find, in turn, getUsernameAvailable() and then
isUsernameAvailable()... I would be curious to know if that works.
My two cents...
2008/8/2 Hrvoje Ban <kyrogar@(protected)>
> I placed validation code for one of my fields inside action's method
> and I'm trying to call it using OGNL expression:
>
> @FieldExpressionValidator(expression = "isUsernameAvailable()",
> message = "...")
>

Attachment:
user_189634.ezm (zipped)On Sat, Aug 2, 2008 at 9:17 PM, Pierre Thibaudeau
<pierre.thibaudeau@(protected):
> Since it's "expression" is an OGNL expression, have you tried instead:
>
> @FieldExpressionValidator(expression = "usernameAvailable", message = "...")
>
> which would attempt to find, in turn, getUsernameAvailable() and then
> isUsernameAvailable()... I would be curious to know if that works.
> My two cents...
I tried that, I even renamed function to getUsernameAvailable(), but
it didn't help.

Attachment:
user_189637.ezm (zipped)Sorry to hear it didn't work.
I am having my own share of problems with that ExpressionValidator, and I
found one useful suggestion in the following doc:
http://www.opensymphony.com/xwork/wikidocs/ExpressionValidator%20Tips.html
Look for the section entitled "Use the validation message for debugging".
I hope this may help you identify the problem!
2008/8/2 Hrvoje Ban <kyrogar@(protected)>
> I tried that, I even renamed function to getUsernameAvailable(), but
> it didn't help.
>

Attachment:
user_189639.ezm (zipped)On Sun, Aug 3, 2008 at 5:04 AM, Pierre Thibaudeau
<pierre.thibaudeau@(protected):
> Sorry to hear it didn't work.
>
> I am having my own share of problems with that ExpressionValidator, and I
> found one useful suggestion in the following doc:
> http://www.opensymphony.com/xwork/wikidocs/ExpressionValidator%20Tips.html
> Look for the section entitled "Use the validation message for debugging".
>
> I hope this may help you identify the problem!
It did :-) isUsernameAvailable() was throwing exception which caused
OGNL to silently fail.
Thanks for helping out.

Attachment:
user_189635.ezm (zipped)Hi,all
I set struts-action-extension="" for no extension as "action" or "do" by
default for struts2, and mapping all url to struts2 dispatcher as "/*".
But, the problem is I can not access any jsp, html,css and js files. The
page display:there are no action mapping for XXX.jsp action.
Should any one give me some suggestions or referenced links? Always
thanks very much.
--
Thanks!
Mobile: +086-15864011231
EMail>alk:saharabear@(protected)
EMail&yahoo:jia_haolin@(protected)
Skype:saharabear
Haulyn Jason

Attachment:
user_189636.ezm (zipped)
Hi
I am having a problem in getting the confirmation of a delete operation. My
requirement is that:
I have a list of user and I have a DELETE link for each and evey user in
the list. I already defined a delete action mapping for the user but before
deleting the user I want to get confirmation from the admin whether he
wants to delete that user or not and then I want to call the delete action
mapping my code is like that:
In the userList.jsp:
<s:url id="deleteUrl" action="deleteUser" namespace="user">
<s:param name="user.userID" value="userID" />
</s:url>
<s:a href="%{deleteUrl}">
<s:text name="Delete" />
</s:a>
My action Mapping is:
<action name="deleteUser" class="com.support.struts.action.UserAction"
method="deleteUser">
<result>/userList.jsp</result>
</action>
If you need any further info Please do let me know.
Please advice me how should I handle the user confirmation. If possible
please attach a sample code for it.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189638.ezm (zipped)Hi,
i'm looking for a possibility to realize EJB injection for struts
actions. The simpler the better.
I know that there is a EJB plugin in the registry but currently (and at
least for the last 3 weeks) there is now download on the project site.
Some explanation how this is possible in struts and a working example
would be great.
Greetings,
Alex

Attachment:
user_189640.ezm (zipped)Hi,
I've followed this article and it works great for me.
http://blogs.cuetech.eu/roller/psartini/entry/in_struts2_auf_ejb3_session
Marc
� schrieb:
> i'm looking for a possibility to realize EJB injection for struts
> actions. The simpler the better.
> I know that there is a EJB plugin in the registry but currently (and at
> least for the last 3 weeks) there is now download on the project site.
>
> Some explanation how this is possible in struts and a working example
> would be great.
>

Attachment:
signature.asc (zipped)
Attachment:
user_189641.ezm (zipped)
Andy-
the short answer is you don't want
user-set parameters to override your static parameters.
btw for 2.1.1 you also need: "actionMappingParams"
Which means your stack should be:
<interceptor-stack name="paramsPrepareParamsStack">
.......
<interceptor-ref name="params"/>
<interceptor-ref name="actionMappingParams"/>
<interceptor-ref name="staticParams"/>
...
<interceptor-ref name="prepare"/>
...
<interceptor-ref name="params"/>
<interceptor-ref name="actionMappingParams"/>
<interceptor-ref name="staticParams"/>
</interceptor-stack>
(courtesy of dale)
http://www.nabble.com/about-paramsPrepareParamsStack-td15462644.html
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> Date: Fri, 1 Aug 2008 05:59:57 -0700
> From: andy.law@(protected)
> To: user@(protected)
> Subject: paramsPrepareParams vs. staticParams
>
>
> Is there any design reason why staticParams is not called before prepare in
> the paramsPrepareParams stack?
>
> Also, in a potential RFE sort of vein, would there be any support for a
> request for a way of making staticParams non-overwritable? (i.e. the params
> defined in the action configuration XML and specified as non-mutable would
> not be overwritten by clever folk sticking
> '?paramname=value¶m2name=value2' at the end of any given URL)
>
> Later,
>
> Andy
> --
> View this message in context: http://www.nabble.com/paramsPrepareParams-vs.-staticParams-tp18773842p18773842.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
_________________________________________________________________
Got Game? Win Prizes in the Windows Live Hotmail Mobile Summer Games Trivia Contest
http://www.gowindowslive.com/summergames?ocid=TXT_TAGHM

Attachment:
user_189642.ezm (zipped)You can configure the params interceptor to ignore some parameters,
passing regular expressions to the excludeParams attribute.
http://struts.apache.org/2.x/docs/parameters-interceptor.html
musachy
On Fri, Aug 1, 2008 at 12:53 PM, Gabriel Belingueres
<belingueres@(protected):
> staticParams provide some sort of default parameter injection when you
> declare an action in your struts.xml, but it should be ok to override
> this value if it came as a parameter. If the interceptor order would
> be the opposite, then static parameters would take precedence over
> regular parameters.
>
> As you said, actions are POJOs and its properties can be used with
> many design intentions:
> 1) hold URL parameters
> 2) hold static initialization parameters
> 3) Hold action result objects (but you want to write a setter too to
> perform some repetitive logic)
> 4) hold injected objects (think S2 beans or Spring's)
>
> From the security perspective, for the 4) case is not much I think
> (because probably the ParameterInterceptor will throw an exception
> when type conversion fails).
> To differentiate between the 1) and both 2) and 3), it could be an
> improvement if with some annotation you could tag a parameter as
> "static only" and then the ParameterInterceptor will not try to set
> any value there (or throw an exception).
>
> 2008/8/1 Andy Law <andy.law@(protected)>:
>>
>> Is there any design reason why staticParams is not called before prepare in
>> the paramsPrepareParams stack?
>>
>> Also, in a potential RFE sort of vein, would there be any support for a
>> request for a way of making staticParams non-overwritable? (i.e. the params
>> defined in the action configuration XML and specified as non-mutable would
>> not be overwritten by clever folk sticking
>> '?paramname=value¶m2name=value2' at the end of any given URL)
>>
>> Later,
>>
>> Andy
>> --
>> View this message in context: http://www.nabble.com/paramsPrepareParams-vs.-staticParams-tp18773842p18773842.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd