Re: JDK Requirements for Struts 1.2 and 2.x

2008-12-18 Thread Paweł Wielgus
Hi Chris, i'm using S1 and S2 with jdk 1.6, but i don't know what's the story with Weblogic 10.3, then again if weblogic 10.3 runs on jdk1.6 it should work. Best for You would be to try it out - simply. Best greetings, Paweł Wielgus. 2008/12/18 Chris_W christian.wu...@deutsche-leasing.com: I

[S2] UI Tags: Wrong property name handled too leniently (same with OGNL)

2008-12-18 Thread Robert Graf-Waczenski
Hi! With Struts1, i am used to getting runtime exceptions when for example html:text name=whatever was used and when the underlying form class did not offer a getter or setter for the property whatever. Now with Struts2 (V2.0.14), i'm using s:textfield name=whatever and i'm observing that

AW: How can I parameterize include files?

2008-12-18 Thread Jan Fröhlich
Hi James, is it possible for you to use the s:component.. tag?? I think that is exactly what you are searching for. As an example: s:component template=menuEntry.jsp theme=foo s:param name=menuNamedowntime/s:param s:param name=menuLinkhttp://www.mylink.org/s:param

what is the repalcement for saveErrors method?

2008-12-18 Thread taj uddin
Hi, I am working on a application where i would convert the code developed with struts1.2 to struts2.1 In my struts1.2 application ActionErrors were replaced with addActionMessage or addActionError methods in struts2.1 But what method should i use in struts2.1 if i have to replace saveErrors

Re: [S2] UI Tags: Wrong property name handled too leniently (same with OGNL)

2008-12-18 Thread Dave Newton
This was brought up some time ago by Matt Raible--searching the archive may provide more helpful information. To be honest I don't really remember what, if any, the resolution was. If it hasn't been dealt with I'll probably look into it now that my time is somewhat more available. Dave ---

Re: what is the repalcement for saveErrors method?

2008-12-18 Thread Dave Newton
--- On Thu, 12/18/08, taj uddin tajuddi...@yahoo.com wrote: I am working on a application where i would convert the code developed with struts1.2 to struts2.1 In my struts1.2 application ActionErrors were replaced with addActionMessage or addActionError methods in struts2.1 But what method

Recover property's value of bean from jsp

2008-12-18 Thread Juanjo Cuadrado
Hi, I have a Action class than extends ActionSupport and implements ModelDriven and Preparable. Into prepare method, I put in request scope a class bean. If in my jsp (into a form) I can recover the property's value with a s:textfield, but how to recover this value without s:textfield? Ej.

Re: Recover property's value of bean from jsp

2008-12-18 Thread Nils-Helge Garli Hegvik
s:property value=WHAT_I_HAVE_TO_PUT_HERE/ Zanks Assuming you expose the bean with a property on your action: s:property value=propertyName/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

Re: what is the repalcement for saveErrors method?

2008-12-18 Thread taj uddin
Thanks Mr.Newton --- On Thu, 12/18/08, Dave Newton newton.d...@yahoo.com wrote: From: Dave Newton newton.d...@yahoo.com Subject: Re: what is the repalcement for saveErrors method? To: Struts Users Mailing List user@struts.apache.org Date: Thursday, December 18, 2008, 6:42 AM --- On Thu,

Re: Recover property's value of bean from jsp

2008-12-18 Thread Dave Newton
Into prepare method, I put in request scope a class bean. If in my jsp (into form) I can recover the property's value with a s:textfield, but how to recover this value without s:textfield? s:property value=WHAT_I_HAVE_TO_PUT_HERE/ As Nils said the Struts 2 way would be to expose the bean

Re: Recover property's value of bean from jsp

2008-12-18 Thread Juanjo Cuadrado
I would like not user Java scriptlet in my JSP. Only tags. have you any examples? 2008/12/18 Dave Newton newton.d...@yahoo.com Into prepare method, I put in request scope a class bean. If in my jsp (into form) I can recover the property's value with a s:textfield, but how to recover this

Re: Recover property's value of bean from jsp

