Re: Question regarding html:multibox value

2004-10-29 Thread João Vieira da Luz
Maybe it's because html:multibox doesn't support el... You could try to use struts-el tag library. On Fri, 29 Oct 2004 07:14:26 -0700 (PDT), t t [EMAIL PROTECTED] wrote: Hi, all, I have such code: - c:forEach var=person begin=0

RequestProcessor processRoles question!

2004-11-17 Thread João Vieira da Luz
For the first time, in struts application development I'm using roles attribute from action-mapping. I found something weird in method processRoles on the class RequestProcessor: response.sendError(HttpServletResponse.SC_BAD_REQUEST,

Re: exception thrown while trying to validate user input

2004-12-18 Thread João Vieira da Luz
What version of struts are you using! I think that the version you are using might be de reason for this problem. ActionErrors has been deprecated in favor of ActionMessages as far as I know in recent struts versions. On the other hand, struts in action covers afaik version 1.1. Hope this help.

Re: 1.1 to 1.2.2 migration problem

2004-09-02 Thread João Vieira da Luz
Maybe you could send your /WEB-INF/tiles-def.xml. One possible reason could be the DOCTYPE definition to be wrong. On Thu, 2 Sep 2004 12:25:50 +0200, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, i'ml trying to migrate from Struts 1.1 to struts 1.2.2. I've got the following error when

Re: How To Validate Any Three out of the Five Text Fields Are Required?

2004-09-10 Thread João Vieira da Luz
Maybe you could do your ActionForm and override validate method... This method could test if the validation is to be passed or not. If it is to do validation you can rely on validation.xml. On Fri, 10 Sep 2004 13:43:03 -0500, Matt Bathje [EMAIL PROTECTED] wrote: You could probably use

Re: [OT] synchronous form submit in a popup so parent refreshes prope rly

2004-09-11 Thread João Vieira da Luz
You can remove reload and window.close from onclick and submit form... onclick=document.forms[0].Dispatch.value='Save';document.forms[0].submit(); The Action that receives this form could forward page with the removed javascript window.opener.location.reload(true);window.close(); In this way

Re: Specifying validation field per Form, only way????

2004-09-12 Thread João Vieira da Luz
Hi, yes for the first question. no for the second. Probably, you can implement a base class for that forms that contain name field and implement the validation for that field on validate method. Hope this help you, João On Sat, 11 Sep 2004 15:01:23 -0300 (ART), Leandro Melo

Re: Protecting files question

2004-09-12 Thread João Vieira da Luz
Hi, The Blob or file system are very similar in what concerns security. In the first one you have to do an action that writes the file into the output stream. Suppose that your files have and action is called /showFile. Html should look like this; img src=/showFile.do?id=file id/img About

Re: Question on conditionally changing action is html:form

2005-02-23 Thread João Vieira da Luz
Try to do this: bean:define id=myform scope=session name=xyzForm type=XYZForm / bean:define id=action logic:present name=myForm property=flag action1/logic:present logic:notPresent name=myForm property=flag action2/logic:notPresent /bean:define html:form action=%= action % best regards,

Problems using spring plugin and struts 2.0.6

2007-02-27 Thread João Vieira da Luz
We've upgraded to struts 2.0.6 and we can't make spring-plugin work. The spring factory isn't being called and we are getting ClassNotFoundException for the beans that reference spring. This is working with struts 2.0.1. What changed? Thanks a lot, João

Re: Problems using spring plugin and struts 2.0.6

2007-02-27 Thread João Vieira da Luz
) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) On 2/27/07, Paul Saumets | Merge [EMAIL PROTECTED] wrote: Perhaps obvious question but, Do you have constant name=struts.objectFactory value=spring / set inside your struts.xml? -Original Message- From: João Vieira da Luz [mailto:[EMAIL PROTECTED] Sent

Re: Problems using spring plugin and struts 2.0.6

2007-02-27 Thread João Vieira da Luz
plugin just fine. Paul Saumets | Merge wrote: Perhaps obvious question but, Do you have constant name=struts.objectFactory value=spring / set inside your struts.xml? -Original Message- From: João Vieira da Luz [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 12:42

Re: [S2] Problems using spring plugin and struts 2.0.6

2007-02-27 Thread João Vieira da Luz
: domain.security.PermissionType = presentation.converter.EnumTypeConverter You will probably need to refactor some code if your EnumTypeConverter expects to be in a Spring context. João Vieira da Luz wrote: Well we've made progresses. The problem is on registering converters on XWorkConverter. We

TypeConverter

2007-02-28 Thread João Vieira da Luz
Hi, How can I access application context on a custom ognl.TypeConverter? Thanks, João - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Spring Factory and Struts2

2007-02-28 Thread João Vieira da Luz
How can I tell struts to use the SpringObjectFactory on global converters registering phase. Thnks João - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Forward Action to Action

2006-10-23 Thread João Vieira da Luz
I think you are little bit confused. FormBeans are the request abstractions of requests. Thus, in order to populate the 2nd bean you have to use request PARAMETERS instead of request ATTRIBUTTES. Hope this helps you On 10/21/06, Jean-Marie Pitre [EMAIL PROTECTED] wrote: Hi, I would like to

Re: Struts debug mode

2007-10-02 Thread João Vieira da Luz
Remote debugging is the keyword. WTP already supports that. On 10/2/07, Viplav Kallepu [EMAIL PROTECTED] wrote: Hi, I am using struts 1.3.8 with eclipse 3.1 (wtp) and tomcat 5.5. Can anyone please tell me how to enable debugging in it like we debug the core java application in eclipse. I

Re: Struts debug mode

2007-10-03 Thread João Vieira da Luz
, João Vieira da Luz [EMAIL PROTECTED] wrote: Remote debugging is the keyword. WTP already supports that. On 10/2/07, Viplav Kallepu [EMAIL PROTECTED] wrote: Hi, I am using struts 1.3.8 with eclipse 3.1 (wtp) and tomcat 5.5. Can anyone please tell me how to enable debugging