Re: Struts 2 Rest + Prevent Session creation

2008-08-28 Thread rakeshxp
Found the issue. I had missed adding <%@ page contentType="text/html; charset=UTF-8" session="false" pageEncoding="UTF-8"%> in the JSP page ( by default session is true ). Now no session is created ( and so no JSESSIONID cookie is set ) Thanks! Jeromy Evans - Blue Sky Minds wrote: > >

REST 2.1.2

2008-08-28 Thread stanlick
Has anyone experienced a problem with a trailing front slash being added to the generated URL?

Next Struts Release with support dojo 1.x i.e. digits

2008-08-28 Thread deepakdabas
I want to know when apache is planning to have the release of struts with support of dojo1.x i.e. support of digits in Struts tags. -- View this message in context: http://www.nabble.com/Next-Struts-Release-with-support-dojo-1.x-i.e.-digits-tp19199189p19199189.html Sent from the Struts - User

Re: REST 2.1.2

2008-08-28 Thread Jeromy Evans
[EMAIL PROTECTED] wrote: Has anyone experienced a problem with a trailing front slash being added to the generated URL? I've seen it before. I can't look at my code right now, but I think it's because you have a trailing slash on a property either in struts xml (default namespace?) or in

Re: Next Struts Release with support dojo 1.x i.e. digits

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, deepakdabas wrote: > I want to know when apache is planning to have the > release of struts with support of dojo1.x i.e. support > of digits in Struts tags. Digits? Anyway, while these things are always subject to change, at this point it seems unlikely that the Ajax tags

Re: Next Struts Release with support dojo 1.x i.e. digits

2008-08-28 Thread Jeromy Evans
deepakdabas wrote: I want to know when apache is planning to have the release of struts with support of dojo1.x i.e. support of digits in Struts tags. Have you tried using dijit? If so, I'm interested to hear what benefit you think struts tags would provide over using dijit directly? It

Re: Struts2 with JPA/Hibernate using Spring

2008-08-28 Thread Edwin Quita
you can create a separate project for your pesistence layer and another project for the view. you then add the persistence layer project as a dependecy to other projects. i have here an example although this one didn't use JPA, i just used Spring's JdbcTemplate for persistence. http://edwin.quit

RE: Default bundles with JDK6

2008-08-28 Thread Repko, Brian
Jeremy, Close...here is what I'm doing in order to support ResourceBundle.Control. 1. Configure the TextProvider in struts.xml (constant struts.xworkTextProvider) 2. Our TextProvider impl extends TextProviderSupport and overrides getTexts(String name) - we call ResourceBundle.getBundle with a

Re: Extending EJBInjection interceptor

2008-08-28 Thread Alexander Baetz
I hate to admit it, but i dont unterstand that question... if it helps, i'm using JBoss 5 rc1 and the Interceptor i'm writing naturally runs in the same container as my struts application. Greetings Alexander Martin Gainty schrieb: which EJB container are you using to implement the @EJB fun

s:text undesired behaviour - getting action properties in struts 2

2008-08-28 Thread Vinicius Cubas Brand
Hello. I have an action that haves the method getOperador() . Also, in my messages.properties file with internationalized strings there are two lines: operador.telefone=string1 telefone=string2 I am using in the jsp the tag with this I want this 'operador.telefone' string to be translate

Re: YUI plugin -please suggest me how to imlementing it

2008-08-28 Thread Musachy Barroso
Generic answer for a generic question: 1. Read the Struts 2 documentation 2. Read the JSON plugin documentation 3. Read the YUI plugin documentation 4. Post questions to the users mailing list describing your problem, and include relevant configuration/code/logs sections musachy On Thu, Aug 14,

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
"9-character JSP trick", what is this ? -- Milan newton.dave wrote: > > If the underlying implementation is ordered then the 9-character JSP trick > would probably work. The solution is left as an exercise for the reader. > > Dave > > --- On Wed, 8/27/08, Milan Milanovic <[EMAIL PROTECTED]>

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread bhaarat Sharma
its magic. On Thu, Aug 28, 2008 at 10:43 AM, Milan Milanovic <[EMAIL PROTECTED] > wrote: > > "9-character JSP trick", what is this ? > > -- > Milan > > > newton.dave wrote: > > > > If the underlying implementation is ordered then the 9-character JSP > trick > > would probably work. The solution i

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, Milan Milanovic wrote: > "9-character JSP trick", what is this ? It's a clue that you could (potentially) solve [1] your issue by adding 9 characters to your JSP, without having to change anything in the Java code. The Set Javadocs may help. Dave [1] ObCaveat: it's unteste

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, bhaarat Sharma wrote: > its magic. I've been accused of writing magic OGNL :/ Unfortunately lots of my tricks end with "make my data disappear" ;) Dave > On Thu, Aug 28, 2008 at 10:43 AM, Milan Milanovic wrote: > > "9-character JSP trick", what is this ? > > > > newton.dave

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
You are maybe familiar with this "magic" ?! If so, please let us know. omnipresent wrote: > > its magic. > > On Thu, Aug 28, 2008 at 10:43 AM, Milan Milanovic > <[EMAIL PROTECTED] >> wrote: > >> >> "9-character JSP trick", what is this ? >> >> -- >> Milan >> >> >> newton.dave wrote: >> > >> >

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
Dave, please add that 9 character here, please, I don't have time anymore to search for "clues"...I'm stuck with this for days know :-. newton.dave wrote: > > --- On Thu, 8/28/08, Milan Milanovic wrote: >> "9-character JSP trick", what is this ? > > It's a clue that you could (potentiall

