Hi, I think that I do not explained too good.
My idea is pass a Map with multiple keys and values, the html:link
documentation says that you can pass multiple params to an action with a
Map Object in name attribute.
I want to pass the object implicit "param" (Map) defined in Jstl, but I
obtain the
Hi list,
How do I access a nested property in an iterated object?
I've got two classes like this (heavily simplified and stripped):
class Foo {
Bar bar = new Bar();
}
class Bar {
int test = 10; //any value
}
In my jsp-page, I'm iterating an array of foo-objects and I want to
access the t
Erik is correct:
http://java.sun.com/j2ee/1.3/docs/tutorial/doc/JSTL4.html#wp67593
Niall
- Original Message -
From: <[EMAIL PROTECTED]>
Sent: Monday, June 20, 2005 10:16 PM
> I'm not positive on this, but I think that the c-rt tags would take
expressions in scriptlet format (<%=) wher
You can use the fmt library. It adjusts to your locale.
Zarar
On Tue, 21 Jun 2005, Arno Schatz wrote:
> Hi,
>
> How do I present a Date in the users locale in a JSP?
>
> I tried
>
> but the format is not ok. When I use the format attribute it won't show up in
> the locale
> prefer
Arno,
JavaServer Pages Standard Tag Library (JSTL)
http://java.sun.com/products/jsp/jstl/ has support locale-sensitive
formatting tags which can be used to present a Date in the users locale in a
JSP.
I18N-capable formatting (with a URI of http://java.sun.com/jstl/ea/fmt and a
prefix of fmt
Hi,
How do I present a Date in the users locale in a JSP?
I tried
but the format is not ok. When I use the format attribute it won't show up in the locale
preferred way.
I would like to format it like:
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,
DateFo
Your answer did point me in the right direction and I found my answer
(And I already thank you for that:-)).
So no offence really..
Thanks for your help again
/David
P.S.: For Martin who post on to this thread RTFM lead to ‘Read The
Fucking Manual’. on google...
Michael Jouravlev wrote:
I'm not positive on this, but I think that the c-rt tags would take expressions
in scriptlet format (<%=) whereas the c tags take expressions in the expression
language format (${).
Erik
-Original Message-
From: [EMAIL PROTECTED]
Sent: Jun 20, 2005 4:34 PM
To: user@struts.apache.org
Su
That is probably the issue. Validation occurs *after* the value is
copied into the form bean from the request. Here's the basic sequence
of events:
1) Your request comes in with parameter foo=notafloat
2) The Struts framework attempts to convert "notafloat" to a float
and assign it to your f
Just for my own understanding RTFM is 'Read The Fine Manual'
I remember the days when the worst thing a manager could say to you was RTFM
implying the engineer has entered 'The Entropy Zone'
Martin-
- Original Message -
From: "Michael Jouravlev" <[EMAIL PROTECTED]>
To: "Struts Users Ma
Oups and Wendy too.. sorry :-)
Thanks again
/David
Durham David R Jr Ctr 805 CSPTS/SCE wrote:
Thanks for your help Frank and Michael.
I think that you meant to thank Wendy. Hers was the only informative
post.
- Dave
---
> In the past years I answered a lot of questions on this forum. If you like
> using RTFM (Michael, Dennis) you will be happy, you can answer a lot of
> question like that here... so have fun.
>
> Personnaly I like that people act like adult not like kids that try to say
> BIG WORDS whenever t
It is float in the formbean.
-Original Message-
From: Jeff Beal [mailto:[EMAIL PROTECTED]
Sent: Monday, June 20, 2005 12:11 PM
To: Struts Users Mailing List
Subject: Re: Float Validation not working
On the form bean, what is the type of the field? (String, float, or
Float)
On 6/20/05,
> Thanks for your help Frank and Michael.
I think that you meant to thank Wendy. Hers was the only informative
post.
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
In the Struts 1.2.x distribution, what is the difference between the following
tag libs:
contrib/struts-el/lib/c-rt.tld
contrib/struts-el/lib/c.tld
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
Thanks for your help Frank and Michael.
For those who concluded of a trivial question from my part. I did my work before sending.
-I test that other characters work without problem (including usual escape character like: /\).
-Check filters on tomcat.
-That the first time I saw that + has a
I'm comfortable in saying that Michael gave an appropriate response:
http://www.catb.org/~esr/faqs/smart-questions.html#rtfm
Not asking smart questions is teh suxor!!!
-Dennis
"Frank W. Zammetti" <[EMAIL PROTECTED]>
06/20/2005 01:54 PM
Please respond to
"Struts Users Mailing List"
To
"S
+ is what space gets URL-encoded to... you have it in a query string,
which the server will always decode when it is received, so when it gets
decoded it is transformed into a space because it is assumed that the
query string was encoded and space was replaced with +.
In short, what you are seeing
On Mon, June 20, 2005 1:29 pm, Michael Jouravlev said:
> RTFM URL encoding
Wow, I seem to have stumbled on to the "Linux ROXORS!! N00b Laymer"
support mailing list. Sorry, my bad.
:)
Frank
-
To unsubscribe, e-mail: [EMAIL PROT
From: "Rafael Taboada" <[EMAIL PROTECTED]>
> and the generated html code is:
>
href="/SanCristobal/ComprasNuevo.do?method=Editar+Articulo&idArticulo=1"
> onclick="document.forms[0].submit();">
> Balde con asa - Azul - Basa
>
> And I see the form is not being submitted.
> Any solution is welc
On 6/20/05, Janek Ziniewicz <[EMAIL PROTECTED]> wrote:
> I probably have found an error. It needs short description.
> Each of ActionForms in my app uses two Action classes. One is
> 'typical' form launched after submitting a form. Its execute method
> forwards to next Action which sets data for n
Short answer: No. You can't use and submit values entered in
input elements to your action without using Javascript.
As Wendy said, you can use a simple link and do this:
my link
If you're not getting user input and simply passing data through using
then you can do something like this:
I tried to add the onclick option:
-
-
and the generated html code is:
Balde con asa - Azul - Basa
And I see the form is not being submitted.
Any solution is welcome because I'm harry =)
Thanks...
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
"No creo en el destino pue
From: "Rafael Taboada" <[EMAIL PROTECTED]>
> Thanks for ur help Wendy, but it doesn't work
I'll be happy to help, but you're going to have to provide more information.
Do you mean you tried to submit the form with JavaScript and the submit
didn't happen? If so, please post your entire tag a
Thanks for ur help Wendy, but it doesn't work
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
"No creo en el destino pues no me gusta tener la idea de controlar mi vida"
From: "David Gagnon" <[EMAIL PROTECTED]>
> I'm using tomcat and Struts I just noticed that charater + is not
> transmitted correcty to the server:
>
> Per example if posting to addresse
>
IFrameDoc.location.replace('/unikommerce/action.do?id=DAVE+++aa&lookupGroup=
f'
>
> The id attribute get pop
RTFM URL encoding
On 6/20/05, David Gagnon <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm using tomcat and Struts I just noticed that charater + is not
> transmitted correcty to the server:
>
> Per example if posting to addresse
> IFrameDoc.location.replace('/unikommerce/action.do?id=DAVE+++aa&l
From: "Rafael Taboada" <[EMAIL PROTECTED]>
> I can use a submit form instead of a html:link but, how can I solve this
> problem??? How can I use html:link in order to submit all the form???..
I think this should do it:
Whether this is a good solution depends on whether you can guarantee tha
I'm having trouble using indexed select. I need to create several select
boxes dynamically but I also need to be able to manipulate the data with
client side JavaScript.
The values I want to change with JavaScript are coming up on the JSP as
follows:
org.apache.struts.taglib.html.BEAN[0].fo
Hi all,
I'm using tomcat and Struts I just noticed that charater + is not
transmitted correcty to the server:
Per example if posting to addresse
IFrameDoc.location.replace('/unikommerce/action.do?id=DAVE+++aa&lookupGroup=f'
The id attribute get populated by :DAVE aa. (i.e.: the + are repl
Well, It's just for habit... All the project use a link when the action is
to edit something... And I'm in this thing, edit something. I send as a
parameter the id of the article in order to edit this. But this article is
inside of a form that it has more data... So when i click a submit form, i
I probably have found an error. It needs short description.
Each of ActionForms in my app uses two Action classes. One is
'typical' form launched after submitting a form. Its execute method
forwards to next Action which sets data for new form before displaying
it.
[..] --> PreAction1 --> ActionFor
Hi David,
See my response below:
On Saturday at 8:08am, DG=>David Gagnon <[EMAIL PROTECTED]> wrote:
DG> Hi all,
DG>
DG> Sorry for this OT. I'm looking for a way to output an object into XML
DG> for debugging purpose. I'm pretty sure I can do it myself with
DG> beanUtils and xml-api ..but I h
There is nothing impossible with Javascript ;)
But I would say that this good practice is to submit forms with
buttons using POST request method. Simply because that is what POST
method is for. Do you really need to submit a form using link?
Michael.
On 6/20/05, Rafael Taboada <[EMAIL PROTECTED
I noticed when I'm using
On the form bean, what is the type of the field? (String, float, or Float)
On 6/20/05, Dornback, Ken <[EMAIL PROTECTED]> wrote:
> I have to validate a float. I can type anything or nothing in and never
> see a validation problem when I set the depends attribute to "required,
> float". The field
Bienvenidos Jose
http://struts.apache.org/userGuide/struts-html.html#link
to quote
"paramName is The name of a JSP bean that is a String containing the value
for the request parameter named by paramId (if paramProperty is not
specified), or a JSP bean whose property getter is called to return a
Hi, I am a developer on Jstl with Struts, my problem is that I want to
pass the object "param" to the tag html:link but the server responses:
"Can not find bean "param" in any scope".
Is there any way to pass the Map param to html:link?
Thank you in advance¡¡¡
The code is the next one:
Bryan
check out XML Mapping with Castor link at
http://www.castor.org/xml-mapping.html
specifically marshalling the StringWriter Class
ask the castor user group at user@castor.codehaus.org
I found the group quite responsive with castor topics
HTH,
Martin-
- Original Message -
From: "Brya
Ken-
Could we see the appropriate validator-rules.xml entry validator
name="required" with particular attention to methodParams you reference?
Here is the reference
http://struts.apache.org/userGuide/dev_validator.html
Martin-
- Original Message -
From: "Dornback, Ken" <[EMAIL PROTECTED
Thanks Nitesh.
will print all the error messages at one place. I needed each
error message to go to the proper position (i.e. the error message for name
must be next to the name text field). So I used .
When I don't use struts validator, I would write something like this in the
action form
Don't know if you got much response on this, but I would suggest looking at
Castor.
Quoting David Gagnon <[EMAIL PROTECTED]>:
> Hi all,
>
> Sorry for this OT. I'm looking for a way to output an object into XML
> for debugging purpose.
> I'm pretty sure I can do it myself with beanUtils and xm
I have to validate a float. I can type anything or nothing in and never
see a validation problem when I set the depends attribute to "required,
float". The field just ends up 0 upon save.
If I add a floatRange, it will complain at least complain if a number is
outside of the range, but I don't ne
Rodolfo García Esteban/CYII cyii.es> writes:
>
> Hi,
>
> I love struts, i think is very useful but in your case I think struts
> would add a lot of complexity and ver few or any profit. I suppose you
> have experience with your "framework" and not so much with struts, other
> reason for use
On Mon, 2005-06-20 at 09:48 -0400, Yaakov Chaikin wrote:
> On 6/20/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> > .
> > 24 bit is the size of a pointer in java, at least what jprobe and other
> > profiling tools show, or at least what they showed as we used them last
> > time.
> > But if spa
Hi-
Are you using these VOs just to populate fields on JSP pages and pass
information to Struts actions? If so, there will be no serialization
all as JSP generation is done server-side, and all the VO instances
will be in the same JVM, so nothing goes across the wire to the client
web browser.
T
On 6/20/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> .
> 24 bit is the size of a pointer in java, at least what jprobe and other
> profiling tools show, or at least what they showed as we used them last
> time.
> But if space on wire is your problem, I'd suggest you use the
> externalization
Hi,
I love struts, i think is very useful but in your case I think struts
would add a lot of complexity and ver few or any profit. I suppose you
have experience with your "framework" and not so much with struts, other
reason for use your "framework".
Well, for make a good opinion is necesary m
Looks great, Frank. Good work!
On 6/19/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Thought this might be of interest to some...
>
> The Java Web Parts SF project I began had its first release this
> weekend. It's a pre-alpha, but my thinking is to put out smaller
> releases as frequently
Sorry, i sent a blank mail :)
The second sentence is true. I have two project. One is simple , other is more
complex project. They have similar properties file. Simple project works well,
but other not.
Now, I solved this problem today but I have another problem.
My application gives "Canno
"McDonnell, Colm (MLIM)" <[EMAIL PROTECTED]> wrote:I'm not sure what you are
saying here.
When I create a new project with same properties file key/value
(app.title=Wiley Employee Sample), it works well .
Are you saying that everything is ok now? Or are you saying that you
have two projects
> -Original Message-
> From: Pilgrim, Peter
====
This is just a reminder message.
>
> > -Original Message-
> > From: Pilgrim, Peter
> ====
> >
> >
> > WHAT:
> >
> > I would like to formally announce that ``The Struts-JSF
> > London Networking''
> > group is holdin
On Sun, 2005-06-19 at 19:06 -0400, Yaakov Chaikin wrote:
> Leon,
>
> See inline.
>
> > Aehm... Sorry for my incompetence, but what is a VO-model?
>
> Value Object model, sometimes referred to as DTO (Data Transfer Object).
>
> > As for the question, I'd expect a null object reference to be 24 b
Group,
This is very urgent question for me. I would
appreciate if anyone, anyone has answer to this.
Thanks,
--- Vicky <[EMAIL PROTECTED]> wrote:
> I am using strus database menu verson 2.3. Having
> real
> hard time with my less knoledge of java script in
> figuring out the work around of my
I would think that beside performance, you might also need to think
about how to manage memory for session scoped objects.
on the other hand, if we have some sort of cache facility, performance
may not be a big issue.
On 6/20/05, Nitish Kumar <[EMAIL PROTECTED]> wrote:
> I am again stuck on to th
On 20/06/05 09:22 Lars Brandt wrote:
Currently we have a component that uses JSP's but for this new project we are
going to use a custom built java client for presentation. As we now have some
time we want to redesign our system and at the same time see if there are other
technologies that we can
Hi,
We are in the planning phase of a project that will make a component which
"looks" a lot like Struts.
Currently we have a component that uses JSP's but for this new project we are
going to use a custom built java client for presentation. As we now have some
time we want to redesign our system
I am again stuck on to the age old debate of Session v/s Request scope form
beans.
I have a fairly large amount of data in my form bean, Since I have my own
pagination logic, I need to keep a large amount of data on jsp, I am using
hidden fields to move the data back and forth between server and
58 matches
Mail list logo