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
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
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
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
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
>
> .
--- 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
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
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
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
--- 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
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
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
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
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
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
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
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
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
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 :
>
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
-- 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/
(
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
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
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
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
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
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
>
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,
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
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
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
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
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
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
Hello,
i wanna call javascript from an action class,
any one has an example?
Thanks
Regards
Elyes.
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
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
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
>
> 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
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
>
>
>
> 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
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
--- 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
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
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
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
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
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
48 matches
Mail list logo