2008-12-18 Thread Dave Newton
JSP EL isn't a scriptlet. --- On Thu, 12/18/08, Juanjo Cuadrado jjcuadr...@gmail.com wrote: From: Juanjo Cuadrado jjcuadr...@gmail.com Subject: Re: Recover property's value of bean from jsp To: Struts Users Mailing List user@struts.apache.org Date: Thursday, December 18, 2008, 10:04 AM

Re: Recover property's value of bean from jsp

2008-12-18 Thread Juanjo Cuadrado
Sorry, I don't knew it. But, can you give me any example, please? Or, any URL with info about this. 2008/12/18 Dave Newton newton.d...@yahoo.com JSP EL isn't a scriptlet. --- On Thu, 12/18/08, Juanjo Cuadrado jjcuadr...@gmail.com wrote: From: Juanjo Cuadrado jjcuadr...@gmail.com Subject:

call javascript from an action class

2008-12-18 Thread elyes sallem
Hello, i wanna call javascript from an action class, any one has an example? Thanks Regards Elyes.

Accessing struts.xml values from an Action

2008-12-18 Thread Andy Law
This may be trivial, in which case I apologise in advance. I have an application that has several action classes (20 or so), each of which belongs conceptually to a *group* of actions. I would like to be able to extract lists of Actions by group from within a JSP/Action in order to present them

Re: call javascript from an action class

2008-12-18 Thread Lukasz Lenart
2008/12/18 elyes sallem elyes.sal...@gmail.com: Hello, i wanna call javascript from an action class, any one has an example? DWR 2.0 should have such functionality. Regards -- Lukasz http://www.lenart.org.pl/ - To

Re: Accessing struts.xml values from an Action

2008-12-18 Thread Musachy Barroso
If what you want is to be able to access the configured actions, look at the config browser plugin, which does that, it will get you started in the right direction. musachy On Thu, Dec 18, 2008 at 10:32 AM, Andy Law andy@roslin.ed.ac.uk wrote: This may be trivial, in which case I apologise

Re: call javascript from an action class

2008-12-18 Thread elyes sallem
in fact , i wanna display a message from an action i won't use joptionPane is there an alternative, for a web application 2008/12/18 Lukasz Lenart lukasz.len...@googlemail.com 2008/12/18 elyes sallem elyes.sal...@gmail.com: Hello, i wanna call javascript from an action class, any one has

Re: call javascript from an action class

2008-12-18 Thread Nils-Helge Garli Hegvik
I would be a lot easier to help if you gave some examples what you're actually trying to do. Invoking javascript from the action doesn't make much sense. Please provide som more information. Nils-H On Thu, Dec 18, 2008 at 4:27 PM, elyes sallem elyes.sal...@gmail.com wrote: Hello, i wanna call

Re: call javascript from an action class

2008-12-18 Thread elyes sallem
i wanna display a pop up information 2008/12/18 Nils-Helge Garli Hegvik nil...@gmail.com I would be a lot easier to help if you gave some examples what you're actually trying to do. Invoking javascript from the action doesn't make much sense. Please provide som more information. Nils-H On

Re: call javascript from an action class

2008-12-18 Thread Nils-Helge Garli Hegvik
Usually, you do those things with javascript in the browser. I suggest that you google for a web application/javascript tutorial. Nils-H On Thu, Dec 18, 2008 at 4:38 PM, elyes sallem elyes.sal...@gmail.com wrote: in fact , i wanna display a message from an action i won't use joptionPane is

Re: call javascript from an action class

2008-12-18 Thread Nils-Helge Garli Hegvik
As mentioned, google is a good source for information: http://www.google.com/search?q=javascript+tutorial http://www.google.com/search?q=javascript+popup Nils-H On Thu, Dec 18, 2008 at 4:40 PM, elyes sallem elyes.sal...@gmail.com wrote: i wanna display a pop up information 2008/12/18

Re: call javascript from an action class

2008-12-18 Thread elyes sallem
dou you understand my question first?, i don't want to display a confirmation message from a javascript i wanna display it from an action, so from java class i wanna make query in database depending on the result of the query, i will display the pop up and second time, depending on the user is

Re: call javascript from an action class

