Re: Handling Browser Back/Forward Button in Struts2

2009-01-21 Thread shekher awasthi
Hi Paweł, thats true it only send request to server if i will refresh the page and for that i have already custom interceptor places which is checking the user object in session in order to confirm that the request is from authorized user but when i make use of back button it serve the page

Re: Handling Browser Back/Forward Button in Struts2

2009-01-21 Thread Paweł Wielgus
Hi Shekher, what i meant is that it can be done from server side. Check for example Your e-banking application, i did it on mine :-). There, when You press back button browser won't serve You cached page but ask server for fresh one - this is controlled with content-cache and pragma, but i can't

Re: passing a map of parameters to a URL

2009-01-21 Thread Nathan Coast
Hi Dave, Thanks for your tip. Apologies for my newbie-ness. Like I said, I've tried every combination I can think of - except presumably the correct one. Some examples: s:param name=#attr['reqParam'].key value=#attr['reqParam'].value/ s:param name=#['reqParam'].key

Re: Tooltips Not working in 2.1.6

2009-01-21 Thread Ralf Fischer
Hi, On Tue, Jan 20, 2009 at 2:08 PM, Zoran Avtarovski zo...@sparecreative.com wrote: I¹ve just upgraded an app from 2.0.xx to 2.1.6 and found that the s:select tag is incorrectly rendering the tooltip html. I¹ve gone back to defaults and this is what¹s being produced:: td

How to split length text line in textarea

2009-01-21 Thread Seshagiri V
Hollow All, I used s:textarea tag, can enter the length text in one line. How to set limited text (characters) in one line in textarea. Here is a snippet of my code in the jsp: s:textarea name=waterholeText cols=96 rows=10 cssClass=inputTextArea/s:textarea I expect correct

Re: passing a map of parameters to a URL

2009-01-21 Thread Ralf Fischer
Hi Nathan, On Wed, Jan 21, 2009 at 9:25 AM, Nathan Coast nat...@codeczar.com wrote: Hi Dave, Thanks for your tip. Apologies for my newbie-ness. Like I said, I've tried every combination I can think of - except presumably the correct one. Some examples: s:param name=#attr['reqParam'].key

RE: Injecting in Interceptors (Struts2ejb3)

2009-01-21 Thread Fernandes Celinio SGCF
Hello Lukasz, Can you access the source code of this plugin ? http://code.google.com/p/struts2ejb3/ I signed in on google but still cannot see any files. Is that project still empty ? Does anyone see the files ? -Message d'origine- De : Lukasz Lenart

Re: Handling Browser Back/Forward Button in Struts2

2009-01-21 Thread shekher awasthi
i tried using setting the eader values but they are not working as expected i can even go and move back using broswer back button. if i will find anything helpfull will share with you till then hard luck :) 2009/1/21 Paweł Wielgus poulw...@gmail.com Hi Shekher, what i meant is that it can be

Re: Handling Browser Back/Forward Button in Struts2

2009-01-21 Thread shekher awasthi
Is it possible that either i should only put these header in the logout action where i am removing the session and den redirecting the user to index page something like this HttpServletResponse response=null; response=ServletActionContext.getResponse();

concurrent request returned wrong vm template

2009-01-21 Thread James.Guo Jia
I experienced a strange issue about Velocity and Struts2. Two requests for different methods in the same Action concurrently, however they got the same response. It means request A get the same result of request B. I tried google, but can't find anything useful. Could you help me? I guess I

Re: Injecting in Interceptors (Struts2ejb3)

