Re: Global Values and the Value Stack

2007-12-28 Thread Dave Newton
Just out of curiosity, why wouldn't you just put them in the application context? d. --- Chris Pratt <[EMAIL PROTECTED]> wrote: > Well, looks like I might have found it myself. If my Interceptor adds > a variable to the Context in the Value Stack, then I can access the > variable using the # de

Re: Global Values and the Value Stack

2007-12-28 Thread Wes Wannemacher
Is there a reason why you couldn't use the session? If you put the objects in the session, they would be available pretty much like you have - -Wes On 12/28/07, Chris Pratt <[EMAIL PROTECTED]> wrote: > Well, looks like I might have found it myself. If my Interceptor adds > a variable to the Co

Re: Location of struts_config DTD file?

2007-12-28 Thread Wendy Smoak
On Dec 28, 2007 12:10 AM, Sridhar Raman <[EMAIL PROTECTED]> wrote: > In the struts-config.xml file, I need to specify the location of the > struts_config DTD file. Normally, this is given as an http link. But if > the net is down, it obviously won't work. Not true. The DTD is inside the Struts

Re: Location of struts_config DTD file?

2007-12-28 Thread Laurie Harper
Sridhar Raman wrote: In the struts-config.xml file, I need to specify the location of the struts_config DTD file. Normally, this is given as an http link. But if the net is down, it obviously won't work. The documentation says that one needs to copy the DTD into the struts.jar under resources.

Re: AW: Re: Message resources configuration

2007-12-28 Thread Laurie Harper
Sebastian Göttschkes wrote: Laurie Harper wrote: Sebastian Göttschkes wrote: [...] I defined the message resources in the struts-config.xml: [...] The strange thing is I didn't change anything except for the two empty files I created. So I can say that the problem isn't hard-coded text in

Re: [S2] vertical checkboxlist

2007-12-28 Thread jwpronto
Modify the template by creating your own custom version and add a after the rendering of the label: Example: ${itemValue?html} SudarshanP wrote: > > I too have the same problem > anybody could figure out the solution > > Thanks in advance > > > > Filippo De Luca wrote: >> >> Dear Strt

Re: Global Values and the Value Stack

2007-12-28 Thread Chris Pratt
Well, looks like I might have found it myself. If my Interceptor adds a variable to the Context in the Value Stack, then I can access the variable using the # delimiter. So if my UserInterceptor calls: stack.getContext().put("user",user); Then in the page I can use: to display the User's Nam

validation w/additional onsubmit

2007-12-28 Thread Chris Pat
Hello Is there a syntax to execute javascript functions before the validateFormBea? Is it simply a ";"? Also is the onSubmit handler element in tag different than the onSubmit handler in the ?

Global Values and the Value Stack

2007-12-28 Thread Chris Pratt
I have some values that are required on, pretty much, every page of the site. Thinks that belong in the headers and navigation section for example. I'd rather not have to add them to every Action, or force every Action to extend a base action, so is there a way to add values to the value stack (s

Re: Using Log4j in struts for application logs

2007-12-28 Thread Paul Benedict
Struts doesn't create any automatic logging files. If you are getting additional logs, you have a configuration file loaded to do so. Paul On Dec 27, 2007 9:34 AM, Adam Hardy <[EMAIL PROTECTED]> wrote: > Hi Raghuveer, > I don't know why you have struts.log. Perhaps a struts committer knows > whi

Re: I18n Struts problem

2007-12-28 Thread Paul Benedict
You probably are not using UTF-8 encoding on your pages. This can be configured using the JSP page directive. On Dec 11, 2007 7:57 AM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Chris Pat wrote: > > Hello > > In my app I write the labels with > and I have an ApplicationProperties.properties, > A

Re: Submit buttons

2007-12-28 Thread Paul Benedict
The name of the button is what gets submitted. The value, I believe, is the user display value which doesn't get sent in the submission. On Dec 28, 2007 12:43 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > I've been bashing my head against a brick wall on this one so maybe > someone > can help ease t

Re: Render preselected value in

