Re: [s2] OGNL expression for referring to one key-value Map pair

2008-11-14 Thread Dave Newton
--- On Fri, 11/14/08, Pierre Thibaudeau wrote: > The following doesn't seem to be understood by OGNL: > > > Enter the type of pet: > This implies you've internationalized the names of the variables in your action class. While I'm not saying you didn't, I find it unlikely at best. If you're t

Use of with Internet Explorer 6/7

2008-11-14 Thread Asad Habib
Hello. Has anyone been able to successfully use to pass a value to a Struts Action with Internet Explorer? I am using Struts 1.3.8 and the following line of code does not work in Internet Explorer but does work in Firefox:

Struts failing with token interceptor

2008-11-14 Thread Elkins, Jim X
Hi, Everybody, I am trying to uset the token interceptor and when I add to my struts.xml, I am getting a String error. Here is the stack trace. javax.servlet.ServletException: java.lang.String at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:5 15) at or

Radio button default checked with Indexed properties

2008-11-14 Thread danipruebas
Hi, How can I get a radio button checked by default using indexed properties? I read in forums to do it in the reset method of the ActionForm, but dont know exactly how to do it... In my jsp I render X radio buttons, where X is the number of questions saved in the request Bean "choices" in My

Why doesn't struts evaluate the Java code?

2008-11-14 Thread laredotornado
Hi, I'm using Struts 1.1 on WebLogic 9.2.2. I have this tag " size="20" maxlength="50" readonly="<%= exists %>" /> but when my JSP is rendered, the expression, "<%= (newUser != null ? newUser.getNewName() : "") %>" actually appears in the browser. Anyone know how to make the actual value of t

DateTimePicker in 2.0.12

2008-11-14 Thread J J
Hello, I'm trying to use datetimepicker struts label, but when I execute it it onnly renders label. I have inside the tag head, and in the form think that perhaps I don't have all the libraries: antlr-2.7.2.jar commons-chain-1.1.jar commons-logging-api-1.1.jar freemarker-2.3.8.

Re: Highlighting a field with a validation error in struts 2

2008-11-14 Thread Torsten Krah
Am Mittwoch, 12. November 2008 schrieb Adam Lister: > I'm not seeing this "red border" either... > does anyone recall which theme provides this? Afaik no theme does provide this, you have to write your own theme (actual for this input field only) to do this - its really easy to do that. smime

Re: DateTimePicker "time" type not working in 2.0.11

2008-11-14 Thread Tomi21
Ive the same problem. Did you find the solution? Thanks. Jon Wilmoth-2 wrote: > > I've tried using the datetimepicker with the type attribute set to "time" > (), but > nothing shows up. There was a email thread this past spring on this > subject, but it appears the tag was broken and to be f

Re: Struts2 OGNL Problem

