[Struts 2] webapp on internet, clients behind a proxy --> session clash

2008-06-04 Thread Julien ROTT
Hello, I have put my webapplication on a server on the internet. Some clients access this application from behind a company proxy and there are session problems : one client sees the data from another client... but when hitting "F5" the browser gets back to its normal session. I guess the server

not working after validation error

2008-06-04 Thread StrutsUser
Hi, I am having a situation where the tag does not work. I am doing some client side validation using javascript and server side valdiations in the 'validate()' method of my action class. When client side validation fails and I click the reset button, the data gets cleared. But when the validati

Re: focusElement attribute in tag

2008-06-04 Thread StrutsUser
Hi, I tried as you have mentioned. The script gets called, the element is obtained, but focus is not set. function setDefaultFocus() { alert("focusElm "+document.getElementById("newMedicine.newMedicineDEscription")); document.getElementById("newMedicine.newMedicineDEscripti

Error Messages In ApplicationResources.properties

2008-06-04 Thread StrutsUser
Hi, I have a situation where I am doing some client side validation in javascript. When an error occurs I need to get the error message from ApplicationResources.properties. I also need to pass a field name to the error message. I tried using getText() within JavaScript to access the error message

Re: splitting on a period ? <- please ignore

2008-06-04 Thread Vinny
Sorry, I sent this to the wrong "user" list. On Wed, Jun 4, 2008 at 11:06 PM, Vinny <[EMAIL PROTECTED]> wrote: > OK, this one baffles me :) > > "file.txt".split(".") produces an empty array ? > > > > > > testing it on the groovysh, (trying to that more often before posting > on the list) : > > >

splitting on a period ?

2008-06-04 Thread Vinny
OK, this one baffles me :) "file.txt".split(".") produces an empty array ? testing it on the groovysh, (trying to that more often before posting on the list) : groovy:000> mysplit = "file.txt".split(".") ===> [Ljava.lang.String;@73b4f342 groovy:000> mysplit.size() ===> 0 groovy:000> printl

Display tag and AJAX

2008-06-04 Thread Arunkumar Balasubramanian
Can we update the display:table with an ajax call? Here is what I was expecting to do. - There are different radio buttons (each will have different status of results) - Depending on the selection, the display:table has to update the rows. - There display:table headers dosen't change and

RE: Is there such a thing as flash in S2?

2008-06-04 Thread kenk
GB, I've finished implementing my use case using your FlashInterceptor and FlashResult -- it worked perfectly and I didn't need to change anything in your code. :clap: But it did take me a while to achieve success, mainly owing to my newness to Struts 2 and the difficulty I've had following t

Re: [Struts 2] Formatting double

2008-06-04 Thread Felipe Lorenz
Im sorry!!! On Wed, Jun 4, 2008 at 6:46 PM, Roger Varley <[EMAIL PROTECTED]> wrote: > On Wednesday 04 June 2008 22:49:15 Felipe Lorenz wrote: > > Are you brazilian to use a comma for decimal separator? > > > > You might be surprised at the number of countries that use a comma as the > decimal sep

Re: [Struts 2] Formatting double

2008-06-04 Thread Roger Varley
On Wednesday 04 June 2008 22:49:15 Felipe Lorenz wrote: > Are you brazilian to use a comma for decimal separator? > You might be surprised at the number of countries that use a comma as the decimal separaor as opposed to the dot. http://en.wikipedia.org/wiki/Decimal_point Regards -

Re: [Struts2] Convention Plugin

2008-06-04 Thread Musachy Barroso
You will have to build xwork also, those classes are new. musachy On Wed, Jun 4, 2008 at 5:18 PM, vikofvan <[EMAIL PROTECTED]> wrote: > > Thanks for providing the link to the source of convention plugin; am unable > to compile the plugin as > com.opensymphony.xwork2.util.finder.* > is missing fro

Re: [Struts2] Convention Plugin

2008-06-04 Thread vikofvan
Thanks for providing the link to the source of convention plugin; am unable to compile the plugin as com.opensymphony.xwork2.util.finder.* is missing from xwork 2.1.1. Thanks. vikram Musachy Barroso wrote: > > The Convention plugin has not been released yet, it is in the sandbox > here: > >

Re: Getting a s:select selected value

2008-06-04 Thread Felipe Lorenz
Use javascript to select an item. On Wed, Jun 4, 2008 at 5:02 PM, piltrafeta <[EMAIL PROTECTED]> wrote: > > what do you mean ? > > > > felipe.lorenz wrote: > > > > use javascript for this problem... > > > > On Wed, Jun 4, 2008 at 4:35 PM, piltrafeta <[EMAIL PROTECTED]> wrote: > > > >> > >> If i p

Re: [Struts2] Convention Plugin

2008-06-04 Thread Musachy Barroso
The Convention plugin has not been released yet, it is in the sandbox here: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-convention-plugin/ musachy On Wed, Jun 4, 2008 at 4:13 PM, vikofvan <[EMAIL PROTECTED]> wrote: > > Where can I get hold of the strust2 convention plugin? It seems

[Struts2] Convention Plugin

2008-06-04 Thread vikofvan
Where can I get hold of the strust2 convention plugin? It seems to be missing from the 2.1.2 build. Thanks. Vikram -- View this message in context: http://www.nabble.com/-Struts2--Convention-Plugin-tp17655614p17655614.html Sent from the Struts - User mailing list archive at Nabble.com. -

Re: Getting a s:select selected value

2008-06-04 Thread piltrafeta
what do you mean ? felipe.lorenz wrote: > > use javascript for this problem... > > On Wed, Jun 4, 2008 at 4:35 PM, piltrafeta <[EMAIL PROTECTED]> wrote: > >> >> If i put key="maxCoord" it continues taking the value from the listbox of >> the >> first record... >> >> >> >> >> styl9090 wrote:

Re: Getting a s:select selected value

2008-06-04 Thread Felipe Lorenz
use javascript for this problem... On Wed, Jun 4, 2008 at 4:35 PM, piltrafeta <[EMAIL PROTECTED]> wrote: > > If i put key="maxCoord" it continues taking the value from the listbox of > the > first record... > > > > > styl9090 wrote: > > > > Try changing this line, > > > > to > > > > then, your

Re: [Struts 2] Formatting double

2008-06-04 Thread Felipe Lorenz
Are you brazilian to use a comma for decimal separator? whatever, if your system work only with that format(000.000,00) you can create a String field in Action class, and do the parse from string to double manually. On Wed, Jun 4, 2008 at 2:14 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > It's st

Re: s:select - execute action onChange

2008-06-04 Thread Felipe Lorenz
Hi. What action? A action to update another select, i.e.? I use something like this: onChange="jsFunction(this.value);" function jsFunction( id ) { var div = dojo.widget.byId(""); div.href = "myAction?myField="+id; div.refresh(); } That is it? On Wed, Jun 4, 2008 at 4:12 PM, Stetze2008 <

Re: Getting a s:select selected value

2008-06-04 Thread piltrafeta
If i put key="maxCoord" it continues taking the value from the listbox of the first record... styl9090 wrote: > > Try changing this line, > > to > > then, your variable(maxCoord) will hold the selected value from the list > box. > > > > piltrafeta wrote: >> >> Actually session.coordValu

s:select - execute action onChange

2008-06-04 Thread Stetze2008
hi I'm sorry but I did not find a quick solution for my problem on the web. I want to execute an action if another value of the select-box was selected. So i guess I have to use the onChange attribute but I dont know how. this is my actual form: theme="simple">

Interceptor for putting in KVP for i18n

2008-06-04 Thread tim robertson
Hi, I am trying to write an interceptor that will put in key value pairs for things that are not in the ResourceBundle. Can someone please help? There are so many contexts, that I am not sure how to set them. Suppose I have a Map that I want to put in such that %getText(...) will find them. Plea

Re: [Struts 2] Formatting double

2008-06-04 Thread Dave Newton
It's standard Java I18N formatting, IIRC. Maybe try some Java docs, [1] might help. Dave [1] http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html --- On Wed, 6/4/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > From: Milan Milanovic <[EMAIL PROTECTED]> > Subject: Re: [Struts

Re: several action execs to fill a form

2008-06-04 Thread Dave Newton
getRequest() is called repeatedly because you have a whole bunch of OGNL that looks like "request.node.description" etc. that calls getRequest(). If you were using Spring/etc. to handle service instantiation you wouldn't have to worry about this. Or you could just not get a new request every tim

Re: [Struts 2] Formatting double

2008-06-04 Thread Milan Milanovic
I found how to do it in this page: http://www.roseindia.net/struts/struts2/struts-2-format.shtml But I'm not sure how can I format number e.g., like this: 000.000.000,00 kg ? These patterns are not clear to me. -- Thx, Milan Milan Milanovic <[EMAIL PROTECTED]> wrote: Hi, I have a double valu

several action execs to fill a form

2008-06-04 Thread Juan Pablo Pizarro
Hi All. I've a problem, I use a RequestListAction that return a List and it is used to fill a form. The problem is that the getRequest method is called several times before showing the result (form filled). My action: private Request request; public Collection getLstCommand() {

Re: need help with validation

2008-06-04 Thread Greg Lindholm
Also see the FAQ "How do we repopulate controls when validation fails" http://struts.apache.org/2.0.11.1/docs/how-do-we-repopulate-controls-when-validation-fails.html curiousengr wrote: > > Hi, > > I am facing problem with validation. I need urgent help if someone can > provide it I will grea

RE: Cannot use multiple s:action tags?

2008-06-04 Thread Martin Gainty
tough to say without seeing the web.xml I would be looking for the servlet entry for admin.NextGen.ManageNotes and also the servlet web.xml entry for admin.NextGen.ManageSamples also please display code for each Action class Any or configurations in struts-config.xml should be displayed as wel

[Struts 2] Formatting double

2008-06-04 Thread Milan Milanovic
Hi, I have a double value that should be formated in following format: 000.000,00. I just need to show this value in the jsp page with . How can I do this ? -- Thx in advance, Milan Milanovic

Re: Is there a subtile(s)?

2008-06-04 Thread Antonio Petrelli
2008/6/4 Dimitris Mouchritsas <[EMAIL PROTECTED]>: > The menu would look something like: > . > > So in essence there are 3 seperate menus there. Ok, you can use "definition in a definition". For example: > There > will need to be logic to hide/show specific items in each m

Re: Is there a subtile(s)?

2008-06-04 Thread Dimitris Mouchritsas
Antonio Petrelli wrote: 2008/6/4 Dimitris Mouchritsas <[EMAIL PROTECTED]>: Hi all, I'm searching if there's a meaning like subtiles in struts. We have one tile, "menu", which will hold 3 menus. Should we break it into 3 different tiles, say menu_admin, menu_info, menu_login or can we define i

Re: [ANN] Struts 2 in Action now available

2008-06-04 Thread Giovanni Azua
[EMAIL PROTECTED] wrote: Thanks Giovanni -- It is nice to hear all the work is paying off for you! Would you be willing to post a review on Amazon? Sure thing! within the next 48 hours :) - To unsubscribe, e-mail: [EMAIL P

javascript struts

2008-06-04 Thread Chris Pat
Hello Is/how it possible to process a js array into an array structure or multiple name/values input elements with struts? Then how would the form bean be structures? As a simple field of type arraylist? Finally what would the action be as simple as a getter of the arraylist? tia.

RE: Is there such a thing as flash in S2?

2008-06-04 Thread kenk
Thanks GB. I'll try to respond back to this thread by friday or so. -- K :working: -- View this message in context: http://www.nabble.com/Is-there-such-a-thing-as-flash-in-S2--tp16697840p17647498.html Sent from the Struts - User mailing list archive at Nabble.com. --

Cannot use multiple s:action tags?

2008-06-04 Thread Michael Gagnon
When I attempt to use more than 1 s:action tag on a page, I just get back a blank page - no error, no console output, just nothing. My page just looks like: If I just use one action (eith

Re: Is there a subtile(s)?

2008-06-04 Thread Antonio Petrelli
2008/6/4 Dimitris Mouchritsas <[EMAIL PROTECTED]>: > Hi all, > I'm searching if there's a meaning like subtiles in struts. We have one > tile, "menu", which will hold 3 menus. Should we break it into 3 different > tiles, say > menu_admin, menu_info, menu_login or can we define it in another way? W

Is there a subtile(s)?

2008-06-04 Thread Dimitris Mouchritsas
Hi all, I'm searching if there's a meaning like subtiles in struts. We have one tile, "menu", which will hold 3 menus. Should we break it into 3 different tiles, say menu_admin, menu_info, menu_login or can we define it in another way? Thanks Dimitris --

Re: focusElement attribute in tag

2008-06-04 Thread Felipe Lorenz
Ok. put it insede of tag . SOmething like this: _your_javascript_here_ On Wed, Jun 4, 2008 at 9:40 AM, StrutsUser <[EMAIL PROTECTED]> wrote: > > Hi, > I tried this by putting this code in a javascript function and calling it > during onfocus of . It's not working. I am not sure how

Re: focusElement attribute in tag

2008-06-04 Thread StrutsUser
Hi, I tried this by putting this code in a javascript function and calling it during onfocus of . It's not working. I am not sure how to call this function always when the page is loaded. Ajay felipe.lorenz wrote: > > Sure: > > document.getElementById().focus(); > > On Wed, Jun 4, 2008 at 8:

Re: struts 2 radio tag selected default

2008-06-04 Thread aspat
Thanks for your answer, the solution is : (i want to select the first item of my list ) aspat Lukasz Lenart wrote: > > Hi, > > value="%{employee.active}"/> > > or > > value="true"/> > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > -- View this message in context: http

Re: struts 2 radio tag selected default

2008-06-04 Thread aspat
I find the solution : -- View this message in context: http://www.nabble.com/struts-2-radio-tag-selected-default-tp17642159p17645206.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-m

Help with remote div

2008-06-04 Thread Felipe Lorenz
Hi folks. I've try to use remote divs, but the javascripts doesnt work, and i get some exceptions! This is my index.jsp > <[EMAIL PROTECTED] contentType="text/html" pageEncoding="UTF-8"%> > <%@ taglib prefix="s" uri="/struts-tags"%> > "http://www.w3.org/TR/html4/loose.dtd";> > > > >

Re: struts 2 radio tag selected default

2008-06-04 Thread Lukasz Lenart
Hi, or Regards -- Lukasz http://www.lenart.org.pl/

Re: [ANN] Struts 2 in Action now available

2008-06-04 Thread stanlick
Thanks Giovanni -- It is nice to hear all the work is paying off for you! Would you be willing to post a review on Amazon? Thanks, Scott Stanlick On Wed, Jun 4, 2008 at 2:58 AM, Giovanni Azua <[EMAIL PROTECTED]> wrote: > I am very excited that I've just received my copy :) You guys Don, Scott

Re: S2 Refering to another key in the Resource Bundle?

2008-06-04 Thread Maxx
On Wed, Jun 4, 2008 at 8:26 AM, Rubens <[EMAIL PROTECTED]> wrote: > > Does Struts 2 resource bundle support refering to previously defined > parameter keys in the resources file? > > For example, something like this: > > software.version=1.0.1 > software.text=Software version is ${software.version}

Re: focusElement attribute in tag

2008-06-04 Thread Felipe Lorenz
Sure: document.getElementById().focus(); On Wed, Jun 4, 2008 at 8:40 AM, StrutsUser <[EMAIL PROTECTED]> wrote: > > Thanks Felipe. > Could you give me some pointers in writing this sort of Javascript code for > focussing on an element. > I am not well versed in Javascript. That's why. > Thanks &

Re: focusElement attribute in tag

2008-06-04 Thread StrutsUser
Thanks Felipe. Could you give me some pointers in writing this sort of Javascript code for focussing on an element. I am not well versed in Javascript. That's why. Thanks & Regards Ajay felipe.lorenz wrote: > > I do this by java scritp... > > On Wed, Jun 4, 2008 at 8:12 AM, StrutsUser <[EMAIL

Re: focusElement attribute in tag

2008-06-04 Thread Felipe Lorenz
I do this by java scritp... On Wed, Jun 4, 2008 at 8:12 AM, StrutsUser <[EMAIL PROTECTED]> wrote: > > Hi, > I have a requirement where I need to set the focus in a particular element > when a page is loaded. I tried using the 'focusElement' attribute in > tag. I got the error 'Attribute focusEle

Re: struts 2 radio tag selected default

2008-06-04 Thread Felipe Lorenz
i dont think so i do it by javascript... if somobady know... please.. tell us.. On Wed, Jun 4, 2008 at 5:58 AM, aspat <[EMAIL PROTECTED]> wrote: > > Hi, > > I would like to know if there is a way to select a radio button in struts 2 > by default, which allow me to avoid converting the code as

Re: Images in s:select

2008-06-04 Thread Felipe Lorenz
try something with CSS... On Tue, Jun 3, 2008 at 6:48 PM, Volker Karlmeier <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello all, > > > is it possible to design a list with an s:select-tag that conaints > images ? > I want to offer a list of available langauge

focusElement attribute in tag

2008-06-04 Thread StrutsUser
Hi, I have a requirement where I need to set the focus in a particular element when a page is loaded. I tried using the 'focusElement' attribute in tag. I got the error 'Attribute focusElement invalid for tag form according to TLD'. I am using struts2-core-2.0.11.jar and the form tag in this vers

Re: Action-Redirect Parameter Problem

2008-06-04 Thread Adam Hardy
I don't have permission to re-open it unfortunately. Musachy Barroso on 02/06/08 23:46, wrote: This should probably be re-opened as a bug. Just thinking out loud here, there should be some interface that results must implement if they want to use params this way, so the ReflectionProvider will j

struts 2 radio tag selected default

2008-06-04 Thread aspat
Hi, I would like to know if there is a way to select a radio button in struts 2 by default, which allow me to avoid converting the code as follows : List : I will prefer to use : Can someone help me, thanks, aspat -- View this message in context: http://www.nabble.com/struts-2-radio-tag

Re: [ANN] Struts 2 in Action now available

2008-06-04 Thread Frans Thamura
On Wed, Jun 4, 2008 at 2:58 PM, Giovanni Azua <[EMAIL PROTECTED]> wrote: > I am very excited that I've just received my copy :) You guys Don, Scott > and Chad did an excellent job. I specially like very much the coverage of > core topics of the framework e.g. the explanation on writing custom > va

Re: [ANN] Struts 2 in Action now available

2008-06-04 Thread Giovanni Azua
I am very excited that I've just received my copy :) You guys Don, Scott and Chad did an excellent job. I specially like very much the coverage of core topics of the framework e.g. the explanation on writing custom validators for which there is not so much online documentation. I yesterday ende