Re: Pass parameter to javascript function

2005-06-16 Thread Rafael Taboada
I tried with all the suggestions but it doesn't work: Does anybody know the problem? My code is: logic:iterate id=lista name=busquedaproveedorForm property=lstResultado html:radio idName=lista onclick=setBusquedaProveedor(${idProveedor},${strRazonSocial}) property=idProveedor

Re: another newbie

2005-06-16 Thread Nitesh
Map the action class in the struts config and have the link point to the action i.e. a href=/MyAction.do... Nitesh - Original Message - From: Anand Vijay [EMAIL PROTECTED] To: Nitesh [EMAIL PROTECTED] Sent: Thursday, June 16, 2005 10:34 AM Subject: Re: another newbie Hi Thanks for

RE: [OT] Validating email addresses

2005-06-16 Thread Mark Benussi
Or use an AJAX piece of functionality instead of hidden frames. -Original Message- From: Nitesh [mailto:[EMAIL PROTECTED] Sent: 16 June 2005 06:18 To: Struts Users Mailing List; Richard Reyes Subject: Re: [OT] Validating email addresses Richard, JavaScript validations are majorly done

RE: http 404 page

2005-06-16 Thread McDonnell, Colm (MLIM)
Use the optional error-page element defined in web.xml, this allows you to map an error code _or_ exception type to the path of a resource in the Web application (e.g. a custom page). error-code: The http error code e.g. 404 exception-type: fqcn of a Java exception type location: the location of

Re: http 404 page

2005-06-16 Thread Lixin Chu
your message size has to be more than 512 bytes otherwise the default IE 404 page will be used - if I remember correctly. On 6/16/05, McDonnell, Colm (MLIM) [EMAIL PROTECTED] wrote: Use the optional error-page element defined in web.xml, this allows you to map an error code _or_ exception type

Re: Pass parameter to javascript function

2005-06-16 Thread Nitesh
Hope you are getting the values (see the source on your page and find out) The reason JavaScript doesn't work is that the value of idProveedor is a string which is not declared. So it should work if you give the same within quotes. Try... html:radio idName=lista

Validation error null is required

2005-06-16 Thread Guillen Lasa
I have defined a validation in the following way field property=codigoGrupo depends=required arg0 key=mantenimiento.grupos.codigo.grupo / /field When the validation returns an error it shows it in the following way: null is required Any suggestions thanks

ActionForm losing Collection/Map property on forward

2005-06-16 Thread Mark Benussi
My ActionForm has a HashMap which backs its values. Before I enter JSP 1 I populate the HashMap with values which are then displayed on the page. I then submit the form to an Action which processes the values submitted and then forwards on to a JSP. The problem is that the HashMap has

RE: ActionForm losing Collection/Map property on forward

2005-06-16 Thread Marsh-Bourdon, Christopher
Silly question, but it probably needs asking; What scope are you giving this form? I assume it is request. I know it is unfashionable, but giving the form a scope of session will persist this HashMap for you (unless you reset it). Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com

RE: ActionForm losing Collection/Map property on forward

2005-06-16 Thread Mark Benussi
it wasnt a silly question, request scope at the moment but I am no changing to session after your advice because the amount of code I am having to do is daft! Original Message Follows From: Marsh-Bourdon, Christopher [EMAIL PROTECTED] Reply-To: Struts Users Mailing List

Re: [OT] Session ID in the URL

2005-06-16 Thread Adam Hardy
On 16/06/05 05:51nbsp;Michael Jouravlev wrote: Was celebrating too early. Does not work. Here what happens. * Very first request to the app. Session is created on server. * Application redirects to whatever location, server sets cookie with jsessionid in the response, and at the same time adds

tiles:insert question

2005-06-16 Thread Janek Ziniewicz
http://struts.apache.org/userGuide/struts-tiles.html#insert I 've read here about 'flush' attribute. What does it exactly do and what is the practical difference between setting it to false or true? -- Pozdrawiam, Janek Ziniewicz gg:902858 irc.freenode.net: #gore, #dub

Re: tiles:insert question

2005-06-16 Thread Lucas Bern
Hi Janek I'm new to tiles, but, as far as I'm concerned, the 'flush' attriubte, makes that the result of the page, component, definition or whatever you be inserting, by 'insert tag' will be displayed one by one when setted to true. Suppose you have: tiles:insert page='firstPage.jsp'

Re: another newbie

2005-06-16 Thread Zarar Siddiqi
Using html:link action=/MyActionmy action link/html:link is probably better. This way you wont' have to worry about the context path of your application. a href=MyAction.do might not work since the action is preceded by the context path. You would have to do something like: a

Re: Pass parameter to javascript function

2005-06-16 Thread Rafael Taboada
Hi, it doesn't work. I saw the source and it takes ${idProveedor} as a String input type=radio name=idProveedor value=1 onclick=setBusquedaProveedor(${idProveedor},${strRazonSocial}) input type=radio name=idProveedor value=1 onclick=setBusquedaProveedor('${idProveedor}','${strRazonSocial}')

Re: Pass parameter to javascript function

2005-06-16 Thread Rafael Taboada
Finally I found a desesperated solution :'( input type='radio' name='idProveedor' value='bean:write name=lista property=idProveedor/' onclick='javascript:setBusquedaProveedor(bean:write name=lista property=idProveedor/,bean:write name=lista property=strRazonSocial /)' But what happend with

Re: [OT] Session ID in the URL

2005-06-16 Thread Michael Jouravlev
On 6/16/05, Adam Hardy [EMAIL PROTECTED] wrote: It's not stupid, it returns a boolean informing you where the session.getId() gets its info from. Makes sense to me. Makes sense to me too, but I also want to know is there session ID in the URL. Any advice how to find this out? Although you

Re: Pass parameter to javascript function

2005-06-16 Thread Zarar Siddiqi
Shot in the dark, try this: html:radio idName='lista' onclick='setBusquedaProveedor(${idProveedor},${strRazonSocial})' property='idProveedor' value='idProveedor' / - Original Message - From: Rafael Taboada [EMAIL PROTECTED] To:

Re: Pass parameter to javascript function

2005-06-16 Thread Rafael Taboada
Thank u very much for all ur help... Zarar: the same thing, it takes as String value In my code: html:radio idName='lista' onclick='setBusquedaProveedor(${idProveedor},${strRazonSocial})' property='idProveedor' value='idProveedor' / In the source code(runtime): input type=radio

Re: [OT] Session ID in the URL

2005-06-16 Thread Adam Hardy
On 16/06/05 15:37nbsp;Michael Jouravlev wrote: When both methods return true, they identify the first request after session has been established with browser which supports cookies. I try to keep GET requests clean to encourage browser to keep its page history from growing. When I detect this

Re: [OT] Session ID in the URL

2005-06-16 Thread Michael Jouravlev
On 6/16/05, Adam Hardy [EMAIL PROTECTED] wrote: It seems to be hard-coded behaviour that you can't do anything about unless you want to write some javascript to check the URL and put a token in the query string for the next request. Nah, I cannot rely on Javascript. I guess I should drop the

Re: Wildcard action paths

2005-06-16 Thread Don Brown
To add to your original solution: write your own subclass of ActionConfig which overrides getParameter() to return the tiles-needed part of the parameter attribute. Additional methods will let you retrieve other parts. This way, your Action doesn't have to know about parsing; it can pull clean

logic:lessThan inside logic:iterate

2005-06-16 Thread Fredrik Boström
Dear list, I've been fighting this problem for some time now, and can't come up with a solution. Please advice. In my jsp page I'm iterating an array of Category objects which resides in the request scope. This is done with the logic:iterate tag like this: logic:iterate id=categories

Re: [OT] Session ID in the URL

2005-06-16 Thread Adam Hardy
On 16/06/05 17:13nbsp;Adam Hardy wrote: It seems to be hard-coded behaviour that you can't do anything about unless you want to write some javascript to check the URL and put a token in the query string for the next request. Stupid me. Even quicker would be to check if you have the first

casting a string to a ValueObject

2005-06-16 Thread temp temp
I am using BeanUtils.setProperty and BeanUtils.getProperty for setting the values and retrieving values from my formbean.It works fine for a property of type String .In case I have a VO (valueObject ) as a property in my formbean , getProperty method from BeanUtils returns a string

Using Validator and getting MessageResource from a database

2005-06-16 Thread David . Pool
I have a project where I want to use the Struts Validator. By default the error messages are read from a properties file. However I'm required to read the error messages from a database. The question is how do I do this? I found this article

Best Practices for static content

2005-06-16 Thread Ramadi Pearse
Does anyone have best practices on how to compose or decorate stand-alone static content? It seems overkill to have to modify tile-defs.xml for each new static page I want to add to the website. Is SSI or SiteMesh more appropriate here? By the way, this is to complement a web app which already

Re: [OT] Session ID in the URL

2005-06-16 Thread Michael Jouravlev
On 6/16/05, Adam Hardy [EMAIL PROTECTED] wrote: Even quicker would be to check if you have the first request that establishes the session, and then put some token in the form or querystring, to mimic the JSESSIONID. Then you can just check for your token. Yes, I guess I can do that. I'm

Re: Best Practices for static content

2005-06-16 Thread Wendy Smoak
From: Ramadi Pearse [EMAIL PROTECTED] Does anyone have best practices on how to compose or decorate stand-alone static content? It seems overkill to have to modify tile-defs.xml for each new static page I want to add to the website. I see you asked a similar question that got no response.

RE: [OT] Precompiling JSP Pages with Struts Tags in Weblogic 7.02

2005-06-16 Thread Karr, David
The only information I can give you is that this still fails in WebLogic 8.1. I noticed it quite a while ago. -Original Message- From: Alexander Krumeich [mailto:[EMAIL PROTECTED] Dear List, slightly off-topic post, but I thought that maybe someone here can give me a hint to

Re: [OT] Session ID in the URL

2005-06-16 Thread Max Cooper
I think this is a weird requirement, and it may be worth re-evaluating why you want to know this (are you fighting the technology, or leveraging it?). But here are two tips that might help if you decide that you really need to know: 1. request.getPathInfo() -- the jsessionid might be a pathInfo

Re: Using Validator and getting MessageResource from a database

2005-06-16 Thread Niall Pemberton
You need to configure your message resources through the struts-config.xml - init parameters in the web.xml don't work in Struts 1.2 http://struts.apache.org/userGuide/configuration.html#resources_config So in your case you need something like the following in your struts-config.xml

Re: Using Validator and getting MessageResource from a database

2005-06-16 Thread David . Pool
I found the answer I was looking for. The solution is to set the factory attribute of the message-resource element in struts-config, like so: message-resources parameter=MyMessageResources factory=my.example.MyMessageResourceFactory /message-resources I have a project

Re: Best Practices for static content

2005-06-16 Thread Ramadi Pearse
Wendy, I need to put up some files that are long documents. They won't change much, but are needed for the user. Such are messages from the organization's president, information about rules, legal info, etc. The information will rarely change, but I need two questions answered: 1) Is it the

[OT] Session ID in the URL

2005-06-16 Thread Michael Jouravlev
On 6/16/05, Max Cooper [EMAIL PROTECTED] wrote: I think this is a weird requirement, and it may be worth re-evaluating why you want to know this (are you fighting the technology, or leveraging it?). I can explain but remember, that you asked it first ;) It will take some time :) The point is,