2008-12-18 Thread Nils-Helge Garli Hegvik
On Thu, Dec 18, 2008 at 5:04 PM, elyes sallem elyes.sal...@gmail.com wrote: dou you understand my question first?, Yes. Nils-H - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Re: call javascript from an action class

2008-12-18 Thread elyes sallem
i'm not sure Elyes 2008/12/18 Nils-Helge Garli Hegvik nil...@gmail.com On Thu, Dec 18, 2008 at 5:04 PM, elyes sallem elyes.sal...@gmail.com wrote: dou you understand my question first?, Yes. Nils-H - To unsubscribe,

Re: call javascript from an action class

2008-12-18 Thread Antonio
2008/12/18 elyes sallem elyes.sal...@gmail.com: i'm not sure Yes he did - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Fwd: call javascript from an action class

2008-12-18 Thread elyes sallem
those who are interested : example to call javascript via java : http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ Regards Elyes -- Forwarded message -- From: elyes sallem elyes.sal...@gmail.com Date: 2008/12/18 Subject: call javascript from an action class

Fwd: call javascript from an action class

2008-12-18 Thread elyes sallem
-- Forwarded message -- From: elyes sallem elyes.sal...@gmail.com Date: 2008/12/18 Subject: Fwd: call javascript from an action class To: Struts Users Mailing List user@struts.apache.org those who are interested : example to call javascript via java :

Re: call javascript from an action class

2008-12-18 Thread Antonio
2008/12/18 elyes sallem elyes.sal...@gmail.com: those who are interested : example to call javascript via java : http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ Eh... I suppose that you don't understand your own questions :-D This is an article about using of Javascript

Re: call javascript from an action class

2008-12-18 Thread elyes sallem
my question was : i wanna call javascript from an action class, any one has an example? so if an action is a html for you, sorry, but now i'm too busy to explain to you the difference have a nice day ... Elyes 2008/12/18 Antonio antonio.petre...@gmail.com 2008/12/18 elyes sallem

Re: call javascript from an action class

2008-12-18 Thread Antonio
2008/12/18 elyes sallem elyes.sal...@gmail.com: my question was : i wanna call javascript from an action class, any one has an example? so if an action is a html for you, sorry, but now i'm too busy to explain to you the difference Ok I try to explain myself. To show a popup in a browser you

Re: call javascript from an action class

2008-12-18 Thread Nils-Helge Garli Hegvik
Just to get this straight You _are_ developing a web application? Or are you creating an applet? Have you done web application development before? If not, I suggest that you take some time learning the basics and fundamentals of web application/servlet development. As always, google is a good

Re: call javascript from an action class

2008-12-18 Thread Nils-Helge Garli Hegvik
I'm sorry if it offended you, but if you cared to take some of our advices, you might understand that we're actually trying to help. Nils-H On Thu, Dec 18, 2008 at 6:21 PM, elyes sallem elyes.sal...@gmail.com wrote: if you are an expert in web dev hmm ..., my answer i never make web dev ...

Re: call javascript from an action class

2008-12-18 Thread Carlos Zuniga
And also, you should try and loose that attitude. People here is trying to help and remember that they are taking the time to read and answer emails for FREE, so we should appreciate their efforts. Carlos Luis Zúñiga Sibaja __ carlosluiszun...@gmail.com divide et

localization support for pt_PT and pt_BR

2008-12-18 Thread riya
Hi, Right now my application supports localization for portuguese. Resource bundle name is MessageResources_pt.properties. As I know resource bundle file must follow the same naming convention as the default properties file, except that it must include the two-letter ISO language code of the

Re: Exception when using ServletActionRedirectResult with @Result

