fmt:setLocale

2007-03-14 Thread Vinicius Carvalho
Hello there! I'm struggling with this for the last couple of hours, I'm pretty sure is a dumb thing I forgot. I'm setting the locale for my JSPs (not using struts yet, this is for a presentation) and refuses to override the default locale. I'm using jakarta standards 1.1.2 apache 5.5.17 and nothi

Re: Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
Doh, missed a ... regards On 11/8/06, Greg Reddin <[EMAIL PROTECTED]> wrote: On Nov 8, 2006, at 8:12 AM, Antonio Petrelli wrote: > Vinicius Carvalho ha scritto: >> I have a list that is going to be iterated, and the bean inside it >> will be checked, depending on a

Re: Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
gt; <%@ include file="include/taglibs.jsp" %> SIMPLE Regards On 11/8/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: Vinicius Carvalho ha scritto: > I have a list that is going to be iterated, and the bean inside it > will be checked, depending on a certain flag a ti

Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
Hello there! I have a simple question on Tiles usage, hope I get some advice here. I know this is not the best usage for it, but we have a kinda of emergency here... I have a list that is going to be iterated, and the bean inside it will be checked, depending on a certain flag a tiles definition

html:multibox problem

2006-07-20 Thread Vinicius Carvalho
Hello there! I have a multibox on my jsp, that maps to a String[] id; property on my formbean. The problem is, when the user submits it, I get my Array filled, but the first position of the array is filled with a strange [EMAIL PROTECTED] string. Seems that some weird object had it toString() meth

ActionMapping roles attribute

2006-07-20 Thread Vinicius Carvalho
Hello there folks! I was wondering, is it possible to force struts to not check request.isUserInRole() when we provide a roles parameter in our action-mapping declaration? I need to get it's value, but I get redirect to an unauthorized page before my execute() happens. Regards -

HTML reset problem

2006-07-19 Thread Vinicius Carvalho
Hello there! This is more an HTML/JavaScript issue, but I hope someone has the answer :) I've been using HTML for a long time, but today I've just found out something stupid that I've never cared about, reset on a form does not clean it, but restores to the original state ... Ok, you can laugh no

Re: html:select disable problem

2006-07-19 Thread Vinicius Carvalho
Thanks all, we solved this using hidden fields :) Thanks On 7/18/06, Laurie Harper <[EMAIL PROTECTED]> wrote: Vinicius Carvalho wrote: > Hello there! I believe this is an HTML/HTTP issue, but... > > I have a userForm that some of the fields (selects) when the user is > ed

html:select disable problem

2006-07-17 Thread Vinicius Carvalho
Hello there! I believe this is an HTML/HTTP issue, but... I have a userForm that some of the fields (selects) when the user is editing must come as readonly (disabled). Well, that's almost ok, because I need that data on the action called by the form, and those values are not passed to the action

Re: Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
th have the same signature for you personal validate() method in ActionForm? (i.e. not in Action but ActionForm). Remember, the method signature must match YOUR version of struts. Are there any errors in your log files that might shed some light on this? Regards, David -Original Messag

Re: Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
econd on the form name. Paul Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Well, I've just quit the validation on strtuts (based on commons-validator). So I've decided to use dumb manual validation. Well problem is, I still can't get one of my forms to val

Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
Well, I've just quit the validation on strtuts (based on commons-validator). So I've decided to use dumb manual validation. Well problem is, I still can't get one of my forms to validate! Here´ my struts-config:

Re: Form validation not happening

2006-07-04 Thread Vinicius Carvalho
orm uses the key of the URI, ValidatorForm uses the key of the form name. Did you recently upgrade Struts or the Validator? Vinicius Carvalho <[EMAIL PROTECTED]> wrote: I did a deeper look on my project, enabled debug output and even though on the log it says that the requestprocessor i

Re: Form validation not happening