[More OT] Re: [OT] Session ID in the URL

2005-06-16 Thread Dave Newton
Is anybody else getting a lot of message duplicates this evening? We're having email server strangeness so I'm not sure if it's me or... uh... not me. Dave Michael Jouravlev wrote: On 6/16/05, Adam Hardy [EMAIL PROTECTED] wrote: Even quicker would be to check if you have the first

RE: Best Practices for static content

2005-06-16 Thread David G. Friedman
Dear Ramadi, I would recommend using SiteMesh (it's a filter) while you continue using Struts Tiles. If you have any exceptionally large pages you wish to display (i.e. pages and pages and pages of content) you might want to watch out for String buffer issues. Why? SiteMesh receives a

RE: [More OT] Re: [OT] Session ID in the URL

2005-06-16 Thread David G. Friedman
+1. From: Dave Newton [mailto:[EMAIL PROTECTED] Is anybody else getting a lot of message duplicates this evening? We're having email server strangeness so I'm not sure if it's me or... uh... not me. - To unsubscribe,

Struts-Layout v1.1 came out this month?!?!?!

2005-06-16 Thread David G. Friedman
I was just reading my TSS letter (The Server Side.com) and noticed an announcement about Struts-Layout having a new release (v1.1) earlier this month. Is anyone using it or Struts-Layout? I looked at it some time ago and it seemed to me as if must have inspired the page layout features of Java

Re: [OT] Session ID in the URL

2005-06-16 Thread Martin Gainty
Michael: check out http://www.manfred-wolff.de/struts/articles/HowTo-Back.html for handling BackButtonAction If that does'nt work check out overriding reset() method in ActionForm take a look at http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html HTH, Martin- - Original

RE: Best Practices for static content

2005-06-16 Thread Ramadi Pearse
David, I don't have any exceptionally long files. I remember Rick Reumann saying on this list too that he dumped SiteMesh in favor of Tiles because of the buffering problem. I never heard of anyone running Tiles/SiteMesh together, although it is feasible. Maybe I will just stick to creating

Re: Using Validator and getting MessageResource from a database

2005-06-16 Thread David . Pool
Thanks Niall. If I were to use set-property elements, do you have any idea how I would retrieve those properties within the factory? Thanks, David Niall Pemberton [EMAIL PROTECTED] wrote on 06/16/2005 04:03:36 PM: You need to configure your message resources through the struts-config.xml -

Re: Using Validator and getting MessageResource from a database

2005-06-16 Thread Niall Pemberton
My mistake, the plumbing is in the DTD to do this (i.e. a className for a custom MessageResourcesConfig and the set-property element) but the digester rules always create the standard MessageResourcesConfig and ignore any custom implementations specified in the className. However, even if that

long struts-config.xml file

2005-06-16 Thread John Henry Xu
Hi all, In a project I am working on, we have a very lengthy struts-config.xml file to handle complex actions jsps (200+) take. Does anyone have this situation (very complex struts-config.xml)? Please tell me about your experience. Also, anyone see a blog or forum written by struts technology?

Re: long struts-config.xml file

2005-06-16 Thread Riyaz Mansoor
depends on what version of struts u're working on. (i have never worked with 200 or so actions). :) 1) i reduced the number of actions using wildcards in action mapping, and a couple of hidden parameters that i pass to actions. kind of genericised the actions. 2) use extends where

Re: Pass parameter to javascript function

2005-06-16 Thread Nitesh
Did you try using the expression tags... that may work. (you may need to change the methods to the right ones...) html:radio idName='lista' onclick='setBusquedaProveedor(%= lista.getIdProveedor() %,%= lista.getStrRazonSocial() %)' property='idProveedor' value='idProveedor' / The bean:write

Re: long struts-config.xml file

2005-06-16 Thread Yen
Is that possible, seperate the actions into modules and use the modules struts-config? - Original Message - From: John Henry Xu [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, June 17, 2005 12:04 PM Subject: long struts-config.xml file Hi all, In a project I am working

RE: long struts-config.xml file

2005-06-16 Thread Venkata Krishna V.
Hi Jack, You can split the struts-config module wise so that it is easy to handle. If you are having multiple struts config you should mention that as comma separated values in you web.xml. Eg: /WEB-INF/struts-config/common-config.xml,/WEB-INF/struts-config/A.xml,