locale, Wrong format string

2005-06-02 Thread Andreas Toom
Hello, I thought I finally hade the format/formatKey thing with bean:write figured out, but when I tried to switch from a en_US locale to a sv I get this exception: org.apache.jasper.JasperException: Wrong format string: '#,##0' I've read http://java.sun.com/j2se/1.4.2/docs/api/java/text/Deci

Re: locale, Wrong format string

2005-06-02 Thread Andreas Toom
The problem is solved: After some examination of the source of the bean:write tag i found this: format = NumberFormat.getNumberInstance(locale); if (formatStrFromResources) { ((DecimalFormat) format).applyLocalizedPattern( formatString); } else { ((DecimalFormat) format).appl

Onload Action

2005-06-02 Thread amitava . basak
I have a form where there is a grid(plain HTML) which needs to be populated via . Is there a way to populate that form before the page is loaded( somehow via struts=config ..er??) so that I do not need to submit the page onload and call OnLoadAction to populate the arraylist logic:iter

redirect from index.jsp

2005-06-02 Thread andy wix
Hi, I am having trouble redirecting users from index.jsp to a Tile layout. In index.jsp I have: <%@ taglib uri="struts/logic" prefix="logic" %> and in struts-config.xml: type="com.xyz.app.actions.PreLoadViewTreeAction"> The error msg in the browser is: 404 Not Found Resource /app

Problem using indexed properties and validator framework

2005-06-02 Thread Nitesh
Hi, I'm trying to use the validator framework with dyna forms. In the JSP page I have a list of user details being listed for edit. I want this part to be validated on submit, and I intend to use validator framework with dynaforms. My Struts config looks like...

Re: target attribute from server in html:link tag please Help!

2005-06-02 Thread John Fitzpatrick
On 20050601 5:36 PM, "Lucas Bern" <[EMAIL PROTECTED]> wrote: > > Hi guys! i have a problem > > I need to configurate de "target" attribute of my form, but i have to do it > from mi action > > Any idea? In the .jsp: If you need to specify it from the action, you'll need to use the

Problem using indexed properties and validator framework

2005-06-02 Thread Nitesh
Hi, I'm trying to use the validator framework with dyna forms. In the JSP page I have a list of user details being listed for edit. I want this part to be validated on submit, and I intend to use validator framework with dynaforms. My Struts config looks like...

Re: Onload Action

2005-06-02 Thread John Fitzpatrick
On 20050602 5:27 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > I have a form where there is a grid(plain HTML) which needs to be > populated via . Is there a way to populate that form before > the page is loaded( somehow via struts=config ..er??

Re: Problem using indexed properties and validator framework

2005-06-02 Thread John Fitzpatrick
Looks like you've got a few issues. Let me answer what I can and see if that helps: On 20050602 7:34 AM, "Nitesh" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to use the validator framework with dyna forms. > > In the JSP page I have a list of user

The Action form in request during several actions

2005-06-02 Thread Rodolfo García Esteban/CYII
Hi all, I´m using struts 1.2.4, I use the same ActionForm bean for several for example. I use the form bean for input the name, I do the select to database and I put a list into the same form bean for show the results in other jsp. From this JSP I check for delete some rows and put the data in

Re: Problem using indexed properties and validator framework

2005-06-02 Thread Nitesh
trick" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 02, 2005 5:15 PM Subject: Re: Problem using indexed properties and validator framework Looks like you've got a few issues. Let me answer what I can and see if that helps: On 20050602 7:34

Re: Problem using indexed properties and validator framework

2005-06-02 Thread Martin Gainty
amework Looks like you've got a few issues. Let me answer what I can and see if that helps: On 20050602 7:34 AM, "Nitesh" <[EMAIL PROTECTED]> wrote: Hi, I'm trying to use the validator framework with dyna forms. In the JSP page I have a list of user details bein

Re: redirect from index.jsp

2005-06-02 Thread John Fitzpatrick
Try this as your entire index.jsp: The standard jsp tag should do ya fine. John On 20050602 6:46 AM, "andy wix" <[EMAIL PROTECTED]> wrote: > Hi, > > I am having trouble redirecting users from index.jsp to a Tile layout. > > In index.jsp I have: > >

Re: Problem using indexed properties and validator framework

2005-06-02 Thread John Fitzpatrick
If you remove the size attribute, it will be the size that you pre-populate in your Action. If you do not create the Array in your action, the size will be 0. On 20050602 8:03 AM, "Nitesh" <[EMAIL PROTECTED]> wrote: > John, > > Thank you for the answer. > >

Re: The Action form in request during several actions

2005-06-02 Thread John Fitzpatrick
Rodolfo, Anything in the "request" scope will go away as soon as the response is sent to the client. If you want something to stick around between requests for that client, you want to put it into the "session" scope. John On 20050602 7:56 AM, "Rodolfo García Esteba

Re: Problem using indexed properties and validator framework

2005-06-02 Thread John Fitzpatrick
For an Array in a DynaForm property, you can either set the size in the form-property descriptor or, in the case of a session form, pre-populate the Array in your action with the number of elements you desire. On 20050602 8:23 AM, "Martin Gainty" <[EMAIL PROTECTED]> wrote: >

Re: The Action form in request during several actions

2005-06-02 Thread Martin Gainty
Rodolfo: have you looked at DynaActionForm and override reset method to prevent re-initialisation of bean? Saludos Cordiales, Martin- EEUU - Original Message - From: "Rodolfo García Esteban/CYII" <[EMAIL PROTECTED]> To: Sent: Thursday, June 02, 2005 7:56 AM Subject: The Action form

RES: Using multiple resource bundles

2005-06-02 Thread Eduardo Ribeiro da Silva
This bug exist really and is documented: look in http://struts.apache.org/userGuide/dev_validator.html mask ^[a-zA-Z]*$ By default the arg0-arg3 elements will try to look up the key attribute in the message resources. If the resource attribute is set to fa

Re: [W3OT][OT] Business Layer Ideas

2005-06-02 Thread Simon Chappell
Frank this needs to be preserved for posterity. Would you mind if I post it to my blog? On 6/1/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Wow, so *this* is what it's like being the parent of Rosemary's baby! > > I wonder if there has ever been a more OT thread? > > Allow me to summarize

Re: redirect from index.jsp

2005-06-02 Thread Rutger Heijmerikx
jsp looks like. On 6/2/05, John Fitzpatrick <[EMAIL PROTECTED]> wrote: > > Try this as your entire index.jsp: > > > > The standard jsp tag should do ya fine. > > John > > On 20050602 6:46 AM, "andy wix" <[EMAIL PROTECTED]> wrote: > > &g

Re: [W3OT][OT] Business Layer Ideas

2005-06-02 Thread Frank W. Zammetti
Go for it! You will have to pay me at 15% royalty for each page view of course. (geez, do I *ever* stop joking?!?) But yeah, feel free. Of course, I should probably post it on *my* blog, but that thing is neglected worse than the US.'s relationship with France (sorry, couldn't think of anything

Re: redirect from index.jsp

2005-06-02 Thread Andrew Thorell
Not sure if you found your fix or not, but just out of curiosity, after the action returns "success" where is it supposed to go? My first thought would be you'd get just a blank white page... are you perhaps pointing to another page inside the PreLoadViewTreeAction? Generally inside an you have

Size of a collection in a bean

2005-06-02 Thread Janek Ziniewicz
<% Vector foo; request.setAttribute("bar", foo); %> Is there any simple method to write size of a collection stored in a bean? -- Pozdrawiam, Janek Ziniewicz gg: 902858 irc.freenode.net: #gore, #dub - To unsubscribe, e-m

FormBean and JavaScript

2005-06-02 Thread eid4k
Hi, I have got a problem with a Struts Form My ActionForm has two attributes User and Manager (both are classes); I am setting the manager attributes on the form via the Until here everything works as we would expect. The problems comes in here; When the JSP /Form gets rendered on the scree

Re: Size of a collection in a bean

2005-06-02 Thread DGraham
Yes. -Dennis Janek Ziniewicz <[EMAIL PROTECTED]> 06/02/2005 10:10 AM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Size of a collection in a bean <% Vector foo; request.setAttribute("bar", foo); %> Is there any simple method to write

Re: [OT] Business Layer Ideas

2005-06-02 Thread Tom Dimock
On Jun 2, 2005, at 1:46 AM, Laurie Harper wrote: I'm guessing (from other posts in this thread) you're a little older than I am. That would make your high school pretty impressively forard-looking...! I attended the first computer class given at my high school in 1965. It was kind of a

Re: FormBean and JavaScript

2005-06-02 Thread Jerry Tan
Since the nested classes constrain you to use the dot syntax, then you may consider using an index notation on the scripting side, e.g., document.managerForm[0].value = user; assuming, of course, that "manager.lanID" is the first element on your managerForm. If you're concerned that the orde

Re: FormBean and JavaScript

2005-06-02 Thread Jerry Tan
Actually, the index notation is off the "elements" object of the form -- not the form itself, e.g., document.managerForm.elements[0].value = user; [EMAIL PROTECTED]

Re: Size of a collection in a bean

2005-06-02 Thread JM Tinghir
2005/6/2, Janek Ziniewicz <[EMAIL PROTECTED]>: > <% >Vector foo; >request.setAttribute("bar", foo); > %> > > > Is there any simple method to write size of a collection stored in a bean? Try Jean-Marie Tinghir - To un

Re: Struts with spring 1.2

2005-06-02 Thread Joe Germuska
At 8:41 AM +0200 6/2/05, Anders Sveen wrote: Hi Rodolfo, We are using Spring 1.2 with Struts 1.2.6 . At least with our setup, we found that if we wanted to use Dependency Injection with Spring into our actions, we would not be able to use our wildcard mappings. So instead we just let our actions

Re: FormBean and JavaScript

2005-06-02 Thread Rokibul Islam Khan
hi, use id attribute like : In the java script use the id to refer the field something like : document.forms[0].someId.value or document.formName.someId.value -- rokib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

global-exceptions not catching

2005-06-02 Thread Scott Purcell
Hello, I have set up a global-exceptions exception like so: The last one points to /error.jsp is from chapter 9 of the cookbook. I wanted to try an catch all exceptions with that while developing. Problem is, I keep getting the HTTP status 500- in the browser, and not

Re: FormBean and JavaScript

2005-06-02 Thread eid4k
Thanks Jerry, problem is fixed now. Regards Karim Jerry Tan <[EMAIL PROTECTED]> wrote: >Since the nested classes constrain you to use the dot syntax, then you may >consider using an index notation on the scripting side, e.g., > >    document.managerForm[0].value = user; > >assuming, of course,

Re: [OT] Business Layer Ideas

2005-06-02 Thread Frank W. Zammetti
On Thu, June 2, 2005 1:29 am, Laurie Harper said: > I have to admit that refactoring on butcher paper was a bitch though! I would think refactoring on on butcher paper would be very easy... just need a good pair of scissors and some Scotch tape. -- Frank W. Zammetti Founder and Chief Software Ar

Re: [OT] Business Layer Ideas

2005-06-02 Thread Frank W. Zammetti
On Thu, June 2, 2005 2:23 am, Dakota Jack said: > My high school had mostly reformed teachers. One once said, with > pride, that there had been no one in the trunk of his car for quite a > while. Funny... the teachers in my school would say that with a "damn, I miss the good'ole days" look on the

FW: Expression evaluation with html-el tags?

2005-06-02 Thread Pushkala_Iyer
Is it possible to do more than just simple loop index evaluation with html-el tags? I iterate over 2 loops: However, within my inner loop, I want to calculate the index as follows: outerLoop.Index * innerLoop.size + innerLoop.index My questions are: 1) The fo

Re: Expression evaluation with html-el tags?

2005-06-02 Thread John Fitzpatrick
I've never had a need to do anything like what you're doing, but I can tell you that ${} needs to contain the entire expression. Try this: On 20050602 11:22 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Is it possible to do mo

Tiles woes

2005-06-02 Thread Bob Arnott
Hello list, I'm having a small problem with tiles at the moment and I don't know if what I'm trying to do is correct etc. Maybe the collective wisdom and shed some light on what I'm doing wrong... I've got a default definition, say for example: <%@ taglib uri="http://struts.apache.org/tags-til

Newbie Q - Rendering drop down menu

2005-06-02 Thread Andy
Hi All, Why does the following render as a box containing text (you know what I mean - where you can select multiple items) rather than a drop down menu ? I mean how else can you define select and options? *confused* Andy. -

Having problems moving between pages with struts

2005-06-02 Thread Paul Goepfert
Here it is, I am developing a small program that utilizes Struts, Java and Apache Velocity Templates. I amm trying to move from one page to another via struts. Every time I try to move to another page I get a 404 Error in Tomcat. Here is my struts-conf.xml file as well as my web.xml file.

Re: Newbie Q - Rendering drop down menu

2005-06-02 Thread Dave Newton
Andy wrote: Why does the following render as a box containing text (you know what I mean - where you can select multiple items) rather than a drop down menu ? Because you set the size: http://struts.apache.org/userGuide/struts-html.html#select Dave --

Re: Newbie Q - Rendering drop down menu

2005-06-02 Thread Brian Bezanson
> Why does the following render as a box containing text (you know what I > mean - where you can select multiple items) rather than a drop down menu ? > > > > property="id"/> > You gave it a size of 10 so it makes a scrolling list with a size of 10 versus a drop-down me

Re: Newbie Q - Rendering drop down menu

2005-06-02 Thread Jeff Beal
>From http://www.w3.org/TR/html401/interact/forms.html#h-17.6: "size = number [CN] If a SELECT element is presented as a scrolled list box, this attribute specifies the number of rows in the list that should be visible at the same time. Visual user agents are not required to present a SELECT e

Re: Having problems moving between pages with struts

2005-06-02 Thread John Fitzpatrick
that means) If there are other actions you want to browse to, you'll need the action mappings. I suspect however that your problem might also lie in the tag which I think belongs in a web.xml file instead. On 20050602 12:48 PM, "Paul Goepfert" <[EMAIL PROTECTED]> wrote:

Re: Having problems moving between pages with struts

2005-06-02 Thread Dave Newton
Paul Goepfert wrote: Here it is, I am developing a small program that utilizes Struts, Java and Apache Velocity Templates. I amm trying to move from one page to another via struts. Every time I try to move to another page I get a 404 Error in Tomcat. What do you mean by "move to another

Re: Having problems moving between pages with struts

2005-06-02 Thread Martin Gainty
*Dave I think he might have posted to the wrong list* Paul could you post this same question to velocity-user@jakarta.apache.org and I and the others will answer your inquiry Many Thanks, Martin- - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing Li

Re: [OT] Business Layer Ideas

2005-06-02 Thread Laurie Harper
Frank W. Zammetti wrote: On Thu, June 2, 2005 1:29 am, Laurie Harper said: I have to admit that refactoring on butcher paper was a bitch though! I would think refactoring on on butcher paper would be very easy... just need a good pair of scissors and some Scotch tape. Yeah, but I was only all

Re: [OT] Business Layer Ideas

2005-06-02 Thread Dave Newton
Laurie Harper wrote: Frank W. Zammetti wrote: On Thu, June 2, 2005 1:29 am, Laurie Harper said: I have to admit that refactoring on butcher paper was a bitch though! I would think refactoring on on butcher paper would be very easy... just need a good pair of scissors and some Scotch tape.

