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
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
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
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
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...
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
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...
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??
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
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
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
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
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:
>
>
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.
>
>
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
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:
>
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
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
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
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
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
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
<%
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
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
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
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
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
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]
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
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
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
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
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,
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
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
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
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
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
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.
-
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.
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
--
> 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
>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
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:
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
*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
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
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.
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
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 =
:) 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
?
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
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
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
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
---
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
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
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
58 matches
Mail list logo