2007-12-28 Thread [EMAIL PROTECTED]
Thanks a lot Chris. I'm sorry I have read it as double double quotes. Your explaination and solution are great! Thanks again. On Dec 28, 2007 3:28 PM, Chris Pratt <[EMAIL PROTECTED]> wrote: > Not double quotes, single quotes. basically here's an expanded view > of what I meant, (you should remo

Re: Render preselected value in

2007-12-28 Thread Chris Pratt
Not double quotes, single quotes. basically here's an expanded view of what I meant, (you should remove all the spaces before you try it): value=" ' 02 ' ". If you use value=" " 02 " ", then the JSP processor reads it as an empty value folowed by some gibberish that it doesn't understand

Re: Render preselected value in

2007-12-28 Thread [EMAIL PROTECTED]
Hi Chris, I tried value="02" but it didn't work. I also tried value=""02"" and got an error. You mentioned two double quotes. Is that on purpose? Thanks. On Dec 28, 2007 3:13 PM, Chris Pratt <[EMAIL PROTECTED]> wrote: > I think you could also use: > > value="'02'" > > (notice the extra single

Re: Render preselected value in

2007-12-28 Thread Chris Pratt
I think you could also use: value="'02'" (notice the extra single quotes). Since the tags evaluate the value as an OGNL expression, they look for a get02() instead of recognising it as a literal value, using '02' instead of 02 tells the OGNL processor it's a literal value. The %{} is called alt

Re: Render preselected value in

2007-12-28 Thread [EMAIL PROTECTED]
Thanks Al an Chris. Both work but in Chris's solution I have to use %{'02'} in value attribute, like this: I'm not clear why? "%" is what syntax? Thanks. On Dec 28, 2007 2:35 PM, Chris Pratt <[EMAIL PROTECTED]> wrote: > Try: > headerValue="Select Month" list="#{'01':'Jan','02':'Feb'}" > valu

Re: Display tag and target div

2007-12-28 Thread Raghuveer Rawat
Looks like this is open issue... found something interesting in webwork forum http://forums.opensymphony.com/thread.jspa?messageID=116863𜡿 On 12/27/07, Raghuveer Rawat <[EMAIL PROTECTED]> wrote: > Hello quinquin2209, > Is this issue resolved for you? What was the solution? > I am facing same

Re: Render preselected value in

2007-12-28 Thread Chris Pratt
Try: What the original code was doing was calling getSelectedMonth() on the value stack (usually a method on the Action) and using that value to pre-select the proper month. (*Chris*) On Dec 28, 2007 11:28 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi all, > > This struts code > > >

RE: Render preselected value in

2007-12-28 Thread Al Sutton
Make sure the value selectedMonth in your action is set to 02. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 December 2007 19:29 To: Struts Users Mailing List Subject: Render preselected value in Hi all, This struts code generates this html code:

[S2] Action tag along with param tag

2007-12-28 Thread Justin Frost
Am I writing this correctly? My FillSelectBoxes action only does work in the preparable method. And there is a private String myString and private LocationDTO location in this action. I only implement preparable But they are alway

Render preselected value in

2007-12-28 Thread [EMAIL PROTECTED]
Hi all, This struts code generates this html code: Select Month Jan Feb If I want "Feb" is selected (Feb), how to do it in the ? Many thanks.

Struts 2 - getting properties values inside Actions' code

2007-12-28 Thread Filipe David Manana
Hi, Does any of you knows a way to get the value for a property value (defined in struts.properties / struts.xml) from Java code (an action code for example) ? Lets say, I want to know the value of "struts.devMode" property. How can I get it in Java code? cheers -- Filipe David Manana, [EMAIL P

Submit buttons

2007-12-28 Thread Al Sutton
I've been bashing my head against a brick wall on this one so maybe someone can help ease the pain... Within a single form I have several buttons. Each button has an ID associated with it and a name. What I would like to do is show the name to the user and submit the ID to my action when it's c

Re: Char lib for Struts 1

2007-12-28 Thread David Durham, Jr.
On Dec 28, 2007 7:08 AM, Sebastian Göttschkes <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm trying to find a chart lib for Struts 1(.3.8). It should be something > small, easy to install and use. I just need pie charts in 2D, nothing special. > > Any suggestions? It's not Struts specific but Goo

Re: [struts] s2 override request_locale

2007-12-28 Thread Dale Newfield
Markus Stauffer wrote: Another thing that I do not understand is why in the default Interceptor stack the i18n intereceptor is called after the prepare interceptor. In the prepare() methode the Locale is not set, because the i18n interecptor is invoked later in the stack. I had to manualy regro

Re: s2 override request_locale

2007-12-28 Thread Markus Stauffer
It is not the best solution to Implement the LovaleProvider and the getLocale() method: Instead I wrote my own Interceptor that manual set the Locale "invocation.getInvocationContext().setLocale()". Another thing that I do not understand is why in the default Interceptor stack the i18n interece

Re: Upgrading to Struts 2.1 and rtxpvalue="false"

2007-12-28 Thread Eric Rank
Ah yes, I remember that bug! I guess I didn't look too closely at the solution before. Thanks for the info. Eric Rank --- Senior Web App Engineer www.referencevault.com On Dec 28, 2007, at 8:27 AM, Guillaume Carré wrote: 2007/12/28, Eric Rank <[EMAIL PROTECTED]>: In migrating t

BlueOxygen Projects Release 5 OpenSource

2007-12-28 Thread Frans Thamura
hi all may be all of you have hear BlueOxygen.org, the opensource center from Java island, where founded by me in 2001. now for new year 2008, we release 4 opensource under blueOxygen, and 1 independent (join work with ministry of education in Indonesia) BlueOxygen Cimande, The Workspace Platfor

Re: Upgrading to Struts 2.1 and rtxpvalue="false"

2007-12-28 Thread Guillaume Carré
2007/12/28, Eric Rank <[EMAIL PROTECTED]>: > In migrating to Struts 2.1 from 2.0.x, I noticed that I can no longer > use regular EL in most (all?) attributes of struts tags. The TLD > specifies rtexpvalue="false" now. > > Can someone explain what the principle is behind this change? I'm > curious a

Upgrading to Struts 2.1 and rtxpvalue="false"

2007-12-28 Thread Eric Rank
In migrating to Struts 2.1 from 2.0.x, I noticed that I can no longer use regular EL in most (all?) attributes of struts tags. The TLD specifies rtexpvalue="false" now. Can someone explain what the principle is behind this change? I'm curious about the motivation for the modification. Tha

Re: Application logs

2007-12-28 Thread Adam Hardy
The main reason for me (I can't speak for Raghuveer) is that several third-party apps, plug-ins and modules that I use have log4j configured in their codebase. To control them seperately would be a pain - so I use log4j for the configuration but I code my logging with commons logging. Hopefull

Char lib for Struts 1

2007-12-28 Thread Sebastian Göttschkes
Hi there, I'm trying to find a chart lib for Struts 1(.3.8). It should be something small, easy to install and use. I just need pie charts in 2D, nothing special. Any suggestions? Regards, Sebastian - To unsubscribe, e-mail: [

Re: [S2] Referencing the taglib when the JARS's are located at the top level of an EAR package?

2007-12-28 Thread Simon Berger
not sure if i got your problem right but you can add something like this to your web.xml /struts-tags /WEB-INF/struts-tags.tld s then you can use <[EMAIL PROTECTED] prefix="s" uri="/struts-tags" %> and it should map to the location sepcified in web.xml but the lib

Re: Location of struts_config DTD file?

2007-12-28 Thread Simon Berger
copy this file to your web-inf and use relative path's i did like this struts.xml Sridhar Raman schrieb: In the struts-config.xml file, I need to specify the location of the struts_config DTD file. Normally, this is given as an http link. But if the net is down, it obviously won't work. The

AW: Re: Message resources configuration

2007-12-28 Thread Sebastian Göttschkes
Hi, >Laurie Harper wrote: > >Sebastian Göttschkes wrote: >> Hi, >> >> I'm experiencing strange behaviours with the message resources and I'm not >> sure about where to find the problem. >> >> I defined the message resources in the struts-config.xml: >> >> > parameter="com.equitystory.pms.resou