Re: Struts with spring 1.2

2005-06-02 Thread Laurie Harper
Joe Germuska wrote: Note that it's also possible to override the "determineBeanName" method in DelegatingActionProxy so that you could use some different logic -- for example, use the "parameter" property of the ActionMapping to specify a single Spring bean name instead of dealing with the vola

RE: Newbie Q - Rendering drop down menu

2005-06-02 Thread Andy
Thanks all, that was indeed the problem. >-Original Message- >From: Jeff Beal [mailto:[EMAIL PROTECTED] >Sent: 02 June 2005 18:01 >To: Struts Users Mailing List >Subject: Re: Newbie Q - Rendering drop down menu > > >>From http://www.w3.org/TR/html401/interact/forms.html#h-17.6: > >"size =

Re: Newbie Q - Rendering drop down menu

2005-06-02 Thread Riyaz Mansoor
:) when i first read HTML, my first impression was SELECT.size was the same INPUT.size hehe. ie it renders a box/select which contains that many approximate characters IMHO, honestly, i think its a bad choice of attribute name. "rows" as in TEXTAREA.rows would have been more appropriate than

RE: Expression evaluation with html-el tags?

2005-06-02 Thread Pushkala_Iyer
? I've never had a need to do anything like what you're doing, but I can tell you that ${} needs to contain the entire expression. Try this: On 20050602 11:22 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Is it possible to do more th

