Re: Which Spring and Hibernate versions are compatible

2010-04-07 Thread aum strut
Yes we can use it..
we are using it one of our project which is ready to go t production.

On Wed, Apr 7, 2010 at 8:49 AM, Cimballi wrote:

> Yes !
>
>
> On Tue, Apr 6, 2010 at 11:15 PM, Krunal Dhamelia 
> wrote:
> > Hi All,
> >
> > I am new to Struts 2 and wanted to use latest versions of Spring and
> > Hibernate with Struts2.
> > Is it possible to use Spring 3.0.2 and Hibernate 3.5 with Struts 2?
> >
> >
> > Krunal Dhamelia
> >
>
>
>
> --
> Cimballi
> JAVA J2EE Freelance
> http://cimballi.elance.com/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


non-localized decimal separator

2010-04-07 Thread michele mazza

hi
I'm having trouble submitting doubles in Struts 2.1.8.
I want to use the period as decimal separator regardless of locale (here in Italy we use the comma, but 
the key in the numeric keypad is mapped to the period - go figure).
on a machine set to en_US it works fine, on one with it_IT it just strips the dot, so I'm guessing the 
type converter is treating it as thousands separator as per locale.


is it possible to force this in configuration?

thank you in advance for any reply
--
michele


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts 2 tag confution

2010-04-07 Thread Dale Newfield

Supratim Bandyopadhyaya wrote:


But the parameter direction which is assigned a value "forward"
does not show.


The param "direction" is assigned the value resulting from evaluating 
"forward" against the valuestack.


FOO works because anything inside the tag is 
evaluated to a string before being used.


A better solution would be to be explicit about the fact that you want a 
string:




-Dale

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: i18n problem with Struts2 - getting weird

2010-04-07 Thread Marc Logemann
Yeah. But the issue was that i have not defined the needed:
<%...@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>


---
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de




Am 05.04.2010 um 13:58 schrieb Alex Rodriguez Lopez:

> Do you have your struts.custom.i18n.resources property correctly assigned to 
> your bundle(s)?
> 
> Em 05-04-2010 11:27, Marc Logemann escreveu:
>> Hi,
>> 
>> imagine the following jsp (saved in UTF-8 encoding):
>> 
>> -- snipp ---
>> 
>> <%@ taglib prefix="s" uri="/struts-tags" %>
>> 
>> 
>> 
>> 
>> Hauptmenü
>> 
>> 
>> 
>> 
>> 
>> 
>> -- END snipp ---
>> 
>> Now i have a resource bundle like that:
>> 
>> menu.mainmenu=Hauptmen\u00fc
>> 
>> Inside its the german u with 2 dots on top.
>> 
>> Now i run the following action:
>> 
>> -- snipp ---
>> 
>> public class TestStruts2Action extends ActionSupport {
>> 
>> String foo;
>> 
>> public String execute() {
>> foo = getText("menu.mainmenu");
>> 
>> return Action.SUCCESS;
>> }
>> 
>> public String getFoo() {
>> return foo;
>> }
>> }
>> 
>> -- END snipp ---
>> 
>> When i run this in the browser, i am getting 3 different things.
>> 
>> * The hardcoded "Hauptmenü" in the JSP will be displayed correcty. This 
>> means that the browser has correctly read the stream with a UTF-8 encoder.
>> * The string gets out of the bundle via  wil be broken. Instead 
>> of an Entity or the raw UTF-8 character, i am getting "ef bf bd" as last 
>> character, means unknown character.
>> * the third way of exposing attribute "foo" will result in the word 
>> "Hauptmenü" (with the correct HTML entity). Remeber, it comes from the 
>> same bundle as you can see in the action.
>> 
>> So something is wrong with  tag but what. I tried solving this one 
>> for about 4 hours without any luck. When switching the browser encoding to 
>> ISO-8859-1, the  works but then of course variant 1 doesnt work 
>> because i hardcoded the "umlaut" to the JSP and i definitely need that 
>> running because thats the natural way to do.
>> 
>> Thanks for hints.
>> 
>> ---
>> regards
>> Marc Logemann
>> http://www.logemann.org
>> http://www.logentis.de
>> 
>> 
>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: s:if tag syntax help needed

2010-04-07 Thread RogerV



DNewfield wrote:
> 
> Felipe A. Lorenz wrote:
>> Im not sure that you can use it (instanceof).
> 
> The problem might not be with instanceof but rather StringElement.  Did 
> you try a fully qualified classname?
> 
> 

Sorry about the delay in replying, but it's a 6 day Easter break in my
locale. Anyway, using the fully qualified class name solves the issue;



