Re: bean:message inside onclick javascript string?

2004-03-23 Thread Saul Q Yuan
Try move the onclick javascript function out, something like this: function verify() { var msg = ""; return confirm(msg); } Saul - Original Message - From: Craig Berry To: [EMAIL PROTECTED] Sent: Tu

RE: bean:message prints the KEY, not the MESSAGE

2004-03-20 Thread Fowler, David
To: Struts Users Mailing List Subject: RE: bean:message prints the KEY, not the MESSAGE hi david, yes still looking at struts. i wonder if it's better to place a copy(*ouch!*) of the resource files in iPlanet's "preferred" location (which would be ...?), or try to get iPlanet

RE: bean:message prints the KEY, not the MESSAGE

2004-03-20 Thread Newcomer, Kenneth
: Saturday, March 20, 2004 10:59 AM To: Struts Users Mailing List Subject: RE: bean:message prints the KEY, not the MESSAGE I'm encouraged to see that you are still looking at Struts. As I understand it, there is a property that I set in my distribution that displays the KEY when it canno

RE: bean:message prints the KEY, not the MESSAGE

2004-03-20 Thread Fowler, David
I'm encouraged to see that you are still looking at Struts. As I understand it, there is a property that I set in my distribution that displays the KEY when it cannot find the corresponding value. IPlanet 6.05 does not look for the resource files in the traditional (Struts) location. What thi

RE: bean:message format ssn

2004-03-11 Thread Shahak.Nagiel
There's a few options, off the top of my head: -Do the string manipulation in the (preprocessing) action -Use a combination of the Jakarta String taglib (http://jakarta.apache.org/taglibs/doc/string-doc/string-1.0.1/index.html) tags (such as left, right, and mid) to parse out the value (since SS

Re: bean:message and characters that are sensitive in HTML

2003-11-26 Thread James Mitchell
On Wed, 26 Nov 2003, Duma Rolando wrote: > Hello everybody, > I would like to know if there is something like the filter attribute present > in the bean:write tag that I can use with the bean:message tag. > The problem is that I want to use the same i18n key inside a jsp and also > for a plain tex

RE: bean:message MessageFormat and number formating