2009-01-21 Thread Andras Balogh
Yes, there are 2 files (InjectEJB.java,EJB3Interceptor.java) that are visible at Browse the Source code or you can do an anonymous SVN checkout: svn checkout */http/*://struts2ejb3.googlecode.com/svn/trunk/ struts2ejb3-read-only BR, Andras Fernandes Celinio SGCF wrote: Hello Lukasz, Can

html:img inside html:button

2009-01-21 Thread elyes sallem
i wanna use html:img inside html:button here is the example : html:button property=test onclick=modifierLigne(%= index %,%=((AjustContrat)ajustContrat).getAjustcontId() %) html:img alt=bean:message key=commun.modifier/ src=img/modif.jpg height=15px

Re: html:img inside html:button

2009-01-21 Thread Dave Newton
elyes sallem wrote: html:img alt=bean:message key=commun.modifier/ src=img/modif.jpg height=15px style=vertical-align: bottom/ The issue is that you're nesting custom tags, and you can't do that. I'd probably just use an HTML image tag. ObFaqEntryRant Sure seems

Re: passing a map of parameters to a URL

2009-01-21 Thread Nathan Coast
Hi Ralf, Thanks for the pointers. It feels to me that the having the param tag within an iterator was a bit of a hack in the first place. Some solutions I may play with... 1) create a params class that copes with collections 2) subclass the url class to cope with param maps directly 3)

S2 - Errors in tags documentation

2009-01-21 Thread hernan gonzalez
The docs for the iterator tag, http://struts.apache.org/2.0.11.2/docs/iterator.html has an error, IMO (apart from the unfortunate confusion over the 'id' vs 'var' attributes, which actually apply to struts 2.1) : It says: var : Name used to reference the value pushed into the Value Stack

Re: S2 - Errors in tags documentation

2009-01-21 Thread Dave Newton
hernan gonzalez wrote: The docs for the iterator tag, http://struts.apache.org/2.0.11.2/docs/iterator.html has an error, IMO (apart from the unfortunate confusion over the 'id' vs 'var' attributes, which actually apply to struts 2.1) : It says: var : Name used to reference the value

Re: S2 - Errors in tags documentation

2009-01-21 Thread Dave Newton
(Forgot to add that the same is true for the bean tag as well.) Dave Newton wrote: hernan gonzalez wrote: The docs for the iterator tag, http://struts.apache.org/2.0.11.2/docs/iterator.html has an error, IMO (apart from the unfortunate confusion over the 'id' vs 'var' attributes, which

Re: S2 - Errors in tags documentation

2009-01-21 Thread hernan gonzalez
Of course, the object is pushed on the stack in every case (inside the scope of the iterator /bean tag) but , apart from that, the var/id attribute is used to place it (with that name!) in the ActionContext, and it will remain there even outside the tag scope, after it has been removed from the

Re: S2 - Errors in tags documentation

2009-01-21 Thread Dave Newton
hernan gonzalez wrote: Of course, the object is pushed on the stack in every case (inside the scope of the iterator /bean tag) but , apart from that, the var/id attribute is used to place it (with that name!) in the ActionContext, and it will remain there even outside the tag scope, after it has

Re: S2 - Errors in tags documentation

2009-01-21 Thread Musachy Barroso
Whoever wrote that description is missing some serious english skillz. musachy On Wed, Jan 21, 2009 at 3:08 PM, hernan gonzalez hgonza...@gmail.com wrote: Of course, the object is pushed on the stack in every case (inside the scope of the iterator /bean tag) but , apart from that, the var/id

[S2] Store a request and invoke it later

2009-01-21 Thread Andreas Mähler
Hello everybody, I would like to know if there is a sane way to store a request (i.e. action name and all parameters) and use it later. It would be nice to do this to redirect a user to the login screen and just invoke the original action after the user has been successfully authenticated.

Re: [S2] Store a request and invoke it later

2009-01-21 Thread Wes Wannemacher
On Wednesday 21 January 2009 20:35:49 Andreas Mähler wrote: Hello everybody, I would like to know if there is a sane way to store a request (i.e. action name and all parameters) and use it later. It would be nice to do this to redirect a user to the login screen and just invoke the original

s1: java.lang.NoClassDefFoundError MessageResources

2009-01-21 Thread farmer2008
Hi, I have a Java class as a model which has a method taking a MessageResources as a parameter and returning a String loaded from a properties file using the MessageResources. The model is created in Action.execute(). The project can be compiled but when running it, we get

Problem moving from 2.0.14 to 2.1.6

2009-01-21 Thread Oleg T.
I am trying to upgrade to 2.1.6 and getting an error on Validation that I am having problems isolating. I followed migration guide at http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html and didn't actually have to change that much since application is in very

RE: s1: java.lang.NoClassDefFoundError MessageResources

2009-01-21 Thread Martin Gainty
Should be located in struts-core http://www.java2s.com/Code/Jar/Apache/Downloadstrutscore135jar.htm make sure you struts-core*.jar goes in ./WEB-INF/lib As you are located in Canada it is possible you *may* have be using different Locales in which case you want to use getMessage(Locale,key)

RE: [S2] Store a request and invoke it later

2009-01-21 Thread Martin Gainty
1)store in db 2)if static.. place in properties file 3)you can use OGNL to place values into 'application' scope surest and safest is to store in db.. Mit freundlichen Grüßen Martin __ Disclaimer and confidentiality note Everything in this e-mail

Re: [S2] Store a request and invoke it later

2009-01-21 Thread Dave Newton
Martin Gainty wrote: 1)store in db 2)if static.. place in properties file 3)you can use OGNL to place values into 'application' scope ... 3) Seems like 'session' would be more appropriate since we're talking about storing an individual user's request, to be re-used after a login. And it

Re: s1: java.lang.NoClassDefFoundError MessageResources

2009-01-21 Thread Dave Newton
Martin Gainty wrote: Should be located in struts-core http://www.java2s.com/Code/Jar/Apache/Downloadstrutscore135jar.htm As a side note, I don't think that's an official Apache mirror, and I didn't see the signatures there--I couldn't recommend downloading it from there.

Re: Struts 2 session problem

2009-01-21 Thread musomesa
SEAM does use a conversation id that is passed in the traffic to the client. The longer business process context stores data in a database so that another participant in the process on logging in can work on it. Chris -Original Message- From: Greg Lindholm glindh...@yahoo.com