Regards
-- 
View this message in context: 
http://old.nabble.com/s%3Aif-tag-syntax-help-needed-tp28093648p28165320.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: World¹s Simplest Struts/2 Ajax Pattern

2010-04-07 Thread stanlick

Hey Z -- 

I hear what your saying brother, but big shops have such tight constraints
about what you can download and use that this was a real s t r e t c h for
the last shop I was in!  We were happy to Struts/2 approved!  I like your
strategy too.

P.S. I'm a drummer and Z reminds me of Zildjian! :drunk:

Peace,
Scott


Sparecreative wrote:
> 
> While I appreciate what you¹re saying, we¹ve found that by moving to one
> of
> the javascript libraries (we use jQuery, but they all offer pretty much
> the
> same range and depth) for all our ajax work, the task has been simplified
> immensely.
> 
> Also, by moving away from the S2 ajax tags, we¹ve found that it has been
> easier to manage features and libraries.
> 
> I guess what I¹m saying is that sometimes it¹s worth stepping back to see
> if
> we¹re just not reinventing the wheel. I make no secret of the fact that I
> find the S2 built in ajax support to be a wasted effort.
> 
> Z.
>> 
>> 
>> After answering similar questions regarding Struts/2 and Ajax on several
>> forums, I have decided to write an actual paper on the topic.  While I
>> figure out where to publish "papers" I am dropping the link here.
>> 
>> http://struts2inaction.com/SimpleAjax.html World¹s Simplest Struts/2 Ajax
>> Pattern 
>> 
>> Peace,
>> Scott
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/World%E2%80%99s-Simplest-Struts-2-Ajax-Pattern-tp28157121p28164320.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 File Upload

2010-04-07 Thread sand...@i2it

JSP page

  

 
 

