Re: How to pass Jstl param implicit Object to html:link

2005-06-20 Thread Jose María
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

Accessing nested properties

2005-06-20 Thread Fredrik Bostrom
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

Re: JSTL tag libs

2005-06-20 Thread Niall Pemberton
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

Re: localisation of Dates

2005-06-20 Thread zarar . siddiqi
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

Re: localisation of Dates

2005-06-20 Thread Mike Deegan
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

localisation of Dates

2005-06-20 Thread Arno Schatz
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

Re: [OT] Character '+' not transmitted to server ?!?!?! Hope you canhelp .... it's really bizarre

2005-06-20 Thread David Gagnon
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:

Re: JSTL tag libs

2005-06-20 Thread erikweber
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

Re: Float Validation not working

2005-06-20 Thread Jeff Beal
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

Re: [OT] Character '+' not transmitted to server ?!?!?! Hope you canhelp .... it's really bizarre

2005-06-20 Thread Martin Gainty
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

Re: [OT] Character '+' not transmitted to server ?!?!?! Hope you canhelp .... it's really bizarre

2005-06-20 Thread David Gagnon
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 ---

Re: [OT] Character '+' not transmitted to server ?!?!?! Hope you canhelp .... it's really bizarre

2005-06-20 Thread Michael Jouravlev
> 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

RE: Float Validation not working

2005-06-20 Thread Dornback, Ken
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,

RE: [OT] Character '+' not transmitted to server ?!?!?! Hope you canhelp .... it's really bizarre

2005-06-20 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> 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]

JSTL tag libs

2005-06-20 Thread alan . sinclair
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

Re: [OT] Character '+' not transmitted to server ?!?!?! Hope you canhelp .... it's really bizarre

2005-06-20 Thread David Gagnon
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

Re: [OT] Character '+' not transmitted to server ?!?!?! Hope you canhelp .... it's really bizarre

2005-06-20 Thread DGraham
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

Re: [OT] Character '+' not transmitted to server ?!?!?! Hope you can help .... it's really bizarre

2005-06-20 Thread Frank W. Zammetti
+ 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

Re: [OT] Character '+' not transmitted to server ?!?!?! Hope you can help .... it's really bizarre

2005-06-20 Thread Frank W. Zammetti
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

Re: HTML:LINK

2005-06-20 Thread Wendy Smoak
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

Re: SimpleDispatchAction error

2005-06-20 Thread Michael Jouravlev
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

Re: HTML:LINK

2005-06-20 Thread Zarar Siddiqi
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:

Re: HTML:LINK

2005-06-20 Thread Rafael Taboada
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

Re: HTML:LINK

2005-06-20 Thread Wendy Smoak
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

Re: HTML:LINK

2005-06-20 Thread Rafael Taboada
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"

Re: [OT] Character '+' not transmitted to server ?!?!?! Hope you can help .... it's really bizarre

2005-06-20 Thread Wendy Smoak
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

Re: [OT] Character '+' not transmitted to server ?!?!?! Hope you can help .... it's really bizarre

2005-06-20 Thread Michael Jouravlev
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

Re: HTML:LINK

2005-06-20 Thread Wendy Smoak
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

Indexed html:select

2005-06-20 Thread Ciaran Hanley
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

[OT] Character '+' not transmitted to server ?!?!?! Hope you can help .... it's really bizarre

2005-06-20 Thread David Gagnon
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

Re: HTML:LINK

2005-06-20 Thread Rafael Taboada
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

Re: SimpleDispatchAction error

2005-06-20 Thread Janek Ziniewicz
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

Re: [OT] Convert Java Object into XML. Is there a simple tool in Jakarta projects or elsewere

2005-06-20 Thread Haroon Rafique
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

Re: HTML:LINK

2005-06-20 Thread Michael Jouravlev
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

Re: HTML:LINK

2005-06-20 Thread Rafael Taboada
I noticed when I'm using

Re: Float Validation not working

2005-06-20 Thread Jeff Beal
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

Re: How to pass param implicit Object to html:link

2005-06-20 Thread Martin Gainty
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

How to pass param implicit Object to html:link

2005-06-20 Thread Jose Maria Alvarez Rodriguez
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:

Re: [OT] Convert Java Object into XML. Is there a simple tool in Jakarta projects or elsewere

2005-06-20 Thread Martin Gainty
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

Re: Float Validation not working

2005-06-20 Thread Martin Gainty
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

Re: Howto display errors when using Struts Validator - Thanks Nitest

2005-06-20 Thread Thai Dang Vu
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

Re: [OT] Convert Java Object into XML. Is there a simple tool in Jakarta projects or elsewere

2005-06-20 Thread Bryan Henson
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

Float Validation not working

2005-06-20 Thread Dornback, Ken
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

Re: Does it make sense to use Struts?

2005-06-20 Thread Lars Brandt
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

Re: [OT] Serializing object with null pointers (performance?)

2005-06-20 Thread Leon Rosenberg
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

Re: [OT] Serializing object with null pointers (performance?)

2005-06-20 Thread Ed Griebel
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

Re: [OT] Serializing object with null pointers (performance?)

2005-06-20 Thread Yaakov Chaikin
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

Re: Does it make sense to use Struts?

2005-06-20 Thread Rodolfo García Esteban/CYII
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

Re: [ANN] Java Web Parts release

2005-06-20 Thread Dakota Jack
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

Cannot find bean employees in any scope

2005-06-20 Thread EROL TEZCAN
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

RE: "Cannot find message resources under key org.apache.struts.action.MESSAGE " Error

2005-06-20 Thread EROL TEZCAN
"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

RE: [ANN] BOF X / Monday / 20 June 2005

2005-06-20 Thread Pilgrim, Peter
> -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

Re: [OT] Serializing object with null pointers (performance?)

2005-06-20 Thread Leon Rosenberg
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

struts database menu question urgent

2005-06-20 Thread Vicky
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

Re: [OT] Hidden Fields V/S session scope

2005-06-20 Thread Lixin Chu
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

Re: Does it make sense to use Struts?

2005-06-20 Thread Adam Hardy
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

Does it make sense to use Struts?

2005-06-20 Thread Lars Brandt
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

[OT] Hidden Fields V/S session scope

2005-06-20 Thread Nitish Kumar
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