Re: [S2] Head parseContent in Struts 2.1.0

2007-10-30 Thread Jeromy Evans
I haven't tried including the sx:head tag within a sitemesh template myself, but a stack overflow implies there's probably a circular reference. Did you get a stack trace anywhere? I can't think of any reason it shouldn't work because sx:head it's just rending a template the same as the

Re: [s2] forward to another action?

2007-10-30 Thread lbastil
Thank you very much for the response! I studied docs and noticed the drawbacks. I could put aside a chaining approach if the following is possible: can I use in struts.xml complex ognl statements? action name=*_*_* method={3} class={2}Action ... result name=back

RE: Multiple Textboxes with same name.

2007-10-30 Thread Rajagopal_Yendluri
Hi, Thanks for all of your support. Here is my requirement, I have to add the students information ( studentname collegename) in jsp pages. Say I want to add 5 students information (5 studentnames and 5 collegenames). I have a StudentVO, how can I get all this info to my action as a

RE: Multiple Textboxes with same name.

2007-10-30 Thread nagesh.kumar
Use Struts-Layout tag library for this fucntionality and use DATAGRIG component in this Thanks Regards NAGESH Reddy -Original Message- From: Rajagopal_Yendluri [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 30, 2007 2:43 PM To: Struts Users Mailing List Subject: RE: Multiple

Multi language support in struts layout datagrid

2007-10-30 Thread nagesh.kumar
Hi All, I have implemented already Struts DATAGRID iam fasing a prob , I need to support multi language fileds in this datagrid layout . How can I show a filed in english another field in japan in the same datagrid . Any body has any idea please mail me Thanks Regards Nagesh Kumar

RE: Multiple Textboxes with same name.

2007-10-30 Thread Rajagopal_Yendluri
I am using struts2, Struts-Layout will not support. -Original Message- From: nagesh.kumar [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 30, 2007 3:04 PM To: 'Struts Users Mailing List' Subject: RE: Multiple Textboxes with same name. Use Struts-Layout tag library for this

Re: RE [ANN] Struts 2.0.11 GA release available

2007-10-30 Thread Ted Husted
For news on the 2.1 front, drop by the dev list. * http://www.nabble.com/-S2--2.1.0-Test-Build-Available-p13471367.html -Ted. On Oct 29, 2007 10:43 PM, Jeromy Evans [EMAIL PROTECTED] wrote: No, that improvement is included in the struts-dojo-plugin used by only 2.1.x. But you can do it

Re: Struts 1.2.7 custom validator problem

2007-10-30 Thread John Doe
I've solved the problem. The only way to validate properly is to add an error to the errors variable. Without this validator will think that everything is OK even if you returned false in validate method. On 10/29/07, John Doe [EMAIL PROTECTED] wrote: No, there is no exception. On 10/28/07,

Struts 2.1.x trunk Could not find property in tests and running ..

2007-10-30 Thread Giovanni Azua
hi, While building Struts 2.1.x trunk branch test cases I get tons of this kind of warnings: WARNING: [57:14.332] Could not find property [#attr.theme] WARNING: [57:14.364] Could not find property [#attr.templateDir] WARNING: [57:14.365] Could not find property [#attr.theme] The same

Exception when tying to display a 404 error page.

2007-10-30 Thread Baptiste GAILLARD
Hi, i'm developping a blog using Struts 2 (2.0.11), I have a strange error in a 404 error page. This error page is defined in my web.xml: error-page error-code404/error-code location/pages/errors/page404.jsp/location /error-page Struts 2 is configured with those lines : !--

Re: Getting started--mapping URLs to pages

2007-10-30 Thread Dave Newton
--- Troy S [EMAIL PROTECTED] wrote: No, but now I have struts.xml in the correct directory and I am getting the same error. It's being deployed to /WEB-INF/classes? (Also, where should the jsp file go?) result/menu/Menu.jsp/result In /menu/Menu.jsp. You may want to turn up the log level to

Re: [s2] forward to another action?

2007-10-30 Thread Dave Newton
--- lbastil [EMAIL PROTECTED] wrote: can I use in struts.xml complex ognl statements? Well... yes, but there's no reason to in this usecase. action name=*_*_* method={3} class={2}Action result name=back type=redirect-action {1}_target_show.action /result Expose a target property in

RE: Multiple Textboxes with same name.

2007-10-30 Thread Dave Newton
Please look at the documentation at http://struts.apache.org/2.x/docs/type-conversion.html All you have to do is expose a collection of your student value object in the action; you might not even need to set up the conversion properties file (I can never remember) and reference the appropriate

RE: S2: EL in tags 2.0.11

2007-10-30 Thread Manuel Correa
Didn't work: s:property value=%{#request['javax.servlet.forward.context_path']/ I think that the best solution is rewrite the tld. Is painful. Manuel Correa. -Original Message- From: Desbois Arnaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 30, 2007 3:55 AM To: Struts Users

how Action Tag may access actionContext of the surrounding Action?

2007-10-30 Thread Ivan Žučenko
Hi all, I am quite new to s2 but like the framework but can not find the right way how ActionTag may cooperate with surrounding Action. Well more exactly I want Interceptors mapped to ActionTag use some objects prepared by Interceptors of the Action. May be example would be best. I have

Re: [s2] forward to another action?

2007-10-30 Thread lbastil
Thank you very much for this hint, it is exactly what I meanwhile have implemented as fallback. Only disadvantage in comparison to an ognl expression is that in case of change I have to change action (code) and recompile ... What do you mean with overly-complex in detail? the approach trying

Re: Struts 2 and JasperReports Integration

2007-10-30 Thread Tom Schneider
Can you post the full stack trace, so we can figure out where this is happening? Looking that the example code, it all looks good, so I'm not sure why the myList is null. carmi_cd wrote: hi i followed this tutorial.. in JasperReports/Struts 2 Integration

Link: new window or new tab

2007-10-30 Thread Jason Deffenbaugh
So this is a pretty simple question (I'm new to view technology) How do I control the target of a struts s:a tag? I want to open the link in a new window or a new tab. I've tried: s:a href=%{surl} targets=_blank theme=ajaxtext/s:a without having used ajax anywhere else in my app but this

RES: Link: new window or new tab

2007-10-30 Thread Luciano Costa
Use the simple theme. -Mensagem original- De: Jason Deffenbaugh [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 30 de outubro de 2007 07:55 Para: Struts Users Assunto: Link: new window or new tab So this is a pretty simple question (I'm new to view technology) How do I control

Re: Link: new window or new tab

2007-10-30 Thread Dave Newton
--- Jason Deffenbaugh [EMAIL PROTECTED] wrote: So this is a pretty simple question (I'm new to view technology) How do I control the target of a struts s:a tag? I want to open the link in a new window or a new tab. I've tried: s:a href=%{surl} targets=_blank

changing template for s:text

2007-10-30 Thread Ivan Žučenko
Hi all, I have an intention to enabel debug mode in my application and one of the features should be that it shows resource name in front of every localized text in jsp retrieved by s:text For example s:text name=RESOURCE_1This is resource /s:text would render in html page as: [RESOURCE_1]This is

RE: Link: new window or new tab

2007-10-30 Thread Rod Bollinger
Keep in mind however in POHTML the target attribute is deprecated unless you are doing frames development (which I hope you are not ;-)). The proper way to get a new window is to use the window.open() call from your a tag. HTH, -Rod -Original Message- From: Dave Newton [mailto:[EMAIL

Re: S2: EL in tags 2.0.11

2007-10-30 Thread Chris Pratt
On 10/30/07, Manuel Correa [EMAIL PROTECTED] wrote: Didn't work: s:property value=%{#request['javax.servlet.forward.context_path']/ I think that the best solution is rewrite the tld. Is painful. Manuel Correa. If you're looking for the simplest solution, you should be able to define a

Re: changing template for s:text

2007-10-30 Thread Tom Schneider
The s:text tag is considered a data tag, not a UI tag, so there is no ftl template backing that take. Your only option is to extend the tag to add the functionality that you describe. The functionality you describe sounds like it might be useful to others. Have you considered creating a patch

RE: S2: EL in tags 2.0.11

2007-10-30 Thread Manuel Correa
That is not possible, because in Struts 2.0.11 you can't use EL in any Struts tag, including s:set ... Manuel Correa. -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 30, 2007 12:11 PM To: Struts Users Mailing List Subject: Re: S2: EL in tags

Re: S2: EL in tags 2.0.11

2007-10-30 Thread Chris Pratt
On 10/30/07, Manuel Correa [EMAIL PROTECTED] wrote: That is not possible, because in Struts 2.0.11 you can't use EL in any Struts tag, including s:set ... That's why I recommended using the JSTL c:set instead. (*Chris*) -

I have the solution!

2007-10-30 Thread AlfonsoQuiroga
Hi, I was with the same problem (validation for only 1 method), here is the solution: I have this: action name=pruebaValid_* method={1} class=actions.MyAction result name=input/pages/input.jsp/result result/pages/inputOk.jsp/result /action So, if

[S2] TabbedPanel

2007-10-30 Thread Veronica Iturrioz
Hi, I'm trying to use de tag tabbedPanel where each tab with remote content. my code is: s:tabbedPanel id=user_tab theme=simple s:url id=urlRemote value=/myAction.do/ s:div id=tab_remote label=remote tab theme=ajax href=%{urlRemote} executeScripts=true but it give me this

Re: changing template for s:text

2007-10-30 Thread Ivan Žučenko
Hi Tom, not yet... but I have no experience contributing to project like this, so I am afraid that my bothering this mail group would overweight the benefit... Also there is one big ? what is the best way how to share debug flag across the all session/page or any scope... also since I am quite

Re: I have the solution!

2007-10-30 Thread AlfonsoQuiroga
I made a mistake, the correct xml name is MyAction-pruebaValid_save-validation.xml instead of MyAction-pruebaValid_login-validation.xml ;-) AlfonsoQuiroga wrote: Hi, I was with the same problem (validation for only 1 method), here is the solution: I have this: action

Re: Struts 2.1.x trunk Could not find property in tests and running ..

2007-10-30 Thread Pedro Herrera
I´m having the same problem to building struts 2.1.x trunk ... 'Could not find property [#attr.theme]' Herrera Giovanni Azua-3 wrote: hi, While building Struts 2.1.x trunk branch test cases I get tons of this kind of warnings: WARNING: [57:14.332] Could not find property

Re: S2: EL in tags 2.0.11

2007-10-30 Thread Ted Husted
A better long-term solution might be to create a standard JSP 2.0 taglib for Struts 2 that follows the same external API as the Struts 1 EL tags, and didn't use OGNL at all. * http://struts.apache.org/1.3.8/struts-el/index.html This would mean doing without templates, but I think many people

Re: [struts] S2: EL in tags 2.0.11

2007-10-30 Thread Dale Newfield
Just in case these this didn't work messages were copy-pasted, I'll point out the typos: Chris Pratt wrote: On 10/30/07, Manuel Correa [EMAIL PROTECTED] wrote: Didn't work: s:property value=%{#request['javax.servlet.forward.context_path']/ s:property

Re: Struts 2.1.x trunk Could not find property in tests and running ..

2007-10-30 Thread Jeromy Evans
This is somehow connected to my question before on a migration guide, is it needed? There's no migration guide from 2.0.x to 2.1.x. I agree one will be needed because you can't simply change jars over, but I don't think users should be switching over on-mass anyway yet. If you want to

Multi language support in struts layout datagrid - didn't g et any reply

2007-10-30 Thread nagesh.kumar
Hi All, I have implemented already Struts DATAGRID now fasing a prob , I need to support multi language fileds in this datagrid layout . How can I show a filed in english and another field in japan in the same datagrid . Any solution please mail me Thanks Regards Nagesh Kumar Reddy

Triggering a topics

2007-10-30 Thread Grish
Hi, I'm having a hard time trying to implement this - I want to have a select box containing options for the user to select the update frequency of my div tag. So my select box has no refresh, 30 seconds, 60 seconds, 120 seconds and depending on what the user selects the frequency will change.