My Action Class

  public class TestUpload  extends ActionSupport{

public TestUpload() {
}

public String execute() throws Exception {
Logger.getLogger(this.getClass().getName()).log(Level.INFO,"File
Name \n"+getFilesFileName());
Logger.getLogger(this.getClass().getName()).log(Level.INFO,"File
Type \n"+getFilesContentType());
 -
--
-

return SUCCESS;
}


 private String jids;
private File files;
private String filesContentType;
private String filesFileName;


// gettter and setters


All i want is just to print the name 
-- 
View this message in context: 
http://old.nabble.com/Struts2-File-Upload-tp28163069p28163274.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 File Upload

2010-04-07 Thread Kun Niu

How did you write your file upload form?

sand...@i2it wrote:

Hello All,

In my file upload program of struts 2 in HTTP Monitor window of Netbeans
im getting Data sent with this request was not parameterized


Thanks in Advance
  


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts2 File Upload

2010-04-07 Thread sand...@i2it

Hello All,

In my file upload program of struts 2 in HTTP Monitor window of Netbeans
im getting Data sent with this request was not parameterized


Thanks in Advance
-- 
View this message in context: 
http://old.nabble.com/Struts2-File-Upload-tp28163069p28163069.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts 2 tag confution

2010-04-07 Thread Supratim Bandyopadhyaya
Thanks a million!

On Wed, Apr 7, 2010 at 1:47 PM, Alex Rodriguez Lopez  wrote:

> Use this syntax:
>
> forward
>
>
> Em 07-04-2010 06:52, Supratim Bandyopadhyaya escreveu:
>
>  Greetings to all,
>> I have been trying to get  to work properly.
>> Here is the code.
>>
>> 
>> 
>> 
>> 
>> Next Record
>>
>> here the parameter offset comes from the action bean which shows up in the
>> url fine. But the parameter direction which is assigned a value "forward"
>> does not show. How can I fix this.
>>
>> Thanks in advance,
>> Supratim.
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Struts2 on Websphere portal 6.1.0.0

2010-04-07 Thread Prabahar

Hi, I am also facing similar problem while creating and deploying struts 2
portlet in IBM Portal server 6.1
Have you deployed Struts portlet 2? if so could you please share an example?

regards,
Prabahar
-- 
View this message in context: 
http://old.nabble.com/Struts2-on-Websphere-portal-6.1.0.0-tp18761735p28162812.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Standalone Dojo library with Struts 2.1.8 (conflict with the Dojo plugin)

2010-04-07 Thread Celinio Fernandes

Hi,
I am trying to use the Dojo library as a standalone resource with Struts 2.1.8.
The problem is that i have already included the Dojo plugin for Struts 2.1.8 
(the jar is inside WEB-INF/lib).
There seems to be a conflict now. Because the autocompleter  I 
used before no longer works if i include
the Dojo Dojo library as a standalone resource 
(/resources/js/dojo-release-1.4.2/dojo/dojo.js) in my JSP.
How do you use both ? The standalone version and the plugin version ?
Thanks.


  

Re: Why do I need a refresh to print a display:table ?

2010-04-07 Thread Stephane Cosmeur
I don't know how to check if the PrepareInterceptir is in my interceptor
stack or not, but the method prepare() is called.
And don't be sorry for trying to help, i'm new on struts 2 and this strange
behaviour must come from a mistake, but I really can't see where it could
be, given the table is populated.

Then I would have another question, when a jsp containaing struts balise and
java code as well (to access to session object for example) is
interpretated. Is the compiler wait to finish executing java code before to
keep interpretating the jsp ?

Thx for your help

On Wed, Apr 7, 2010 at 4:32 PM, Alex Rodriguez Lopez  wrote:

> Is the PrepareInterceptor in your interceptor stack? The prepare() method
> is called by this interceptor.
>
> Sorry if you checked already this things, it is the only that comes to
> mind, otherwise it really seems like a strange behaviour.
>
> Em 07-04-2010 09:27, Stephane Cosmeur escreveu:
>
>  Yes I tried quite early after i discovered my problem and unfortunately
>> useless. The behaviour stays strictly the same.
>>
>> On Wed, Apr 7, 2010 at 4:08 PM, Alex Rodriguez Lopez<
>> alo...@flordeutopia.pt
>>
>>> wrote:
>>>
>>
>>  Hi Stéphane,
>>>
>>> did you try implementing the Preparable interface in your action and
>>> populating your List in the prepare() method?
>>>
>>>
>>>
>>> http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html
>>>
>>> Em 07-04-2010 05:16, Stephane Cosmeur escreveu:
>>>
>>>  One week later, i'm still bocking on this problem !
>>>
 The display:table has a really strange behaviour. I still have to click
 two
 times on the action to get my table diplaying.
 What's is very weird is that after the first click the s:debug balise
 confirms me my list of clients is not empty.
 Is it possible that the display:table get displayed before that the list
 get
 populated ?

 There is the code of my display:table
 
  
 
  >>> href="../firsttry/ListOrdersClient.action" paramProperty="id"
 paramId="id"/>
  
 
  
 
  

 help plz !

 Regards,

 On Wed, Mar 31, 2010 at 4:18 PM, Stephane Cosmeur
  wrote:

  Hello,

>
> My second message on this webmail and still very new on Struts 2.
> My problem is, I guess, quite common. I have a simple action which
> return
> a
> jsp containing a display:table. This table calls his data from the list
> inside the actionclass.
> The table display perfectly well, but only at the second click on the
> link
> or after refreshing the page. At the first click, the table only
> display
> this error : Nothing found to display.
> I dedudeced from my traces that even at the first click, the list was
> not
> empty. Then I think it is the display:table which does not execute his
> request to access the list. What do you think ?
>
> Thank you.
>
> --
> Stéphane Cosmeur
> 06 33 54 36 04
>
>
>



>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>>
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Stéphane Cosmeur
06 33 54 36 04


Dojo div disable problem in struts2

2010-04-07 Thread Rakesh K nair

Hi

In my application i am using  DOJO divs with attribute updateFreq(for
refreshing)
But i want to activate it in certain condition only,other wise it should be
disabled
i tried to use 'disabled' attribute to disable div but it doesn't work.Is it
possible to  
disable and enable DOJO divs from javascript.
I used as follows

<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>





I also used 'listenTopics' to restrict div from calling URL but it is also
not working

Please help me to over come this

Expecting your kind interaction
Thanks in advance
Rakesh
-- 
View this message in context: 
http://old.nabble.com/Dojo-div-disable-problem-in-struts2-tp28162052p28162052.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Why do I need a refresh to print a display:table ?

2010-04-07 Thread Alex Rodriguez Lopez
Is the PrepareInterceptor in your interceptor stack? The prepare() 
method is called by this interceptor.


Sorry if you checked already this things, it is the only that comes to 
mind, otherwise it really seems like a strange behaviour.


Em 07-04-2010 09:27, Stephane Cosmeur escreveu:

Yes I tried quite early after i discovered my problem and unfortunately
useless. The behaviour stays strictly the same.

On Wed, Apr 7, 2010 at 4:08 PM, Alex Rodriguez Lopez
wrote:



Hi Stéphane,

did you try implementing the Preparable interface in your action and
populating your List in the prepare() method?


http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html

Em 07-04-2010 05:16, Stephane Cosmeur escreveu:

  One week later, i'm still bocking on this problem !

The display:table has a really strange behaviour. I still have to click
two
times on the action to get my table diplaying.
What's is very weird is that after the first click the s:debug balise
confirms me my list of clients is not empty.
Is it possible that the display:table get displayed before that the list
get
populated ?

There is the code of my display:table

  

  
  

  

  

help plz !

Regards,

On Wed, Mar 31, 2010 at 4:18 PM, Stephane Cosmeur
  wrote:

  Hello,


My second message on this webmail and still very new on Struts 2.
My problem is, I guess, quite common. I have a simple action which return
a
jsp containing a display:table. This table calls his data from the list
inside the actionclass.
The table display perfectly well, but only at the second click on the
link
or after refreshing the page. At the first click, the table only display
this error : Nothing found to display.
I dedudeced from my traces that even at the first click, the list was not
empty. Then I think it is the display:table which does not execute his
request to access the list. What do you think ?

Thank you.

--
Stéphane Cosmeur
06 33 54 36 04








-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org








-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Why do I need a refresh to print a display:table ?

2010-04-07 Thread Stephane Cosmeur
Yes I tried quite early after i discovered my problem and unfortunately
useless. The behaviour stays strictly the same.

On Wed, Apr 7, 2010 at 4:08 PM, Alex Rodriguez Lopez  wrote:

> Hi Stéphane,
>
> did you try implementing the Preparable interface in your action and
> populating your List in the prepare() method?
>
>
> http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html
>
> Em 07-04-2010 05:16, Stephane Cosmeur escreveu:
>
>  One week later, i'm still bocking on this problem !
>> The display:table has a really strange behaviour. I still have to click
>> two
>> times on the action to get my table diplaying.
>> What's is very weird is that after the first click the s:debug balise
>> confirms me my list of clients is not empty.
>> Is it possible that the display:table get displayed before that the list
>> get
>> populated ?
>>
>> There is the code of my display:table
>> 
>>  
>> 
>>  > href="../firsttry/ListOrdersClient.action" paramProperty="id"
>> paramId="id"/>
>>  
>> 
>>  
>> 
>>  
>>
>> help plz !
>>
>> Regards,
>>
>> On Wed, Mar 31, 2010 at 4:18 PM, Stephane Cosmeur
>>  wrote:
>>
>>  Hello,
>>>
>>> My second message on this webmail and still very new on Struts 2.
>>> My problem is, I guess, quite common. I have a simple action which return
>>> a
>>> jsp containing a display:table. This table calls his data from the list
>>> inside the actionclass.
>>> The table display perfectly well, but only at the second click on the
>>> link
>>> or after refreshing the page. At the first click, the table only display
>>> this error : Nothing found to display.
>>> I dedudeced from my traces that even at the first click, the list was not
>>> empty. Then I think it is the display:table which does not execute his
>>> request to access the list. What do you think ?
>>>
>>> Thank you.
>>>
>>> --
>>> Stéphane Cosmeur
>>> 06 33 54 36 04
>>>
>>>
>>
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Stéphane Cosmeur
06 33 54 36 04


Re: struts 2 tag confution

2010-04-07 Thread Alex Rodriguez Lopez

Use this syntax:

forward


Em 07-04-2010 06:52, Supratim Bandyopadhyaya escreveu:

Greetings to all,
I have been trying to get  to work properly.
Here is the code.

 
 
 
 
 Next Record

here the parameter offset comes from the action bean which shows up in the
url fine. But the parameter direction which is assigned a value "forward"
does not show. How can I fix this.

Thanks in advance,
Supratim.




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Why do I need a refresh to print a display:table ?

2010-04-07 Thread Alex Rodriguez Lopez

Hi Stéphane,

did you try implementing the Preparable interface in your action and 
populating your List in the prepare() method?


http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html

Em 07-04-2010 05:16, Stephane Cosmeur escreveu:

One week later, i'm still bocking on this problem !
The display:table has a really strange behaviour. I still have to click two
times on the action to get my table diplaying.
What's is very weird is that after the first click the s:debug balise
confirms me my list of clients is not empty.
Is it possible that the display:table get displayed before that the list get
populated ?

There is the code of my display:table

  

  
  

  

  

help plz !

Regards,

On Wed, Mar 31, 2010 at 4:18 PM, Stephane Cosmeur  wrote:


Hello,

My second message on this webmail and still very new on Struts 2.
My problem is, I guess, quite common. I have a simple action which return a
jsp containing a display:table. This table calls his data from the list
inside the actionclass.
The table display perfectly well, but only at the second click on the link
or after refreshing the page. At the first click, the table only display
this error : Nothing found to display.
I dedudeced from my traces that even at the first click, the list was not
empty. Then I think it is the display:table which does not execute his
request to access the list. What do you think ?

Thank you.

--
Stéphane Cosmeur
06 33 54 36 04








-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org