Re: [OT] Business Layer Ideas

2005-06-02 Thread Frank W. Zammetti
Ok, ok, you win :) LOL -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, June 2, 2005 2:32 pm, Laurie Harper said: > Frank W. Zammetti wrote: >> On Thu, June 2, 2005 1:29 am, Laurie Harper said: >>>I have to admit that refactoring on bu

Pass parameter to Action or Bean from config

2005-06-02 Thread Scott Purcell
Hello, I am trying to pass a parameter into a bean from an action call: Basically I am trying to reuse the action class and the bean class. As you can see in the below snippet. Here is an action I have I would like to do something like this: Thanks, Scot

Re: Pass parameter to Action or Bean from config

2005-06-02 Thread Dave Newton
Scott Purcell wrote: I am trying to pass a parameter into a bean from an action call: Basically I am trying to reuse the action class and the bean class. As you can see in the below snippet. You might want to look at DispatchActions and check out the Struts documentation. Dave ---

struts-blank.war in Jboss 4.0.0

2005-06-02 Thread Rolf Fredi Molz
Hi I´m trying execute the struts-blank.war example in Jboss 4.0.0. In the Tomcat don´t have problem, but in Jboss show : HTTP Status 500 - *type* Exception report *message* *description* _The server encountered an int

Re: help with messages using bean on jsp

2005-06-02 Thread Tony Dahbura
I do not have a ApplicationMessageResources_en_US.properties but I do have a ApplicationMessageResources.properties file with the following properties: global.required={0} is a required value. As can be seen the actual substitution is taking place. I pass "userid" and it replaces the string w

Re: Size of a collection in a bean

2005-06-02 Thread Rodolfo García Esteban/CYII
Rodolfo ___ Este mensaje y cualquier fichero que pudiera adjuntar se dirige exclusivamente a su destinatario. Si Vd. ha recibido esta comunicación por error, por favor, notifíquelo inmediatamente al remitente y borre el mensaje junto con sus fiche