2008-12-18 Thread Amin Mohammed-Coleman
Hi Thanks for your response: Please find below my CreateContactAction class: @SuppressWarnings(serial) @Namespace(value=/) @Results({ @Result(name=success, value=viewContact, params= {actionName, viewContact,contactId,${contactId}, contactType,$ {contactType}},

Re: Exception when using ServletActionRedirectResult with @Result

2008-12-18 Thread Musachy Barroso
Is it working even with the exception? This result is a little bit different, as it take as parameters, not only its own parameters, but parameters passed to the redirect, so OGNL will complain about it because those fields are not defined in the result class. musachy On Thu, Dec 18, 2008 at

Re: call javascript from an action class

2008-12-18 Thread Al Sutton
Actions do not control the users browser and therefore can't create popups. JSP Pages are sent to the browser which can contain Javascript which can do what you want. Follow Nils-H's links to see how to do create a pop-up in a page, and the Struts2 tutorials

[OT] Re: call javascript from an action class

2008-12-18 Thread Dave Newton
--- On Thu, 12/18/08, elyes sallem wrote: so if an action is a html for you, sorry, but now i'm too busy to explain to you the difference No, the action is the Java part. The HTML part is generated by the JSP page--this is also where the JavaScript layer lives. Unless you're writing an

[S2] Use i18n with parameters in velocity templates?

2008-12-18 Thread James Carr
Hi All, We're currently using struts 2 and using velocity in order to include some existing templates from another project. Everything has been working great... until we try to use i18n with parameters. I've read all the pages on the struts 2 site, there's no clear example of what we're supposed

Re: [S2] Use i18n with parameters in velocity templates?

2008-12-18 Thread James Carr
Could you guys just tell me where the #stext velocity macro is defined? PLEASE!? On Thu, Dec 18, 2008 at 4:16 PM, James Carr james.r.c...@gmail.com wrote: Hi All, We're currently using struts 2 and using velocity in order to include some existing templates from another project. Everything has

Re: localization support for pt_PT and pt_BR

2008-12-18 Thread Paweł Wielgus
Hi riya, eclipse plugin ResourceBoundleEditor might help You with that kind of stuff. Best greetings, Pawel Wielgus. 2008/12/18, riya rachan...@gmail.com: Hi, Right now my application supports localization for portuguese. Resource bundle name is MessageResources_pt.properties. As I know

Re: [S2] Use i18n with parameters in velocity templates?

2008-12-18 Thread Dave Newton
--- On Thu, 12/18/08, James Carr wrote: Could you guys just tell me where the #stext velocity macro is defined? PLEASE!? Chill, I was eating dinner. AFAICT the #stext macro isn't set up to be a multi-line macro (like #sform is), which I think would preclude the use of nested macros like the

Re: how many forms do i need??

2008-12-18 Thread Paul Benedict
If you are using Struts 1, extend from ValidatorActionForm which chooses the validation config based on the URI. That means you can have one form, but different configurations per use case. On Wed, Dec 17, 2008 at 5:14 AM, m.harig m.ha...@gmail.com wrote: once again thanks for giving me answer

Re: Global exception handling prevents logging

2008-12-18 Thread Paul Benedict
If you want both, create a logger in your handler and log the exception given to you. On Wed, Dec 17, 2008 at 4:27 AM, Marsman mars@gmx.de wrote: Hi! As mentioned in my Struts 2 guide, I've coded a general error page for unexpected errors and included it over the global-message-mapping

Re: S1: Nocache and SSL

2008-12-18 Thread Paul Benedict
Sounds like an interesting idea. Are you using set-property within the action config to turn caching off only where you need it? On Fri, Dec 5, 2008 at 9:13 AM, Givler, Eric egiv...@state.pa.us wrote: I'm using Struts 1.3.5. I've run into a snag lately that my struts-config.xml controller

Re: Null mapping reference in MappingDispatchAction

2008-12-18 Thread Paul Benedict
Do you have a stack trace? On Tue, Dec 2, 2008 at 2:36 PM, Adam Gordon adam.gor...@readytalk.com wrote: Hi- We're using a MappingDispatchAction (Struts 1.2.9) and occasionally when a user makes a request to the URI for this action we get a NullPointerException in the class because the

Re: Exception when using ServletActionRedirectResult with @Result

2008-12-18 Thread Amin Mohammed-Coleman
Hi No it does not work as exception is thrown. I can't understand how it doesn't work as I have followed the example from site. Cheers Amin On 18 Dec 2008, at 19:26, Musachy Barroso musa...@gmail.com wrote: Is it working even with the exception? This result is a little bit different, as