2003-11-19 Thread Paul McCulloch
The jstl eqivalent of bean:message allows you to pass arguments via the tag body, so you can use another tag inside the body: Paul -Original Message- From: Carl [mailto:[E

Re: bean:message not parse HTML tags?

2003-09-10 Thread David Graham
--- Michael Remijan <[EMAIL PROTECTED]> wrote: > > Hello forum: > > If I have a string defined in my resources file that looks like this: > > some.key some value with html characters > > is it possible for bean:message to NOT parse the <> characters so that > when > it is written to the html p

RE: bean:message in bean:define tag

2003-09-01 Thread Nagendra Kumar O V S
2003 06:22:50 PM To: 'Struts Users Mailing List'; 'Nagendra Kumar O V S' Subject: RE: bean:message in bean:define tag  Hi Nagendra,If we use this then error occurs , message is:javax.servlet.ServletException: Body is supposed to be

RE: bean:message in bean:define tag

2003-09-01 Thread Shailesh Modi
] Subject: Re: bean:message in bean:define tag HI, ---Original Message--- From: Struts Users Mailing List Date: Monday, September 01, 2003 06:04:31 PM To: [EMAIL PROTECTED] Subject: bean:message in bean:define tag

Re: bean:message in bean:define tag

2003-09-01 Thread Nagendra Kumar O V S
HI,         ---Original Message---   From: Struts Users Mailing List Date: Monday, September 01, 2003 06:04:31 PM To: [EMAIL PROTECTED] Subject: bean:message in bean:define tag

RE: bean:message to fmt:message

2003-08-24 Thread Erez Efrati
, August 24, 2003 12:50 PM To: Struts Users Mailing List Subject: Re: bean:message to fmt:message Hi Erez, had similar problems myself. Specifying the application resources in web.xml didn't work for me for hours because I'd spelt it wrong - perhaps you should check you have it spelt cor

Re: bean:message to fmt:message

2003-08-24 Thread Adam Hardy
Hi Erez, had similar problems myself. Specifying the application resources in web.xml didn't work for me for hours because I'd spelt it wrong - perhaps you should check you have it spelt correctly (is that really a small r for resources.application, and with a dot? could it be resourceApplicat

RE: bean:message to fmt:message

2003-08-24 Thread Erez Efrati
Oops, sorry I mixed up key with value, I still get ???MyForm.title??? on In my web.xml I put as documented in JSTL specs: javax.servlet.jsp.jstl.fmt.localizationContext a resources.application This all works with bean:message. Any ideas why? Erez -Original Message- Fr

RE: bean:message , reads only once the message from MessageResource, is it caching messages for later use?

2003-08-19 Thread James Mitchell
> -Original Message- > From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) > > > thanks James, > > is it cause a performance problem calling formats.clear() for > each message , I'm not sure how much of a performance hit you would take. The bottleneck in most applications is typi

RE: bean:message , reads only once the message from MessageResource, is it caching messages for later use?

2003-08-18 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 4:31 AM To: 'Struts Users Mailing List' Subject: RE: bean:message , reads only once the message from MessageResource, is it caching messages for later use? Yes, it is true that it is cached. No, it is not co

RE: bean:message , reads only once the message from MessageResource, is it caching messages for later use?

2003-08-18 Thread James Mitchell
Yes, it is true that it is cached. No, it is not configurable. That's just the way it was designed. To get around it without actually changing the distribution, you'll need to add something like this to your implementation's getMessage(Locale locale, String key) method: public String getMessag

RE: Bean:message to fmt:message

2003-08-17 Thread Erez Efrati
A big relief.. thanks, just to think about converting them all... Erez -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Sunday, August 17, 2003 6:08 PM To: Struts Users Mailing List Subject: Re: Bean:message to fmt:message Yes it does. - Original Message

Re: Bean:message to fmt:message

2003-08-17 Thread Dan Tran
Yes it does. - Original Message - From: "Erez Efrati" <[EMAIL PROTECTED]> Newsgroups: Struts Sent: Sunday, August 17, 2003 9:57 AM Subject: Bean:message to fmt:message > I have a very small question: I have message keys that uses '.' like for > instance 'myform.hello'. I read something

RE: bean:message tag

2003-07-01 Thread Filip Polsakiewicz
Hi, bean:message works only with PropertyResourceBundles. Those are specified by name if you don't use the default ones. If you want to print the property of your Form use instead. HTH Filip > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01

Re: Bean:message & logic:present

2003-06-10 Thread James Mitchell
I'm not sure what the use case for this is. The only thing I can come up with is site customization where something is displayed only IF some key was set in the bundle. I would recommend you test for that in your action and set some flag on the form bean. Unless I'm wrong, there isn't really a c

RE: bean:message

2003-02-21 Thread James Mitchell
-Original Message- > From: Cohan, Sean [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 21, 2003 7:54 AM > To: 'Struts Users Mailing List' > Subject: RE: bean:message > > > Thanks guys. I wasn't aware of the formatKey property. And > I'm not aw

RE: bean:message

2003-02-21 Thread Sri Sankaran
http://jakarta.apache.org/struts/userGuide/struts-bean.html -Original Message- From: Cohan, Sean [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 7:54 AM To: 'Struts Users Mailing List' Subject: RE: bean:message Thanks guys. I wasn't aware of the formatKey pro

RE: bean:message

2003-02-21 Thread Cohan, Sean
more. Thanks again. -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 1:52 PM To: Struts Users Mailing List Subject: RE: bean:message Because I am competing for the Rube Goldberg award:) Thanks for reminding me to read the docs.

RE: bean:message

2003-02-20 Thread Sri Sankaran
Because I am competing for the Rube Goldberg award:) Thanks for reminding me to read the docs. Sri > -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 1:50 PM > To: 'Struts Users Mailing List' >

RE: bean:message