2006-07-03 Thread Vinicius Carvalho
I did a deeper look on my project, enabled debug output and even though on the log it says that the requestprocessor is calling validate, my validate method on my class (gave up on validation using xml) does not even get called... Any ideas? Regards On 7/3/06, Vinicius Carvalho <[EM

Form validation not happening

2006-07-03 Thread Vinicius Carvalho
Hello there! I'm trying to use form validation (It was working, but somehow, I messed something and it quit working). Here are my files: struts-config.xml

Re: Securing an Action

2006-06-30 Thread Vinicius Carvalho
comma delimited list of roles that may access the action. Paul Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Hello there! I know this kind of question has been very very discussed. But I've been away from struts for a while. I need to create two types of actions, one that anyone

Securing an Action

2006-06-28 Thread Vinicius Carvalho
Hello there! I know this kind of question has been very very discussed. But I've been away from struts for a while. I need to create two types of actions, one that anyone can access and a secure one, based solely on user's roles. Here's what I've come in mind: public abstract class BaseAction e

Validation errors

2006-06-26 Thread Vinicius Carvalho
Hello there! Just as I said in my last message, it's been a while since my last struts experience :). I'm using automatic validation for my formbeans (using the validator e validation.xml). Well, displaying general errors is ok , as I'm doing this: But how do I present each error in

Re: problems wit h Struts 1.2.9

2006-06-26 Thread Vinicius Carvalho
DOO!! Thanks man, I'd never find this :) On 6/26/06, David Friedman <[EMAIL PROTECTED]> wrote: Vinicius, Your struts-config.xml file is incorrect. In your Actionmapping is incorrect. You have: Change

problems wit h Struts 1.2.9

2006-06-26 Thread Vinicius Carvalho
Hello there! I'm having a strange problem with my struts app (1.2.9), it's been a long time since the last time I've used struts (being in the Swing world for a while now). The application launches an error on startup: [java] SEVERE: Parsing error processing resource path /WEB-INF/struts-confi

nested:select question

2004-11-12 Thread Vinicius Carvalho
Hi there! I'm using nested select to display a select box of a nested bean, So far it worked great. Here's the structure I have: A steps collection which holds references for n objects of type step so I use nested to display each of the properties of the step bean. I have this to display a combob

Recursive navitation on beans

2004-11-04 Thread Vinicius Carvalho
Hi there! I have a bean, that is recursively created it has a child attribute that maps to a collection of its childs. I'd like to know if is there a taglib to display it. Cause doesn't seem to allow this, once I don't know how deep the graph of objects could get. Thanks Vinicius -

Re: ActionMessages question (simple)

2004-10-26 Thread Vinicius Carvalho
o the label you gave to "current message instance". Um abraco, Thompson Vinicius Carvalho wrote: I'm kinda lost with this. I set a message like below : ActionMessages msgs = new ActionMessages(); msgs.add("removido", new ActionMessage("br.com.auge.bancoprojetos.registr

ActionMessages question (simple)

2004-10-25 Thread Vinicius Carvalho
I'm kinda lost with this. I set a message like below : ActionMessages msgs = new ActionMessages(); msgs.add("removido", new ActionMessage("br.com.auge.bancoprojetos.registroRemovido")); saveMessages(request,msgs); Than I want to display it: That's not working anyway I'm kinda lost with id

request question

2004-10-25 Thread Vinicius Carvalho
Hi there! This kinda off topic, but I'm confused with that. I have this flow on my app: User search -> content display -> remove Let me get in some finer details. The user enters a criteria to filter the number of items displayed, on the next screen those items are shown with a trash icon, rep

Question regarding formbeans

2004-10-20 Thread Vinicius Carvalho
Hi there! I have the following problem: My form offers the ability to a user select from some categories, let's say first grade, second grade on the next step user selects subjects for each one: first grade: MathEnglishScience second grade: MathEnglish History As you can see, a su

Re: cleaning session

2004-10-07 Thread Vinicius Carvalho
Erik Weber wrote: Vinicius Carvalho wrote: Freddy Villalba A. wrote: Well guys, although on the same direction you are pointing to, I do believe though that the more framework-independent the solution is, the better. So, my thought: Why not have a XML descriptor where you can explicitly define

Re: cleaning session

2004-10-07 Thread Vinicius Carvalho
Freddy Villalba A. wrote: Well guys, although on the same direction you are pointing to, I do believe though that the more framework-independent the solution is, the better. So, my thought: Why not have a XML descriptor where you can explicitly define your wizards? In that way: (1) No matter where

Agregating form beans

2004-10-07 Thread Vinicius Carvalho
I was wondering. Is it possible for a form bean to have a field that would be another form bean? I have a form, that depending on the user selection on the previous screen, it would generate n number of small forms in order for him to fill it up. So I was wondering to have something like this:

Re: Validator

2004-10-05 Thread Vinicius Carvalho
David G. Friedman wrote: I haven't used the validator in a while but I have a 3 questions for you: 1. If, as you say, the Javascript tag isn't being enclosed in .. tags, then you need to verify that your validation file is loaded AND that you have the correct form name in your . I've had that prob

Re: Validator

2004-10-01 Thread Vinicius Carvalho
gerado pelo seu container web(Tomcat, JBoss etc), em geral eles listam a maioria dos problemas da sua aplicação. Gabriel F Campolina Analista desenvolvedor Java Stefanini IT Solutions - BH On Thu, 30 Sep 2004 14:33:51 -0300, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Hi there! I've

Re: Validator

2004-09-30 Thread Vinicius Carvalho
An exemple : Charles -Original Message----- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: September 30, 2004 1:43 PM To: [EMAIL PROTECTED] Subject: Validator Hi there! I've be

Validator

2004-09-30 Thread Vinicius Carvalho
Hi there! I've been using Struts for quite sometime, but haven't used the validator yet. So I followed the receipt provided by Struts in Action, but got no success at all. Here's what I've done Struts-config is configured for the right plugin My ActionForm extends ValidatorForm and has no valida