I need generic html table structure with theme ajax in struts 2

2008-08-28 Thread MyAshok
Hi all, Again thanks for ur past replies. Now, I am in a new issue. I need to use the ajax theme for two buttons (s:button id=A and s:button id =B). But, as default, each s: tag will create a tr and td tags. I dont want this type of table structure(row by row). I want to customize table structu

Re: REST 2.1.2

2008-08-28 Thread stanlick
Thanks Jeromy :jumping: Have you considered the transparency of the REST URL as it relates to security and tampering? Would something like Acegi provide a solution? Also, have you considered the likliehood of a user discovering parms that can be passed and mapped onto your action? I am getting

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
C... I love a puzzle.. Can you give us the 9 characters in an anagram?? Dave Newton wrote: --- On Thu, 8/28/08, Milan Milanovic wrote: "9-character JSP trick", what is this ? It's a clue that you could (potentially) solve [1] your issue by adding 9 characters to your JSP, wi

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, Al Sutton wrote: > C... I love a puzzle.. > > Can you give us the 9 characters in an anagram?? A rotary? (Plus two non-alpha, but it's already too easy now.) Not having enough information sure is a pain, huh. Dave > > Dave Newton wrote: > > --- On Thu, 8/28/08, Mi

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread bhaarat Sharma
bahahaah @ making my data disappear! On Thu, Aug 28, 2008 at 11:26 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Thu, 8/28/08, Al Sutton wrote: > > C... I love a puzzle.. > > > > Can you give us the 9 characters in an anagram?? > > A rotary? (Plus two non-alpha, but it's already too

Re: ClassCastException:MultipartRequestWrapper

2008-08-28 Thread sunilmitta
Can anyone please help me with this? Thanks and regards. Sunil sunilmitta wrote: > > Hi all, > > I know that this is an old problem but i couldnt get the solution > anywhere.It would be good if you could direct me one. > I get the > ClassCastException(ClassCastException:org.apache.struts.uplo

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Gabriel Belingueres
Interesting post I must say! I would try this: "share log" 2008/8/28, bhaarat Sharma <[EMAIL PROTECTED]>: > bahahaah @ making my data disappear! > > On Thu, Aug 28, 2008 at 11:26 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > > > --- On Thu, 8/28/08, Al Sutton wrote: > > > C... I love a puzzle

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
toArray() ? It works, but it is too expesive ? Milan newton.dave wrote: > > --- On Thu, 8/28/08, Al Sutton wrote: >> C... I love a puzzle.. >> >> Can you give us the 9 characters in an anagram?? > > A rotary? (Plus two non-alpha, but it's already too easy now.) > > Not having enoug

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
Define "expesive"... Do you mean expensive?, if so expensive in what terms; memory, speed, required goat sacrifices? Al. Milan Milanovic wrote: toArray() ? It works, but it is too expesive ? Milan newton.dave wrote: --- On Thu, 8/28/08, Al Sutton wrote: C... I love a puzzle..

input Map

2008-08-28 Thread Miguel
Hi, I'm currently writing a form based on a set, and each object of the set has it's own textfield and it's own id/name. The question is the way i read the returned value in the action. I've tried using a map, but puting the varname[key] doesn't work; How can I acomplish this using struts2? The go

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Jim Kiley
Have you bought any goats lately? On Thu, Aug 28, 2008 at 1:12 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > Define "expesive"... Do you mean expensive?, if so expensive in what terms; > memory, speed, required goat sacrifices? > > Al. > > Milan Milanovic wrote: > >> toArray() ? It works, but it is

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
If been using toArray recently so it's been kind of a necessity. Have you found a non-goat sacrificing optimisation? Jim Kiley wrote: Have you bought any goats lately? On Thu, Aug 28, 2008 at 1:12 PM, Al Sutton <[EMAIL PROTECTED]> wrote: Define "expesive"... Do you mean expensive?, if so

How do I create a conditionally disabled button?

2008-08-28 Thread laredotornado
Hi, I'm using Struts 1. I'm trying to clean up some code and make it into a proper Struts form. How do I create a button whose disabled attribute is set to true or false depending on a certain condition on my page? (The condition is if the variable "endCount" is less than the variable "maxCoun

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread bhaarat Sharma
i love this discussion. On Thu, Aug 28, 2008 at 1:17 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > If been using toArray recently so it's been kind of a necessity. Have you > found a non-goat sacrificing optimisation? > > > Jim Kiley wrote: > >> Have you bought any goats lately? >> >> On Thu, Aug 28

Re: input Map

2008-08-28 Thread Miguel
I've also read: http://struts.apache.org/2.x/docs/type-conversion.html but I don't understand how to use a Map Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Thu, Aug 28, 2008 at 12:14, Miguel <[EMAIL PROTECTED]> wrote: > Hi, > > I'm currently writing a form based

OGNL and Java Methods String Arguments

2008-08-28 Thread Richard Sayre
I'm trying to call the String replace method from OGNL. I can't find any specific examples on how to do this. I tried the following as a test: [EMAIL PROTECTED]@toString() This worked ok. My problem is I don't know how to pass string literals to the method. Here is my current code: ' Here i

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
"Expensive", you got it. In terms of speed, of course, because I need to do this 3-4 times in a jsp...but we definitely should think about goat sacrifices too. -- Milan Al Sutton wrote: > > Define "expesive"... Do you mean expensive?, if so expensive in what > terms; memory, speed, required

Re: ClassCastException:MultipartRequestWrapper

2008-08-28 Thread Laurie Harper
It's generally a good idea, if you don't get a response to a question, to try providing addition information. For example, where the exception is being thrown, the full stack trace, exactly what you did to get it, etc. The information you've provided so far really isn't enough to diagnose the p

Re: [OT] realm use in s2

2008-08-28 Thread Laurie Harper
This really isn't a Struts issue. You can convince yourself of that by removing the Struts tags from your login JSP; you should see the same behaviour. I would start by looking for any additional information in your container log files and/or searching the mailing list for you container to se

Re: Reading directory in JSP file (Struts 1.3)

2008-08-28 Thread Laurie Harper
nabbler12999 wrote: Hello, I want to read a directory. But canRead() gives false. How can I do it? Firstly, you show this code as a scriptlet; while you certainly can do this sort of thing from a JSP, such logic really belongs in your action. That asside: My code: [code] <% String filenam

Re: Ampersand sign problem

2008-08-28 Thread Laurie Harper
Can you post a code sample of what you are doing? html:text will only escape its output once, so perhaps you are passing it a string that has already been converted into the character entity form (£)? You could try escape="false", but I'd suggest understanding what's going on first so you're c

Re: I need generic html table structure with theme ajax in struts 2

2008-08-28 Thread Laurie Harper
MyAshok wrote: Hi all, Again thanks for ur past replies. Now, I am in a new issue. I need to use the ajax theme for two buttons (s:button id=A and s:button id =B). But, as default, each s: tag will create a tr and td tags. I dont want this type of table structure(row by row). I want to customi

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread georz1
Probably not too expensive in terms of speed considering this has been going on for 9 days now On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic <[EMAIL PROTECTED]>wrote: > > "Expensive", you got it. In terms of speed, of course, because I need to do > this 3-4 times in a jsp...but we definitely s

Re: input Map

2008-08-28 Thread Laurie Harper
Miguel wrote: Hi, I'm currently writing a form based on a set, and each object of the set has it's own textfield and it's own id/name. The question is the way i read the returned value in the action. I've tried using a map, but puting the varname[key] doesn't work; How can I acomplish this using

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
If you had solution, I'm sure that we would solve it in 5mins. georz1 wrote: > > Probably not too expensive in terms of speed considering this has been > going > on for 9 days now > > On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic > <[EMAIL PROTECTED]>wrote: > >> >> "Expensive", you got it.

Re: How do I create a conditionally disabled button?

2008-08-28 Thread Pierre Goupil
Hello, You should try something like this : " value=""> I haven't try it myself but this is the idea. M

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
And everything always has a price, even if you don't what it costs it may still be the only way to get what you want. georz1 wrote: Probably not too expensive in terms of speed considering this has been going on for 9 days now On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic <[EMAIL PROTECTED]

Re: OGNL and Java Methods String Arguments

2008-08-28 Thread Laurie Harper
Wouldn't do what you need? L. Richard Sayre wrote: I'm trying to call the String replace method from OGNL. I can't find any specific examples on how to do this. I tried the following as a test: [EMAIL PROTECTED]@toString() This worked ok. My problem is I don't know how to pass string lite

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
If I had a solution I would give it to you faster than that :). Maybe you need to approach the problem from a different angle (i.e. display the data differently), or do some reworking in the action to put the data in a more friendly format. Milan Milanovic wrote: If you had solution, I'm sur

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
O.K. One more thing, is it possible to define an array in jsp, where I will call set.toArray() and then to use this array (without calling toArray() every time) ? -- Milan Al Sutton wrote: > > If I had a solution I would give it to you faster than that :). > > Maybe you need to approach the

Re: [S1] Global Error Page: Exception available?

2008-08-28 Thread Jari Fredriksson
> Heya! > > Does Struts save the exception anywhere in the request > before loading a global-error-page? > > I would not like to catch exceptions in my Action and > save the error message, and I guess that is a common > problem. > > So is there any way I can print the > Exception.getMessage()

Re: OGNL and Java Methods String Arguments

2008-08-28 Thread Gabriel Belingueres
Have you tried JSTL's replace tag? http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/replace.fn.html 2008/8/28, Richard Sayre <[EMAIL PROTECTED]>: > I'm trying to call the String replace method from OGNL. I can't find > any specific examples on how to do this. > > I tried the following

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Gabriel Belingueres
Did you tried iterating using JSTL's forEach tag? 2008/8/28, Milan Milanovic <[EMAIL PROTECTED]>: > > O.K. One more thing, is it possible to define an array in jsp, where I will > call set.toArray() and then to use this array (without calling toArray() > every time) ? > > -- > Milan > > > > Al Sut

Struts 2.1 release?

2008-08-28 Thread Oleg Mikheev
Hi guys! What are the plans for v2.1 release? Is there any roadmap available? Like this one but with dates: http://cwiki.apache.org/S2WIKI/21-to-25-roadmap.html Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, Milan Milanovic wrote: > "Expensive", you got it. In terms of speed, of > course, because I need to do this 3-4 times in a jsp... Or you could do it once and use Or use a map. Or an array in the first place. And of course you could put it in the array in your action and use

Re: OGNL and Java Methods String Arguments

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, Richard Sayre wrote: > I'm trying to call the String replace method from OGNL. > I can't find any specific examples on how to do this. > > I tried the following as a test: In addition to the other responses... if you have a string already you can just call replaceAll on it

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
Nop. Gabriel Belingueres-2 wrote: > > Did you tried iterating using JSTL's forEach tag? > > 2008/8/28, Milan Milanovic <[EMAIL PROTECTED]>: >> >> O.K. One more thing, is it possible to define an array in jsp, where I >> will >> call set.toArray() and then to use this array (without calling toA

Struts visitorfieldvalidator invoked even when the getter is not invoked

2008-08-28 Thread Himanshu Ranavat
Hi, I am using Struts Validation using annotations such as FieldExpressionValidator and VisitorFieldValidator on the Person Object. Now the wierd part is even though I do not invoke the getter on the Person objects, struts starts to validate it. Is this correct behavior. Shouldn't struts initiate

Re: Struts 2.1 release?

2008-08-28 Thread Laurie Harper
Oleg Mikheev wrote: Hi guys! What are the plans for v2.1 release? Is there any roadmap available? Like this one but with dates: http://cwiki.apache.org/S2WIKI/21-to-25-roadmap.html Thanks With dates; no. Work happens as the project's volunteers find time to do it. Anyone interested in forthc

Re: input Map

2008-08-28 Thread Miguel
Just for the record, the problem wasn't from the action to the jsp, but from the submited action to load the data. Continued trying and this was the thing that worked: ResponseAction-conversion.properties: Key_resp=java.lang.Long Element_resp=java.lang.Double CreateIfNull_resp=true ResponseActio

RE: OGNL and Java Methods String Arguments

2008-08-28 Thread Martin Gainty
since you're using a freemarker variable why not use j_string to insert into string literal ..the example <#assign user = "Big Joe's \"right hand\""> alert("Welcome ${user?js+string}!"); outputs alert("Welcome Big Joe\'s \"right hand\"!"); http://freemarker.sourceforge.net/docs/ref

Re: REST 2.1.2

2008-08-28 Thread Jeromy Evans
stanlick wrote: Thanks Jeromy :jumping: Have you considered the transparency of the REST URL as it relates to security and tampering? Would something like Acegi provide a solution? Also, have you considered the likliehood of a user discovering parms that can be passed and mapped onto your act

Result Annotations

2008-08-28 Thread rakeshxp
Hi, I am using Result annotations in the following manner ( static way ) @Results({ @Result(name = "index", value = "/jsp/en_US/help.jsp") }) How can I pass a dynamic value to the result annotation, so that I can achieve something like this @Results({ @Result(name = "index", value = "/j