2003-02-20 Thread James Mitchell
t; From: Sri Sankaran [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 1:38 PM > To: Struts Users Mailing List > Subject: RE: bean:message > > > You can't nest as you have shown. Here's an alternative: > > > > > >name=&q

RE: bean:message

2003-02-20 Thread Sri Sankaran
You can't nest as you have shown. Here's an alternative: Sri > -Original Message- > From: Cohan, Sean [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 1:39 PM > To: Struts (E-mail) > Subject: bean:message > > > Is it possible to nest a tag within a > tag? I w

RE: bean:message problems with i18n

2003-02-14 Thread Rademacher Tobias
gt; ttpServletRequ > est request, java.util.Locale locale); > > This way it works - don't ask me why. > > I guess it could be a bug in the tag. > > Regards, > Bernhard > > > -Ursprüngliche Nachricht- > Von: Rademacher Tobias [mailto:[EMAIL PROTE

RE: bean:message problems with i18n

2003-02-14 Thread Rademacher Tobias
resources? > > I also tried to switch back to struts 1.1b2, but with the same result. > > Bernhard > > > -Ursprüngliche Nachricht- > Von: James Childers [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 13. Februar 2003 18:57 > An: Struts Users Mailing List > Bet

RE: bean:message problems with i18n

2003-02-13 Thread Remke Rutgers
tag use some kind of caching using the resources? I also tried to switch back to struts 1.1b2, but with the same result. Bernhard -Ursprüngliche Nachricht- Von: James Childers [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Februar 2003 18:57 An: Struts Users Mailing List Betreff

RE: bean:message problems with i18n

2003-02-13 Thread James Childers
Have you tried opening up a new browser and trying again? Sounds like it may be a caching issue. Also, check that your tag is generating the correct "lang" attribute. Reload the page and view source, then check the HTML tag. -= J > -Original Message- > From: Hirschmann, Bernhard [mailt

Re: bean:message without session

2003-02-06 Thread Michael C. Lee Jr.
Message - From: "Tarek M. Nabil" <[EMAIL PROTECTED]> To: "Mark Galbreath" <[EMAIL PROTECTED]>; "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 9:40 AM Subject: RE: bean:message without session Well, you ARE wrong

RE: bean:message without session

2003-02-06 Thread Tarek M. Nabil
Sent: Thursday, February 06, 2003 7:25 PM To: 'Struts Users Mailing List' Subject: RE: bean:message without session Why not? extracts the text associated with the declared key via MessageResources, which accesses the properties file as an object in application scope and returns the Stri

RE: bean:message without session

2003-02-06 Thread Mark Galbreath
Why not? extracts the text associated with the declared key via MessageResources, which accesses the properties file as an object in application scope and returns the String in the Response object. The scope of your JSP should have nothing to do with getting the property. Of course, I could be

RE: Bean:message question

2002-12-19 Thread Sri Sankaran
Only in Struts 1.1 Sri -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 2:03 AM To: Struts Users Mailing List Subject: Re: Bean:message question just a guess -D - Original Message - From: "Joao Araujo" <[EM

Re: Bean:message question

2002-12-18 Thread Dan Tran
just a guess -D - Original Message - From: "Joao Araujo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 18, 2002 10:33 PM Subject: Bean:message question > Hi, > > Is there a way to pass a as an argument to > another bean message? > > something like > >

Re: bean:message

2002-11-22 Thread David Graham
Use the altKey attribute. David From: Joao Araujo <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: bean:message Date: Fri, 22 Nov 2002 12:26:45 -0500 Hi, I would like to change the hint message of a image to something like this.

Re: bean:message as content of template:put tag

2002-02-28 Thread Cedric Dumoulin
It is not a problem with Struts, but with JSP : you can't nest a tag inside a tag. The correct way to do this, with template, is : Solution provided by Chris is also a possibility, but you need to use Tiles instead of Templates ;-) Cedric Chris Means wrote: > Phil, > > I ran int

RE: bean:message as content of template:put tag

2002-02-27 Thread Chris Means
Phil, I ran into the same problem. I don't know if my solution was the best approach...but it worked: replace 4. with: then in your template use: HTH. -Chris > -Original Message- > From: Phil Miller [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 26, 2002 4:07 PM >

RE: bean:message and performance

2001-11-20 Thread moritz petersen
What about templates or tiles? -Moritz. > -Original Message- > From: Francois-Xavier Bonnet [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 19, 2001 2:18 PM > To: [EMAIL PROTECTED] > Subject: bean:message and performance > > > Hello all, > > I am using bean:message tag for internati

Re: bean:message and performance

2001-11-19 Thread Cedric Dumoulin
Hi, I don't know if your poor performances come from bean:message tags, but there is an alternative to it. Another approach to i18n is having one page for each Locale. Each page contains appropriate translation. Pages can be grouped in localized directories. Tiles framework can help you

RE: bean:message and performance

2001-11-19 Thread Rey Francois
- Are you absolutely sure the i18n is the reason of the poor performance or is it an assumption? Using some profiling tool could help pinpoint the problem. - Another solution to the size issue: decompose your pages into included subcomponents that are of smaller size. Fr. -Original Message-

Re: bean:message inside html:link javascript function?

2001-10-21 Thread Vincent Aumont
Mike Bridge wrote: > Is it possible to embed a bean:message inside an html:link tag? No. Check http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12720.html --Vincent.

RE: bean:message with bean

2001-10-19 Thread Fabien Modoux
[mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 9:19 PM To: [EMAIL PROTECTED] Subject: RE: bean:message with bean I made a mistake in what I sent. It should be. David --- Fabien Modoux <[EMAIL PROTECTED]> wrote: > David, > > Thanks for your help. > I misinterp

RE: bean:message with bean

2001-10-18 Thread David Winterfeldt
omething else... > > -Fabien > > - > Fabien Modoux, > Voicemate - http://www.voicemate.com > > -Original Message- > From: David Winterfeldt > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 18, 2001 6:45 PM > To: [

RE: bean:message with bean

2001-10-18 Thread Fabien Modoux
From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 6:45 PM To: [EMAIL PROTECTED] Subject: Re: bean:message with bean If they are message keys from the resource file, like msg.hello=Hello, then it should be key not name. The tag bean:write uses the name attr

Re: bean:message with bean

2001-10-18 Thread David Winterfeldt
If they are message keys from the resource file, like msg.hello=Hello, then it should be key not name. The tag bean:write uses the name attribute (as do most other tags in one way or another). David --- Fabien Modoux <[EMAIL PROTECTED]> wrote: > Hello, > > I am using the bean:message a

Re: bean:message tag

2001-08-20 Thread Matt Raible
The problem is that my image changes depending on the error message - so I need a way of determining which image to display. Oh well, I do everything from the design to the Action servlets, and stop before the EJBs - so I guess it's only really a concern if someone else was doing the design. Mat

Re: bean:message tag

2001-08-20 Thread Thomas Quas
Matt, what I'm currently doing is something like this: In, say, x.jsp I write ... class="feedback"> whereas in AppRes.properties I have login.error.1=... login.error.2=... Yeah, it is rather uncomfortable--and only necessary if you really need to have support f

Re: bean:message tag

2001-08-20 Thread Matt Raible
Tom - it seems that you are correct, my html does show up correctly. The reason I have html in my properties file is because I want to display certain images with my messages. Let's take the following key for example: error.password.mismatch=Invalid username and/or password, please try agai

Re: bean:message tag

2001-08-19 Thread Thomas Quas
Matt, I'm not sure whether I understood the problem correctly, but I did the same thing for a while, and it worked for me without "flush" or other tricks. I simply included the message via , not matter whether there was HTML in it or not. Note, however, that it can be problematic to mix layout

Re: Bean:message with args

2001-05-08 Thread Stephen Schaub
ROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, May 08, 2001 9:02 AM Subject: RE: Bean:message with args > just curious... what about a minor enhancement to do it like this: > > > > > > > the listed internal body tags wo

RE: Bean:message with args

2001-05-08 Thread Chris Butler
L PROTECTED]] >Sent: 04 May 2001 23:34 >To: [EMAIL PROTECTED] >Subject: Re: Bean:message with args > > > > Is there a way to acheive the following : > > "/> > > without resorting to scriplets > >I was looking for a way to do this a while back; currentl

RE: Bean:message with args

2001-05-08 Thread Jon.Ridgway
Hi Stephen, Your solution sounds like its just what I'm after. I would greatly appreciate a look at the code. Jon. -Original Message- From: Stephen Schaub [mailto:[EMAIL PROTECTED]] Sent: 04 May 2001 23:34 To: [EMAIL PROTECTED] Subject: Re: Bean:message with args > Is there

Re: Bean:message with args

2001-05-04 Thread Stephen Schaub
> Is there a way to acheive the following : > "/> > without resorting to scriplets I was looking for a way to do this a while back; currently you have to resort to a scriptlet. I proposed and created an implementation that allows you to do this: The { } in argX parameters tell my modified bean

RE: Bean:message with args

2001-05-04 Thread Nanduri, Amarnath
Hello everybody, I am trying to test the iterate tag and i am getting the following error.. Can somebody point out as to what i am doing wrong ? Thanks a lot. I am including the jsp code also. I am using Tomcat 3.2 and struts 1.0 cheers, Amar.. ERROR - javax.servlet.ServletException: Can