2008-11-14 Thread Dave Newton
--- On Fri, 11/14/08, PhoenixelRay wrote: > in this case I have to use OGNL to get access to the list > which is defined in the tiles-defs.xml. IIRC you can put Tiles defs into scope through one of the tiles tags (don't recall how). You can then access it via one of the OGNL scope prefixes. Dave

how to generate the form-bean definition real time

2008-11-14 Thread caultonpos
In struts I have some form beans defined in struts-config.xml e.g. etc I don't really want them in struts-config because I want to a) Read the form fields from the database b) Dynamically generate the html via the JSP c) Dynamically map and save the form in my Ma

Re: Struts2 OGNL Problem

2008-11-14 Thread PhoenixelRay
thanks, in this case I have to use OGNL to get access to the list which is defined in the tiles-defs.xml. I have already tried it in different ways but i didnt get the correct syntax. newton.dave wrote: > > --- On Fri, 11/14/08, PhoenixelRay wrote: >> I know, but I thougt the only way to us

Re: session collision

2008-11-14 Thread Lukasz Lenart
2008/11/14 Diny <[EMAIL PROTECTED]>: > > Dear friends, > > I am using struts framework. when i login to my application there > was session collision occurance. Struts version? > steps for your clear view > > 1. Entering username and password in jsp > 2. Fetching login ac

Re: Struts2 OGNL Problem

2008-11-14 Thread Dave Newton
--- On Fri, 11/14/08, PhoenixelRay wrote: > I know, but I thougt the only way to use resources is the > struts tag and this is not possible with el. Therefore I > wantet to know if there is an other way than this example. Yes, by using and . But your assumption is incorrect: JSP EL is only dis

Re: Struts2 OGNL Problem

2008-11-14 Thread PhoenixelRay
I know, but I thougt the only way to use resources is the struts tag and this is not possible with el. Therefore I wantet to know if there is an other way than this example. newton.dave wrote: > > --- On Fri, 11/14/08, PhoenixelRay wrote: >> Yes, it works that way, but how can i include the re

Re: Struts2 OGNL Problem

2008-11-14 Thread Dave Newton
--- On Fri, 11/14/08, PhoenixelRay wrote: > Yes, it works that way, but how can i include the resource > key without using OGNL? The forEach example already doesn't use OGNL. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Struts2 OGNL Problem

2008-11-14 Thread PhoenixelRay
Yes, it works that way, but how can i include the resource key without using OGNL? stanlick wrote: > > Have you tried using > > Also, this works as well: > > varStatus="loopStatus"> > > > ${currRow.id

Re: [s2] OGNL expression for referring to one key-value Map pair

2008-11-14 Thread stanlick

Re: Struts2 OGNL Problem

2008-11-14 Thread stanlick
Have you tried using Also, this works as well: ${currRow.id} ... Peace, Scott On Fri, Nov 14, 2008 at 4:39 AM, PhoenixelRay <[EMAIL PROTECTED]>wrote: > > Hi, > > i have a little

Re: Switching "namespace" - how to render a s:url Link which switches the namespace - maybe portlet related

2008-11-14 Thread Nils-Helge Garli Hegvik
Of course you did... Don't know how I missed that :) Nils-H Den 14. nov.. 2008 kl. 12.12 skrev Torsten Krah <[EMAIL PROTECTED] >: Am Freitag, 14. November 2008 12:07:17 schrieb Nils-Helge Garli Hegvik: Did you try just "/rules"? It might be a bug, so if it doesn't work, please file a JIRA

Re: Switching "namespace" - how to render a s:url Link which switches the namespace - maybe portlet related

2008-11-14 Thread Torsten Krah
Am Freitag, 14. November 2008 12:12:08 schrieb Torsten Krah: Nvm, no bug but correct behaviour which i've missed to understand until now. Debugging is shows that the portlet modeNameSpace is prepended every time (which is correct from a portlet perspective). And that was my problem - i did prepe

Re: Switching "namespace" - how to render a s:url Link which switches the namespace - maybe portlet related

2008-11-14 Thread Torsten Krah
Am Freitag, 14. November 2008 12:07:17 schrieb Nils-Helge Garli Hegvik: > Did you try just "/rules"? It might be a bug, so if it doesn't work, > please file a JIRA issue. Yeah did - that was the 3rd way: > renders > > /view/tag/rules/index I will go and file a jira issue about this. -- Bitte

Re: Switching "namespace" - how to render a s:url Link which switches the namespace - maybe portlet related

2008-11-14 Thread Nils-Helge Garli Hegvik
Did you try just "/rules"? It might be a bug, so if it doesn't work, please file a JIRA issue. Nils-H On Fri, Nov 14, 2008 at 11:50 AM, Torsten Krah <[EMAIL PROTECTED]> wrote: > Hi - got some problem with namespace and i don't see my error. > > Global namespace is view in view mode (portlet). > >

Switching "namespace" - how to render a s:url Link which switches the namespace - maybe portlet related

2008-11-14 Thread Torsten Krah
Hi - got some problem with namespace and i don't see my error. Global namespace is view in view mode (portlet). Got some action which is in rules namespace called index. Got another action called index too which is in namespace tag which got as parent the /view one too. 1. /view/rules/index 2.

Struts2 OGNL Problem

2008-11-14 Thread PhoenixelRay
Hi, i have a little question because of a Problem I faced with OGNL in Struts 2. I have tried a lot of things but it didn work. OK. I´ve set up a new Struts 2 Project with Tomcat 6.0 and integrated Tiles 2. I want to use the menuing support of tiles. This is the relevant code of the tiles-defs.x

session collision

2008-11-14 Thread Diny
Dear friends, I am using struts framework. when i login to my application there was session collision occurance. steps for your clear view 1. Entering username and password in jsp 2. Fetching login action and then it is going upto DAO and verifying it. 3.