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" wrote: Is it working even with the exception? This result is a little bit different, as it take as param

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 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 ActionMapping is null. Oth

Re: S1: Nocache and SSL

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

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

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 wrote: > > once again thanks for giving me answer Mr.Robert > > .

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: 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 : > > Hi, > > Right now my application supports localization for portuguese. Resource > bundle name is MessageResources_pt.properties. As I know resource bundle > f

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 wrote: > 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 gre

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

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

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 (http://struts.apache.org/2.x/docs

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 2:23

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}"}, type=Serv

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 lan

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 imp

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 wrote: > if you are an expert in web dev > hmm ..., my answer i never make web dev ... i'm too modest > nice

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 Antonio
2008/12/18 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 Ok I try to explain myself. To show a popup in a browser you need a 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 > 2008/12/18 elyes sallem : > > those who are interested : >

Re: call javascript from an action class

2008-12-18 Thread Antonio
2008/12/18 elyes sallem : > 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 in Java programs, n

Fwd: call javascript from an action class

2008-12-18 Thread elyes sallem
-- Forwarded message -- From: elyes sallem Date: 2008/12/18 Subject: Fwd: call javascript from an action class To: Struts Users Mailing List those who are interested : example to call javascript via java : http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ (

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 Date: 2008/12/18 Subject: call javascript from an action class To: Struts Users Maili

Re: call javascript from an action class

2008-12-18 Thread Antonio
2008/12/18 elyes sallem : > 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

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 > On Thu, Dec 18, 2008 at 5:04 PM, elyes sallem > wrote: > > dou you understand my question first?, > > Yes. > > Nils-H > > - > To unsubscribe, e-mail: user-unsubscr...@stru

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 wrote: > dou you understand my question first?, Yes. Nils-H - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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 resp

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 wrote: > i wanna display a pop up information > > 2008/12/18 Nils-Helge Garli Hegvik >

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 wrote: > in fact , i wanna display a message from an action > i won't use joptionPane > is there an alternative,

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

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 wrote: > Hello, > i wanna call javascript from an ac

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 > 2008/12/18 elyes sallem : > > Hello, > > i wanna call javascript from an action class, > > any one has an example? > > DWR 2.0 should have such fu

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 wrote: > > This may be trivial, in which case I apologise in advance. > > I have

Re: call javascript from an action class

2008-12-18 Thread Lukasz Lenart
2008/12/18 elyes sallem : > 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 unsubscribe, e-mail: user-un

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 t

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.

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 > JSP EL isn't a scriptlet. > > --- On Thu, 12/18/08, Juanjo Cuadrado wrote: > > From: Juanjo Cuadrado > Subject: Re: Recover property's value of bean from jsp > To: "Stru

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 wrote: From: Juanjo Cuadrado Subject: Re: Recover property's value of bean from jsp To: "Struts Users Mailing List" Date: Thursday, December 18, 2008, 10:04 AM -Inline Attachment Follows- I would like not user Java scri

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

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? > > As Nils said the "Struts 2 way" would be to expose the bean as an action property rather tha

Re: what is the repalcement for saveErrors method?

2008-12-18 Thread taj uddin
Thanks Mr.Newton --- On Thu, 12/18/08, Dave Newton wrote: From: Dave Newton Subject: Re: what is the repalcement for saveErrors method? To: "Struts Users Mailing List" Date: Thursday, December 18, 2008, 6:42 AM --- On Thu, 12/18/08, taj uddin wrote: > I am working on a application where i wou

Re: Recover property's value of bean from jsp

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

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

Re: what is the repalcement for saveErrors method?

2008-12-18 Thread Dave Newton
--- On Thu, 12/18/08, taj uddin 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 should i use in st

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

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 me

AW: How can I "parameterize" include files?

2008-12-18 Thread Jan Fröhlich
Hi James, is it possible for you to use the tag?? I think that is exactly what you are searching for. As an example: downtime http://www.mylink.org To make this work, you have to create a folder "/template/foo" and place the menuEntry.jsp in it. This file coul

[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 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 and i'm observing that the underlying action class does not have an appr

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 : > > I had found this pages before. > My pr